There are some problem when I tried to test an EJB server with JMeter. The EJB container is Jboss.

The scenario is :

1. write a Class extends AbstractJavaSamplerClient, and override the runTest() method. In the method, I lookup the EJB bean. Put the jar to %jmeter_home%/lib/ext

2. Put the EJB business related jar to %jmeter_home%/lib/ext

3. Put the jnp-client.jar to %jmeter_home%/lib/ext

4. Run the Test in JMeter Java Request

The issue is that the Object which I lookup in runTest() is null.

ps. I could get the instance of this Object in main() without JMeter

Please help,thx