Hi Huy, It depends on what you want to test.
If you want to test the creation of the entity bean, you may want to write a plain JDBC code to check if the record is in the database, or use a home to findByPrimaryKey. I like later better as it also tests home/PK part. If you want to test that the message is sent upon creation of the EJB, you may write a reusable test JMS consumer, create and register it with queue or topic, create a bean, wait for some time and than check if the consumer got a message. Hope this helps. Regards, Slava Imeshev --- [EMAIL PROTECTED] wrote: > Hi, > > Is there anyway I can write code to receive jms message from cactus test? > My problem is this: When I create an entity bean successfully from cactus, I expect > to receive a > jms message. I want to be able to receive the jms message to confirm that entity > bean has been > created successfully. > > Huy > > __________________________________________________________________ > McAfee VirusScan Online from the Netscape Network. > Comprehensive protection for your entire computer. Get your free trial today! > http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 > > Get AOL Instant Messenger 5.1 free of charge. Download Now! > http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
