| Author |
Specifying jndi properties for using @EJB from a servlet
|
Sandhya Narayanan
Greenhorn
Joined: Apr 22, 2007
Posts: 7
|
|
I have a servlet deployed in a JBoss server and it has to look up an EJB deployed in a remote WebLogic server using the @EJB annotation. Where do I pass the jndi properties such as JNDI server url and port? I put the jndi.properties file in the classpath, but it is not working. Thanks in advance. -Sandhya [ April 24, 2007: Message edited by: Sandhya Narayanan ]
|
 |
Rahul Bhattacharjee
Ranch Hand
Joined: Nov 29, 2005
Posts: 2300
|
|
|
Creata a hashmap with the connection properties and pass it as parameter to the InitialContext.Refer the vedor documentation for more information.
|
Rahul Bhattacharjee
LinkedIn - Blog
|
 |
Sandhya Narayanan
Greenhorn
Joined: Apr 22, 2007
Posts: 7
|
|
I'm not using JNDI API, so there is no InitialContext. How do I specify the JNDI information when @EJB annotation is used. Thanks -Sandhya
|
 |
 |
|
|
subject: Specifying jndi properties for using @EJB from a servlet
|
|
|