[
https://issues.jboss.org/browse/JBTM-1479?page=com.atlassian.jira.plugin....
]
Gytis Trikleris commented on JBTM-1479:
---------------------------------------
For the record, this is the failure:
{code}
-------------------------------------------------------------------------------
Test set: org.jboss.narayana.quickstart.jca.model.CustomerDAOTest
-------------------------------------------------------------------------------
Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.32 sec <<<
FAILURE!
org.jboss.narayana.quickstart.jca.model.CustomerDAOTest Time elapsed: 0.063 sec
<<< ERROR!
java.io.IOException: Could not delete
C:\Users\hudson\AppData\Local\Temp\2\iron.jacamar\tmp\jdbc-xa.rar\ironjacamar-jdbc.jar
at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1520)
at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1515)
at com.github.fungal.impl.KernelImpl.recursiveDelete(KernelImpl.java:1515)
at com.github.fungal.impl.KernelImpl.shutdown(KernelImpl.java:850)
at org.jboss.jca.embedded.EmbeddedJCA.shutdown(EmbeddedJCA.java:158)
at
org.jboss.narayana.quickstart.jca.common.AbstractTest.afterClass(AbstractTest.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:36)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
at $Proxy0.invoke(Unknown Source)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
{code}
Create a quickstart to show how to use IronJacamar and JBTM inside
tomcat
-------------------------------------------------------------------------
Key: JBTM-1479
URL:
https://issues.jboss.org/browse/JBTM-1479
Project: JBoss Transaction Manager
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Demonstrator
Reporter: Tom Jenkinson
Assignee: Gytis Trikleris
Fix For: 5.0.0.M3
Attachments: test-ds.xml, transaction.xml
Original Estimate: 3 days
Time Spent: 1 week, 1 day, 3 hours, 20 minutes
Remaining Estimate: 0 minutes
See JBTM-809 for the algorithm
You might want to put the startup in the context listener:
public class MyServletContextListener implements ServletContextListener {
public void contextInitialized(ServletContextEvent sce) {
// Initialize RecoveryManager
// Initialize TransactionManager
// Initialize IronJacamar
}
@Override
public void contextDestroyed(ServletContextEvent sce) {
// Clean IronJacamar
// Clean TransactionManager
// Clean RecoveryManager
}
}
Quickstart application should connect to the database (say PostgreSQL), dummy XA resource
and coordinate the transaction. The PostgreSQL data source needs to be accessed via
IronJacamar.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira