Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-809

Provide instructions for using ironjacamar as well as transactional driver

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 5.3.3.Final
    • None
    • Resource Manager
    • None

      The general approach would be along the lines of:

      Startup
      ======
      Embedded embedded = EmbeddedFactory.create();
      embedded.startup();
      embedded.deploy(new File("my-rar.rar").toURI().toURL());
      embedded.deploy(new File("my-ds.xml").toURI().toURL());

      In use
      =====
      InitialContext initialContext = new InitialContext();
      UserTransaction ut = (UserTransaction)initialContext.lookup("UserTransaction");
      DataSource dataSource = (DataSource)initialContext.lookup("java:/"+"TestDS");

      Shutdown
      =======
      embedded.undeploy(new File("my-ds.xml").toURI().toURL());
      embedded.undeploy(new File("my-rar.rar").toURI().toURL());
      embedded.shutdown(); // does not work - some threads don't stop

      Problems?
      =========
      JCA transitive dependencies?
      Accessing ds files from war?
      Accessing rar from war?
      May have to provide these both upfront.

              gtrikler@redhat.com Gytis Trikleris (Inactive)
              thjenkin@redhat.com Tom Jenkinson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: