aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Generating EJB Stub code (Client code for Remote and Home references) 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 "Generating EJB Stub code (Client code for Remote and Home references)" Watch "Generating EJB Stub code (Client code for Remote and Home references)" New topic
Author

Generating EJB Stub code (Client code for Remote and Home references)

murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
Hi Friends,

I have an ejb(third party's) which is hosted in a remote server. Let us say i have only JNDI name with me, If i want to invoke this EJB which is deployed in remote server how can i get the Remote and Home stub interfaces while writing lookup code? How to communicate with that EJB Service provider to ask for this stub classes?

Just i am comparing EJB with WebServices, In WebServices if we have WSDL Url we can generate stub code by using Clientgen, but what to do for EJB stub code?

Could you please explain me?

Thanks,
Murali
murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
Experts could you please answer me.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

You have asked multiple questions as for now :

how can i get the Remote and Home stub interfaces while writing lookup code?




Like as shown above , you need to put your appropiate Remote Server's configuration here




I am not sure whetehr this will work or not , but still try .


Save India From Corruption - Anna Hazare.
murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
Hi Ravi,

My question was, how my client class knows these Home and Remote classes, how to import them and how to cast them if i dont have stub code with me?
Am i going to get these classes in terms of jars from service provider?


Thanks,
Murali
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating EJB Stub code (Client code for Remote and Home references)