OK, here is the deal... One doesn't have to downgrade to 3.x to make the standalone 
applications running under JBoss 4.0DR2.

This is the list of libraries needed:

log4j.jar
jboss-all-client.jar
jboss-system.jar
jboss-jmx.jar
jboss-remoting.jar
dom4j.jar

Also, looks like you DO NOT need to pass this in your environemnt:
                env.put("java.naming.factory.url.pkgs", "org.jboss.naming.client");


And the final key is:

Add a file called jndi.properties to your client class path with the follwing content:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming.client

(change the host and the port if needed)

Anyone could argue about the restrictions of this approach, but it will help at least 
to unit test your beans :)


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

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


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to