• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to call Remote Interface from a Stand Alone Client in EJB 3.0  RSS feed

 
Raza Mohd
Ranch Hand
Posts: 247
Java MyEclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all..

I am new to EJB 3.0 and i want to call Remote Interface From a stand Alone Clent.

My session Bean is deployed on the JBOSS 4.2.1.GA Server.

And My Client is At other JVM .It is a Simple Java Project Having a main Method...

My Client Class is..




But I am unable to Access Session Bean ..
Help me to get out of it..

It is Throwing Exception..

 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your client classpath should contain the (exact same) jbossall-client.jar file which is present in JBOSS_HOME/client folder.
 
Raza Mohd
Ranch Hand
Posts: 247
Java MyEclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks JaiKiran for Response...

I put the same jar inside the Class Path..

Now the record is getting inserted in the table..

but Fend i tried to find the record.

It gives following Exception.



And I have Following jar files in Client Class path..

ejb-api-3.0.jar
jbossall-client.jar
jboss-aop.jar
jboss-ejb-client.jar
jboss-remoting.jar
jboss-serialisation.jar
trove.jar


Regards
Raza.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!