[Design of JCA on JBoss] - Re: JBAS-4662 Implementation details.
by vickyk
A quick changes on my local system got it working
[vicky@localhost connector]$ svn diff
| Index: src/main/org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentGroup.java
| ===================================================================
| --- src/main/org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentGroup.java (revision 71222)
| +++ src/main/org/jboss/resource/metadata/mcf/ManagedConnectionFactoryDeploymentGroup.java (working copy)
| @@ -61,7 +61,8 @@
| @XmlElement(name="no-tx-datasource", type=NoTxDataSourceDeploymentMetaData.class),
| @XmlElement(name="xa-datasource", type=XADataSourceDeploymentMetaData.class),
| @XmlElement(name="no-tx-connection-factory", type=NoTxConnectionFactoryDeploymentMetaData.class),
| - @XmlElement(name="tx-connection-factory",type=TxConnectionFactoryDeploymentMetaData.class)})
| + @XmlElement(name="tx-connection-factory",type=TxConnectionFactoryDeploymentMetaData.class),
| + @XmlElement(name="ha-local-tx-datasource",type=HALocalDataSourceDeploymentMetaData.class)})
| private List<ManagedConnectionFactoryDeploymentMetaData> deployments = new ArrayList<ManagedConnectionFactoryDeploymentMetaData>();
|
| /** The services */
| Index: src/main/org/jboss/resource/deployers/ManagedConnectionFactoryParserDeployer.java
| ===================================================================
| --- src/main/org/jboss/resource/deployers/ManagedConnectionFactoryParserDeployer.java (revision 71232)
| +++ src/main/org/jboss/resource/deployers/ManagedConnectionFactoryParserDeployer.java (working copy)
| @@ -40,12 +40,14 @@
| import org.jboss.resource.metadata.mcf.LocalDataSourceDeploymentMetaData;
| import org.jboss.resource.metadata.mcf.NoTxDataSourceDeploymentMetaData;
| import org.jboss.resource.metadata.mcf.TxConnectionFactoryDeploymentMetaData;
| +import org.jboss.resource.metadata.mcf.HALocalDataSourceDeploymentMetaData;
| import org.jboss.resource.metadata.repository.JCAMetaDataRepository;
| import org.jboss.resource.deployers.management.LocalDSInstanceClassFactory;
| import org.jboss.resource.deployers.management.NoTxCFInstanceClassFactory;
| import org.jboss.resource.deployers.management.NoTxInstanceClassFactory;
| import org.jboss.resource.deployers.management.TxInstanceClassFactory;
| import org.jboss.resource.deployers.management.XADSInstanceClassFactory;
| +import org.jboss.resource.deployers.management.HALocalDSInstanceClassFactory;
| import org.jboss.virtual.VirtualFile;
| import org.jboss.managed.api.ManagedObject;
| import org.jboss.managed.api.ManagedProperty;
| @@ -93,6 +95,7 @@
| moFactory.setInstanceClassFactory(NoTxDataSourceDeploymentMetaData.class, new NoTxInstanceClassFactory());
| moFactory.setInstanceClassFactory(TxConnectionFactoryDeploymentMetaData.class, new TxInstanceClassFactory());
| moFactory.setInstanceClassFactory(NoTxConnectionFactoryDeploymentMetaData.class, new NoTxCFInstanceClassFactory());
| + moFactory.setInstanceClassFactory(HALocalDataSourceDeploymentMetaData.class, new HALocalDSInstanceClassFactory());
| }
|
| /**
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138697#4138697
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138697
18 years
[Design of EJB 3.0] - Re: @SecurityDomain changes from AS42 to AS5
by wolfc
"alessio.soldano(a)jboss.com" wrote : Do you mean that the 4.2 package (org.jboss.annotation.security.SecurityDomain) was theoretically not good too?
Yes, the package name should reflect the defining artifact or domain. Thus we can make sure there is no class name overlap.
"anil.saldhana(a)jboss.com" wrote : I did not create the annotation. I also did not refactor them or move them. I have just taken the task of cleaning up the ejb3 security integration for AS5. Given this, I feel for AS5, the annotation should be in the security spi project.
As long as this doesn't create a dependency loop that would be perfect.
"anil.saldhana(a)jboss.com" wrote : I do not handle ejb3 stuff for Branch_4_2. That is where the issues for you exist. This is where Carlo/BillD/Scott should opine.
Branch_4_2 is no longer being maintained.
As for the original issue, just put both the annotations on your class. It requires that you have both versions of the jar on your classpath during compile, but not during runtime.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138693#4138693
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138693
18 years