You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Thomas Termin (JIRA)" <ji...@apache.org> on 2007/03/29 14:42:35 UTC

[jira] Created: (SM-905) message filter registers predicates as mbean as well as a new predicate for on/off filtering

message filter registers predicates as mbean as well as a new predicate for on/off filtering
--------------------------------------------------------------------------------------------

                 Key: SM-905
                 URL: https://issues.apache.org/activemq/browse/SM-905
             Project: ServiceMix
          Issue Type: New Feature
          Components: servicemix-eip
            Reporter: Thomas Termin
            Priority: Minor
         Attachments: eip-message-filter.patch

Predicat MBeans are registered exactly as the endpoint just with the extension "Predicate"

Interessting is the message filter which do all with reflection and just register predicates if an MBean interface is implemented. 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SM-905) message filter registers predicates as mbean as well as a new predicate for on/off filtering

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_38925 ] 

Guillaume Nodet commented on SM-905:
------------------------------------

A few thoughts:
  * the mbean related stuff should be put upper in the class hierachy (in the Endpoint class i'd say)

  * the endpoint could define one helper method:
   
  public void registerMBean(Object implementation, Class interfaceClass, String name)
or 
  public void registerMBean(Object implementation, Class interfaceClass)

where the name could be defaulted to the interface name, minus the "MBean".

Actually the interface could be also auto detected by checking all the interfaces implemented by the object
that ends with "MBean", so the method could just be
   public void registerMBean(Object implementation)

Well, maybe the three methods can be implemented ...

That way, the endpoint could register an interface for a sub component (like the filter predicate), or for itself.
Again, this behavior could also be turned on by default (auto-discovery of interfaces implemented by the endpoint
ending with "Mbean") ...




> message filter registers predicates as mbean as well as a new predicate for on/off filtering
> --------------------------------------------------------------------------------------------
>
>                 Key: SM-905
>                 URL: https://issues.apache.org/activemq/browse/SM-905
>             Project: ServiceMix
>          Issue Type: New Feature
>          Components: servicemix-eip
>            Reporter: Thomas Termin
>            Priority: Minor
>         Attachments: eip-message-filter.patch
>
>
> Predicat MBeans are registered exactly as the endpoint just with the extension "Predicate"
> Interessting is the message filter which do all with reflection and just register predicates if an MBean interface is implemented. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SM-905) message filter registers predicates as mbean as well as a new predicate for on/off filtering

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet reassigned SM-905:
----------------------------------

    Assignee: Thomas Termin

> message filter registers predicates as mbean as well as a new predicate for on/off filtering
> --------------------------------------------------------------------------------------------
>
>                 Key: SM-905
>                 URL: https://issues.apache.org/activemq/browse/SM-905
>             Project: ServiceMix
>          Issue Type: New Feature
>          Components: servicemix-eip
>            Reporter: Thomas Termin
>         Assigned To: Thomas Termin
>            Priority: Minor
>         Attachments: eip-message-filter.patch
>
>
> Predicat MBeans are registered exactly as the endpoint just with the extension "Predicate"
> Interessting is the message filter which do all with reflection and just register predicates if an MBean interface is implemented. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.