File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stub classes for standalone EJB clients

 
sethuraman sukumaran
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone help me understand how a standalone client can call an EJB deployed on the server.

I do know that we need the home and remote interfaces to compile the client and the stub classes to invoke but my question is how can I generate stub classes.

I developed an EJB and deployed them on the weblogic server. From what I understand, stubs and skeleton classes will be generated when we deploy. But how do I get those stubs to call it using a standalone client.

I have another question. When I create an EJB and a client project using RAD, when I build it, stub classes are being generated inside the client project. When I deploy that EJB on weblogic server can I use the stub which Websphere IDE (RAD) generated.

Thanks in advance,
Sethu.
 
Naresh Narayana
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The lamest use of calling an Session Bean (deployed onto - JBoss) from stand alone client



[ June 28, 2007: Message edited by: Naresh Narayana ]
[ June 28, 2007: Message edited by: Naresh Narayana ]
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you are taking about Stub and Skeleton. For marshalling and unmarshalling the request.

we use weblogic.ejbc compilor to create stub and skeleton.

//If you are using weblogic.

The code discussed there gives you the stub of Home and Remote. They are dynamically loaded into the client JVM. when you do lookup and that stuff.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic