• Post Reply Bookmark Topic Watch Topic
  • New Topic

Specifying EJB JNDI name - Vendor dependent?  RSS feed

 
Sreedevi Vinod
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 ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac 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
Sheriff
Posts: 17309
11
IntelliJ IDE Mac 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!