This file contains hidden or 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
sudo vim /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf | |
[incomingtcp] | |
1414 = 172.16.237.246:1414 | |
1414 = 172.16.237.244:1414 | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/services.sh --stop | |
sudo /Applications/VMware\ Fusion.app/Contents/Library/services.sh --start | |
This file contains hidden or 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
<spring:bean id="property-placeholder" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" > | |
<spring:property name="locations"> | |
<spring:list> | |
<spring:value>classpath:first.properties</spring:value> | |
<spring:value>classpath:second.properties</spring:value> | |
</spring:list> | |
</spring:property> | |
</spring:bean> |
This file contains hidden or 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
/Library/PostgreSQL/9.1/bin/pg_dump --host localhost --port 5432 --username <USERNAME> -b -c -E UTF-8 --no-owner --no-privileges --no-tablespaces --clean --schema public -F c -Z 9 -f <BACKUPFILENAME> <DATABASENAME> | |
/Library/PostgreSQL/9.1/bin/pg_restore --host localhost --port 5432 --username <USERNAME> --dbname <DATABASENAME> --no-owner --no-privileges --no-tablespaces --clean --schema public "<BACKUPFILENAME>" |
This file contains hidden or 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
# Default log level | |
log4j.rootCategory=INFO, console | |
log4j.appender.console=org.apache.log4j.ConsoleAppender | |
log4j.appender.console.layout=org.apache.log4j.PatternLayout | |
log4j.appender.console.layout.ConversionPattern=%-5p %d [%t] %c: %m%n | |
################################################ | |
# You can set custom log levels per-package here | |
################################################ |
This file contains hidden or 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
<flow name="httpputFlow" doc:name="httpputFlow"> | |
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8086" doc:name="HTTP"/> | |
<scripting:component doc:name="Groovy"> | |
<scripting:script engine="Groovy"> | |
<scripting:text> | |
<![CDATA[ | |
HashMap map = new HashMap(); | |
map.put("param1", "value1"); | |
map.put("param2", "value2"); |
This file contains hidden or 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
import javax.jms.*; | |
import org.apache.activemq.ActiveMQConnection; | |
import org.apache.activemq.ActiveMQConnectionFactory; | |
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616"); | |
Connection connection = connectionFactory.createConnection(); | |
connection.start(); | |
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); |
This file contains hidden or 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
<jms:activemq-connector name="Active_MQ" specification="1.1" brokerURL="vm:broker:(tcp://localhost:61616)?broker.persistent=false" embeddedMode="true" validateConnections="true" doc:name="Active_MQ"/> | |
This file contains hidden or 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
<flow name="wcfconsumerFlow1" doc:name="wcfconsumerFlow1"> | |
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="submitOrder" doc:name="HTTP"/> | |
<response> | |
<object-to-string-transformer doc:name="Object to String"/> | |
</response> | |
<http:body-to-parameter-map-transformer doc:name="Body to Parameter Map"/> | |
<choice doc:name="Choice"> | |
<when expression="#[Integer.parseInt(payload['qty']) < 100]"> | |
<processor-chain> | |
<scripting:component doc:name="Groovy"> |
This file contains hidden or 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
import com.mulesoft.wcfconsumer.*; | |
ObjectFactory of = new ObjectFactory(); | |
Order o = of.createOrder(); | |
o.setProductId(of.createOrderProductId(payload['productCode'])); | |
o.setQuantity(of.createOrderQuantity(payload['qty'])); | |
return o; |
This file contains hidden or 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
<html> | |
<body> | |
<h1>Submit order</h1> | |
<form action="http://localhost:8081/submitOrder" method="POST"> | |
Product code: <input name="productCode" type="TEXT" /> | |
Quantity: <input name="qty" type="TEXT" /> | |
<input type="submit"> | |
</form> | |
</body> | |
</html> |
NewerOlder