File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Queue and session is closed! problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Queue and session is closed! problem" Watch "Queue and session is closed! problem" New topic
Author

Queue and session is closed! problem

zabet tyan
Ranch Hand

Joined: Jan 14, 2009
Posts: 32
Hi

I am using a ActiveMQQueue and I have a class that processes the messages. Everytime the onMessage is called, and my finder executes findAreaByName, i get "Session is closed!"

I tried to make IncomingMessageHandler FactoryBeanAware and get finder at runtime but it didn't work. I tried to make finder of prototype scope, but that didn't help. Any ideas on what could be the problem?

is it because I am using DefaultMessageListenerContainer?



and findAreaByName :



and my entityManager code:





configuration:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Queue and session is closed! problem
 
Similar Threads
unsatisfied Dependancy exception
Hibernate insert fails due to generate key failure
spring 2 with hibernate 3
JDBCContext returning TransactionManager as null
Access hibernate session inside onMessage using ActiveMQ