-
1. Re: Specifying the schema for EJBTimerService's TIMERS datab
jaikiran Jun 16, 2008 1:52 AM (in response to jonathanztaub)I think the other way of doing this (at one common place) is to specify the schema name in the datasource itself. So in your case, the -ds.xml which is used to configure your datasouce:
jboss.jca:service=DataSourceBinding,name=MySqlDs
can be configured as follows:<connection-url>jdbc:mysql://localhost:3306/jboss</connection-url>
-
2. Re: Specifying the schema for EJBTimerService's TIMERS datab
jaikiran Jun 16, 2008 1:55 AM (in response to jonathanztaub)Btw, i just read the xml contents that you posted. I has this:
When overriding the timers table, an optional schema can be specified
using the syntax [schema.]table
So try changing the TimersTable attribute to:<attribute name="TimersTable">[jboss.]TIMERS</attribute>
-
3. Re: Specifying the schema for EJBTimerService's TIMERS datab
dimitris Jun 16, 2008 9:22 AM (in response to jonathanztaub)The brackets are there to denote the schema is optional :-)
My guess is this is not supported in mysql. -
4. Re: Specifying the schema for EJBTimerService's TIMERS datab
jaikiran Jun 16, 2008 10:24 AM (in response to jonathanztaub)"dimitris@jboss.org" wrote:
The brackets are there to denote the schema is optional :-)
Oops, my bad! :-) -
5. Re: Specifying the schema for EJBTimerService's TIMERS datab
jonathanztaub Jun 17, 2008 4:36 PM (in response to jonathanztaub)Thanks guys but I already tried all of the above.
MySQL does support the schema.table notation.
In my mysql-ds.xml, I've configured the default database which is other than jboss. I guess I can configure the default database to be jboss and explicitly state the schema name in my data access objects.
However, it seems like it was working for all JMS related file configurations but just not for the EJBTimeService which is really annoying.
Surely I'm missing something or perhaps this is a bug. -
6. Re: Specifying the schema for EJBTimerService's TIMERS datab
chrismeadows Jul 12, 2008 3:53 PM (in response to jonathanztaub)FWIW, we've also had many problems with this same table, and we're using oracle. Specifying the schema name appears to be redundant - it is ignored.
We found that we had to make sure the table name was unique across ALL schemas in the database. That is, we had a schema per developer in the dev environment, and we had to make sure each of us used a different table name.
Something very screwy with EJB Timer persistence