File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Creating Stubs with Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Creating Stubs with Jboss" Watch "Creating Stubs with Jboss" New topic
Author

Creating Stubs with Jboss

prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
Hi,
I am using Jboss 4.0 as my application server , trying to use EJB(beginer)
i was able to create my Jar file , containing the class files and the ejb-jar.xml
which i was able to deploy on the server , by just placing it in the deploy directory and got the message that " it has been deployed" and it gives me jndi name for the same as well
now how do i invoke the service from the client? how to get the stub for the client to work?
Books say that the application server is to give you the client jar file that the client needs to user to run the client application
how to go about it?
thanks.
prakash chauhan
Ranch Hand

Joined: Jun 22, 2007
Posts: 81
okay , i was finally able to test my session bean without having to create any stubs.
somebody tell me if its wrong..
i created the java client( .class) file in the same package as for the bean,and two interfaces
in my client i set the Properties for the context factory, and the URL_PROVIDER i passed these to my initialContext() constructor.
then just the usual way to get reference to EJBHome and EJBObject and i was able to call the method of my stateless bean.

want to know if its the correct way to do it?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Creating Stubs with Jboss
 
Similar Threads
J2ee Application client module
Application Container in JBOSS4.3
Running a Java client that connects to EJBs deployed on WAS 7 without stubs
JBoss with EJB
jboss not able to read .war file