Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic