[
https://jira.jboss.org/jira/browse/JBESB-1959?page=com.atlassian.jira.plu...
]
Pavel Macik commented on JBESB-1959:
------------------------------------
It works, now... thx
It's test, based on monitoring_action quickstarts.
It's in SVN on
https://svn.corp.jboss.com/repos/soa/trunk/qa/tests/
After sending some messages, the test look into MBean associated with this test (according
a "readme" file related to the quickstart) to determine, how many messages
passed a pattern (>5).
Here is a code of the test:
private static final int MESSAGE_COUNT = 5;
private static final int PASSED_MESSAGE_COUNT = 3;
private static final String RMI_ADAPTOR_JNDI_NAME = "jmx/invoker/RMIAdaptor";
private static final String MBEAN_NAME =
"jboss.esb:category=MVELMonitor,deployment=Quickstart_monitoring_action.esb,service
name=SimpleListener";
...
the test method:
testServices.sendJMSTextMessage(INPUT_JMS_QUEUE, "3");
testServices.sendJMSTextMessage(INPUT_JMS_QUEUE, "9");
testServices.sendJMSTextMessage(INPUT_JMS_QUEUE, "8");
testServices.sendJMSTextMessage(INPUT_JMS_QUEUE, "5");
testServices.sendJMSTextMessage(INPUT_JMS_QUEUE, "6");
...
InitialContext ic = new InitialContext(jndiProperties);
RMIAdaptor server = (RMIAdaptor) ic.lookup(RMI_ADAPTOR_JNDI_NAME);
ObjectName mBeanName = new ObjectName(MBEAN_NAME);
String expectedClassName =
"org.jboss.soa.esb.actions.monitoring.MVELMonitor";
Assert.assertTrue(server.isInstanceOf(mBeanName, expectedClassName));
Assert.assertTrue(server.isRegistered(mBeanName));
// At this point the exception happened (now, after update, it works)
List list = (ArrayList<MonitoringPatternBean>) server.invoke(mBeanName,
"getMonitoredEvents", new Object[0], new String[0]);
Assert.assertEquals(list.size(), PASSED_MESSAGE_COUNT);
MonitoringPatternBean is not Serializable ->
NotSerializableException
---------------------------------------------------------------------
Key: JBESB-1959
URL:
https://jira.jboss.org/jira/browse/JBESB-1959
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.4
Reporter: Pavel Macik
Assignee: Tom Cunningham
Fix For: 4.4 CP1
When I try to invoke getMonitoredEvents() method via RMIAdapter the
NotSerializableException arises. The class MonitoringPatternBean is not Serializable...
java.io.NotSerializableException:
org.jboss.soa.esb.actions.monitoring.MonitoringPatternBean
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
at java.util.ArrayList.writeObject(ArrayList.java:569)
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira