I am porting our complete J2EE application to JBoss from Websphere. Our application passed all junit tests run from inside WS studio 5.1 (Eclipse 2.1).
Now I am using JBoss 4.0 running inside of Eclipse 3.0.1 with the JBoss IDE 1.4. I have been able to do a clean build, deploy and start of the server. I am also using MySQL 4.1 and have successfully connected and created all the tables from the jbosscmp-jdbc.xml descriptor during deployment of the ear file. So now I am at the point where I would like to run a simple test case to create some data in one of the entity beans. (ie addCustomer). However, I am at a loss to understand how to get my junit test to connect to the remote session bean running inside the server. My jndi.properties looks like this: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming.client j2ee.clientName=junit-client And I have defined a jboss-client.xml that looks like this: <jboss-client> <jndi-name>junit-client</jndi-name> <ejb-ref> <ejb-ref-name>ejb/com/e2m/beans/session/ConferenceMgrHome</ejb-ref-name> <jndi-name>ejb/com/e2m/beans/session/ConferenceMgrHome</jndi-name> </ejb-ref> </jboss-client> But when I try to run the junit test case I get an exception from trying to get the initial context that says "junit-client not bound" Where do I put jboss-client file? I have it under META-INF in the ear, but I don't think it is correct. I checked the packaging xml and it is included in the build. I am using the JBoss quick start guide but I am finding that it is not too specific about this particular aspect of running a remote client. Any help or enlightenment is much appreciated. Kind regards, Joe View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854680#3854680 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854680 ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
