Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Stubs with Jboss

 
prakash chauhan
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic