what is JShooter?
|
Go4Expert Member
|
|
| 10Jul2010,02:51 | #1 |
|
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.
|
|
Go4Expert Founder
|
![]() |
| 10Jul2010,09:17 | #2 |
|
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.
|
|
Go4Expert Member
|
|
| 11Jul2010,03:37 | #3 |
|
Go4Expert Member
|
|
| 11Jul2010,22:32 | #4 |
|
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/ |
|
Go4Expert Founder
|
![]() |
| 11Jul2010,23:49 | #5 |
|
Moved JShooter Sample in the JShooter thread of yours
|
|
Go4Expert Member
|
|
| 12Jul2010,00:11 | #6 |
|
Newbie Member
|
|
| 26Jul2010,01:58 | #7 |
|
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~~~~~~~~~~~~~~");
}
}
|


