• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question regrding EJB client jar  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to EJB technology,
I am bit confused about what does EJB Client jar contains ?
Does it only contains Remote and Local interfaces ?
Is it always required to put client jar file in the client application ?
What if my Remote and Local interface uses my domain object which is another java project, won't it give me a runtime class not found exception in my client application( assuming my client application is a Struts Web Project. ) ?
I tried generating EJB client from eclipse It removed my HelloWorldRemote and HelloWorldLocal interfaces from EJB and moved it to the ejb client project and i did not fund any other classes/stubs/proxy objects or domain classes but all i found is HelloWorldRemote & HelloWorldLocal Interfaces

i tired googling but i am still confused about it.

Can anybody clear my doubts.

Thanks
Jigar Naik

P.S. I am not sure if the answers to these questions will differ for EJB versions, however i am referring to EJB 3.1 and i am using annotations.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your EJB client jar should only contain the remote interface and the classes defined in that interface.
 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!