[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Notifications over JBM core connections
timfox
do-not-reply at jboss.com
Thu Sep 18 09:20:31 EDT 2008
"jmesnil" wrote : "timfox" wrote :
| | It makes sense to move the notification handling to the session.
| | But it still got the same issue: ServerSession.send() expect a ServerMessage that I need to create.
| |
|
| You could just add a constructor to ServerMessage, like the ClientMessage one:
|
|
| | public ClientMessageImpl(final boolean durable, MessagingBuffer body)
| | {
| | super((byte) 0, durable, 0, System.currentTimeMillis(), (byte)4, body);
| | }
| |
|
| And create a buffer before creating it, like is done in ClientSessionImpl::createClientMessage() but with a server message rather than a client message.
|
| Then call session::send directly on the server, and that will handle all the assigning of a message id etc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177420#4177420
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177420
More information about the jboss-dev-forums
mailing list