Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in "calling the EJB from Standalone application(swing)"

Anna Madhusudhanan Natanagopalan
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
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 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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic