-
Define JNDI on WAS.
Hi,
I wanna try to define for myself a JNDI name for my EJB application.
I'm using the XDoclet to generate my cod. and when i try to access my EJB using the JNDI_NAME, like that--> [b]JNDI_NAME="ejb/MySample" ... ctx.lookup(JNDI_NAME)[/b] ... it doesnt work.
When i saw the AppServer's log i discovered that the WAS auto-setting another name, like [b]MySampleHome[/b], for my JNDI.
I [b]DONT WANNA[/b] it, [b]I WANNA[/b] setting my JNDI name for myself, then how can I do this? Is there any .xml that i can configure for it?
On WASCE, i edited the openejb-jar.xml putting the code:
[html]
<ejb:enterprise-beans>
<ejb:session>
<ejb:ejb-name>MySample</ejb:ejb-name>
<ejb:jndi-name>ejb/MySample</ejb:jndi-name>
<ejb:local-jndi-name>ejb/MySampleLocal</ejb:local-jndi-name>
</ejb:session>
</ejb:enterprise-beans>
[/html]
and it works very well, but for WAS i dont know where i can configure it.
Can u help me?