Hello all:
I am using JOnAS 1.2 with RMI and getting an Exception when multiple clients
try
to access the same Entity Bean at the same time. Most of my Entitiy beans
contain
data which clients get/access not set. I need the Jonas to "BLOCK" instead
of failing while
other clients are invoking a method.
Is this a known bug or limitation with EJBs or Jonas?
Is there a way to make it block???
Thanks....
Here is the Exception I get:
Error: java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
java.rmi.RemoteException: Failed to read bean
java.rmi.RemoteException:
Failed to read bean, Not Found
java.rmi.ServerException: RemoteException occurred in server thread; nested
exception is:
java.rmi.RemoteException: Failed to read bean
java.rmi.RemoteException:
Failed to read bean, Not Found
java.rmi.RemoteException: Failed to read bean java.rmi.RemoteException:
Failed to read bean, Not Found
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:354)
at
org.objectweb.jonas.rmifilters.RemoteStub.invoke(RemoteStub.java:88)
at
com.ball.ads.ejb.enterprise.JOnASEnterpriseBeanEnterprise_Stub.getName(src\c
om\ball\ads\ejb\enterprise\JOnASEnterpriseBeanEnterprise_Stub.java:781)
at com.ball.ads.ejb.base.TestBean.main(TestBean.java:48)
Here is my example old Descriptor:
EntityDescriptor {
BeanHomeName = "EnterpriseHome";
EnterpriseBeanClassName = com.ball.ads.ejb.enterprise.EnterpriseBean;
HomeInterfaceClassName = com.ball.ads.ejb.enterprise.EnterpriseHome;
RemoteInterfaceClassName = com.ball.ads.ejb.enterprise.Enterprise;
ControlDescriptors =
{
{
IsolationLevel = TRANSACTION_READ_UNCOMMITTED;
RunAsMode = SPECIFIED_IDENTITY;
TransactionAttribute = TX_NOT_SUPPORTED;
};
};
PrimaryKeyClassName = com.ball.ads.share.ADSKey;
Reentrant = true;
}
Here is my example client program which I can run multiple of on the
same/different machines:
public class TestBean {
public static void main(String args []) {
System.out.println("Testing Entity Bean for Block on client");
try {
ADSObject o = EjbUtil.find( new
ADSKey("EnterpriseHome.NoCommunity.950993925687") );
while (true) {
System.out.println("Name: " + o.getName() );
}
} catch (Exception e) {
System.out.println("Error: " + e);
e.printStackTrace(System.out);
}
}
}
Thanks
Ty Hayden
begin 600 Ty Hayden.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DAA>61E;CM4>0T*1DXZ5'D@
M2&%Y9&5N#0I/4D<Z0F%L;"!!97)O<W!A8V4@)B!496-H;F]L;V=I97,@0V]R
M<&]R871I;VX[,30V,3`Q,#$-"E1%3#M73U)+.U9/24-%.B@Y,S<I(#,R,"TT
M,#4P#0I414P[4%)%1CHH.3,W*2`S,C`M-#`U,`T*0412.U=/4DLZ.SL[.T]H
M:6\-"DQ!0D5,.U=/4DLZ3VAI;PT*14U!24P[4%)%1CM%6#HO;SU"04Q,+V]U
M/41!651/3B]C;CU296-I<&EE;G1S+V-N/71H87ED96X-"E)%5CHQ.3DY,3$P
6-%0Q-3(X,CE:#0I%3D0Z5D-!4D0-"@==
`
end
----
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".