-
Jan 18th, 2012, 03:03 PM
#1
Creating multiple datasources?
I'm confused how to create multiple datasources with Roo ? I know you have persistenceUnit and transactionUnit you could provide when using the persistence command... but I don't see how to create multiple datasource definitions? Do I have to do this manually?
(Been googling some but not finding much help. Not a big deal to manually take care of but trying to do things "the roo" way.)
-
Jan 18th, 2012, 05:23 PM
#2
I wiped out previous blog entry since is not what you are looking for...
Last edited by delgad9; Jan 18th, 2012 at 06:27 PM.
Reason: Clean up
-
Jan 19th, 2012, 03:38 AM
#3
Hi,
I am using environment property in pom.xml and filter goal to filter persistence.xml, application.xml and to determine which properties file is used.
But this is switch datasource, not multiple.
I can suggest you more detail if needed.
valerian
-
Jan 19th, 2012, 12:09 PM
#4
I have no problem using properties for settings, I'm just concerned with allowing roo to auto-generate the necessary text in the multiple files without having to manually edit them. In fact, I'd even like an option to provide the datasource id for the initial persistence setup. By default it uses id="datasource" and it creates your properties file datasource.username etc... but it makes more sense since sometimes you have multiple datasources to allow an id name in the command so that it will make it with id="fooBarDatasource" etc.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules