Win a copy of Terraform in Action this week in the Cloud forum!

James Atkins

Greenhorn
+ Follow
since Dec 25, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by James Atkins

Sylvain,

Here is the solution. I banged my head for many hours on this same problem.

I found this on JBoss site but sheer luck it seems

http://wiki.jboss.org/wiki/Wiki.jsp?page=WhyDoesTheLocalNameContainARandomNumber

After reading that all I did was modify the jboss.xml file of my ejb jar file to create a local name of my choosing. For example:

<jboss>
<enterprise-beans>
<entity>
<ejb-name><MyBean></ejb-name>
<local-jndi-name><any path and name I want for MyBean></local-jndi-name>
</entity>
</enterprise-beans>
</jboss>

Redeploy the ejb jar file and you should see the fruits of your labor displayed to JBoss console.

NOTE: I have no magic entries in the web.xml or jboss-web.xml, all I did was modify the one jboss.xml file in the ejb jar file.
[ December 25, 2005: Message edited by: James Atkins ]