  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | | | Jboss read-only problem | Jboss read-only problem 2004-06-28 - By Balogh Zolt�n
Back Hi!
I have some entity beans controlled by one session bean. I don' t want the find and get methods in beans to take part in the transaction. I wrote some additional lines in the jboss.xml:
my session bean:
<ejb-name>ControllerBean</ejb-name> <jndi-name>MyController</jndi-name>
<method-name>get*</method-name> <read-only> true </read-only>
my entity bean:
<ejb-name>UserPermissionBean</ejb-name> <jndi-name>MyUserPermission</jndi-name>
<method-name>find*</method-name> <read-only> true </read-only>
<method-name>get*</method-name> <read-only> true </read-only>
As far as I know in this case the ejbstore method (option B) souldn't be called by the container after one get method is called by the client... Or?
I see in my logfile that the ejbstore is called immediately after get method calling and it may lead the deadlock problem.
How could I avoid calling the ejbstore in commit-option B?
Thanks in advance! Topicfun
=========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help".
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859 (See http://ISO-8859.ora-code.com)-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73"> <TITLE>Jboss read-only problem</TITLE> </HEAD> <BODY>
<P><FONT SIZE=2 FACE="Arial">Hi! </FONT> </P>
<P><FONT SIZE=2 FACE="Arial">I have some entity beans controlled by one session bean. I don' t want the find and get methods in beans to take part in the transaction. I wrote some additional lines in the jboss.xml: </FONT></P>
<P><FONT SIZE=2 FACE="Arial">my session bean: </FONT> </P>
<P><FONT SIZE=2 FACE="Arial"><ejb-name>ControllerBean</ejb-name> < /FONT> <BR><FONT SIZE=2 FACE="Arial"><jndi-name>MyController</jndi-name> < /FONT> </P>
<P><FONT SIZE=2 FACE="Arial"><method-name>get*</method-name> </FONT> <BR><FONT SIZE=2 FACE="Arial"><read-only> true </read-only> </FONT> </P> <BR>
<P><FONT SIZE=2 FACE="Arial">my entity bean: </FONT> </P>
<P><FONT SIZE=2 FACE="Arial"><ejb-name>UserPermissionBean</ejb-name> ; </FONT> <BR><FONT SIZE=2 FACE="Arial"><jndi-name>MyUserPermission</jndi-name > </FONT> </P>
<P><FONT SIZE=2 FACE="Arial"><method-name>find*</method-name> < /FONT> <BR><FONT SIZE=2 FACE="Arial"><read-only> true </read-only> </FONT> </P> <BR>
<P><FONT SIZE=2 FACE="Arial"><method-name>get*</method-name> </FONT> <BR><FONT SIZE=2 FACE="Arial"><read-only> true </read-only> </FONT> </P> <BR> <BR>
<P><FONT SIZE=2 FACE="Arial">As far as I know in this case the ejbstore method (option B) souldn't be called by the container after one get method is called by the client... Or? </FONT></P>
<P><FONT SIZE=2 FACE="Arial">I see in my logfile that the ejbstore is called immediately after get method calling and it may lead the deadlock problem. < /FONT></P>
<P><FONT SIZE=2 FACE="Arial">How could I avoid calling the ejbstore in commit -option B? </FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Thanks in advance! </FONT> <BR><FONT SIZE=2 FACE="Arial">Topicfun</FONT> </P>
</BODY> </HTML> =========================================================================== To unsubscribe, send email to listserv@(protected) and include in the body of the message "signoff J2EE-INTEREST". For general help, send email to listserv@(protected) and include in the body of the message "help". <p>
|
|
 |