Henk wrote:
<warning : newbie question>
Hi,
I was wondering of I could use Servicemix as some sort of (very)
advanced scheduler.
Absolutely :)
What we want to do is to execute system calls cronlike, or when a JMS
message arrives, but also be able to run a method on a class in these
cases.
Sounds great. The timers are there (currently Quartz, we should add a
more simple J2EE WorkManger based timer too). Plus all the various
inbound even sinks etc.
Then its up to you to define what the task is; a script, a Drools rule
base, a service hosted in some SOAP stack (Axis, ActiveSOAP, XFire etc).
We've also a simple reflection component for hosting POJOs.
I think Servicemix can do this, but what if I want to be able to add,
let's call it a task, while it is running ? Ideally, without restarting
the server. The ultimate thing would be that I could make a
webinterface for adding new tasks.
Sorry if I am still somewhat confused about Service Busses, so maybe
Servicemix is not meant to do this (only connect different systems to
each other).
No worries :)
JBI is actually designed to allow you to hot deploy service assemblies
and components. So you could, say, deploy a specific version of the PXE
BPEL engine (one specific JBI component) at runtime, then at any point
in time deploy specific business processes (e.g. jars containing BPEL
documents) into the container while the system is running - then hot
swap things out and in at runtime.
ServiceMix has a bunch of Ant tasks (defined in the JBI specification)
to allow you to hot deploy JBI deployment units whenever you like.
Also we support lightweight Spring deployment too, so you could just
spin up a new component via a spring.xml if you prefer - though that
would be ServiceMix specific. (We're also working to make a set of
standard JBI components for working nicely with Spring)
--
James
-------
http://radio.weblogs.com/0112098/