[mule-user] Multiply instances of the same Mule Service

0 views
Skip to first unread message

Denis Bessmertnyj

unread,
Sep 21, 2008, 5:03:05 AM9/21/08
to us...@mule.codehaus.org
For load balancing proposes we want to have multiply instances of the same Mule Service.
Is it possible with Mule? How to implement it?
 
 
Thanks,
 
-
Denis
 

Denis Bessmertnyj

unread,
Sep 21, 2008, 5:16:26 AM9/21/08
to us...@mule.codehaus.org
And also one additional question: if it is possible to have different instances of the same service,
how we may differentiate services intstances, i.e. for example ESB Client wanna talk to intance1 and then to intstance2,
i.e. Imagine that ESB Client will be some sort of load balancer.
Is it possible to choose desirable instance for ESB Client at runtime and make a request to it?

Denis Bessmertnyj

unread,
Sep 21, 2008, 5:42:01 AM9/21/08
to us...@mule.codehaus.org
Guys, note that we want to have multiply instances of the same serice within one Mule instance.
Is it possible with Mule?

On Sun, Sep 21, 2008 at 5:03 PM, Denis Bessmertnyj <denis.be...@gmail.com> wrote:

Dimitar Dimitrov

unread,
Sep 22, 2008, 11:20:02 AM9/22/08
to us...@mule.codehaus.org

If you use pooled component in your service, Mule will automatically create a
component pool and will dispatch requests to multiple instances as needed.
The pooling policy is configurable. You don't have control over the
individual component objects.

Alternatively, you can declare multiple services (probably with singleton or
spring-objct components) and front them with a pass-through component with
custom outbound router, which would give you explicit control over the
dispatch.
--
View this message in context: http://www.nabble.com/Multiply-instances-of-the-same-Mule-Service-tp19592696p19610168.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Antoine Borg

unread,
Sep 30, 2008, 1:39:09 AM9/30/08
to us...@mule.codehaus.org
Hi,
 
You can configure the same service twice in Mule provided that the name is different. If both instances listen on the same asynchronous endpoint, (theoretically) whichever one is free to process a message will be the one to read the next message off the queue.
 
However, Mule does not have any load balancing features so any other logic that you need will have to be coded.
 
HTH
 
Antoine Borg, Senior Consultant | Tel: +32 28 504 696 
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM
email: antoine.borg@ricston.com | blog: blog.ricston.com | web: ricston.com 
 


From: Denis Bessmertnyj [mailto:denis.be...@gmail.com]
Sent: Sunday, September 21, 2008 11:42 AM
To: us...@mule.codehaus.org
Subject: [mule-user] Re: Multiply instances of the same Mule Service

Reply all
Reply to author
Forward
0 new messages