Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Correct JNDI pattern to use for Seam 2 in JBOSS AS 6

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm a but confused as to what jndi pattern to specify for the components.xml for the Seam application that I intend to deploy on JBOSS 6 ...
I have seen one or 2 posts about the jndi pattern...some escape #{ejbname} with a backslash,others don't.

Also, I'm not 100% sure about the logic that is being used when binding my beans to JNDI.

Here is what I have observed :According to ejb3 in action, all local bean lookups are automatically prepended with java:comp/env in EJB 3....hence I assume that if I deploy a bean that exposes a local interface it would also be bound to a jndi name prepended with java:comp/env.

But, using the JMX console i realised that my beans were being bound to :

EarName/bean class name/local - fully qualified name of the local interface
...which is great except for the fact that I dont know how to express the fully qualified name of the local interface without hardcoding it into the jndi pattern...


I'm deploying an EAR containing a web module,ejb module and persistence unit.
Could someone shed some light on this ... I have a feeling that the first few times that I try run a Seam application will involve some headaches with jndi names...
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jaikiran!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic