crazyStart
crazyStart

Reputation: 127

Share library among multiple application deployed in Mule esb

I have multiple application deployed in mule esb. All these application have same set of jars so I am trying to create a shared library . If I place all the jars in %mule_home%/lib/user then it works fine, but I am trying to put these jars into my custom folders.for example %mule_home%/lib/user/hibernate then I am not able to deploy my applications.

Upvotes: 1

Views: 1060

Answers (2)

Ben Asmussen
Ben Asmussen

Reputation: 994

Mule allows libraries seperation by using the domains. The application domain can be configured in mule-deploy.properties. For example:

domain=hibernate-apps

Place all your libs the needed libs into the domain folder. Has been tested with Mule 3.8.5.

Upvotes: 0

Mauro Rocco
Mauro Rocco

Reputation: 5128

Ok let's say that if you where using maven you didn't had this issue, as everything was packaged with your deploy without issues.

Anyway if this is still the way you want to go it's normal that he will not pick up on subfloder, they are not on the path.

One way you have is to create an unique jar containing all your jars and that put it in lib/users.

There is probally also another way, even if I didn't tested it and I would also not encourage. You could go play with the mule wrapper.conf and add folders to the classpath, as you can see around the line 118 of the file:

But again I do recommend you to use maven for painless (more or less) dependency management.

Upvotes: 1

Related Questions