"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...