package crashburnfree.javaserver;

import javax.persistence.EntityManagerFactory;
import javax.persistence.PersistenceUnit;
import javax.transaction.Transactional;
import javax.transaction.Transactional.TxType;
import javax.ws.rs.Consumes;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;

@Path("/submit")
public class JavaServer {

	@PersistenceUnit(name="ticketManor") EntityManagerFactory emf; // Web tier is multi-threaded

	@POST
	@Consumes(MediaType.APPLICATION_JSON)
	@Transactional(value=TxType.REQUIRED)
	public void upload(Throwable t, @HeaderParam("Authorization") String authorization) {
		System.out.println("JavaServer.upload: " + t);
		
		// Here you'd have to actually do something with the Throwable.
		
	}
}

@@ -396,16 +396,19 @@
 ver %7B%0A%0A%09
+// 
 @Persist
@@ -426,19 +426,21 @@
 me=%22
-ticketManor
+crashburnfree
 %22) E
@@ -467,38 +467,8 @@
 emf;
- // Web tier is multi-threaded
 %0A%0A%09@
@@ -511,17 +511,20 @@
 N_JSON)%0A
-
 %09
+// 
 @Transac

Remove unused