aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes How to create EJB client stubs in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "How to create EJB client stubs in JBoss" Watch "How to create EJB client stubs in JBoss" New topic
Author

How to create EJB client stubs in JBoss

Pankaj Poshirkar
Ranch Hand

Joined: Dec 31, 2009
Posts: 52
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

Joined: Jul 11, 2010
Posts: 244

You get the reference to the EJBObject through JNDI service running in the App server. So you can get Client stubs in yr side...


SCJP 6 [SCJP - Old is Gold]
Pankaj Poshirkar
Ranch Hand

Joined: Dec 31, 2009
Posts: 52
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

Joined: Jul 20, 2005
Posts: 8209
    
  71

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.

[My Blog] [JavaRanch Journal]
Pankaj Poshirkar
Ranch Hand

Joined: Dec 31, 2009
Posts: 52
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to create EJB client stubs in JBoss
 
Similar Threads
EJB client jar for 3.5.1
SCBCD: Stubs Question
JBOSS EJB Server and Tomcat as Web Server
How to generate stubs
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to fin