crazyStart February 2016

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.

Answers


Mauro Rocco February 2016

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.

Post Status

Asked in February 2016
Viewed 3,221 times
Voted 13
Answered 1 times

Search




Leave an answer