Hi,
The process is that:
1. a client send a message which was the ObjectMessage type to the service;
2. the service used the following two actions to due with this message;
<!-- just print the content of message in console-->
<action class="com.shik.integration_service.action.UpdateAction"
name="printAction" process="printMessage">
<property name="exceptionMethod" value="exceptionHandler" />
</action>
<!-- notify the other client -->
<action class="org.jboss.soa.esb.actions.Notifier" name="notificationAction">
<property name="okMethod" value="notifyOK" />
<property name="notification-details">
<NotificationList type="OK">
<target class="NotifyQueues">
<messageProp name="update" value="Queue Notification" />
<queue jndiName="queue/updateResponse" />
</target>
</NotificationList>
</property>
</action>
3. the client which was listening to the queue/updateResponse received the message.
when i had used the following code to get the object of the message , the error describing in the title happened.
"((ObjectMessage)message).getObject()"
how could i get the object in this message ? pls help me.
Thanks
Comments