• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

JNDI name for ejb

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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'.
 
Mirko Bonasorte
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, this is embarassing.... I should have used and NOT .
Thanks anyway
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic