Skip to content

Instantly share code, notes, and snippets.

View mbogoevici's full-sized avatar

Marius Bogoevici mbogoevici

  • Red Hat
  • New York, NY
View GitHub Profile
@mbogoevici
mbogoevici / DataPersistence.textile
Created January 11, 2012 16:13 — forked from pmuir/AdminJSF.textile
TicketMonster Tutorial outline

- RDBMS design using JPA entity beans
- persistence.xml
- JUnit based tests
- Arquillian based tests
- import.sql
- bean validation
- full CRUD must be demonstrated
- minimum of 4 tables – including two in a 1 to Many relationship
- master-detail: multi-table transaction demonstrated (shopping cart)
- limited to pure JPA spec

@mbogoevici
mbogoevici / Exception
Created June 24, 2011 01:14 — forked from anonymous/Exception
URL handling
java.lang.IllegalStateException: Illegal class loader binding
org.apache.naming.resources.DirContextURLStreamHandler.get(DirContextURLStreamHandler.java:223)
org.apache.naming.resources.DirContextURLStreamHandler.openConnection(DirContextURLStreamHandler.java:88)
java.net.URL.openConnection(URL.java:945)
test.TestServlet.doGet(TestServlet.java:19)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
/**
* The context in which instance injection occurs.
*
* @author Pete Muir
*
*/
public interface InjectionContext<T>
{
/**