Skip to content

mdee/undREST

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

undREST

A skeleton REST endpoint

Technologies used:

  • Jersey for JAX-RS
  • Guice for dependency injection
  • Hibernate for ORM
  • Maven for dependency mgmt
  • Jetty for servlet container & HTTP server

Details to fill:

FilenameValue to override
pom.xml'artifactId' value
'finalName' value
log4j.propertieslog4j.appender.file.File value (absolute path to file)
persistence.xmlhibernate.connection.url (default values for MySQL, requires host, port & DB name)
'persistence-unit' name attribute

To compile:

mvn clean package

To run (an embedded Jetty instance):

mvn exec:java -Dexec.mainClass="Main"

To debug (w/remote debugger):

mvnDebug exec:java -Dexec.mainClass="Main"

When running on embedded Jetty, open this address in your browser:

http://localhost:8080/msg

Otherwise, copy the .war to your /webapps directory and go to whatever your standard Jetty deployment address is, appended with /undREST/msg

This was pieced together mostly from the Guice Wiki and this Randomized Sort posting.

About

A skeleton REST endpoint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages