Hello I am having trouble connecting a CF page to a session bean deployed in
Oracle 9iAS. I have CFMX running on 1 machine and the bean deployed in 9iAS
on another machine so it is a remote call. Here is my code and here is my
error. The 1099 port doesn't make any sense cause the rmi port is dynically
created at start up time.
<cfobject
action ="create"
type ="java"
class ="javax.naming.InitialContext"
name ="ictx">
<cfscript>
ictx.addToEnvironment("java.naming.factory.initial",
"com.evermind.server.rmi.RMIInitialContextFactory");
ictx.addToEnvironment("java.naming.provider.url",
"141.254.22.145:23791/JRun2");
ictx.addToEnvironment("java.naming.factory.url.pkgs",
"com.evermind.naming");
ictx.addToEnvironment("java.naming.security.principal", "admin");
ictx.addToEnvironment("java.naming.security.credentials", "admin");
</cfscript>
<CFDUMP var="#ictx.getEnvironment().toString()#">
<cfset ejbHome =ictx.lookup("SessionManagerLiteStateless")>
It seems to failing on the lookup.
The connection to the remote JNDI server on host ormi at port 1099 has
failed (as have all backup hosts listed, if any) - please verify that the
server is running and the NamingService is available.
The server is running and I can get results back from the bean from a
servlet deployed in the same JVM (JRun 4).
Thanks for the help!
Mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4