[scxml] invoking methods on an object

2011-10-03 Thread Daniel Luis dos Santos
Hello, I am beggining to use commons-SCXML. For now I created a generic class that wraps the library's code just like the class AbstractStateMachine in the stopwatch example. Each class from my application that will be governed by a state machine has an instance of this, and has methods to

Basic data source; URL not distinguishing between different databases ?

2011-10-03 Thread Greg Thomas
I'm making fairly simply use of the BasicDataSource, something like ... BasicDataSource ds1 = new BasicDataSource(); ds1.setDriverClassName(com.microsoft.sqlserver.jdbc.SQLServerDriver); ds1.setUrl(jdbc:sqlserver://host\\INST01;databaseName=db1); and everything works just fine. Until, that

[dbcp] Re: Basic data source; URL not distinguishing between different databases ?

2011-10-03 Thread Phil Steitz
On Mon, Oct 3, 2011 at 6:52 AM, Greg Thomas greg.d.tho...@gmail.com wrote: I'm making fairly simply use of the BasicDataSource, something like ... BasicDataSource ds1 = new BasicDataSource(); ds1.setDriverClassName(com.microsoft.sqlserver.jdbc.SQLServerDriver);

Re: [scxml] invoking methods on an object

2011-10-03 Thread Rahul Akolkar
On Mon, Oct 3, 2011 at 7:07 PM, Daniel Luis dos Santos daniel.d...@gmail.com wrote: Hi, Ok invoke is another thing. Meanwhile I did write some custom actions. What I am doing is trying to call the object from within the actions. I managed to get an instance to the object by passing a

Re: [scxml] invoking methods on an object

2011-10-03 Thread Rahul Akolkar
On Mon, Oct 3, 2011 at 9:17 AM, Daniel Luis dos Santos daniel.d...@gmail.com wrote: Hello, I am beggining to use commons-SCXML. For now I created a generic class that wraps the library's code just like the class AbstractStateMachine in the stopwatch example. Each class from my application

Re: [scxml] invoking methods on an object

2011-10-03 Thread Daniel Luis dos Santos
Hi, Ok invoke is another thing. Meanwhile I did write some custom actions. What I am doing is trying to call the object from within the actions. I managed to get an instance to the object by passing a reference to it in the event trigger method in my client code. I then access the parent

Re: [dbcp] Re: Basic data source; URL not distinguishing between different databases ?

2011-10-03 Thread Greg Thomas
On 3 October 2011 23:37, Phil Steitz phil.ste...@gmail.com wrote: On Mon, Oct 3, 2011 at 6:52 AM, Greg Thomas greg.d.tho...@gmail.com wrote: I'm making fairly simply use of the BasicDataSource, something like ... ... Looks odd.  What you are trying to do should work.  Are you sure the