[JBoss Messaging] - Re: Test org.jboss.test.jbossmessaging.test.JBossJMSUnitTest
by burdeasa
Thanks for the responses everyone.
I think I have found a solution.
I added debug code to testcase RequestReplyQueue and noticed that the test was receiving the following message text on the queue: High Priority Persistent message.
This message text is placed on the queue by the previous testcase (QueueMessageOrder). The messages from the previous testcase were still on the queue, which appears to have lead to problems with the testcase RequestReplyQueue. Testcase RequestReplyQueue calls the method drainQueue to remove any leftover messages. However, from the test.log file I could tell that drainQueue was not removing any messages in the failing scenario. The code in drainQueue has a timeout of 50 milliseconds to receive a message. I guessed that maybe this was too short sometimes, so I increased the timeout from 50 to 500. After making this change, I have run the test 10 times in a row without a failure, so this appears to be the solution.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222343#4222343
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222343
15 years, 9 months
[JBoss Portal] - no communication with inter portlet communication
by Fuchs
hello, iam using the jboss portal 2.7.2 bundle on window vista.
i used to write a interportlet communication like the sample in the jboss reference guide. i got the two portlets deployed, but the communication between them doesnt work.
i get an error at the start of the server:
| WARN [ServiceController] Problem starting service portal:service=ListenerService,type=
| test_listener
| java.lang.ClassNotFoundException: No ClassLoaders found for: main.PortletB$Listener
|
Here the mbean from the jboss-servcice.xml:
| <mbean
| code="org.jboss.portal.core.event.PortalEventListenerServiceImpl"
| name="portal:service=ListenerService,type=test_listener"
| xmbean-dd=""
| xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
| <xmbean/>
| <depends
| optional-attribute-name="Registry"
| proxy-type="attribute">portal:service=ListenerRegistry</depends>
| <attribute name="RegistryId">test_listener</attribute>
| <attribute name="ListenerClassName">main.PortletB$Listener</attribute>
| </mbean>
|
i added the listener in my -object.xml in the window tag of the portletB
| <window>
| <window-name>PortletBWindow</window-name>
| <instance-ref>PortletBInstance</instance-ref>
| <listener>test_listener</listener>
|
i dont know what could be wrong! Maybe someone can help me?
(1) how can i solve the porblem in the start phase?
(2) why doesnt run the communication between A and B?
If i forgot something important, please inform me.
Thanks for reading my post.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222330#4222330
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222330
15 years, 9 months