title: How do I set XAConnectionFactoryEnabled in WLST Offline Mode
body: <p>I am trying to set up a JMS queue in Weblogic to be transactional. This requires enabling XA on the connection factory I am using.</p>
  
  <p>I know I can do this from the admin console once weblogic is up and running. However, I really need to do it in offline mode while the domain is being created. Right now I have this:</p>
  
  <pre><code>#*Setting up resources and JDBC*
  cd('/')
  create('JMSServer-0', 'JMSServer')
  cd('/')
  create('JMSQueues', 'JMSSystemResource')
  cd('JMSSystemResource/JMSQueues/JmsResource/NO_NAME_0')
  
  queue=create('AQueue', 'Queue')
  queue.setJNDIName('jms/AQueue')
  queue.setSubDeploymentName('subdeploymentA')
  
  queue=create('BQueue', 'Queue')
  queue.setJNDIName('jms/BQueue')
  queue.setSubDeploymentName('subdeploymentB')
  
  connFact=create('AConnFact', 'ConnectionFactory')
  connFact.setJNDIName('jms/AConnFact')
  connFact.setSubDeploymentName('subdeployment_fact_A')
  
  connFact=create('BConnFact', 'ConnectionFactory')
  connFact.setJNDIName('jms/BConnFact')
  connFact.setSubDeploymentName('subdeployment_fact_B')
  
  cd('/JMSSystemResource/JMSQueues/JmsResource/NO_NAME_0/ConnectionFactory/BConnFact')
  tp=create('BConnFactTp', 'TransactionParam')
  tp.setXAConnectionFactoryEnabled(true)
  
  #TransactionParam does not show up here
  print "\n" + pwd() + "\n"
  ls()
  
  #TransactionParam DOES show up here
  cd('/JMSSystemResource/JMSQueues/JmsResource/NO_NAME_0/ConnectionFactory/AConnFact')
  print "\n" + pwd() + "\n"
  ls()
  
  #Finalization follows here
  </code></pre>
  
  <p>Now, this is an existing script and AConnFact and AQueue have been around for awhile with XA disabled, so I'd prefer to leave them alone. So, how do I make it so that BConnFact is actually the one that gains the new TransactionParam settings? </p>
  
  <p>I should note that I do have a "meh" fix to this. Create will place the TransactionParams in the order that the ConnectionFactories are created. I can just place them in the order I want. However, I would prefer not to do that. </p>