timpham
timpham

Reputation: 565

Mule ESB access to Service

Is there a way for me to access a Mule service, programmatically, similar to the way we get access to a Spring bean via Spring container?

Something like

Service s = .....getService("Service1");

<model>
  <service name="Service1">
    <inbound>
...

Upvotes: 1

Views: 67

Answers (1)

timpham
timpham

Reputation: 565

Got it.

Service service1 = muleContext.getRegistry().lookupService("Service1");

Upvotes: 1

Related Questions