This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
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: 53
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: 247

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: 53
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: 9947
    
161

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: 53
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.
 
subject: How to create EJB client stubs in JBoss
 
Similar Threads
EJB client jar for 3.5.1
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to fin
JBOSS EJB Server and Tomcat as Web Server
SCBCD: Stubs Question
How to generate stubs