[jboss-svn-commits] JBL Code SVN: r8598 - in labs/jbossesb/trunk/product: core/listeners/src/org/jboss/soa/esb/actions samples/quickstarts/static_router

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Dec 27 23:59:26 EST 2006


Author: estebanschifman
Date: 2006-12-27 23:59:20 -0500 (Wed, 27 Dec 2006)
New Revision: 8598

Modified:
   labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/StaticRouter.java
   labs/jbossesb/trunk/product/samples/quickstarts/static_router/jbossesb.xml
Log:
Obtain file extension from target service (if instanceof FileEpr)

Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/StaticRouter.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/StaticRouter.java	2006-12-28 03:39:33 UTC (rev 8597)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/actions/StaticRouter.java	2006-12-28 04:59:20 UTC (rev 8598)
@@ -70,7 +70,7 @@
 				FileEpr newEpr = new FileEpr(fpr.getURL());
 				newEpr.setPostDelete(false);
 				newEpr.setPostDirectory(fpr.getURL().getFile());
-				newEpr.setPostSuffix(curr[2]);
+				newEpr.setPostSuffix(fpr.getInputSuffix());
 				epr	= newEpr;
 			}
 			CourierFactory.getCourier(epr).deliver(message);
@@ -92,8 +92,7 @@
 			{
 				String category	= curr.getAttribute(ListenerTagNames.SERVICE_CATEGORY_NAME_TAG,"");
 				String name		= curr.getAttribute(ListenerTagNames.SERVICE_NAME_TAG,null);
-				String suffix	= curr.getAttribute(FileEpr.POST_SUFFIX_TAG);
-				_destinations.add(new String[] {category,name,suffix});
+				_destinations.add(new String[] {category,name});
 			}
 			catch (Exception e)
 			{

Modified: labs/jbossesb/trunk/product/samples/quickstarts/static_router/jbossesb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/static_router/jbossesb.xml	2006-12-28 03:39:33 UTC (rev 8597)
+++ labs/jbossesb/trunk/product/samples/quickstarts/static_router/jbossesb.xml	2006-12-28 04:59:20 UTC (rev 8598)
@@ -79,9 +79,9 @@
             <actions>
                <action name="routeAction"  class="org.jboss.soa.esb.actions.StaticRouter">
                		<property name="destinations">
-   	 				   <route-to service-category="category01" service-name="service01" postSuffix=".toRoute01" /> 
-   	 				   <route-to service-category="category02" service-name="service02" postSuffix=".toRoute02" /> 
-   	 				   <route-to service-category="category03" service-name="service03" postSuffix=".toRoute03" /> 
+   	 				   <route-to service-category="category01" service-name="service01" /> 
+   	 				   <route-to service-category="category02" service-name="service02" /> 
+   	 				   <route-to service-category="category03" service-name="service03" /> 
 	    		   </property>
    	   			</action>    
             </actions>




More information about the jboss-svn-commits mailing list