I've new at EJBs, so please bear with me if this is a stupid question
with an obvious answer, or if its something that's already been
addressed.
I've managed to install JOnAS on a Linux system working with a
MySQL database (using the mm.sql driver).
My bean I'm toying with is an entity bean (bean managed
persistence) representing a simple customer record in a database.
My client can connect remotely and create a new customer without
a problem.
I can find customers using the find methods of my bean.
My problem occurs when I try to use the business logic methods of
the bean..even to simply getLastName() (which is just return
lastName;).. I receive the following error:
Exception in
connectionErrorOccurred:javax.transaction.SystemException:
Cannot send XA end:javax.transaction.xa.XAException
EntitySynchroImpl.considerRequest() : javax.ejb.EJBException:
ejbLoad: Cannot disable AUTO_COMMIT
EntitySynchroImpl.onException
Is this the MySQL driver which is not supporting anything except
AUTO_COMMIT, or is this something in JOnAS, or something I've
done wrong? I've tried changing my TX setting for the methods
from TX_REQUIRED to TX_NOT_SUPPORTED or
TX_BEAN_MANAGED but that just gives me a slightly different
error:
EntitySynchroImpl.considerRequest() : javax.ejb.EJBException:
ejbLoad: null
EntitySynchroImpl.onException
Here is my CustomerDD file:
EntityDescriptor {
BeanHomeName = "CustomerHome";
EnterpriseBeanClassName = com.nfolink.CustomerEJB;
HomeInterfaceClassName =
com.nfolink.CustomerHome;
RemoteInterfaceClassName = com.nfolink.Customer;
PrimaryKeyClassName = java.lang.Integer;
EnvironmentProperties = "Customer.properties";
ControlDescriptors = {
{
TransactionAttribute = TX_REQUIRED;
};
};
}
If the actual bean code will be helpful, let me know and I will post it.
Its very straight forward code.
Thanks for any assistance.
- Tim Stewart.
----
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".