PK %: META-INF/PK %:}bffMETA-INF/MANIFEST.MFManifest-Version: 1.0 Ant-Version: Apache Ant 1.7.1 Created-By: 10.0-b23 (Sun Microsystems Inc.) PK SO9WEB-INF/PK SO9WEB-INF/classes/PK %:WEB-INF/classes/META-INF/PK SO9WEB-INF/classes/test/PK %: (WEB-INF/classes/META-INF/persistence.xml org.eclipse.persistence.jpa.PersistenceProvider jdbc/__TimerPool PK SO9sK!WEB-INF/classes/test/Coffee.class1Q ; < = >? ;@ A B CD EF G H IJKLidLjava/lang/Integer; brandNameLjava/lang/String;priceF()VCodeLineNumberTableLocalVariableTablethis Ltest/Coffee;)(Ljava/lang/Integer;Ljava/lang/String;F)VgetId()Ljava/lang/Integer;RuntimeVisibleAnnotationsLjavax/persistence/Id;Ljavax/persistence/Column;nameIDsetId(Ljava/lang/Integer;)V getBrandName()Ljava/lang/String; BRANDNAME setBrandName(Ljava/lang/String;)VbNamegetPrice()FPRICEsetPrice(F)VtoString SourceFile Coffee.javaLjavax/persistence/Entity;Ljavax/persistence/Table;    java/lang/StringBuilder Coffee id= MN "# MO , brandName= +,, price= 12 MP 6, test/Coffeejava/lang/Objectjava/io/Serializableappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;(F)Ljava/lang/StringBuilder;! 3*   !l**+*,*%  * "#/*%  $%&'s()*>*+ () +,/*-  $ &'s-./>*+ 01 012/*5  $ &'s345>*# 89 6,Y/Y*  *  *< / 78$ 9:PK uO9Y%WEB-INF/classes/test/NewServlet.class1 ?z >{|} ~   > >`B  > > > >  !z ! ! !  +p  > q  > loggerLjava/util/logging/Logger;em!Ljavax/persistence/EntityManager;RuntimeVisibleAnnotations&Ljavax/persistence/PersistenceContext;unitName ejblite-putxBean Ltest/TxBean;Ljavax/ejb/EJB;ut#Ljavax/transaction/UserTransaction;Ljavax/annotation/Resource;()VCodeLineNumberTableLocalVariableTablethisLtest/NewServlet;processRequestR(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Vrequest'Ljavax/servlet/http/HttpServletRequest;response(Ljavax/servlet/http/HttpServletResponse;outLjava/io/PrintWriter; Exceptionsrequired()Ljava/lang/String; coffeeFound Ltest/Coffee;eLjava/lang/RuntimeException;Ljava/lang/Exception;idI brandNameLjava/lang/String;priceF targetPricecoffeeresultrequiredNoFlush deleteCoffee(Ltest/Coffee;)Vc2cdoGetdoPost SourceFileNewServlet.java NO bar this is bar text/html;charset=UTF-8  !Servlet NewServlet `a

pa test/Coffee N qrAbout to invoke TxBean.required KL O HI `r BC java/lang/StringBuilder 8
Inside tx and persistence context, em.find returned a O
After tx rollback, 5Got expected result: coffee not found after rollback.-Expecting coffee not found, but actual found java/lang/RuntimeExceptionjava/lang/Exception N&About to invoke TxBean.requiredNoFlush pr @A  NewServletCCurrent coffee bean already exists in db, need to delete it first:  ? @ABCD EFsGHIDJKLDMNOP/*QR STUVP]*,,N- - - - - -* - -* - - Q:# $%&"'((.)4*:,B-H.P/V0\1R*]ST]WX]YZA[\]^_`aP<MF%b8Y,%:*:*** :!Y"#$#%&:*'* :!Y"#(#&:!Y"#)#&:!Y"#*#%&:::+Y-'+',Q^456789#:'<0>9?N@iArBCDEGMIJKLNRf Obcde dfSTghijklmlnc'ojpaP<.MF%b8Y,%:*/:**0* :!Y"#$#%&:*'* :!Y"#(#&:!Y"#)#&:!Y"#*#%&:::+Y-'+',Q^RSTUVW#X'Z0\9]N^i_r`abcekghijlRf Obcde dfSTghijklmlnc'ojqrP**+1 M,02345!Y"6#,%&7*,8&2345!Y"9#+1%&7*:M,M+Y,-z}+z,Q6 q st!uAwNyq|z}}~~R4]sc~de dfSTtcuVPI*+,;Q R STWXYZ]^_vVPI*+,;Q R STWXYZ]^_wOP! <=2QxyPK %:-YpPxx!WEB-INF/classes/test/TxBean.class1e 8 9 :;<&= 8> ? @ A BC DEB DF G HI HJK BLMNloggerLjava/util/logging/Logger;em!Ljavax/persistence/EntityManager;RuntimeVisibleAnnotations&Ljavax/persistence/PersistenceContext;unitName ejblite-pu()VCodeLineNumberTableLocalVariableTablethis Ltest/TxBean;timeout(Ljavax/ejb/Timer;)VtimerLjavax/ejb/Timer;Ljavax/ejb/Timeout;required(Ltest/Coffee;)Vc Ltest/Coffee; Ljavax/ejb/TransactionAttribute;value$Ljavax/ejb/TransactionAttributeType;REQUIREDrequiredNoFlush SourceFile TxBean.javaLjavax/ejb/Stateless;  O PQTxBeanjava/lang/StringBuilder!Timeout method invoked for timer RS RT UVW XYZ [\ ]^ _ `a b com.sun.ts.tests.ejb30 cd test/TxBeanjava/lang/Objectjava/util/logging/LevelINFOLjava/util/logging/Level;append-(Ljava/lang/String;)Ljava/lang/StringBuilder;-(Ljava/lang/Object;)Ljava/lang/StringBuilder;toString()Ljava/lang/String;java/util/logging/LoggerlogpR(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V test/CoffeegetPrice()FsetPrice(F)Vjavax/persistence/EntityManagerpersist(Ljava/lang/Object;)Vflush getLogger.(Ljava/lang/String;)Ljava/util/logging/Logger;!  s !/*"# $%&'!Y!Y + "  #!$%!()*+,!_++ b*+*"$ %&'#$%-. /0e123,!R++ b*+"+ ,.#$%-. /0e124 !! "567PK SO9AAWEB-INF/web.xml NewServlet test.NewServlet NewServlet /NewServlet PK SO9mo[ index.jsp<%-- Document : index Created on : Sep 15, 2008, 1:33:13 PM Author : cf126330 --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> JSP Page

Hello World!

PK %: AMETA-INF/PK %:}bff+META-INF/MANIFEST.MFPK SO9AWEB-INF/PK SO9AWEB-INF/classes/PK %:AWEB-INF/classes/META-INF/PK SO9ANWEB-INF/classes/test/PK %: (WEB-INF/classes/META-INF/persistence.xmlPK SO9sK!WEB-INF/classes/test/Coffee.classPK uO9Y% WEB-INF/classes/test/NewServlet.classPK %:-YpPxx!Q WEB-INF/classes/test/TxBean.classPK SO9AA(WEB-INF/web.xmlPK SO9mo[ v*index.jspPK 6m,