[JBoss JIRA] (JBTM-1479) Create a quickstart to show how to use IronJacamar and JBTM inside tomcat
by Gytis Trikleris (JIRA)
[ https://issues.jboss.org/browse/JBTM-1479?page=com.atlassian.jira.plugin.... ]
Gytis Trikleris commented on JBTM-1479:
---------------------------------------
In one forum on stackoverflow somebody mentioned that Windows does not allow to delete loaded jars (it is allowed on Linux). It may be because of that. Fungal kernel calls recursiveDelete method during shutdown, which throws IOException if it is unable to delete a file.
> 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
11 years, 8 months
[JBoss JIRA] (JBTM-1479) Create a quickstart to show how to use IronJacamar and JBTM inside tomcat
by Gytis Trikleris (JIRA)
[ https://issues.jboss.org/browse/JBTM-1479?page=com.atlassian.jira.plugin.... ]
Gytis Trikleris commented on JBTM-1479:
---------------------------------------
I've tried this simple test on windows and it also failed with "java.io.IOException: Could not delete {PATH_TO_TEMP_DIRECTORY}/ironjacamar-jdbc.jar"
{code}
public class SimpleTest {
private static final String JDBC_RAR_FILE_PATH = "src/main/resources/jdbc-xa.rar";
private static Embedded EMBEDDED;
@Test
public void test() throws Throwable {
EMBEDDED = EmbeddedFactory.create();
EMBEDDED.startup();
EMBEDDED.deploy(getURL(JDBC_RAR_FILE_PATH));
System.out.println("Test...");
EMBEDDED.undeploy(getURL(JDBC_RAR_FILE_PATH));
EMBEDDED.shutdown();
}
private static URL getURL(final String path) throws MalformedURLException {
final File f = new File(path);
return f.toURI().toURL();
}
}
{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
11 years, 8 months
[JBoss JIRA] (JBTM-1479) Create a quickstart to show how to use IronJacamar and JBTM inside tomcat
by Gytis Trikleris (JIRA)
[ https://issues.jboss.org/browse/JBTM-1479?page=com.atlassian.jira.plugin.... ]
Gytis Trikleris edited comment on JBTM-1479 at 4/26/13 8:05 AM:
----------------------------------------------------------------
I've tried this simple test on windows and it also failed with "java.io.IOException: Could not delete PATH_TO_TEMP_DIRECTORY/ironjacamar-jdbc.jar"
{code}
public class SimpleTest {
private static final String JDBC_RAR_FILE_PATH = "src/main/resources/jdbc-xa.rar";
private static Embedded EMBEDDED;
@Test
public void test() throws Throwable {
EMBEDDED = EmbeddedFactory.create();
EMBEDDED.startup();
EMBEDDED.deploy(getURL(JDBC_RAR_FILE_PATH));
System.out.println("Test...");
EMBEDDED.undeploy(getURL(JDBC_RAR_FILE_PATH));
EMBEDDED.shutdown();
}
private static URL getURL(final String path) throws MalformedURLException {
final File f = new File(path);
return f.toURI().toURL();
}
}
{code}
was (Author: gytis):
I've tried this simple test on windows and it also failed with "java.io.IOException: Could not delete {PATH_TO_TEMP_DIRECTORY}/ironjacamar-jdbc.jar"
{code}
public class SimpleTest {
private static final String JDBC_RAR_FILE_PATH = "src/main/resources/jdbc-xa.rar";
private static Embedded EMBEDDED;
@Test
public void test() throws Throwable {
EMBEDDED = EmbeddedFactory.create();
EMBEDDED.startup();
EMBEDDED.deploy(getURL(JDBC_RAR_FILE_PATH));
System.out.println("Test...");
EMBEDDED.undeploy(getURL(JDBC_RAR_FILE_PATH));
EMBEDDED.shutdown();
}
private static URL getURL(final String path) throws MalformedURLException {
final File f = new File(path);
return f.toURI().toURL();
}
}
{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
11 years, 8 months
[JBoss JIRA] (JBTM-1655) The CI script expects the AS to be present even if AS_BUILD is not set
by Michael Musgrove (JIRA)
Michael Musgrove created JBTM-1655:
--------------------------------------
Summary: The CI script expects the AS to be present even if AS_BUILD is not set
Key: JBTM-1655
URL: https://issues.jboss.org/browse/JBTM-1655
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Michael Musgrove
Assignee: Michael Musgrove
Fix For: 5.0.0.M3
Unsetting the env variable AS_BUILD will skip the AS build step but narayana.sh still expects the directory ${WORKSPACE}/jboss-as/build/target/${JBOSS_VERSION} to exist and fails the build if it does not.
The fix is to not call the shell function init_jboss_home if AS_BUILD is unset (or not equal to 1)
--
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
11 years, 8 months
[JBoss JIRA] (JBTM-1472) Initial work on JTA for Compensations
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1472?focusedWorklogId=12429116&page=... ]
Paul Robinson logged work on JBTM-1472:
---------------------------------------
Author: Paul Robinson
Created on: 26/Apr/13 4:59 AM
Start Date: 26/Apr/13 4:59 AM
Worklog Time Spent: 1 day
Issue Time Tracking
-------------------
Remaining Estimate: 1 week, 4 days, 2 hours (was: 2 weeks, 2 hours)
Time Spent: 1 week, 6 hours (was: 4 days, 6 hours)
Worklog Id: (was: 12429116)
> Initial work on JTA for Compensations
> -------------------------------------
>
> Key: JBTM-1472
> URL: https://issues.jboss.org/browse/JBTM-1472
> Project: JBoss Transaction Manager
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Transaction Core, XTS
> Reporter: Paul Robinson
> Assignee: Paul Robinson
> Fix For: 5.0.0.M3
>
> Original Estimate: 2 weeks
> Time Spent: 1 week, 6 hours
> Remaining Estimate: 1 week, 4 days, 2 hours
>
> We essentially provide a JTA-like implementation for using compensations. We would support distribution over Web services and REST via WS-BA and REST-JDI. This is similar in how we do distributed ACID transactions today; the application is developed against the JTA, but through configuration we enable distributed transactions over a particular transport (remoting, IIOP, WS).
> It would be good to have some subset of functionality that worked on a raw VM (i.e. no appserver). This would hopefully broaden the market.
> This first piece of work is to do some initial research and support an API with potentially a subset of features of the final API.
> Tasks:
> # Investigate existing WS-BA APIs
> ## Try code examples if possible
> # Produce an initial list of features that should be covered by the API
> # Create a simple implementation backed by WS-BA.
--
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
11 years, 8 months
[JBoss JIRA] (JBTM-1472) Initial work on JTA for Compensations
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1472?page=com.atlassian.jira.plugin.... ]
Paul Robinson commented on JBTM-1472:
-------------------------------------
Current working area:
https://github.com/paulrobinson/compensations
Not yet implemented:
# Integrate into Narayana+WildFly code-base
# Distribution over WS-BA.
# Enable interceptors by default (CDI 1.1 feature)
# @Transactional like behaviour
# @CompensationScoped: Align with JTA 1.2 and document
# integration with @Transactional
# Document existing API
# Durability of compensation data
# bridging to JTA
# 2PC participants
# Local-only performance optimisations
# EJB support
> Initial work on JTA for Compensations
> -------------------------------------
>
> Key: JBTM-1472
> URL: https://issues.jboss.org/browse/JBTM-1472
> Project: JBoss Transaction Manager
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Transaction Core, XTS
> Reporter: Paul Robinson
> Assignee: Paul Robinson
> Fix For: 5.0.0.M3
>
> Original Estimate: 2 weeks
> Time Spent: 4 days, 6 hours
> Remaining Estimate: 2 weeks, 2 hours
>
> We essentially provide a JTA-like implementation for using compensations. We would support distribution over Web services and REST via WS-BA and REST-JDI. This is similar in how we do distributed ACID transactions today; the application is developed against the JTA, but through configuration we enable distributed transactions over a particular transport (remoting, IIOP, WS).
> It would be good to have some subset of functionality that worked on a raw VM (i.e. no appserver). This would hopefully broaden the market.
> This first piece of work is to do some initial research and support an API with potentially a subset of features of the final API.
> Tasks:
> # Investigate existing WS-BA APIs
> ## Try code examples if possible
> # Produce an initial list of features that should be covered by the API
> # Create a simple implementation backed by WS-BA.
--
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
11 years, 8 months
[JBoss JIRA] (JBTM-1645) Allow pull requests to configure some parameters in scripts/hudson/narayana.sh
by Paul Robinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1645?page=com.atlassian.jira.plugin.... ]
Paul Robinson commented on JBTM-1645:
-------------------------------------
Agreed, I'll try and change the message to say that they were skipped.
> Allow pull requests to configure some parameters in scripts/hudson/narayana.sh
> ------------------------------------------------------------------------------
>
> Key: JBTM-1645
> URL: https://issues.jboss.org/browse/JBTM-1645
> Project: JBoss Transaction Manager
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Build System
> Reporter: Tom Jenkinson
> Assignee: Paul Robinson
> Priority: Critical
> Fix For: 5.0.0.M3
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> If the pull description has something like this:
> export NARAYANA_BUILD=1 AS_BUILD=1 NARAYANA_TESTS=1 TXF_TESTS=1 XTS_TESTS=1 XTS_AS_TESTS=1 txbridge=1 QA_TESTS=1 [SUN_ORB=0] [JAC_ORB=1] [QA_TARGET=ci-jts-tests]
> We could use it in scripts/hudson/narayana.sh if we detect it is a pull build. We might need to white list users we apply this to.
--
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
11 years, 8 months
[JBoss JIRA] (JBTM-1645) Allow pull requests to configure some parameters in scripts/hudson/narayana.sh
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1645?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson commented on JBTM-1645:
-------------------------------------
That should be fine, I presume they wouldn't have to "comment_on_pull" as the variable can be checked before so the pull request comments won't include erroneous "Tests passed". Indeed, perhaps they could comment "XTS tests skipped as per request" if we wanted it to?
> Allow pull requests to configure some parameters in scripts/hudson/narayana.sh
> ------------------------------------------------------------------------------
>
> Key: JBTM-1645
> URL: https://issues.jboss.org/browse/JBTM-1645
> Project: JBoss Transaction Manager
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Build System
> Reporter: Tom Jenkinson
> Assignee: Paul Robinson
> Priority: Critical
> Fix For: 5.0.0.M3
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> If the pull description has something like this:
> export NARAYANA_BUILD=1 AS_BUILD=1 NARAYANA_TESTS=1 TXF_TESTS=1 XTS_TESTS=1 XTS_AS_TESTS=1 txbridge=1 QA_TESTS=1 [SUN_ORB=0] [JAC_ORB=1] [QA_TARGET=ci-jts-tests]
> We could use it in scripts/hudson/narayana.sh if we detect it is a pull build. We might need to white list users we apply this to.
--
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
11 years, 8 months