Topic
  • 3 replies
  • Latest Post - ‏2012-11-21T08:52:49Z by SystemAdmin
SystemAdmin
SystemAdmin
648 Posts

Pinned topic Send XML from MDM to WebSphere Message Broker

‏2012-11-15T13:45:55Z |
Hi,

We are trying to send an XML message from MDM to WebSphere Message Broker via JMS.

Part of Script:

var jmsUtilConstructor = createJavaConstructor("com.ibm.wpc.pim.jms.Util");
var jmsUtil = runJavaConstructor(jmsUtilConstructor);
var jmsSetMessagePropertiesMethod = createJavaMethod(
"com.ibm.wpc.pim.jms.Util",
"jmsSetMessageProperties",
"javax.jms.TextMessage",
"java.util.HashMap");

Exeception Log:

2012-11-15 11:37:55,873 jsp_18: /administration/adm_script_sandbox.jsp ERROR com.ibm.ccd.common.error.AustinException - CWPCM0002E:Generic error / Exception: com.ibm.wpc.pim.jms.Util not found. Check the classname and classpath are correct. Message in java Exception was com.ibm.wpc.pim.jms.Util, Exception:com.ibm.wpc.pim.jms.Util not found. Check the classname and classpath are correct. Message in java Exception was com.ibm.wpc.pim.jms.Util
com.ibm.wpc.pim.jms.Util not found. Check the classname and classpath are correct. Message in java Exception was com.ibm.wpc.pim.jms.Util

Is there someone that can help me out please.

Regards,
Danny,
Updated on 2012-11-21T08:52:49Z at 2012-11-21T08:52:49Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    648 Posts

    Re: Send XML from MDM to WebSphere Message Broker

    ‏2012-11-16T06:25:53Z  
    Hi Danny,

    It just means that where is no a jar file containing class com.ibm.wpc.pim.jms.Util in the classpath.
    I didn't find such class also. I can only suppose that you want to use class com.ibm.mq.jms.Util

    Regards,
    Alexander
  • KaranBal
    KaranBal
    108 Posts

    Re: Send XML from MDM to WebSphere Message Broker

    ‏2012-11-21T00:54:01Z  
    Are you sure the class you are looking for is an MDMCS class?
    From the description, it seems much more likely that the jar is either from WAS or from MQ. Please go to $TOP/bin/conf/classpath and review the contents of jars-mq.txt, jars-custom.txt, and jars-websphere70.txt to make sure all the required jars(including the one containing your class) has been added. These files contain location of jars which will be loaded up while running $TOP/bin/configureEnv.sh to set the classpath.
    It seems probable that the jar you want to use has not been included in these files.
  • SystemAdmin
    SystemAdmin
    648 Posts

    Re: Send XML from MDM to WebSphere Message Broker

    ‏2012-11-21T08:52:49Z  
    Allow guy's .. thank you for your response. We got it working.