Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Specifying EJB JNDI name - Vendor dependent?

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Why isn't there a vendor-independent way of specifying the JNDI names of EJB components? I'm using JBoss 5.0. I can either specify the JNDI name in jboss.xml or using the @RemoteBinding annotation, both are vendor specific.

Thanks,
Devi
[ April 17, 2007: Message edited by: Sreedevi Vinod ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a vendor independent way. It is the default, written in the EJB Specs. So those two vendor specific is just if you want to overwrite what the spec says it should be bound to.

Mark
 
Sreedevi Vinod
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,

Can you please elaborate on that? In JBoss, if I don't specify the JNDI name in jboss.xml or using @RemoteBindings, the default is taken as 'beanName'/remote. But this is not the default JNDI name if I use WebLogic. If the spec defines it, should it not be standardized across all the app servers?

Thanks,
Devi
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Sreedevi Vinod:
Mark,

Can you please elaborate on that? In JBoss, if I don't specify the JNDI name in jboss.xml or using @RemoteBindings, the default is taken as 'beanName'/remote. But this is not the default JNDI name if I use WebLogic. If the spec defines it, should it not be standardized across all the app servers?

Thanks,
Devi



Yes and No.

Actually the implementation of JBoss with 'beanName'/remote was created before the final spec. I think we have to wait till JBoss 5 AS gets released. But the default should be what the spec has.

Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic