• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

about "client view jar file must be included directly in app2.ear file"

 
Bartender
Posts: 2442
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
On p.594 of JSR-318,

Note that client view jar file must be included directly in the app2.ear file.




But I think the ejb1_client.jar (client view jar file) may not necessary in app2.ear. In app2.ear->ejb3.jar, there can be a bean EJB3 that accesses app1.ear -> ejb1_client1.jar->EchoRemote:

 
Creator of Enthuware JWS+ V6
Posts: 3412
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But I think the ejb1_client.jar (client view jar file) may not necessary in app2.ear. In app2.ear->ejb3.jar, there can be a bean EJB3 that accesses app1.ear -> ejb1_client1.jar->EchoRemote:


You will need the ejb1_client jar because of the interface definition of EchoBeanRemote. Otherwise the classes in app2.ear won't compile.

Regards,
Frits
 
Himai Minh
Bartender
Posts: 2442
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for Frit's reply.
That makes sense to have the EchoBeanRemote interface class in the class path to make it compile.

So, in general, even though we can look up JNDI to look up the bean or dependency injection, we still need the bean's class file in the class path to compile.

 
Frits Walraven
Creator of Enthuware JWS+ V6
Posts: 3412
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, but we only need the remote interface of the EJB (and maybe other classes that are interface depends on), not the EJB implementation bean.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic