1 10 11 package org.mule.providers; 12 13 import org.mule.config.i18n.Message; 14 import org.mule.config.i18n.Messages; 15 import org.mule.umo.provider.UMOConnectable; 16 17 23 public class SingleAttemptConnectionStrategy extends AbstractConnectionStrategy 24 { 25 public void doConnect(UMOConnectable connectable) throws FatalConnectException 26 { 27 try 28 { 29 connectable.connect(); 30 } 31 catch (Exception e) 32 { 33 throw new FatalConnectException(new Message(Messages.RECONNECT_STRATEGY_X_FAILED_ENDPOINT_X, 34 getClass().getName(), getDescription(connectable)), e, connectable); 35 36 } 37 } 38 39 42 public void resetState() 43 { 44 } 46 } 47 | Popular Tags |