-
30. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic May 28, 2004 8:27 PM (in response to adrian.brock)I'll work on that too, then.
-
31. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic May 30, 2004 9:53 PM (in response to adrian.brock)Do we want to add some info for the common transaction params?
I mean, this is common between the XA/local transactional connectors, so we might break it out, or we can just treat it as another property and not give it special typing.
I think the current ideas are adequate, although maybe we want to add more typing info. What do you think?
- <xsl:when test="track-connection-by-tx">
true
false
</xsl:when>
- <xsl:otherwise>
false
false
</xsl:otherwise> -
32. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic May 30, 2004 10:48 PM (in response to adrian.brock)- <xsl:when test="(xa-transaction) and (track-connection-by-tx)"> <attribute name="TrackConnectionByTx">true</attribute> <attribute name="LocalTransactions">false</attribute> </xsl:when> - <xsl:when test="(xa-transaction)"> <attribute name="TrackConnectionByTx">false</attribute> <attribute name="LocalTransactions">false</attribute> </xsl:when>
-
33. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
adrian.brock May 31, 2004 8:46 AM (in response to adrian.brock)Please restate your question.
-
34. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic May 31, 2004 6:01 PM (in response to adrian.brock)You mentioned:
"We still need the connection properties (passed the jdbc driver)
or xa datasource properties (to configure the xads)"
Do you want to call:
ConnectionFactoryPropertiesMetaData.setName("TrackConnectionByTx");
ConnectionFactoryPropertiesMetaData.setValue("true");
ConnectionFactoryPropertiesMetaData.setType("java.lang.String");
Or do you want to call:
ConnectionFactoryMetaData.setTrackConnectionByTx(true);
Or
TxMetaData txmd = new TxMetaData();
txmd.setTrackConnectionByTx(true);
ConnectionFactoryMetaData.setTxMetaData(txmd);
The first is the most generic, which I think would be adequate. -
35. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
adrian.brock May 31, 2004 7:34 PM (in response to adrian.brock)TrackConnectionByTx is a pooling parameter. Nothing to do with properties.
It is only loosly related with transaction support in that
1) It is obviously irrelevent for NoTx
2) Must be true for LocalTx -
36. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic Jun 1, 2004 11:12 AM (in response to adrian.brock)Ah. Okay. I think I get how this needs to be chopped up now. I'm going to work on programmatically creating Factory, Pool, and ConnectionManager using the new metadata.
-
37. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic Jun 2, 2004 12:32 AM (in response to adrian.brock)I noticed the RAR deployer is pretty different between 3.2.4RC2 and jboss-head. Which one should I be coding/testing against? I can do current now and head later, but you may just want to skip to head. Doesn't matter to me.
-
38. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
adrian.brock Jun 2, 2004 4:53 AM (in response to adrian.brock)head
-
39. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic Jun 3, 2004 11:33 PM (in response to adrian.brock)Is the RARDeployment class one of the main ones I'm going to have to rework? It appears so, but it uses a DeploymentInfo passed into its constructor.
Just looking at the dependency tree in the generated jboss-service.xml (from the XSL), RARDeployment comes before the Pool and the ConnectionManager in the order of things.
What I'm doing is letting the RARDeployer be set up using XML, then starting programmatically from there.
Talk to you later, -
40. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
spiritualmechanic Jun 22, 2004 8:35 PM (in response to adrian.brock)Okay, I'm trying to register, create, and start a ManagedConnectionFactory (connectionmanager.RARDeployment) programmatically.
I'm getting fairly close, but when it tries to find my test connection factory class, it can't find it.
I've added the .rar to deploy, and the MBean is there (I do a MBeanServer.isRegistered() on its ObjectName.
2004-06-22 20:24:32,348 ERROR [org.jboss.resource.connectionmanager.RARDeployment] Could not find ManagedConnectionFactory class: org.jboss.test.jca.adapter.TestManagedConnectionFactory
java.lang.ClassNotFoundException: org.jboss.test.jca.adapter.TestManagedConnectionFactory
Do I need to be using a specific classloader somehow, or is there a way for an MBean for OldRARDeployment to be registered w/o loading the classes? I thought RARDeployer did that, but I'll check.
I'm using a pretty custom configuration, somewhat akin to Andy Oliver's unit test stuff, and I just stuff all the necessary MBeans in the top-level/default jboss-service.xml. This could be the source of my problem as well.
Thanks, -
41. Re: TODO: ConnectionDefinitionDeployer - replace XSLSubDeplo
adrian.brock Dec 14, 2004 5:25 PM (in response to adrian.brock)JIRA Task: http://jira.jboss.com/jira/browse/JBJCA-2