ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » AMI Transactional Support

Post new topic  Reply to topic
 AMI Transactional Support « View previous topic :: View next topic » 
Author Message
ebeisher
PostPosted: Thu Nov 01, 2001 12:24 pm    Post subject: Reply with quote

Newbie

Joined: 31 Oct 2001
Posts: 3
Location: Alabama

I modified the included Java sample SendFile.java (see below) to use transactional support.

I tried both with AMT.SAMPLE.POLICY snycPoint on and off.

I get the following error:

D:MQSeriesamtsamplesjava>java SF -t SF.java
>>> START AMI Sample SF
create()
open()
SF()
>>> AMI SF experienced an Exception ...
java.lang.Exception: <<< AmError >>>
from method[begin]
of class[AmSession]
with reasonCode[54]

>>> END AMI Sample SF

I modified the SendJava code by renaming the class from SendJava. I then inserted the following line:
mySession.begin();
before the sendFile method and:
mySession.commit();
afterward.

Anyone have success with snycpointing/Java/AMI?

[ This Message was edited by: ebeisher on 2001-11-01 12:25 ]
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
bduncan
PostPosted: Thu Nov 01, 2001 5:58 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

My first question would be whether or not you are using 2-phase commits under XA? Because if you aren't, you don't need to issue the begin command. As soon as you do an MQGET or MQPUT while specifying syncpointing, a new unit of work should begin. It will continue to grow with subsequent GETs and PUTs, and will be completed once a commit or backout is issued. You only need to issue a begin if you are doing resource coordination with an external system (like a database)...


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
ebeisher
PostPosted: Thu Nov 01, 2001 6:22 pm    Post subject: Reply with quote

Newbie

Joined: 31 Oct 2001
Posts: 3
Location: Alabama

Thank you. I took out the begin and it works.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » AMI Transactional Support
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.