[jboss-user] [JBoss Messaging] - problem with seam and mdb on jboss5.1

Simon Cigoj do-not-reply at jboss.com
Wed Jun 16 16:08:55 EDT 2010


Simon Cigoj [http://community.jboss.org/people/SimonCigoj] created the discussion

"problem with seam and mdb on jboss5.1"

To view the discussion, visit: http://community.jboss.org/message/548354#548354

--------------------------------------------------------------
I have a problem when using a mdb as a seam component. In the bean I inject some other seam somponents.
The problem is that when the server restart after a crash and the mdb is deployed it starts reading the messages but seam is not initialized yet and I got an exception(listed above). If i start the server whith the queues empty and submit a message to queue after the server start it is working ok.

The mdb is anothated like this :

{code}
@Name("videoConverter")
@MessageDriven(name = "VideoConverter", 
  activationConfig = { 
         @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),      
         @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/VideoConverterQueue"), 
         @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1") 
  })
@Pool(value = PoolDefaults.POOL_IMPLEMENTATION_STRICTMAX, maxSize = 1, timeout = 10000
{code}

Is there a posibility to stop or delay the sending off messages on server startup and start sending them only when seam is fully funcional?

I tried the @Depends antotatin on the bean but withowt success from the possible solution mentioned  https://jira.jboss.org/browse/JBSEAM-2286?focusedCommentId=12535875 here but no success.

my environment : jboss5.1 GA seam 2.2.0 GA jboss messaging 1.4

Any help would be appreceated

the error on startup :

11:24:20,477 ERROR  http://community.jboss.org/message/548354#548354/TxPolicy http://community.jboss.org/message/548354#548354/TxPolicy javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside an initialized application11:24:30,483 ERROR  http://community.jboss.org/message/548354#548354/TxPolicy http://community.jboss.org/message/548354#548354/TxPolicy javax.ejb.EJBException: Failed to acquire the pool semaphore, strictTimeout=10000code}



--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/548354#548354]

Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100616/034234e1/attachment.html 


More information about the jboss-user mailing list