did you read the samples of MyBatis-Guice? I honestly don't understand
why you have to map the configuration in a custom DOM when you could
use directly the bound properties.
Have a look at how a basic sample[1] works and stop feeling pain. Just
use Names.bindProperties and load your JDBC configs. Use a build
profile if you need to include different configs depending on the
environment you are deploying the application.
HTH,
-Simo
http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/
> --
> You received this message because you are subscribed to the Google Groups "google-guice" group.
> To post to this group, send email to google...@googlegroups.com.
> To unsubscribe from this group, send email to google-guice...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
>
Thanks a lot,
Axelle
you can still use both approaches, they are not mutable exclusive: if
you bind configurations via Names.bindProperties and annotate your DOM
with @Named, then request inject the DOM object were needed AND build
the JDBC connection using the MyBatis integration module.
HTH, all the best,
-Simo
http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/
Thanks a lot for your help
--
Axelle
On Tue, Mar 13, 2012 at 11:05 PM, Simone Tripodi
if you need to work with variables interpolations inside the
configurations, in order to simplify the different environment
profiling, take in consideration the rocoto[1] extension.
HTH, best,
-Simo
[1] http://99soft.github.com/rocoto/
http://people.apache.org/~simonetripodi/
http://simonetripodi.livejournal.com/
http://twitter.com/simonetripodi
http://www.99soft.org/
On Tue, Mar 13, 2012 at 11:08 PM, Axelle Ziegler