Posted By:
Harimadhav_Balu
Posted On:
Monday, August 14, 2006 06:54 PM
Hi, there is a JMS Message created and registered in a different Java class.I am calling this message in my class to get an integer value. The code is like this: public static void main(String args[]) throws Exception { Startup.init("/master-config.xml"); Transaction tx = Transaction.newTransaction(); XMLMessage m = new XMLMessage(); int batchID = m.getBatchId(); m.setBatchId(batchID); JMSPublisher.send("SendMLPricingRequest", m); m.setRecipient("CALDTA1PC39604"); String Recipient = m.getRecipient(); try{ DirTest d = new DirTest(); File file = new File("\\apps-nas-002\apps-fig-command\cdo\resources-dev\simulation\waterfall\input&qu
More>>
Hi, there is a JMS Message created and registered in a different Java class.I am calling this message in my class to get an integer value. The code is like this:
public static void main(String args[]) throws Exception {
Startup.init("/master-config.xml");
Transaction tx = Transaction.newTransaction();
XMLMessage m = new XMLMessage();
int batchID = m.getBatchId();
m.setBatchId(batchID);
JMSPublisher.send("SendMLPricingRequest", m);
m.setRecipient("CALDTA1PC39604");
String Recipient = m.getRecipient();
try{
DirTest d = new DirTest();
File file = new File("\\apps-nas-002\apps-fig-command\cdo\resources-dev\simulation\waterfall\input" + batchID);
d.GetResults(file);
tx.commit();
}finally {
tx.dispose();
}
}
The concept is the batch id comes in as an XML message which is created using JMS. I have to append this batchID to the path. It gives me an exception stating that the recipient can't be null. Can anyone please guide me where I am making a mistake.
Thanks and Regards
Hari
<<Less