0 Replies Latest reply on Feb 24, 2010 11:54 AM by padmasri p

    Configuring MQSecurityExit with MQAUSX

    padmasri p Newbie

      hi,

      I am trying to configure MQSecurityExit with MQAUSX using mqausxj.jar. the securityexit  class is defined in mq config xml and the jar is loaded by jboss class loader. but when i try to create connection it gives the following error.

      [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null javax.resource.ResourceException: MQJCA1011:Failed to allocate a JMS connection. at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:103) at com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:175) at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createConnection(ManagedQueueConnectionFactoryImpl.java:154) at com.ibm.mq.connector.outbound.ManagedConnectionImpl.(ManagedConnectionImpl.java:121) at com.ibm.mq.connector.outbound.ManagedQueueConnectionImpl.(ManagedQueueConnectionImpl.java:60) at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createManagedConnection(ManagedQueueConnectionFactoryImpl.java:126) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:267) at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:622) at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:404) at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381) at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496) at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941) at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createManagedJMSConnection(ConnectionFactoryImpl.java:184) at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createConnectionInternal(ConnectionFactoryImpl.java:142) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createQueueConnection(QueueConnectionFactoryImpl.java:112) at com.ibm.mq.connector.outbound.QueueConnectionFactoryImpl.createQueueConnection(QueueConnectionFactoryImpl.java:102) at com.dcx.taxservice.mq.MQTaxServiceFactory.createQueueConnection(MQTaxServiceFactory.java:53) at com.dcx.taxservice.mq.MessageReceiver.initialize(MessageReceiver.java:40) at com.dcx.taxservice.mq.MessageReceiver.run(MessageReceiver.java:25) Caused by: javax.jms.JMSException: MQJMS1007: failed to create instance of exit class biz.capitalware.mqausx.MQAUSXJ2EE at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:644) at com.ibm.mq.jms.MQConnection.checkExitType(MQConnection.java:4360) at com.ibm.mq.jms.MQConnection.supportThreeExits(MQConnection.java:2687) at com.ibm.mq.jms.MQConnection.(MQConnection.java:625) at com.ibm.mq.jms.MQQueueConnection.(MQQueueConnection.java:79) at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:202) at com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:157) ... 18 more

       

      here is my wmq.jmsra-ds.xml

       

      <config-property name="channel" type="java.lang.String">xxxxx</config-property>
          <config-property name="hostName" type="java.lang.String">xxxx</config-property>
          <config-property name="port" type="java.lang.String">xxxx</config-property>
          <config-property name="queueManager" type="java.lang.String">xxxx</config-property>
          <config-property name="transportType" type="java.lang.String">CLIENT</config-property>
          <config-property name="CCSID" type="java.lang.String">xxxx</config-property>
          <config-property name="sslCipherSuite" type="java.lang.String">xxxxxx</config-property>  
          <config-property name="securityExit" type="java.lang.String">biz.capitalware.mqausx.MQAUSXJ2EE</config-property> 
          <config-property name="SecurityExitInit" type="java.lang.String">${jboss.server.lib.url}opt/clnt.enc</config-property>
      

       

      i have placed the MQAUSXJ.jar under jboss/server/all/lib

      please let me know if anyone has any idea on this.