Liping Huang
Liping Huang

Reputation: 4476

How mule invoke the component?

After go through some guides about Mule, I have a question about the component, as it is said in mule documentation,

A simple POJO (Plain Old Java Object) component that will be invoked by Mule when a message is received. The class or object instance to be used can be specified using a child object factory element, or via the 'class' attribute. If the 'class' attribute is used, an object factory cannot be configured as well. Using the 'class' attribute is equivilant to using the propotype object factory ('prototype-object' child element).

in this documentation just said the component will be invoked by Mule when a message is received, but a problem is Mule how to know how many methods the component have, and which method should be invoked? or there must one method in the component and no matter the method name? and also mule how to deal with the parameters the method have?

Upvotes: 2

Views: 2201

Answers (2)

David Dossot
David Dossot

Reputation: 33413

Alternatively, you can use:

<invoke object-ref="..." method="..."  methodArguments="..." />

which is way more convenient than configuring entry point resolvers.

Upvotes: 5

Liping Huang
Liping Huang

Reputation: 4476

yes, I got the answer, the answer is using mule entry point

Upvotes: 0

Related Questions