• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create EJB client stubs in JBoss

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 247
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic