简体   繁体   中英

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM