This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stub classes for standalone EJB clients  RSS feed

 
Greenhorn
Posts: 11
  • 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.
 
Greenhorn
Posts: 5
  • 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 ]
 
Ranch Hand
Posts: 159
  • 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.
 
Danger, 10,000 volts, very electic .... tiny ad:
free 1 hour java lesson
https://coderanch.com/t/695988/free-hour-java-lesson
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!