From: David J. <dav...@di...> - 2002-07-20 23:02:55
|
Hmm, hadn't considered read only. I think it is better to remove the warning message or find some way of declaring the read-only-ness of some of the resources. Could you file a bug indicating that the message is not appropriate if n-1 of the n resources are read only? Otherwise I may forget. Thanks david jencks On 2002.07.15 02:48:15 -0400 Georg Schmid wrote: > > Hi, > > I am using up to three different data sources in the implementation of > my SLSB methods (tx=required). Two of them are accessed read-only using > direct JDBC calls, the remaining main datasource receives updates and > deletes through CMP. All the datasources use the local transaction > manager, because in this setup I don't really need xa/2pc. (If the > transaction crashes in the read-only datasources, no damage is done. And > for the main datasource the local transaction will be rolled back, which > sould be sufficient). > > As a am running into this scenario with more SLSB methods the warning is > issued quite often. > > My idea of getting rid of these warnings is to factor out all the > read-only JDBC access into another SLSB with a local interface and use > RequiresNew for all its methods. > > Dou you think this is a good idea? > > Georg > > > > -----Original Message----- > From: jbo...@li... > [mailto:jbo...@li...] On Behalf Of David > Jencks > Sent: Saturday, July 13, 2002 03:25 > To: jbo...@li... > Subject: Re: [JBoss-user] "You are not getting the semantics you expect" > warning > > > Not sure what happened when I sent this yesterday. > > It means there is more than one participant in a transaction where at > least one of the participants only supports local (1pc, non xa) > transactions. > Failures during the commit process will result in inconsistent results. > This is most likely to happen if you use jms and db access in the same > tx. > > david jencks > > > On 2002.07.12 16:44:55 -0400 Eric Kaplan wrote: > > "You are not getting the semantics you expect" warningcan anybody say > > what needs to be done here? > > -----Original Message----- > > From: Eric Kaplan [mailto:eri...@ar...] > > Sent: Thursday, July 11, 2002 6:29 AM > > To: jbo...@li... > > Subject: RE: [JBoss-user] "You are not getting the semantics you > > expect" > > warning > > > > > > ditto. i get the same thing. i remember david jencks saying it was > > > due to not having an xa compliant driver. i'm using oracle 8i, which > > i thought > > was an xa database, but i have the "free" version, so maybe you have > to > > pay > > money for the xa version??? > > > > "You are using a local transaction adapter, probably a non xa > > database, in a > > > > transaction with more than one resource adapter (jms message + > > database > > > > work most likely). This does not give you ACID transactions. If > > something > > > > crashes in the middle of commit you will have unrecoverable state. > > To > > > > avoid this use xa resource adapters only (probably an xa driver to > > your > > > > db). > > > > david jencks" > > > > -----Original Message----- > > From: jbo...@li... > > [mailto:jbo...@li...]On Behalf Of Burns, > Jamie > > Sent: Thursday, July 11, 2002 5:07 AM > > To: 'jbo...@li...' > > Subject: [JBoss-user] "You are not getting the semantics you > > expect" warning > > > > > > I am getting this warning in my log file . The full log entry is > > > > 2002-07-11 09:33:52,748 WARN > > [org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalCo > > nnecti > > onEventListener] prepare called on a local tx. You are not getting the > > semantics you expect! > > > > I think it is occurring in ejbStore() of a BMP entity bean. > > > > Does anybody know what it means and/or what steps l should take to > > > fix it? > > > > Thanks > > > > ********************************************************************** > > ****** > > **** > > This electronic mail system is used for information purposes and is > > not intended to form any legal contract or binding agreement. > > The content is confidential and may be legally privileged. Access > > by anyone other than the addressee(s) is unauthorised and any > > disclosure, copying, distribution or any other action taken in > > reliance on it is prohibited and maybe unlawful > > > > All incoming and outgoing e-mail communications and attachments > > are scanned automatically by software designed to detect and remove > > any material containing viruses or other unauthorised content. > While > > we undertake best endeavours to ensure that this content checking > > software is up to date, recipients should take steps to assure > > themselves > > that e-mails received are secure. > > ********************************************************************** > > ****** > > **** > > > > > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > > <HTML><HEAD><TITLE>"You are not getting the semantics you expect" > > warning</TITLE> <META content="text/html; charset=iso-8859-1" > > http-equiv=Content-Type> <META content="MSHTML 5.00.3103.1000" > > name=GENERATOR></HEAD> <BODY> > > <DIV><FONT color=#0000ff face=Arial size=2><SPAN > > class=908454420-12072002>can > > anybody say what needs to be done here?</SPAN></FONT></DIV> > > <BLOCKQUOTE style="MARGIN-RIGHT: 0px"> > > <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma > > > size=2>-----Original Message-----<BR><B>From:</B> Eric Kaplan > > [mailto:eri...@ar...]<BR><B>Sent:</B> Thursday, July 11, > > 2002 6:29 > > AM<BR><B>To:</B> jbo...@li...<BR><B>Subject:</B> > > RE: > > [JBoss-user] "You are not getting the semantics you expect" > > warning<BR><BR></DIV></FONT> > > <DIV><FONT color=#0000ff face=Arial size=2><SPAN > > class=806022610-11072002>ditto. i get the same thing. i > > remember > > david jencks saying it was due to not having an xa compliant > > driver. i'm > > using oracle 8i, which i thought was an xa database, but i have the > > "free" > > version, so maybe you have to pay money for the xa > > version???</SPAN></FONT></DIV> > > <DIV><FONT color=#0000ff face=Arial size=2><SPAN > > class=806022610-11072002></SPAN></FONT> </DIV> > > <DIV><SPAN class=806022610-11072002> > > <P><FONT size=2><FONT color=#0000ff><FONT face=Arial><SPAN > > class=806022610-11072002>"</SPAN>You are using a local transaction > > adapter, > > probably a non xa database, in a</FONT></FONT></FONT><FONT > > color=#0000ff > > face=Arial size=2></FONT></P> > > <P><FONT color=#0000ff face=Arial size=2>transaction with more than > one > > > > resource adapter (jms message + database</FONT></P> > > <P><FONT color=#0000ff face=Arial size=2>work most likely). This > > does not give > > you ACID transactions. If something</FONT></P> > > <P><FONT color=#0000ff face=Arial size=2>crashes in the middle of > > commit you > > will have unrecoverable state. To</FONT></P> > > <P><FONT color=#0000ff face=Arial size=2>avoid this use xa resource > > adapters > > only (probably an xa driver to your</FONT></P> > > <P><FONT color=#0000ff face=Arial size=2>db).</FONT></P> > > <P><FONT size=2><FONT color=#0000ff><FONT face=Arial>david > jencks<SPAN > > > class=806022610-11072002>"</SPAN></FONT></FONT></FONT></P></SPAN></DIV> > > <BLOCKQUOTE style="MARGIN-RIGHT: 0px"> > > <DIV align=left class=OutlookMessageHeader dir=ltr><FONT > face=Tahoma > > size=2>-----Original Message-----<BR><B>From:</B> > > jbo...@li... > > [mailto:jbo...@li...]<B>On Behalf Of > > </B>Burns, > > Jamie<BR><B>Sent:</B> Thursday, July 11, 2002 5:07 > AM<BR><B>To:</B> > > 'jbo...@li...'<BR><B>Subject:</B> [JBoss-user] > > > "You are > > not getting the semantics you expect" warning<BR><BR></DIV></FONT> > > <P><FONT face=Arial size=2>I am getting this warning in my log > > file . The > > full log entry is</FONT> </P> > > <P><FONT face=Arial size=2>2002-07-11 09:33:52,748 WARN > > > > [org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalCo > > nnectionEventListener] > > > > prepare called on a local tx. You are not getting the semantics > you > > expect!</FONT></P> > > <P><FONT face=Arial size=2>I think it is occurring in ejbStore() > > of a BMP > > entity bean.</FONT> </P> > > <P><FONT face=Arial size=2>Does anybody know what it means and/or > > what steps > > l should take to fix it? </FONT></P> > > <P><FONT face=Arial size=2>Thanks</FONT> </P><FONT color=blue > > > size=3><PRE>************************************************************ > ******************** > > This electronic mail system is used for information purposes and is > > not intended to form any legal contract or binding agreement. > > The content is confidential and may be legally privileged. Access > > by anyone other than the addressee(s) is unauthorised and any > > disclosure, copying, distribution or any other action taken in > > reliance on it is prohibited and maybe unlawful > > > > All incoming and outgoing e-mail communications and attachments > > are scanned automatically by software designed to detect and remove > > any material containing viruses or other unauthorised content. > While > > we undertake best endeavours to ensure that this content checking > > software is up to date, recipients should take steps to assure > > themselves > > that e-mails received are secure. > > ********************************************************************** > > ********** > > </PRE></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML> > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Gadgets, caffeine, t-shirts, fun stuff. > http://thinkgeek.com/sf _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > JBoss-user mailing list > JBo...@li... > https://lists.sourceforge.net/lists/listinfo/jboss-user > > |