Hi All
I am new to enterprise development,I would like to ask whether it would be possible to
communicate between two environments each has its own implementation of EJB.
In a typical environment I am trying to call a successfully deployed as well as
executing EJB on ORACLE8i from JSP pages hosted on Allaire JRUN 3.0, but it throws
some exception :
javax.naming.NameNotFoundException:
sess_iiop://13.210.136.31:2481:oralpms1/test/myHello not found
at allaire.ejipt._NamingContext.lookup(_NamingContext.java:73)
at allaire.ejipt._LocalContext.lookup(_LocalContext.java:140)
at allaire.ejipt._NamingContext.lookup(_NamingContext.java:103)
at javax.naming.InitialContext.lookup(InitialContext.java:356)
at allaire.jrun.jndi.LocalContext.lookup(LocalContext.java:161)
at allaire.jrun.jndi.LocalContext.lookup(LocalContext.java:113)
at javax.naming.InitialContext.lookup(InitialContext.java:349)
actual code goes like
String serviceURL = "sess_iiop://13.210.136.31:2481:oralpms1";
String objectName = "/test/myHello";
String user = "scott";
String password = "tiger";
Hashtable env = new Hashtable ();
env.put (Context.URL_PKG_PREFIXES, "oracle.aurora.jndi");
env.put (Context.SECURITY_PRINCIPAL, user);
env.put (Context.SECURITY_CREDENTIALS, password);
env.put (Context.SECURITY_AUTHENTICATION, ServiceCtx.NON_SSL_LOGIN);
Context ic = new InitialContext (env);
HelloHome hello_home = (HelloHome)ic.lookup (serviceURL + objectName);
Hello hello = hello_home.create ();
out.println (hello.helloWorld ());
same code when executed from dos shell, works fine !!!
Any direction, workaround or resources ???
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".