Are you looking for this: http://forums.sun.com/thread.jspa?threadID=5397323
Probably, an even cleaner alternative would be to inject a JMS ConnectionFactory using Annotations: http://java.sun.com/javaee/5/docs/tutorial/doc/bnceh.html - I assume, it would clean up itself when undeploying, but I'm not sure about the details. On Jun 8, 3:21 pm, vkrejcirik <[email protected]> wrote: > Hi Paul, > > I thought about using Spring for server side, but now I have 99% > complete application and I don't have time to redesign it for using > Spring. Or could I use Spring only for management connection to JMS ? > I have only little experience with Spring.. > > DO you know, if it exists another way? When I must to call manually > closeConnection? Thanks a lot for all comments. > > On 8 čvn, 13:49, Paul Grenyer <[email protected]> wrote: > > > > > Hi > > > On Tue, Jun 8, 2010 at 12:38 PM, vkrejcirik <[email protected]> wrote: > > > Hi, I'm developing web based application with GWT toolkit. I have > > > client and server part. On server part, I have class for managing of > > > connection to JMS server for listening to JMS topic. I don't find > > > better way than periodically send request from client to server. On > > > server I have saved last message from JMS topic. I get this message > > > and I send it to client. This application runs on tomcat server. I use > > > JAXB for mapping JMS messages to Java classes, which are generated > > > from xml files. > > > If you implmenet Sprin gon the server side you won't need JAXB and > > your JMS client will stop and start with the server. > > > -- > > Thanks > > Paul > > > Paul Grenyer > > e: [email protected] > > b: paulgrenyer.blogspot.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
