• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Do EJB Clients Have to be Dependent on EJB Server Vendor?

 
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

My company sells a product that's going to need to support customers' existing EJB container vendors: WebLogic, WebSphere, JBoss, etc.

1. I'm suggesting that we keep a standard EJB-spec EAR with no vendor-specific deployment descriptors or anything, and then at install time we insert the appropriate vendor-specific DDs into the EAR at that point. The other suggestion on the table is to simply include them all, since they're all named differently (we think), but I'm thinking we may see changes from one version to the next so we'll have to have our installer fill out the EAR at that point anyway (WebLogic 8.0, WebLogic 8.1, etc). Anyone have experience with this? What's the right thing to do?

2. We have clients that reside outside the web server/EJB container in their own standalone executable JAR (with a Main-Class, blah blah blah). To perform the JNDI lookup and contact the EJB, it seems the client needs to have a vendor-specific initial context factory. So, for instance, weblogic.jndi.WLInitialContextFactory for WebLogic. But we don't want the client to have a dependency on the weblogic.jar...preferably we don't want any vendor-specific jars in the client-side.

We've assembled a client jar that only has the EJB home and remote interfaces, etc...isn't that enough? Or do we absolutely have to make our client dependent on the vendor-specific jars? If so, does each vendor package up the stuff needed on the client side separately? I shouldn't have to be dependent on the entire weblogic.jar if I only need access to the weblogic.jndi package, right? For WebLogic, where would I find this client side jar?

It's going to create some serious problems for us if we need to build vendor- and version-specific stuff into the client-side pieces because we have clients that run several versions of WebLogic, and we'd want one single client to be able to contact the EJBs in all of them (assuming EJB 2.0 spec). If we need a client-side dependency on weblogic.jar, this won't be possible as far as I can see.

Thanks!
sev

[ October 12, 2004: Message edited by: sever oon ]
[ October 12, 2004: Message edited by: sever oon ]
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

1. I'm suggesting that we keep a standard EJB-spec EAR with no vendor-specific deployment descriptors or anything, and then at install time we insert the appropriate vendor-specific DDs into the EAR at that point. The other suggestion on the table is to simply include them all, since they're all named differently (we think), but I'm thinking we may see changes from one version to the next so we'll have to have our installer fill out the EAR at that point anyway (WebLogic 8.0, WebLogic 8.1, etc). Anyone have experience with this? What's the right thing to do?



I would prefer to insert vendor specific DD when required rather than putting all the vendors file together.

We've assembled a client jar that only has the EJB home and remote interfaces, etc...isn't that enough? Or do we absolutely have to make our client dependent on the vendor-specific jars? If so, does each vendor package up the stuff needed on the client side separately? I shouldn't have to be dependent on the entire weblogic.jar if I only need access to the weblogic.jndi package, right? For WebLogic, where would I find this client side jar?



You could specify the JNDI factory class etc in jndi.properties so that you dont hard code it. The vendor specific libraries are required at the client side.
 
pie. 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