Assembly issues resolved. Patch dated Sep 6 attached to JIRA-1665 for
review.
Regards,
Amita

On 9/5/07, Amita Vadhavkar <[EMAIL PROTECTED]> wrote:
>
> Thank you Raymond. I am checking it out.
>
> JOTM seems working well with JDK5 when used "without" Tomcat.
> So, I am trying to create a simple quick non-web sample using JOTM. In
> this MoneyTransfer example, user entered amount will be withdrawn from one
> of his bankaccount using one call to das.applyChanges(dataGraph1) and same
> amount will  be deposited to his another account using another call to
> das.applyChanges(dataGraph2). Based on whether user choses
> commit/rollback, these 2 applyChanges() will behave identically. i.e. both
> will commit or both will rollback, but partial transaction will not happen.
>
> Below 3 jars needed to be installed manually in local mvn repo -
> 1)    *  The javax.resource:connector:1.0:jar artifact
>          1. Download the 1.0 connector zip from:
> http://java.sun.com/j2ee/connector/download.html
>          2. Unpack the zip to gain access to the jar file.
>          3. Install it: mvn install:install-file 
> -DgroupId=javax.resource-DartifactId=connector -Dversion=
> 1.0 -Dpackaging=jar -Dfile=connector.jar
>
> 2)    *  The javax.resource:connecto-apir:1.5:jar artifact
>          1. Download the 1.5 connector zip from:
> http://java.sun.com/j2ee/connector/download.html
>          2. Unpack the zip to gain access to the jar file.
>          3. Install it: mvn install:install-file 
> -DgroupId=javax.resource-DartifactId=connector-api -Dversion=
> 1.5 -Dpackaging=jar -Dfile=connector-api.jar
>
> 3)    * The javax.transaction:jta:1.0.1B:jar artifact
>          1. Download the 1.0.1B jta zip from:
> http://java.sun.com/products/jta/
>          2. Install it: mvn install:install-file -DgroupId=
> javax.transaction -DartifactId=jta Dversion=1.0.1B -Dpackaging=jar
> -Dfile=jta-1_0_1B-classes.zip
>
> !!Help!! I could not get these 3 from maven repo from web. Please let me
> know if these are there under some url so as to avoid the manual
> installation.
>
> Notes:
> 1>The example uses MySQL DB, with innoDB ON - to support Txn in MYSQL
> 2>Database dastest should exist with no bankaccount table. Table and data
> will be created during sample run.
> 3>For this standalone example to run, JDK's rmiregistry nees to be running
> using the jotm jars.
> rmiregistry -J-classpath -Jjotm.jar;jotm_jrmp_stubs.jar;commons-
> cli-1.0.jar;connector-1_5.jar;howl.jar;mysql-connector-java-5.0.4-bin.jar-
> J-Djava.security.policy=../conf/java.policy
>
> All the jars listed and the .policy file are available in jotm download.
>
> To run:
> java MoneyTransfer [commit|rollback] [transferAmount]
>
> Am attching standalone sample to JIRA-1665
>
> Please see if this sample is sufficient to demostrate use of DAS with TM.
> Suggestions?
>
> *****************************************************************************************
> !!HELP!!: I tried modifying das.xml for assembly to see if this runs from
> ant (build.xml) sim. to customer sample.
> I am stuck with below warning when trying
> <dependencySets>
>         <!-- DAS api impl -->
>         <dependencySet>
>             <outputDirectory>tuscany-das-${das.version
> }/lib</outputDirectory>
>             <includes>
>                 <include>org.apache.tuscany.das:tuscany-das-rdb</include>
>                 <include>jotm:jotm</include>
>             </includes>
>             <fileMode>0644</fileMode>
>         </dependencySet>
>         ................
> </assembly>
>
> [WARNING] The following patterns were never triggered in this artifact
> inclusion filter:
> o  'jotm:jotm'
>
> what I am looking for is some way to have all the dependecy jars in bin
> distro /lib so that
> the ant script can refer to it when running sample. So as of now, the
> sample is working inside
> eclipse IDE but not in bin distro
>
> Regards,
> Amita
>
> On 9/5/07, Raymond Feng <[EMAIL PROTECTED] > wrote:
> >
> > The Geronimo TM seems to be pretty compontized, see
> > http://repo1.maven.org/maven2/org/apache/geronimo/components/geronimo-transaction/2.0.1/
> > .
> >
> > There was some old code @
> > http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/transaction/transaction.geronimo/?pathrev=526883
> > .
> > It was an integration of Geronimo TM.
> >
> > Thanks,
> > Raymond
> >
> > ----- Original Message -----
> > From: Amita Vadhavkar
> > To: [email protected]
> > Sent: Tuesday, September 04, 2007 10:13 PM
> > Subject: [DAS] DAS Web Sample with Tomcat - with Transaction Manager to
> > use?
> >
> >
> > There seems to be issues with JOTM.
> > 1) It is claimed not to work with JDK5
> > 2) latest release is also quite old - May 2005
> > 3) http://static.raibledesigns.com/downloads/howto-tomcat-jotm.html-  From
> > here if the .war mentioned in the bottom of the page is used as is, it
> > works
> > with Tomcat 5.5.23
> >
> > But if I take it in eclipse and compile using JDK1.4.2_15 or JDK1.5 and
> > use
> > it on Tomcat 5.5.23, it does not work for ut.rollback() - same problem
> > as
> > mentioned in
> >
> > http://www.nabble.com/UserTransaction,-JOTM-and-Tomcat-5.5.x-t1073172.html
> >
> > Not sure which JDK is used in the downloaded .war.
> >
> > 4) http://lists.ofbiz.org/pipermail/users/2006-June/012482.html - says
> > that
> > , user needs to compile carol and jotm using JDK 5.
> >
> > I am trying that option now.
> >
> > But have another question - has anybody used Geronimo TM and will it be
> > a
> > better choice than JOTM cosidering
> > all the above issues?
> >
> > Appreciate any help.
> >
> > Regards,
> > Amita
> >
> > ---------- Forwarded message ----------
> > From: Amita Vadhavkar < [EMAIL PROTECTED] >
> > Date: Aug 31, 2007 5:44 PM
> > Subject: [DAS] DAS Web Sample with Tomcat and JOTM as Transaction
> > Manager
> > To: [email protected], [EMAIL PROTECTED]
> >
> > I am using jotm-2.0.10 and Tomcat 5.5.23.
> > The HowTo from JOTM site has a few problems and the below info worked
> > for
> > me -
> > [1]http://www.nabble.com/UserTransaction,-
> > JOTM-and-Tomcat-5.5.x-t1073172.html
> > [2]http://static.raibledesigns.com/downloads/howto-tomcat-jotm.html
> >
> > Also, as mentioned in [1] for hsql, for Derby too , I checked that
> > ut.rollback does not work (used the sample from
> > .jotm-2.0.10\examples\tomcat - tailored for Derby). So, MySQL may need
> > to be
> > used for this. With its InnoDB feature ON.
> > (Ref -
> >
> > [3]http://www.onjava.com/pub/a/onjava/2003/07/30/jotm_transactions.html?page=2
> > )
> >
> > Please see the attached screenshot and comment if something like this
> > will
> > be useful as the sample? Or some
> > different use case/example will suite better.
> >
> > Also, I am finding it quite easy to re-use the sample-ajax-das framework
> > to
> > deploy this new sample. Please advise,
> > if it should stand separate and not part of that sample. The ease in
> > re-use
> > lies in the generic -servlet, js, menu jsp
> > and service processor etc.  We can rename "sample-ajax-das" to
> > ''Advanced
> > DAS Web Sample", any better name?
> >
> > Please comment on all of the above, so I will proceed with creating the
> > required sample using your feedback.
> >
> > Regards,
> > Amita
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

Reply via email to