How to write a jndi lookup in a servlet running in
one application server(say weblogic) for an ejb deployed in another
server(say jboss or weblogic) ? please send me some code snippets in detail.

as a reference i have found a link given below:
http://www.amitysolutions.com.au/doc...I-technote.pdf