Skip to content

Instantly share code, notes, and snippets.

View gerrymclarnon's full-sized avatar

Gerry gerrymclarnon

View GitHub Profile
gerrymclarnon /
Created November 7, 2012 13:11
package net.playermanager.samples.HelloWorld;
public class HelloWorldFootballApp {
public static void main(String[] args) {
System.out.println("Hello World Football");
gerrymclarnon / .gitignore
Created December 16, 2012 20:09
GIT will ignore these Java files.
# Package Files #
gerrymclarnon /
Created December 16, 2012 20:13
Readme file in GitHub markdown format

README markdown

Readme file in GitHub markdown format.

gerrymclarnon /
Created December 17, 2012 13:18
package net.playermanager.examples;
/** Example resource class hosted at the URI path "/myresource"
gerrymclarnon / resources.xml
Last active December 11, 2015 16:39
A TomEE 1.5 resource file that can be referred to from a persistence unit file, e.g.
A TomEE 1.5 Resource definition file used to configure application specific resources.
Location: <webapp>/WEB-INF/classes/META-INF/resources.xml
<Resource id="jdbc/sample" type="DataSource">
JdbcDriver org.apache.derby.jdbc.ClientDriver
JdbcUrl jdbc:derby://localhost:1527/sample
UserName app
Password app
gerrymclarnon / persistence.xml
Created January 24, 2013 23:20
A TomEE 1.5 persistence unit example using EclipseLink as the JPA provider. The data source is defined in a resources.xml file, an example of which can be found here...
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
<persistence-unit name="CustomerDBSpringPU" transaction-type="JTA">