Hi All

I am trying to call a remote EJB 3.0 bean which is in WAS server
(separate instance) from Portal Server.

prop.put(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.W
snInitialContextFactory" );

prop.put(Context.PROVIDER_URL,"iiop://192.168.1.65:2809" ) ;

Context ctx;

try { ctx = new InitialContext(prop);
PrintWriter pw=response.getWriter();

pw.println (ctx.getEnvironment());






java.lang.Object obj = ctx.lookup("ejb/JPAEJBEARRemote/JPAEJB.jar/
CreditorBean#com.dk.bs.ejb.Cre ditorI nterface");







pw.println(obj.toString());







CreditorInterface credInterface =
(CreditorInterface)PortableRemoteObject.narrow(obj ,CreditorInterface.class);



Creditor objCreditor = new Creditor(new Integer(1160), new Double(1),



new String("work"), new Date(), new Date(),



new Date(), "test", new Date());







pw.println(credInterface.toString());



credInterface.addCreditor(objCreditor);



pw.println("Creditor Done");







} catch (NamingException e)



{ e.printStackTrace();



}


i am getting the following error.

NMSV0610I: A NamingException is being thrown from a
javax.naming.Context implementation. Details follow:

Context implementation: com.ibm.ws.naming.jndicos.CNContextImpl

Context method: lookupExt

Context name: infpw02428Node01Cell/nodes/infpw02428Node01/servers/
server1

Target name: ejb/JPAEJBEAR/JPAEJB.jar/
CreditorBean#com.dk.bs.ejb.CreditorInterface

Other data: ""
Exception stack trace: javax.naming.NoPermissionException:
NO_PERMISSION exception caught [Root exception is
org.omg.CORBA.NO_PERMISSION: JSAS0202E:



can someone pls let me know how to go about with solving this issue.