• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Question regrding EJB client jar

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot.
 
So there I was, trapped in the jungle. And at the last minute, I was saved by this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic