wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Creating Stubs with Jboss
 
Similar Threads
Running a Java client that connects to EJBs deployed on WAS 7 without stubs
J2ee Application client module
JBoss with EJB
Application Container in JBOSS4.3
jboss not able to read .war file