File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JNDI name for ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JNDI name for ejb" Watch "JNDI name for ejb" New topic
Author

JNDI name for ejb

Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
Greetings,
I have a strange problem with JBoss 6.0.0.20100216-M2: I've created a stateless session bean using annotations: I've annotated the EJB class with @Stateless("aName") and @Local(anInterface.class); the ejb implements the 'anInterface'.
Then, I've created a jboss.xml, like that:


After that, I expected to see 'ejb/anotherName' in the jndiView from jboss jmxConsole: instead, I see:



in the global JNDI space.
Obviously, the jar is inside an ear and jboss.xml is inside the META-INF directory of the jar.
I've also tried to add a (redundant?) ejb-jar.xml, without any result.

Can anybody help me? I'm suspecting not to have understood the meaning of 'jboss.xml'.

SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="http://www.enthuware.com" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
Well, this is embarassing.... I should have used and NOT .
Thanks anyway
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI name for ejb