Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Web Development (http://www.go4expert.com/forums/web-development-forum/)
-   -   what is JShooter? (http://www.go4expert.com/forums/what-is-jshooter-t22674/)

omid128 10Jul2010 02:51

what is JShooter?
 
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.

shabbir 10Jul2010 09:17

Re: what is JShooter?
 
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.

omid128 11Jul2010 03:37

Re: what is JShooter?
 
Quote:

Originally Posted by shabbir (Post 70097)
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

omid128 11Jul2010 22:32

a jshooter sample
 
1 Attachment(s)
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/

shabbir 11Jul2010 23:49

Re: what is JShooter?
 
Moved JShooter Sample in the JShooter thread of yours

omid128 12Jul2010 00:11

Re: what is JShooter?
 
Quote:

Originally Posted by shabbir (Post 70129)
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

john.stalin.java 26Jul2010 01:58

Re: what is JShooter?
 
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~~~~~~~~~~~~~~");
  }
}



All times are GMT +5.5. The time now is 23:08.