Change Session Bean’s JNDI Name

08 Mar

Session Bean:


@Remote ({UserRemote.class})




public class Userbean implements UserRemote, UserLocal{

            //Business methods implement


JSP Client codes

Context ctx = new InitialContext();

UserRemote ur = (UserRemote) ctx.lookup(“user/UserR”);

UserLocal ul = (UserLocal) ctx.lookup(“user/UserL”);

Note: JBoss AS7.1 doesn’t support Customize JNDI of Session Bean.

Leave a comment

Posted by on 03/08/2012 in EJB


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: