* readonly vote.
*/
protected Object send () throws PropagationException
{
Participant part = getParticipant ();
int ret = 0;
Boolean result = null;
try {
ret = part.prepare ();
if ( ret == Participant.READ_ONLY )
result = null;
else
result = new Boolean ( true );
} catch ( HeurHazardException heurh ) {
throw new PropagationException ( heurh, false );
} catch ( RollbackException jtr ) {
// NO vote.
result = new Boolean ( false );
} catch ( Exception e ) {
// here, participant might be indoubt!
StringHeuristicMessage shm = new StringHeuristicMessage (
"Possibly heuristic participant: " + part.toString () );
HeuristicMessage[] msgs = new HeuristicMessage[1];
msgs[0] = shm;
HeurHazardException heurh = new HeurHazardException ( msgs );
throw new PropagationException ( heurh, false );