EJB3-Client Lookup

Ich versuche, auf eine EJB aus einem standalone Java client, der immer die folgende Fehlermeldung.

Lookup-code

String localJNDIName = "ejbremote:gcmsnew/gcmsutilbeans.jar/CustomerSurveyManageQstBean#com.smbcgroup.gcms.utility.bl.survey.CustomerSurveyManageQstRemote";
InitialContext ic = new InitialContext();
GCMSBaseRemote bean = (GCMSBaseRemote)ic.lookup(localJNDIName);

Ausnahme

javax.die Benennung.ConfigurationException: NamingManager.getURLContext
kann nicht finden, das Werk für diese Regelung: ejbremote an
com.ibm.ws.die Benennung.jndicos.CNContextImpl.checkForUrlContext(CNContextImpl.java:471)
bei com.ibm.ws.die Benennung.util.WsnInitCtx.lookup(WsnInitCtx.java:160) at
com.ibm.ws.die Benennung.util.WsnInitCtx.lookup(WsnInitCtx.java:179) at
javax.die Benennung.InitialContext.lookup(Unknown Source) at
com.test.EJBClientTest.main(EJBClientTest.java:18)

Umgebung

RAD 7.5, EJB3. Websphere Application Server 7.0.

InformationsquelleAutor Rafi | 2011-12-01

Schreibe einen Kommentar