• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!