Hi Abhishek,
You can use below java code for Publishing JMS messages
public void JmsMessagePub() throws Exception
{
String RNAME={“nsp://127.0.0.1:9000”};
nSessionAttributes nsa=new nSessionAttributes(RNAME);
myReconnectHandler rhandler=new myReconnectHandler();
nSession mySession=nSessionFactory.create(nsa, rhandler);
mySession.init();
nChannelAttributes chaAtt = new nChannelAttributes();
chaAtt.setName("/docs/msgdocumentType");
nChannel myChannel=mySession.findChannel(chaAtt);
System.out.println("Channel has been created..");
//Constructing an Event
nEventProperties props = new nEventProperties();
props.put("bondname", "bond1");
props.put("price", 100.00);
nConsumeEvent evt = new nConsumeEvent( "atag", props );
myChannel.publish(evt);
}
if you are required more information please let me know.
Thanks
Ashish Kumar
#webMethods#Integration-Server-and-ESB#Universal-Messaging-Broker