Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Experts could you please answer me.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic