Christian Lorenz [http://community.jboss.org/people/ChrLorenz] created the discussion
"stop a running/hanging MDB/EJB instance" To view the discussion, visit: http://community.jboss.org/message/560636#560636 -------------------------------------------------------------- Hi! I'm developing an application which must download some files via HTTP/FTP. This is done by an MDB, which uses a specific client for the protocols (e.g. Java URLConnection, etc.). As this downloads are triggered periodically via JBoss TimerService I have a problem, if the connection hangs. Because in this case I get no Exception, the MDB will simply hang infinitely. *Is there any way to stop a running MDB instance from outside (at best automatically by JBoss)?* Because I'm using the "@Pool"-annotation with "maxSize=5" to reduce the number of concurrent network connections, I'm out of available instances if some MDBs hang. I've tried some ideas so far, but without success: * "@TransactionTimeout(...)" respectively "@ActivationConfigProperty(propertyName = "transactionTimeout", propertyValue = "...")": This stops the transaction indeed, but the MDB is still running and not released/destroyed. * "@Pool(timeout=...)": But this only rejects new requests from execution. I'm using EJB3 on JBoss 5.1.0 AS. Thanks in advance! CHRISTIAN -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/560636#560636] Start a new discussion in EJB 3.0 at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
