File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create EJB client stubs in JBoss

 
Pankaj Poshirkar
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using JBoss as my application server. I have developed my EJB 3.0 application and now I want to access my EJB from a different machine in my LAN. For this as you know, the client accessing the ejbs will be on a different machine and it should have the ejb client stubs loaded on it. But I don't know how to generate the client side stubs and necessary remote and home interfaces in JBoss. In RAD, there is an option provided to generate the client jar while defining an EJB project.

Can anyone tell me how to generate the client stubs in JBoss?


Thanks,
Pankaj
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You get the reference to the EJBObject through JNDI service running in the App server. So you can get Client stubs in yr side...
 
Pankaj Poshirkar
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ram Narayan.M wrote:You get the reference to the EJBObject through JNDI service running in the App server. So you can get Client stubs in yr side...


Sorry but I did not understand what you meant to say. Can you please elaborate?

Thanks,
Pankaj
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss EJB container generates dynamic proxies. So unlike WebSphere, you don't have to generate the compile time stubs. All you need on the client side classpath, is the EJB interfaces of your application.
 
Pankaj Poshirkar
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:JBoss EJB container generates dynamic proxies. So unlike WebSphere, you don't have to generate the compile time stubs. All you need on the client side classpath, is the EJB interfaces of your application.


Thanks a lot Jaikiran. I will try this today evening and will revert if I face any issues.

Thanks,
Pankaj
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic