This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<http:listener-config name="httpsServerConnectorMutualAuth" | |
host="localhost" port="8083" doc:name="HTTP Listener Configuration" | |
protocol="HTTPS"> | |
<tls:context> | |
<tls:trust-store type="jks" path="server-truststore" | |
password="mulepass" /> | |
<tls:key-store type="jks" path="server-keystore" | |
keyPassword="mulepass" password="mulepass" /> | |
</tls:context> | |
</http:listener-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<http:listener-config name="httpsServerConnectorOneWaySSL" | |
host="localhost" port="8082" doc:name="HTTP Listener Configuration" | |
protocol="HTTPS"> | |
<tls:context> | |
<tls:key-store type="jks" path="server-keystore" | |
keyPassword="mulepass" password="mulepass" /> | |
</tls:context> | |
</http:listener-config> | |
<http:request-config protocol="HTTPS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package brooklyn.entity.flyway; | |
import static com.google.common.base.Preconditions.checkNotNull; | |
import org.flywaydb.core.Flyway; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import brooklyn.config.ConfigKey; | |
import brooklyn.entity.annotation.Effector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Value("${email.username}") | |
private String emailUsername; | |
@Value("${email.password}") | |
private String emailPassword; | |
@Bean | |
public JavaMailSender mailSender() { | |
JavaMailSenderImpl mailSender = new JavaMailSenderImpl(); | |
mailSender.setHost("smtp.gmail.com"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO 2011-01-03 12:02:50,878 [main] org.mule.transport.vm.VMConnector: Connected: VMConnector{this=52e80740, started=false, initialised=true, name='connector.VM.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[vm], serviceOverrides=null} | |
INFO 2011-01-03 12:02:50,879 [main] org.mule.transport.vm.VMConnector: Starting: VMConnector{this=52e80740, started=false, initialised=true, name='connector.VM.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[vm], serviceOverrides=null} | |
INFO 2011-01-03 12:02:50,883 [main] org.mule.transport.vm.VMConnector: Started: VMConnector{this=52e80740, started=true, initialised=true, name='connector.VM.0', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[vm], serviceOverrides=null} | |
INFO 2011-01-03 12:02:50,884 [main] org.mule.m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OrderServiceStartup implements MuleContextNotificationListener, MuleContextAware{ | |
MuleContext context; | |
private static Log logger = LogFactory.getLog(OrderServiceStartup.class); | |
public void onNotification(ServerNotification notification) { | |
if(notification.getAction()==MuleContextNotification.CONTEXT_STARTED) | |
{ | |
logger.info("Starting Paused Services"); | |
Collection serviceCollection = context.getRegistry().lookupServices(); | |
Iterator i=serviceCollection.iterator(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rmq:connector name="connector> | |
<spring:property name="host" value="localhost"/> | |
<spring:property name="port" value="5672"/> | |
<spring:property name="username" value="guest"/> | |
<spring:property name="password" value="guest"/> | |
<spring:property name="springAutoName" value="true"/> | |
<spring:property name="exchangeMap"> | |
<spring:map> | |
<spring:entry key="exchange1"> | |
<spring:bean class="org.mule.transport.rmq.essentials.Exchange"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SpringBootApplication | |
public class App { | |
private static final Logger LOG = LoggerFactory.getLogger(App.class); | |
@Value("${db.driverclassname}") | |
private String dbDriverClassName; | |
@Value("${db.url}") | |
private String dbUrl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mongo:config name="mongoDb" database="testDb" host="localhost" port="27017" /> | |
<flow name="setNullComponent"> | |
<expression-transformer expression="org.mule.transport.NullPayload.getInstance()" evaluator="groovy"></expression-transformer> | |
</flow> | |
<flow name="getTestCollectionFlow"> | |
<vm:inbound-endpoint path="getTestCollection" exchange-pattern="request-response" /> | |
<!-- workaround for mongo throwing exception when it does not find an entry in the db --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<smtp:gmail-connector name="emailConnector" /> | |
... | |
... | |
<component class="com.ricston.blog.sf.components.SwitchPayloadAndProp" /> | |
<outbound> | |
<pass-through-router> | |
<smtp:outbound-endpoint port="587" | |
connector-ref="emailConnector" from="SfEmailExample" | |
subject="<subject>" host="smtp.gmail.com" | |
user="<your-gmail-username>" password="<your-gmail-password"> |