This content has been marked as final.
Show 4 replies
-
1. Re: Persistence unit deployer
starksm64 Jul 2, 2008 1:07 PM (in response to wolfc)1. What is registering the mcbean or mbean for this?
3. The org.jboss.ejb3.deployers.JBossASDepdencyPolicy has an addDatasource(String jndiName) for this. -
-
3. Re: Persistence unit deployer
wolfc Jul 4, 2008 6:01 AM (in response to wolfc)3. I've added DataSourceDependencyResolver to the mix, which is an inversion of DependencyPolicy with the same goal: externalize the naming of a DataSource.
public interface DataSourceDependencyResolver { /** * @param jndiName the jndiName of the DataSource * @return the bean name of the DataSource */ String resolveDataSourceSupplier(String jndiName); }
-
4. Re: Persistence unit deployer
wolfc Jul 7, 2008 9:04 AM (in response to wolfc)1. I've added org.jboss.jpa.resolvers.PersistenceUnitDependencyResolver which manages the kernel names for both the supplier and consumers.