[jboss-svn-commits] JBL Code SVN: r7654 - labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Nov 16 12:46:04 EST 2006


Author: daniel.brum at jboss.com
Date: 2006-11-16 12:46:03 -0500 (Thu, 16 Nov 2006)
New Revision: 7654

Modified:
   labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java
Log:


Modified: labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java
===================================================================
--- labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java	2006-11-16 17:34:08 UTC (rev 7653)
+++ labs/jbossesb/trunk/product/samples/trailblazer2/client/src/org/jboss/soa/esb/samples/trailblazer/web/LoanBrokerWS.java	2006-11-16 17:46:03 UTC (rev 7654)
@@ -36,7 +36,6 @@
 import org.jboss.soa.esb.addressing.eprs.JMSEpr;
 import org.jboss.soa.esb.couriers.Courier;
 import org.jboss.soa.esb.couriers.CourierFactory;
-import org.jboss.soa.esb.couriers.CourierUtil;
 import org.jboss.soa.esb.helpers.ConfigTree;
 import org.jboss.soa.esb.message.Message;
 import org.jboss.soa.esb.message.format.MessageFactory;
@@ -67,12 +66,12 @@
 			 * see the TODO: add name of package which interacts with banks
 			 * to see how a non-Message aware situation is handled
 			 */
-			logger.info("WebCustomer received: " + customer);
-			Message replyMessage = null;
+			logger.info("WebCustomer received: \n" + customer);
+			System.setProperty("com.arjuna.common.util.propertyservice.verbosePropertyManager", "ON");
 			
-			if (config == null) {
-				readConfigurationFile();
-			}
+//			if (config == null) {
+//				readConfigurationFile();
+//			}
 			
 			//Step 1 - convert customer from web service into a ESB Message
 			Message message = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
@@ -80,8 +79,10 @@
 			
 			//step 2 - locate the service in the registry
 			Registry registry = RegistryFactory.getRegistry(); 
-			String serviceCategoryName = config.getAttribute(SERVICE_CAT);
-			String serviceName         = config.getAttribute(SERVICE_NAME);
+//			String serviceCategoryName = config.getAttribute(SERVICE_CAT);
+//			String serviceName         = config.getAttribute(SERVICE_NAME);
+			String serviceCategoryName = "trailblazer";
+			String serviceName         = "LoanRequestService";
 			
 			logger.debug("looking for the following service in the registry -- Category: " + serviceCategoryName);
 			logger.debug("looking for the following service in the registry -- Name: " + serviceName);
@@ -95,11 +96,8 @@
 				Courier courier = CourierFactory.getCourier(epr);
 				//If not successful try the next EPR
 				if (JMSEpr.class.equals(epr.getClass())) {					
-					//create a reply-to EPR
-					EPR replyToEpr = CourierUtil.getTemporaryReplyToEpr(epr);						
-						if (courier.deliver(message)) {
-							replyMessage = courier.pickup(5000);
-							logger.info("reply from service received: " + replyMessage);
+						
+						if (courier.deliver(message)) {							
 							break;
 					} else {
 						logger.warn("Could not deliver the message, maybe there is another JMS-EPR we can use.");
@@ -121,8 +119,10 @@
 	throws ParamRepositoryException, IOException, SAXException
 	{
 		//Reading the config file		
-		ParamRepository parmRepository = ParamRepositoryFactory.getInstance();		
+		ParamRepository parmRepository = ParamRepositoryFactory.getInstance();
+		logger.info("loading config file " + CONFIG_FILE);
 		String sXml = parmRepository.get(CONFIG_FILE);
+		logger.info("sXml = " + sXml);
 		config = ConfigTree.fromXml(sXml);		
 	}
 




More information about the jboss-svn-commits mailing list