wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Stub classes for standalone EJB clients Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Stub classes for standalone EJB clients" Watch "Stub classes for standalone EJB clients" New topic
Author

Stub classes for standalone EJB clients

sethuraman sukumaran
Greenhorn

Joined: Jul 14, 2004
Posts: 11
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.


Thanks & Regards,<br />Sethu.<br /> <br />SCJP 1.4 - 90%<br />SCWCD 1.4 - 88%
Naresh Narayana
Greenhorn

Joined: Aug 17, 2006
Posts: 5
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

Joined: Feb 08, 2007
Posts: 159
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.


SCJP 1.4 & 1.5, SCWCD 1.5. Learn and Let Learn.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stub classes for standalone EJB clients