On 8/8/07, Gert Vanthienen <[EMAIL PROTECTED]> wrote:
> Guillaume,
>
> I was thinking about creating a generic archiving service, which would
> be able to keep an archive of every message that has been processed by
> ServiceMix for auditing purposes (and e.g. to be able to re-send it when
> necessary).  In this use case, it would be very useful to have a single
> point of configuration instead of having to configure the archive flag
> over and over again on all the consumer endpoints in an application.

You mean a file based implementation of servicemix-audit ?
See 
http://incubator.apache.org/servicemix/dist/servicemix-3.1-incubating/site/core/servicemix-audit/apidocs/org/apache/servicemix/jbi/audit/AuditorMBean.html

>
> But this is probably an entirely different requirement than the one
> expressed by this user.  I'll add an 'archive' attribute to the poller
> endpoint to refer to the archiving directory for this issue.  Is this
> something to backport to 3.1.2-SNAPSHOT as well?

I think we should only backport bug fixes, do you ?
But I'm open to discuss that, especially given the long release cycle
we have (we really need to do something about that, btw).

>
> Gert
>
>
> Guillaume Nodet wrote:
> > It should be quite easy to write a TeeInputStream that would write to
> > an OutputStream each time a charachter is read from the input stream.
> > However, the content of the NormalizedMessage is a Source and may not
> > be a stream.
> >
> > However, I think it would be easier to put this feature inside the BC
> > rather than in an intermediate (a ExchangeListener on the container?).
> >  Well, at least, it would be easier to configure as a simple flag on
> > the endpoint could work.  If we use a single listener, we will have to
> > configure on the main servicemix.xml configuration file or register it
> > dynamically (from were?) ...
> >
> > On 8/8/07, Gert Vanthienen (JIRA) <[EMAIL PROTECTED]> wrote:
> >
> >>     [ 
> >> https://issues.apache.org/activemq/browse/SM-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_39880
> >>  ]
> >>
> >>
> >> Gert Vanthienen commented on SM-990:
> >> ------------------------------------
> >>
> >>
> >> I was thinking about some kind of WireTap (implemented as an Auditor to 
> >> easily apply it to all message), but I suppose you're worrying about the 
> >> fact that we need to ensure re-readability of the stream for this.  Would 
> >> it be possible to 'decorate' the NormalizedMessage somehow, so it  can 
> >> intercept when bytes are read from the inputstream by the provider and do 
> >> the archiving on-the-fly?
> >>
> >>
> >>> FilePoller with Archiving
> >>> -------------------------
> >>>
> >>>                 Key: SM-990
> >>>                 URL: https://issues.apache.org/activemq/browse/SM-990
> >>>             Project: ServiceMix
> >>>          Issue Type: Improvement
> >>>          Components: servicemix-components, servicemix-file
> >>>    Affects Versions: 3.1
> >>>            Reporter: Juergen Mayrbaeurl
> >>>            Priority: Minor
> >>>
> >>> The various FilePoller implementations should archive the files before 
> >>> deleting them (e.g. by copying them to another directory)
> >>>
> >> --
> >> This message is automatically generated by JIRA.
> >> -
> >> You can reply to this email to add a comment to the issue online.
> >>
> >>
> >>
> >
> >
> >
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to