Hi,
Has anyone tried to send XML message from java client to IS destination via provided JMS functions,not JMS Adapter ?? JMSMessage’s body is alway missing when the JMSTrigger picks up the message from the destination ??
I am not getting JMSMessage.body when I send TextMessage from Java client. I am testing with Message and TextMessage as shown below
As you can see the java client knows about the Broker, connection factory and destination… However, when the JMS Trigger pick up the destination, it calls IS flow service, the IS flow service somehow has empty body ??? What have I done wrong.
Broker::JmsNaming::WmJmsNamingContext
{java.naming.provider.url=wmjmsnaming://Broker #1@syd3kvm239:6849, java.naming.factory.initial=com.webMethods.jms.naming.WmJmsNamingCtxFactory}
MyTopicTwoLookup: com.webMethods.jms.impl.WmTopicImpl
MyTopicOneLookup: com.webMethods.jms.impl.WmTopicImpl
zzCharsConnectionFactory: com.webMethods.jms.impl.WmTopicConnectionFactoryImpl
Sending message: com.webMethods.jms.impl.WmTextMessageImpl[
headers={
JMSCorrelationID=myCorrelationID-222
JMSDeliveryMode=Persistent
JMSDestination=null
JMSExpiration=0
JMSMessageID=null
JMSPriority=4
JMSRedelivered=false
JMSReplyTo=null
JMSTimestamp=0
JMSType=null
}
properties={
data=<num_of_room>0</num_of_room>123AAAAAAAgent-from Java script
price=18
agent=AAAAgent
suburb=AAA
num_of_room=2
}
body={
aaa11111111
}
]
Here is the setting in WM
Provider
Provider Name:zzCharsWMProvider
Initial Context Factory:com.webMethods.jms.naming.WmJmsNamingCtxFactory
Provider URL:wmjmsnaming://Broker #1@syd3kvm239:6849
Security Principal:
Security Credential:
Other Properties: com.webMethods.jms.naming.clientgroup=admin
Provider JARs:C:\webMethods7\MWS\lib\ext\wmjmsnaming.jar;
Number of Connection Factories:1
Number of Destinations:2
ConnectionFactory
Lookup Name:zzCharsConnectionFactory
Provider:zzCharsWMProvider
Connection Factory Type:TopicConnectionFactory
Connection Factory Client ID:Broker Server:syd3kvm239:6849
Broker:Broker #1
Client Group:JMSClient
Use SSL Encryption:No
SSL Keystore:SSL Keystore Type:
SSL Truststore:
SSL Truststore Type:
Marshal In Class Name:
Marshal Out Class Name:
Destination
Lookup Name:MyTopicTwoLookup
Provider:zzCharsWMProvider
Destination Name:MyTopicTwo
Destination Type:Topic
Shared state:false
Shared State Ordering:Publisher
Document Type Name:MyTopicTwo
My java code refers to the lookup names,
String wmConnectionFactory = “zzCharsConnectionFactory”;
String destNameOne = “MyTopicOneLookup”;
String destNameTwo = “MyTopicTwoLookup”;
connection = connectionFactory.createConnection();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
producer = session.createProducer(destOne);
TextMessage message1 = session.createTextMessage();
message1.setText(“”)
…
producer.send(message1);
Data in pipeline…
<?xml version="1.0" encoding="UTF-8"?> zzChar1.Exerc.ExercJMS.consumer:conJMS2_1 1 2 com.webmethods.jms.impl.WmTopicImpl[name=MyTopicTwo eventType=MyTopicTwo sharedState=false sharedStateOrdering=none deadLetterOnly=false localOnly=false priorityOrdering=true readOnly=false] 0 ID:2959947-39-82-3 4 false null 1285999554996As you can see, I expect to get Message in the body ???