It is probably dying because when it calls ejbStore, it is trying to write
the database (see ejbStore below) which, in a view, is probably not
possible. You probably need to make your ejb read-only.
ejbStore
The container invokes this method on an instance to inform the instance that
the instance must
synchronize the entity state in the database with the entity state cached in
its instance variables.
Chip Whiteside
Senior Software Engineer
ADASTAR, LLC
-----Original Message-----
From: Vdaygiri, Subu [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 29, 2000 11:20 AM
To: [EMAIL PROTECTED]
Subject: CMP and Table View
I have a view which is from a SELECT query from 2 tables. I am trying to
write a container-managed (CMP) bean for that view. But I am getting these
errors when I am doing findall on that bean (ProductionView is my view in
the database)
In getallProductionView -before returning enum
ejbActivate() called.
ejbLoad() called.
getProductionID() called.
ejbStore() called.
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.RemoteException: Transaction aborted (possibly due to
transaction time out).; nested exception is:
javax.transaction.RollbackException
java.rmi.RemoteException: Transaction aborted (possibly due to transaction
time out).; nested exception is:
javax.transaction.RollbackException
javax.transaction.RollbackException
Can anybody help with this ? Has anybody done a CMP bean on a view
(basically to get around join queries) using Sun's J2EE ?
Thanks a lot,
Subu
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".