Hi !! I have download jBoss yesterday and I'd like to use some EJB I have ( I work
with BEA WebLogic ). Now ... I deploy the files .jar into the folder
/usr/local/jboss/deploy and when I start jboss the bean are deployed into the server.
OK !!!
The problem is the client ....
Whit WebLogic I use this file to test my EJB
//the file name TestEJBClient.java
import test.*;
import javax.ejb.*;
import javax.naming.*;
import java.util.*;
import javax.rmi.PortableRemoteObject;
public class TestEJBClient
{
try
{
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
p.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
Context ctx = new InitialContext(properties);
TestEJBHome home = (TestEJBHome) ctx.lookup("TestEJB");
TestEJB the_ejb = home.create();
System.out.println("Message from the container = " +
the_ejb.getMessage());
the_ejb.remove();
}
catch (Exception e)
{
e.printStackTrace();
}
}
I think I insert two wrong properties, but I don't find documentation about this.
I think the problem is this
weblogic.jndi.WLInitialContextFactory
and
t3://127.0.0.1:7001
Someone can help me, please ?
Thank you very much !!!!!!!!!!!!!!!
Emiliano
___________________________________________________
Se vuoi un indirizzo di posta elettronica gratuito,
iscriviti a http://www.katamail.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]