[dbcp] - How to programmatically check the pool status?

2014-04-16 Thread Raffaele Gambelli
Hi all, I'm using Tomcat 6.0.26 and its default dbcp connection pooling system (tomcat-dbcp.jar inside the default installation dir) My question is: How could I check programmatically the connection pool status ? For example inside a catch of some exception related to some database issues I

SCXML2 Serialization

2014-04-16 Thread tendaf
Hi all, I would like to know the best practice to serialize/deserialize SCXML fsm. I do this during the creation of the SCXML executor, scInstace is the serialized context: ListCustomAction customActions = new ArrayListCustomAction(); CustomAction ca =

Re: SCXML2 Serialization

2014-04-16 Thread Woonsan Ko
Hi Francis, I think the best practices are to serialize either o.a.c.s.SCXMLExecutor [1] or o.a.c.s.model.SCXML instances. Both cases are well-maintained in test code. [2] In your case, you can probably (de)serialize SCXMLExecutor instance directly to store/load the execution context. Also, as

Re: SCXML2 Serialization

2014-04-16 Thread Ate Douma
Hi Francis, There are a few things not right or needed in your approach below. I've provided comments inline. On 16-04-14 15:07, ten...@free.fr wrote: Hi all, I would like to know the best practice to serialize/deserialize SCXML fsm. I do this during the creation of the SCXML executor,

Re: SCXML2 Serialization

2014-04-16 Thread Ate Douma
Hi Woonsan, On 16-04-14 15:49, Woonsan Ko wrote: Hi Francis, I think the best practices are to serialize either o.a.c.s.SCXMLExecutor [1] or o.a.c.s.model.SCXML instances. Both cases are well-maintained in test code. [2] Actually, since the last milestone SCXMLExecutor no longer is

Re: SCXML2 Serialization

2014-04-16 Thread Woonsan Ko
On Wednesday, April 16, 2014 9:57 AM, Ate Douma a...@douma.nu wrote: Hi Woonsan, On 16-04-14 15:49, Woonsan Ko wrote: Hi Francis, I think the best practices are to serialize either o.a.c.s.SCXMLExecutor [1] or o.a.c.s.model.SCXML instances. Both cases are well-maintained in test code.

[dbcp] - How to programmatically check the pool status?

2014-04-16 Thread Raffaele Gambelli
Hi all, I'm using Tomcat 6.0.26 and its default dbcp connection pooling system (tomcat-dbcp.jar inside the default installation dir) My question is: How could I check programmatically the connection pool status ? For example inside a catch of some exception related to some database issues I

Re: [dbcp] - How to programmatically check the pool status?

2014-04-16 Thread Phil Steitz
On 4/16/14, 2:33 AM, Raffaele Gambelli wrote: Hi all, I'm using Tomcat 6.0.26 and its default dbcp connection pooling system (tomcat-dbcp.jar inside the default installation dir) My question is: How could I check programmatically the connection pool status ? For example inside a catch of

RE: SCXML2 Serialization

2014-04-16 Thread tendaf
Thanks for your reply Ate. I want to serialize/deserialize a SCXML 'session' for this use case : Into a transactional server, a request is processed by a thread. An ID is retrieved from the message, with this ID the server loads a context (from a redis store) and instantiates a new 'Executor'

SCXML2 Serialization

2014-04-16 Thread tendaf
Hi Ate, I put Simple1.java and Simple1.xml here : http://tendaf.free.fr/ When I run the program (second time) the fsm is frozen : First time : After creation [startIngTrs.processMsg is running : true message:message1 serialize.. Process finished with exit code 0 Second time : Loading simple1