When I do the following and a FinderException is thrown I get a JTM:
timeout expired message from jonas. What am I doing wrong? When an
exception is not thrown and commit gets called there is no messages from
jonas.
import java.util.*;
import javax.naming.*;
import javax.rmi.*;
import javax.transaction.*;
import com.sharkmail.*;
public class CTestTransactions
{
public static void main(String args[])
{
UserTransaction theUserTransaction = null;
try
{
Context theInitialContext = new InitialContext();
theUserTransaction = (UserTransaction)
PortableRemoteObject.narrow(theInitialContext.lookup("javax.transaction.UserTransaction"),
UserTransaction.class);
CCampaignHome theHome = (CCampaignHome)
PortableRemoteObject.narrow(theInitialContext.lookup("CCampaignHome"),
CCampaignHome.class);
theUserTransaction.begin();
Collection theCampaignList =
theHome.findByClientRSN(3);
theUserTransaction.commit();
System.out.println("I have the campaign list.");
}
catch (Exception inException)
{
inException.printStackTrace();
try
{
System.out.println("Calling Rollback.");
theUserTransaction.rollback();
}
catch (Exception inBadException)
{
inBadException.printStackTrace();
}
}
}
}
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".