yes that is your problem see the documentation and examples for the proper
ones
marc
|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Emiliano Carlesi
|Sent: Friday, January 12, 2001 3:46 PM
|To: [EMAIL PROTECTED]
|Subject: [jBoss-User] newbie question ...
|
|
|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]
|
|
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]