By fluke I changed anentry in the jboss.properties file to

java.rmi.server.codebase=http://24.114.27.108:1099/

and it seems to be working, but I have no Idea why. Again any coments would
be helpful.
Jeff



>>>>>>>>>>>>>>>>>>>>>>

Can anyone out there tell me out there how to call an ejb on a remote jboss
server?

I have modified the HelloEJB.class that comes with jboss to call the ejb on
a remote server.
I have changed the the line that defines where i want do my jndi lookup to


System.setProperty("java.naming.provider.url", "24.114.27.108:1099");

this is the ip of a machine where I have jboss running.
I then do my object creation

String jndiName="NonOptimized"
StatelessSessionHome home = (StatelessSessionHome)ctx.lookup(jndiName);


and get the following error

javax.naming.CommunicationException.  Root exception is
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
        java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
        java.net.MalformedURLException: no protocol: 24.114.27.108:1099/
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception
is:
        java.net.MalformedURLException: no protocol: 24.114.27.108:1099/
java.net.MalformedURLException: no protocol: 24.114.27.108:1099/
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:65)
        at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:49)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
9)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:745)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:407)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)


I am able to telnet over to this port and ip I get weird garbage with java
related info in it so i assume that I am going to the right ip, if anyone
has any thoughts i would sure appreciate it because I am stumped!
Jeff Anderson



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to