IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
 View Only
  • 1.  Reading JMS queue using WTX .. need help

    Posted Wed July 13, 2011 04:41 AM

    Originally posted by: Bottle1234


    hi all,
    I am tryng to do a POC in which i am trying to send a text message from a JMS queue to WTX.

    I have used ActiveMQ to create the JMS .

    In the WTX map the command parameter line reads as
    "-T -ICTXFURL vm://localhost:8161/admin -ICTXF org.apache.activemq.jndi.ActiveMQInitialContextFactory -CFN connectionFactory -QN myQueue".

    My problem is While importing the type tree using JMS importer wizard , even after entering the fully qualified class name the NEXT tab is not enabled .I guess that WTX is not able to locate the JMS class. What do i need to do ??? i have been banging my head on this for quite sometime now and desparately need help !!!

    Note : 1)I have placed the .java file as well as the .class file in the misc folder and tried importing ,
    2) i have also tried entering the full path of the JMS application in the JMS importer, but had no success.
    3)If i try to import the JMS application in WTX workspace , it is crashing with the error msg "cannot launch java launcher"

    4)a part of the trace files reads
    ....
    m4jms:MConnectionImpl.connect
    <2252-324>: | m4jms:M4jmsutility.getInitCtx
    <2252-324>: | m4jms:M4jmsutility.getInitCtx (rc = -2) *** ERROR ***
    <2252-324>: http://m4jms.MConnectionImpl.connect (sc=-1) (rc = -2) *** ERROR ***
    <2252-3036>: m4jms:MAdapterImpl.onNotify
    <2252-3036>: | PREPARE_DESTROY
    <2252-3036>: m4jms:MAdapterImpl.onNotify (rc = 0) OK
    ...
    5) I have placed all the active MQ jars in the dtx.ini file , i have also mentioned the path of the jndi.properties file in the jvm options (not quite sure where should i mention its path)
    Can anyone out there pls pls help me .. i some how need to finish it ..

    Thanks in advance
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Reading JMS queue using WTX .. need help

    Posted Thu July 14, 2011 08:15 AM

    Originally posted by: paul.brett


    Please paste the relevant sections (External Jar Files and JVM Options) of your dtx.ini file for review.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Reading JMS queue using WTX .. need help

    Posted Mon July 18, 2011 04:52 AM
      |   view attached

    Originally posted by: Bottle1234


    Hi ,
    I have attached the dtx.ini file and pasted trace file .. first alteast i was getting the connection but now i am not even getting that . pls have a look and tell me if dere r any modifications which should be made .
    • TRACE FILE

    <1768-1088>: The file was created by JMS adapter from IBM Corporation
    <1768-1088>: The file was created or updated on or around Mon Jul 18 12:00:42 IST 2011
    <1768-1088>: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropFromCmdValue (rc = 0) OK
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropFromCmdValue
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropFromCmdValue (rc = 0) OK
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropFromCmdValue
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropFromCmdValue (rc = 0) OK
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropFromCmdValue
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropFromCmdValue (rc = 0) OK
    <1768-1088>: m4jms:MAdapterImpl.setAdapterPropsFromCmdline (rc = 0) OK
    <1768-1088>: m4jms:MAdapterImpl.doCmdlineFinalSanityCheck
    <1768-1088>: | >>>>By a cursory check, command combinations or syntax appears to be correct
    <1768-1088>: m4jms:MAdapterImpl.doCmdlineFinalSanityCheck (rc = 0) OK
    <1768-1088>: m4jms:MAdapterImpl.validateProperties (rc = 0) OK
    <1768-3896>: m4jms:MConnectionImpl.connect
    <1768-3896>: | m4jms:M4jmsutility.getInitCtx
    <1768-3896>: | | ****Error while creating context:javax.naming.NoInitialContextException: Cannot instantiate class: D:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\lib Root exception is java.lang.ClassNotFoundException: D:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\lib
    <1768-3896>: | m4jms:M4jmsutility.getInitCtx (rc = -2) *** ERROR ***
    <1768-3896>: | m4jms:M4jmsutility.getInitCtx
    <1768-3896>: | | Replacing connection context associated with env_D:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\lib_vm://localhost:8161/admin
    <1768-3896>: | | ****Error while creating context:javax.naming.NoInitialContextException: Cannot instantiate class: D:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\lib Root exception is java.lang.ClassNotFoundException: D:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\lib
    <1768-3896>: | m4jms:M4jmsutility.getInitCtx (rc = -2) *** ERROR ***
    <1768-3896>: | Error during connection creation (sc=1).
    <1768-3896>: http://m4jms.MConnectionImpl.connect (sc=1) (rc = -2) *** ERROR ***
    <1768-1088>: m4jms:MAdapterImpl.onNotify
    <1768-1088>: | PREPARE_DESTROY
    <1768-1088>: m4jms:MAdapterImpl.onNotify (rc = 0) OK
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender

    Attachment(s)



  • 4.  Re: Reading JMS queue using WTX .. need help

    Posted Tue July 19, 2011 08:42 AM

    Originally posted by: Dhiren.Ghelani


    Looks like you are seeing a java.lang.ClassNotFoundException
    Are your jar files present in the folder D:\apache-activemq-5.5.0-bin\apache-activemq-5.5.0\lib
    Try removing the unnecessary spaces in your external jar section of the ini file.
    Try with a pure java call on the JVM that TX is using to eliminate any version conflicts.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 5.  Re: Reading JMS queue using WTX .. need help

    Posted Fri July 22, 2011 08:22 AM

    Originally posted by: Bottle1234


    Hi,
    Thanks for the suggestion ... guess wat !!! it worked
    Really made me feel gud .. removed all the spaces from the dtx.ini file and got it working..
    But the one which i got working was d one in whch i created the Queue using Weblogic , i still couldn't figure out wats wrong with activeMq...

    It would be great if u can help me out in this too ...
    Thanks once again
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: Reading JMS queue using WTX .. need help

    Posted Fri July 22, 2011 10:28 AM

    Originally posted by: Dhiren.Ghelani


    nice to hear that something works.. send us the trace file of the one that does not work.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 7.  Re: Reading JMS queue using WTX .. need help

    Posted Wed July 27, 2011 09:17 AM
      |   view attached

    Originally posted by: Bottle1234


    hi Dhiren,
    Sorry for the late reply got stuck with sumthing else ... anyways thanks for the reply.. hope to hear from you soon..

    i have used ActiveMq as i said :
    The command line parameter is : -T -HDR -ICTXFURL vm://localhost:8161/admin -ICTXF org.apache.activemq.jndi.ActiveMQInitialContextFactory -CFN "connectionFactory" -QN "myQ"
    thanks in advance
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender

    Attachment(s)



  • 8.  Re: Reading JMS queue using WTX .. need help

    Posted Thu July 28, 2011 10:26 AM

    Originally posted by: Dhiren.Ghelani


    I have not used Active MQ but what I can say is 8161/admin looks like an admin url. you many have to look at Active MQ admin screen and confirm the url.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange