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
{ | |
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found | |
any interesting article like yours. {It's|It is} pretty worth enough for | |
me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website | |
owners|web owners} and bloggers made good content as you did, the {internet|net|web} will be | |
{much more|a lot more} useful than ever before.| | |
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally | |
well} written!| | |
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} your {rss|rss feed} as | |
I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or |
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
/** | |
* Prepare a builder by copying the scheme, host, port, path, and | |
* query string of an HttpServletRequest. | |
*/ | |
public static CorrectedServletUriComponentsBuilder fromRequest(HttpServletRequest request) { | |
String scheme = scheme(request); | |
String host = host(request); | |
int port = port(request); | |
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
@Configuration | |
@EnableTransactionManagement | |
@EnableJpaRepositories( | |
entityManagerFactoryRef = "barEntityManagerFactory", | |
transactionManagerRef = "barTransactionManager", | |
basePackages = { "com.sctrcd.multidsdemo.integration.repositories.bar" }) | |
public class BarConfig { | |
@Autowired | |
JpaVendorAdapter jpaVendorAdapter; |
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
# Run from a location where you want to download the application. | |
mkdir ~/downloads ; cd ~/downloads | |
curl -O -L http://download.jboss.org/drools/release/5.3.0.Final/guvnor-distribution-5.3.0.Final.zip | |
unzip guvnor-distribution-5.3.0.Final.zip | |
# Explode the Guvnor .war and copy to the WAS "apps" directory | |
unzip guvnor-distribution-5.3.0.Final/binaries/guvnor-5.3.0.Final-tomcat-6.0.war -d guvnor | |
cp guvnor /usr/share/was/wlp/usr/servers/guvnor/apps/ |
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
from("C:/router/export/csv/") | |
.unmarshal().csv() | |
.split().method("org.gratiartis.router.Splitter", "split") | |
.to("jms:DOCUMENT.METADATA.QUEUE"); | |
from("jms:DOCUMENT.METADATA.QUEUE") | |
.processRef("org.gratiartis.router.Processor") | |
.to("C:/router/out/xml/"); |
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
<camelContext xmlns="http://camel.apache.org/schema/spring"> | |
<route> | |
<from uri="webspheremq:ANY.OPERATION.REQUEST" /> | |
<choice> | |
<when> | |
<xpath>/REQUEST/HEADER[@OperationName='Old.Request']</xpath> | |
<to uri="activemq:OLD.REQUEST" /> | |
</when> | |
<when> | |
<xpath>/REQUEST/HEADER[@OperationName='New.Request']</xpath> |
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 uk.co.scattercode.security.seam; | |
import java.util.ArrayList; | |
import java.util.Hashtable; | |
import java.util.List; | |
import java.util.Set; | |
import java.util.TreeSet; | |
import javax.naming.Context; | |
import javax.naming.NamingEnumeration; |
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 uk.co.scattercode.drools.accumulators; | |
import java.io.IOException; | |
import java.io.ObjectInput; | |
import java.io.ObjectOutput; | |
import java.io.Serializable; | |
import java.math.BigDecimal; | |
import org.drools.runtime.rule.TypedAccumulateFunction; |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>1.4</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.3.2</version> | |
<executions> | |
<execution> | |
<id>factmodel</id> | |
<!-- | |
Use the Jar plugin to produce a reduced JAR containing only those model classes | |
to be used as facts in Drools/Guvnor. |