wood burning stoves*
The moose likes JBoss/WildFly and the fly likes Correct JNDI pattern to use for Seam 2 in JBOSS AS 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Correct JNDI pattern to use for Seam 2 in JBOSS AS 6" Watch "Correct JNDI pattern to use for Seam 2 in JBOSS AS 6" New topic
Author

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

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

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...

===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9960
    
163

See this http://docs.jboss.org/ejb3/docs/tutorial/1.0.7/html/JNDI_Bindings.html

[My Blog] [JavaRanch Journal]
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Thanks Jaikiran!
 
 
subject: Correct JNDI pattern to use for Seam 2 in JBOSS AS 6
 
Similar Threads
JNDI: java:comp/env bound and unbound at the same time?
10 Basic doubts in EJB3.0 !
Obtaining a Local Ref in WebSphere 5.0
Problem in deploying JPA -EJB in JBoss4.2.1
How to use @EJB to inject an ejb?