Hi Romain,

The MBean is useful to be listing on the queue that is used by the EJB that I'm testing to ensure that the message is received and is correct. E.g.:

TestA --> EJB_A --> (do some logic and send a message to a queue) --> == -->MBeanA

TestA --> (through observer pattern is monitoring MBean)

MBeanA -->onMessage --> setStatus --> notifyObservers

TestA --> check EJB_A answer --> check if MBeanA received message or timeouted --> check message received from MBean A

But the question here is: why this MBean A is only deployed if it is copied to the classpath {project.dir}/bin.

Regards,
CR


On Tue, May 17, 2011 at 11:57 AM, Romain Manni-Bucau
<[email protected]>  wrote:
Hi Carlos,

can you give some snippets? I don't understand why you want to deploy your
mbean with OpenEJB.

- Romain

2011/5/17 Carlos Rodrigues<[email protected]>

Hello all,

I'm working with JUnit and OpenEJB to do integration tests in my project
but I'm experiencing a problem deploying a MBean. I have two classpaths:
{project.dir}/bin and {project.dir}/test/bin. The project EJBs are placed in
{project.dir}/bin and they are correctly deployed by the OpenEJB, the
testing MBean are placed {project.dir}/test/bin and it isn't deployed by
OpenEJB (only if I copy it to the other place.

Anyone have any idea why is this happening? I've already checked if
changing the order of the classpath it will work but without success.

Best Regards,
Carlos Rodrigues



Reply via email to