Hi,
    I am trying to fetch the data from MEJB present in oc4j 10g (10.1.3.0.0) 
using the following code 

Object obj = null;
ManagementHome mgmtHome=null;
Management server = null;
InitialContext ctx = null;
Hashtable props = new Hashtable();
props.put(Context.PROVIDER_URL, "ormi://localhost:23791/default");
props.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
props.put(Context.SECURITY_CREDENTIALS, "Password12");
props.put(Context.INITIAL_CONTEXT_FACTORY 
,"com.evermind.server.ApplicationClientInitialContextFactory");
ctx = new InitialContext(props);
obj = (ManagementHome) ctx.lookup("java:comp/env/ejb/mgmt/MEJB");       
mgmtHome = (ManagementHome) PortableRemoteObject.narrow(obj, 
ManagementHome.class);
server = mgmtHome.create();

from the servlet in JBOSS4.0.3SP1.
and i am getting the following Exception

javax.naming.NoInitialContextException: Cannot instantiate class: 
com.evermind.server.ApplicationClientInitialContextFactory [Root 
exception is java.lang.ClassNotFoundException: 
com.evermind.server.ApplicationClientInitialContextFactory]


I used the same code to connect to to oc4j using the standalone application and 
it was working fine.

can anyone give me some solution to this.
Thanks in advance.
Regards
Siva


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929678#3929678

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3929678


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to