two different things.

read-only for CMP means that updates will never happen.

read-only in jboss.xml is a container thing.  You can either mark the entire
bean read-only, which means that the bean will never do any transactional
locking, or you can do it per method.  See the JBoss for-pay docs for more
details.

Bill

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jon Swinth
> Sent: Monday, March 03, 2003 1:14 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Re: Deadlocks
>
>
> Does this mean that putting the following in the jbosscmp-jdbc.xml file
> doesn't make the beans read-only any more?
>
>     <entity>
>       <ejb-name>CarrierBeanRO</ejb-name>
>       <table-name>carrier</table-name>
>       <read-only>true</read-only>
>       <read-time-out>30000</read-time-out>
>     </entity>
>
> On Sunday 02 March 2003 06:35 pm,
> [EMAIL PROTECTED]
> wrote:
> > From: "Mauricio Hiroshi Nagaoka" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Subject: Re: [JBoss-user] Deadlocks
> > Date: Sun, 2 Mar 2003 19:00:12 -0300
> > Reply-To: [EMAIL PROTECTED]
> >
> >
> > Hi!
> >
> >
> > I didn't find any way do detect deadlocks on JBoss but you can
> change your
> > jboss.xml to tell JBoss which methods do not need an EJB lock.
> >
> >
> > In each <entity> entry in jboss.xml file, do the following
> change (in this
> > example, get* methods are read-only):
> >
> >
> > <entity>
> >     <ejb-name>Role</ejb-name>
> >     <local-jndi-name>ejb/webflow/local/Role</local-jndi-name>
> >     <!-- this tells JBoss that the get* methods are read-only -->
> >     <method-attributes>
> >         <method>
> >             <method-name>get*</method-name>
> >             <read-only>true</read-only>
> >         </method>
> >     </method-attributes>
> > </entity>
> >
> >
> > I didn't find any XDoclet @tag to do this but I coded a XSLT transform:
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> >  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
> >
> >
> >  <xsl:template match="@*|node()">
> >    <xsl:copy>
> >      <xsl:apply-templates select="@*|node()"/>
> >    </xsl:copy>
> >  </xsl:template>
> >
> >
> >  <xsl:template match="entity">
> >   <xsl:copy>
> >    <xsl:apply-templates/>
> >    <method-attributes>
> >     <method>
> >      <method-name>get*</method-name>
> >      <read-only>true</read-only>
> >     </method>
> >    </method-attributes>
> >   </xsl:copy>
> >  </xsl:template>
> >
> >
> > </xsl:stylesheet>
> >
> >
> > If you are using ant to build your project do something like this:
> >
> >
> >   <xslt in="${original.jboss.xml}" out="${modified.jboss.xml}"
> > style="${location.of.xslt.above}">
> >    <outputproperty name="method" value="xml"/>
> >    <outputproperty name="standalone" value="yes"/>
> >    <outputproperty name="encoding" value="iso8859_1"/>
> >    <outputproperty name="indent" value="yes"/>
> >    <xmlcatalog>
> >     <dtd publicId="-//JBoss//DTD JBOSS 3.0//EN"
> > location="${location.of.jboss.xml.dtd}"/>
> >    </xmlcatalog>
> >   </xslt>
> >
> >
> > The <xmlcatalog> tag above is optional. It's included here just
> to avoid a
> > remote connection for the xml validation.
> >
> >
> > I hope this helps.
> >
> >
> > Greetings from Brazil!
> >
> >
> > Mauricio
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> 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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to