Steffen Busch wrote:
> Scott,
>
> could you please add this new resin:IfMBeanEnabled tag to the 
> documentation, when 4.0.7 will be released? 
> An example, would be nice too.
>
> Just fyi, this is an example how I use this two features in 3.1:
>
>
>   <resin:message>External rewrite configuration read from 
> '${__FILE__}' ...</resin:message>
>
>   <!-- Disabled Rewrite for Maintenance Reasons. This Rule can be 
> enabled with JMX, when our Application
>        will get stopped for Maintenance, but the Website and other 
> Apps remain started.
>        It's possible to stop our Application for Database Backup 
> Window and start this Rewrite Rule via JMX.
>         java -jar cmdline-jmxclient-0.10.3.jar - localhost:8666 
> resin:type=RewriteRule,Host=www.example.com 
> <http://www.example.com>,name=MaintenanceRewrite start
>    -->
>   <redirect regexp="^/our-application/(.*)$" 
> target="/scheduled-maintenance.jsp" enabled="false" 
> name="MaintenanceRewrite"/>
Here's how it would look like in Resin 4.0.7:

  <resin:Redirect regexp="..." target="/maintenance.jsp">
     <resin:IfMBeanEnabled name="Maintenance" enabled="false"/>
  </resin:Redirect>

The MBean name would be different, because the type needs to match the 
tag type. So it's
  resin:type=IfMBeanEnabled,name=Maintenance,Host=...

I've added a basic description to the reference section.

-- Scott
>
>
>
> Thanks,
> --Steffen
>
>
> ---------- Forwarded message ----------
> From: <bugtr...@caucho.com <mailto:bugtr...@caucho.com>>
> Date: 2010/5/20
> Subject: [Resin 0004042]: Rewrite: Missing two Features in 4.0
>
>
>
> The following issue has been CLOSED
> ======================================================================
> http://bugs.caucho.com/view.php?id=4042
> ======================================================================
> Reported By:                stbu
> Assigned To:                ferg
> ======================================================================
> Project:                    Resin
> Issue ID:                   4042
> Category:
> Reproducibility:            always
> Severity:                   major
> Priority:                   normal
> Status:                     closed
> Resolution:                 fixed
> Fixed in Version:           4.0.7
> ======================================================================
> Date Submitted:             05-16-2010 13:38 PDT
> Last Modified:              05-20-2010 10:16 PDT
> ======================================================================
> Summary:                    Rewrite: Missing two Features in 4.0
> Description:
> Do the Resin 4.0 rewrite capabilities support the following two extremly
> useful Features from Resin 3.1?
>
> 1)  JMX Registration using the name attribute, see here
> http://www.caucho.com/resin-3.1/doc/rewrite-tags.xtp#name
>
> 2)  enabled, see here
> http://www.caucho.com/resin-3.1/doc/rewrite-tags.xtp#enabled
> The <resin:IfCron>
> (http://caucho.com/resin-4.0/admin/reference.xtp#resin:IfCron) is not the
> same. I need to start certain rewrite rules disabled to be later on 
> enabled
> by JMX request.
>
> ======================================================================
>
> ----------------------------------------------------------------------
>  ferg - 05-20-10 10:16
> ----------------------------------------------------------------------
> server/1kz0
>
> The mbean model has changed to match the new model: 
> resin:IfMBeanEnabled is
> the tag, and it's now a general predicate instead of a top-level rewrite
> attribute.
>
> Issue History
> Date Modified   Username       Field                    Change
> ======================================================================
> 05-16-10 13:38  stbu           New Issue
> 05-16-10 13:38  stbu           Issue Monitored: stbu
> 05-20-10 10:16  ferg           Note Added: 0004603
> 05-20-10 10:16  ferg           Assigned To               => ferg
> 05-20-10 10:16  ferg           Status                   new => closed
> 05-20-10 10:16  ferg           Resolution               open => fixed
> 05-20-10 10:16  ferg           Fixed in Version          => 4.0.7
> ======================================================================
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>   



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to