No idea why you have a NPE but do you know
http://rmannibucau.wordpress.com/2013/04/26/tomeeopenejb-and-failover-of-datasources/?
Isnt it what you desire more or less?
Le 3 nov. 2013 05:11, "Howard W. Smith, Jr." <smithh032...@gmail.com> a
écrit :

> trying to get it done via tomee.xml, ha-jdbc-cluster.xml, and java option
> -Dha-jdbc... seems to help, but i definitely need help...i been reporting
> my progress with this on ha-jdbc forum[1]... i hope to get some help with
> this, soon.
>
> [1] https://sourceforge.net/p/ha-jdbc/discussion/383396/thread/5f4dc302/
>
>
>
> On Sat, Nov 2, 2013 at 3:44 PM, Howard W. Smith, Jr. <
> smithh032...@gmail.com
> > wrote:
>
> > okay, I'm seeing what you said (not get jta as easily, when using
> > context.xml). thanks.
> >
> >
> > On Sat, Nov 2, 2013 at 3:39 PM, Romain Manni-Bucau <
> rmannibu...@gmail.com>wrote:
> >
> >> If you use context.xml youll not get as easily jta.
> >>
> >> You can set Resource attribute class-name to the impl class and setXxx
> >> using xxx as property attribute (factory for instance)
> >> Le 2 nov. 2013 18:10, "Howard W. Smith, Jr." <smithh032...@gmail.com> a
> >> écrit :
> >>
> >> > Per [Avoid properties conflict when configuring TomEE DataSource][1],
> I
> >> > added ignoreDefaultValues=true to <Resource> in tomee.xml,
> >> >
> >> > <Resource id="jdbc/mcmsJta" type="javax.sql.DataSource">
> >> >   JdbcDriver net.sf.hajdbc.sql.DataSource
> >> >   IgnoreDefaultValues true
> >> >   JtaManaged true
> >> >   jmxEnabled true
> >> >   LogSql false
> >> > </Resource>
> >> >
> >> > and the result are the [exceptions in the log file][2].
> >> >
> >> > the exceptions seem to prove that I need to add the following to
> >> <Resource
> >> > .../>
> >> >
> >> > cluster="..."
> >> > factory="..."
> >> >
> >> > can you please advise how I can add these two parameters to <Resource
> >> .../>
> >> > in tomee.xml, or should I revert to META-INF/context.xml?
> >> >
> >> >
> >> > [1]:
> >> >
> >> >
> >>
> http://rmannibucau.wordpress.com/2012/11/08/avoid-properties-conflict-when-configuring-tomee-datasource/
> >> > [2]: https://gist.github.com/smithh032772/7279765#file-log3-txt
> >> >
> >> >
> >> >
> >> >
> >> > On Sat, Nov 2, 2013 at 11:09 AM, Romain Manni-Bucau
> >> > <rmannibu...@gmail.com>wrote:
> >> >
> >> > > Why workaround? That how it works
> >> >
> >>
> >
> >
>

Reply via email to