Hmm...doesn't seem to work. (I'm using an EJX that I just downloaded from dreambean.com).
I'm connecting from a Win2k box to a Linux box running jBoss. Yes, the jndi.properties on the server has java.naming.provider.url set with the actual hostname, so remote clients should be able to connect ok.
From Win2k, I set my Classpath = . , and put the jndi.properties file in the EJX bin directory (that's where I'm executing from). Is there anything else that I should be doing?
I attempted using the -D syntax on the command line to specify the appropriate jndi properties. This seemed to work better (it looks like jndi.properties is being ignored for some reason). Now I get an java.rmi.MarshalledObject exception.... ick.
Here's what I entered to get this far....
C:\...\bin>java -Djava.naming.factory.url.pkgs=org.jboss.naming -Djava.naming.provider.url=<server_name> -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -jar ejx.jar
-Jason
| Rickard �berg <[EMAIL PROTECTED]>
10/26/2000 03:20 PM
|
To: jBoss <[EMAIL PROTECTED]> cc: Subject: Re: [jBoss-User] Invocation layers |
[EMAIL PROTECTED] wrote:
> Is EJBench working properly with jBoss? (I just tried to use it today
> for the first time) Looks like it's doing dynamic classloading, so do
> I need to have any of the jBoss client libraries available in the
> Classpath? I tried entering just the hostname of my server and the
> JNDI name of the bean I wanted to connect to, and I received an error:
>
> Need to specify class name in environment or system property, or as an
> applet paramter, or in an applicatoin resource file:
> java.naming.factory.initial
You need a jndi.properties in EJX's classpath.
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
