So I'm guessing the approach I'm trying with Quartz won't work.
Basically, the only way I could see getting it to work was creating
an HTTP consumer that receives the user's request and uses a
destination service that appears as follows:
<beans xmlns:quartz="http://servicemix.apache.org/quartz/1.0"
xmlns:tp="http://www.mediaspansoftware.com/transporter">
<quartz:endpoint service="tp:trigger" endpoint="endpoint"
targetService="tp:poller">
<quartz:trigger>
<quartz:simple repeatCount="0" repeatInterval="1000" />
</quartz:trigger>
</quartz:endpoint>
</beans>
I've not been able to see if it works or not because I'm getting an
odd exception when ServiceMix starts up with my task's service assembly:
WARN - DefaultBroker - ServiceName ({http://
www.mediaspansoftware.com/transporter}poller) specified for routing,
but can't find it registered
But in fact that exact service appears in the "Endpoints" section
when I look using the JMX console. Might the exception be because
it's a consumer and not a provider?
Again, thanks for all your help and comments.
-Scott
On May 21, 2007, at 3:34 AM, Guillaume Nodet wrote:
We have already discussed the same need several times on this list.
I think it would be solved by adding a poller endpoint that acts as a
provider and not a consumer: i.e. it would actively poll a destination
for a single file (or maybe return the list of available files).
This could
also be used with dynamic endpoints (currently, consumers can not
be created dynamically).
This is the only real way to solve the problem correctly imho, but
noone
has been interested enough to start contributing something it seems.
It you are interested, i'd be happy to give you all the needed
informations.
On 5/18/07, Bruce Snyder <[EMAIL PROTECTED]> wrote:
On 5/18/07, Scott Johnson <[EMAIL PROTECTED]> wrote:
>
> Given a service assembly that appears like this:
>
> FtpPoller -> Pipeline EIP -> RoutingSlip EIP -> (n
custom SEs)
>
> We have a scenario where a customer would want to specify the
period
> at which the FTP poller would grab files from the specified FTP
host.
>
> However, we also have the requirement to let the customer "fire"
off
> that very same process at their whim, regardless of the configured
> period.
>
> Is there a way to cause the poller to do it's thing using the same
> service assembly or would I have to "on-the-fly" write out a new
> assembly to cause it to happen?
This could probably be achieved using the servicemix-quartz
component:
http://incubator.apache.org/servicemix/servicemix-quartz.html
Bruce
--
perl -e 'print
unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/
--
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/
Scott Johnson, Software Developer
MediaSpan Media Software
[EMAIL PROTECTED]