what is JShooter?

omid128's Avatar, Join Date: Jul 2010
Go4Expert Member
JShooter is a framework for distributing application programs on the network. Certainly, you have used RMI, Corba and JMS. Each of aforementioned technologies has its own special problems and at the same time enjoys extraordinary advantages. However, you must be careful about the expenses caused by these technologies. In most cases RMI, Corba and JMS increase the productions’ costs unbelievably. However in other cases they confuse programmers. Years ago, Reflect Oriented Programming was the focus of attention within professional programmers, then Aspect Oriented Programming came into the programming world but instead of reducing the programmer’s task, it causes the professional programmers and even the amateur ones to be confused in many cases. One of the most important capabilities of JShooter is that it makes the “Reflect Oriented Programming” easier to use.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You posted the same content in 3 threads now and so make sure you do not repeat the same or else your account can get banned.
0
omid128's Avatar, Join Date: Jul 2010
Go4Expert Member
Quote:
Originally Posted by shabbir View Post
You posted the same content in 3 threads now and so make sure you do not repeat the same or else your account can get banned.

sorry for that mistake
0
omid128's Avatar, Join Date: Jul 2010
Go4Expert Member
here is a sample for jshooter
it's very easy to understand
but a complete doc is availabe
you just need to download shine enterprise library and enjoy it

here is library and doc :

SourceForge.
net/projects/shine-enterpris/files/
Attached Files
File Type: zip Example-JShooter-1.zip (1.8 KB, 3 views)
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Moved JShooter Sample in the JShooter thread of yours
0
omid128's Avatar, Join Date: Jul 2010
Go4Expert Member
Quote:
Originally Posted by shabbir View Post
Moved JShooter Sample in the JShooter thread of yours
ok you are right sorry

but because it was new and some how diffrent with that post I open a new post

tnx
0
john.stalin.java's Avatar, Join Date: Jul 2010
Newbie Member
this is my jshooter exapmle code
feel free to ask any Question


server side code
file name : Server.java
Code:
package ServerSide;

public class Server 
{
//the definition of method lay here
  public void PrintName(String Name)
  {
      System.out.print("Dear user Your name is "+Name);
      System.out.print("<br>");
  }
  public int Plus(int val1,int val2)
  {
      int res = val1 + val2 ;
      System.out.print(val1+" + "+val2+" is equal "+res+"");
      System.out.print("<br>");
      return res;
  }
  private void private_Method()
  {
    System.out.print("Peivate Method is invoked");
    System.out.print("<br>");
  }
}

Client side code
file name : Client.java

Code:
package ClientSide;
import ServerSide.Server;
import org.j2sos.shine.jshooter.*;
import java.util.ArrayList;
public class Client 
{
//call the method from server side
//1- get method type
//2- invoke a method
//3- newInstat 
//4- get fild type
  public static void main(String arg[])throws Exception
  {
     ServerApplication Client_Obj = new Application().receive("Rokhsana","CommunityName");
     Client_Obj.newInstance("ServerSide.Server");
    ArrayList method_array = Client_Obj.getMethodsNames();
    int i = 0;
    while(method_array.size()!=i)
    {
      System.out.println(method_array.get(i));
      i ++;
    }
  }
}

engine code on the server
file name : Core.java

Code:
package Engin;
import org.j2sos.shine.jshooter.Application;

public class Core 
{
//distribute server class for client
  public static void main(String arg[])throws Exception
  {
    Application distrubuted_Obj = new Application();
    distrubuted_Obj.distribute(1099,"CommunityName");
    System.out.print("~~~~~~~~~~Core isrunning~~~~~~~~~~~~~~");
  }
}