doubt in "calling the EJB from Standalone application(swing)"
Anna Madhusudhanan Natanagopalan
posted 12 years ago
Hi , The client(swing application) calls the ejb.In this scenerio i am using POJO facade.client calls controller (both in client system),controller calls the EJB(server side).In the controller,it calls the ejb's business method. In the contrller i am using import statement of the ejb files. for example i have four files . remote interface Seller, home interface SellerHome, bean class SellerBean and one value object Sellerhelp.I complied and deploy in the server. assume server is in USA. Now i am creating the client in the same machine. Client.java. In this file i import the Seller and SellerHome and SellerHelp. import com.Seller; import com.SellerHome; import com.helper.SellerHelp; if compile and run this program it executes and gives me the desired result. If i want to execute the client program in INDIA.so i will copy all the class(client) files in system which is residing in INDIA. SO that time how does the class import the file?? because the Seller,Sellerhome,SellerHelper classes are in USA. and onemore thing, if we want to execute the client we have to set the jar file in the classpath. Then if the client is in india, how can i set the classpath . for example the jar file name is SellerBean_1.jar; then i will set this jar file classpath . If it is in the same lan(wired) means i will map the server and set the classpath. that time it works fine. If i want to run in india then should i set the classpath for the server files? Is there is any concept of network import? Or we have to use for this webservice? Thanks and regards Anna Madhusudhanan