I have written a topic subscriber and I want to use it in my servlet. Whenever I invoke my servlet(from the browser) topicsubscriber subscribes itself with the provider. But altough I send messsages from a publisher, onmessage method of the subscriber is not invoked. No exception or else can be seen. Also I debugged it subscription phase is ok but after that no messages can be taken by the servlet(onmessage method is not called). Before I used the servlet publisher/subscriber had run very well. I used jboss and tomcat. jboss does not include tomcat. I run tomcat as a standalone server.