Scott Marlow
2013-06-12 13:36:08 UTC
Scott Marlow [https://community.jboss.org/people/smarlow] created the discussion
"Can @DataSourceDefinition be started earlier in WF8? Install phase is too late..."
To view the discussion, visit: https://community.jboss.org/message/822770#822770
--------------------------------------------------------------
Does IJ need to use the application classloader to load classes when starting a DataSourceDefinition? If we only need to scan classes via jandex, there might not be any reason why we couldn't start the datasource during the Phase.FIRST_MODULE_USE (so that JPA persistence unit services can depend on @DataSourceDefinitions).
"Can @DataSourceDefinition be started earlier in WF8? Install phase is too late..."
To view the discussion, visit: https://community.jboss.org/message/822770#822770
--------------------------------------------------------------
Does IJ need to use the application classloader to load classes when starting a DataSourceDefinition? If we only need to scan classes via jandex, there might not be any reason why we couldn't start the datasource during the Phase.FIRST_MODULE_USE (so that JPA persistence unit services can depend on @DataSourceDefinitions).