what is SHINE ENTERPRISE PATTERN ?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   omid_haghighatgoo
Posted On:   Friday, July 16, 2010 08:14 AM


I READ AN ARTICLE ABOUT A NEW JAVA ARCHITECTURE AND A NEW JAVA PATTERN THAT IT'S NAME IS SHINE ENTERPRISE PATTERN.


I WANT TO KNOW MORE ABOUT IT

IS THERE ANY BODY WHO WORKED IT ?


DOES IT WORTH TO WORK WITH IT ?


https://www.ibm.com/developerworks/mydeveloperworks/groups/service/html/communityview?communityUuid=4d8031a4-58d3-4270-a160-6795db7b6bb5

Re: what is SHINE ENTERPRISE PATTERN ?

Posted By:   Anonymous  
Posted On:   Wednesday, July 28, 2010 12:12 PM

enjoy the sample code



file name:maplet.tld

************************





1.0
1.1
maplet

Service
org.j2os.shine.maplet.tag.Service
JSP

name



SecureService
org.j2os.shine.maplet.tag.SecureService
JSP

name



ErrorService
org.j2os.shine.maplet.tag.ErrorService
JSP




**********************************






server side code

file name : Server.java

************************************************


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("
");
}
public int Plus(int val1,int val2)
{
int res = val1 + val2 ;
System.out.print(val1+" + "+val2+" is equal "+res+"");
System.out.print("
");
return res;
}
private void private_Method()
{
System.out.print("Peivate Method is invoked");
System.out.print("
");
}
}


*********************************************





Client side code

file name : Client.java

**********************************************


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

*****************************************


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~~~~~~~~~~~~~~");
}
}


*********************************************

Re: what is SHINE ENTERPRISE PATTERN ?

Posted By:   Anonymous  
Posted On:   Saturday, July 17, 2010 04:43 AM

shine is a new pattern for java.

its open source and you can refer to http://community.jboss.org/wiki/ShineEnterpriseJavaPattern



it contains maplet framework. you can use maplet for j2ee projects. just add the shine libraries to your java project and use it.

i will be happy to help u men.

go on and enjoy shine.



google it and you will get many tutorials.
About | Sitemap | Contact