Skip to content

Instantly share code, notes, and snippets.

View dsyer's full-sized avatar

Dave Syer dsyer

View GitHub Profile
@dsyer
dsyer / .classpath
Created July 12, 2010 10:57
A sample using JDBC polling to test scalability with Spring Integration
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
This is a simple Spring Batch demo project that pulls data from a
database and then outputs it to a flat file. It uses (Hibernate) JPA
and an embedded HSQL DB. Includes all dependencies in the a lib directory.
package org.springframework.amqp.rabbit.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Assume;
import org.junit.Before;
import org.junit.Rule;
@dsyer
dsyer / .gitignore
Created December 23, 2010 13:53
Cloud Sample for Spring Batch Admin
.classpath
.project
.settings
target
bin
@dsyer
dsyer / .classpath
Created December 23, 2010 13:56
A sample job for Spring Batch repository metadata - copies execution history from one repository to another.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/resources"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="src" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
target
bin
.classpath
.project
.settings
.springBeans
.DS_Store
*.sw*
@dsyer
dsyer / .gitignore
Created January 17, 2011 11:23
Test project for ActiveMQ topic memory usage
target
activemq-data
bin
.settings
.classpath
.project
@dsyer
dsyer / .gitignore
Created January 22, 2011 12:38
BATCH-1651 test code
target
bin
.settings
.classpath
.project
derby*
embedded*
testcase.zip
lib
@dsyer
dsyer / .gitignore
Created March 30, 2011 07:27
Bootstrap Spring with @feature
target
bin
.classpath
.project
.settings
*.swp
*/src/main/java/META-INF
nohup.out
.idea
*.iml
@dsyer
dsyer / wtpfix.sh
Created April 9, 2011 09:29
Shell script to fix WTP projects (WAR and JAR)
#!/bin/sh
if [ "$1" = "-h" -o "$1" = "--help" -o "$1" = "-?" ]; then
echo 'Usage: $0 <directory>'
echo ' Fix the WTP configuration in the specified directory and all subdirs.'
echo ' Any file named .classpath is patched to remove excluding="**"'
echo ' (useful for non wtp projects that were generated by m2e).'
echo ' WTP JAR modules are detected by searching for'
echo ' .settings/org.eclipse.wst.common.component in a non-war project.'
echo ' JAR modules are patched to setup .project and .settings correctly'