I'm using WebLogic 10.3.5 and JDeveloper 220.127.116.11.
I've been reading about shared libraries and production redeployment, but I have doubts on how to structure my deployments.
I have seen that it is possible to deploy a new version of an application EAR already deployed and in use without stopping the application or interrupting the application’s availability to clients. That EAR contains all necessary libraries.
I'm considering deploy those libraries as shared libraries and have an application EAR.
Is it possible in this scenario update a shared library and tell the application to take the new version without stopping the application or interrupting the application’s availability to clients?
Regarding your query:
"Is it possible in this scenario update a shared library and tell the application to take the new version without stopping the application or interrupting the application’s availability to clients?"
You can always deploy a new version of shared library without undeploying the older one. The manifest file of the shared library will have the elements like extension name, specification version and implementation version , which is read by the weblogic server during runtime when your application tries making the reference/call.
The calls will be routed to the shared library which has the highest specification/implementation version or to the recent library.
Important Note: Ensure to maintain unique Spec/Implementation version number for multiple shared libraries.
Refer to blog post - http://middlewaresupport.wordpress.com/2013/03/21/production-redeployment-feature-in-weblogic/ for details on Weblogic production redeployment feature. Let me know if you still unclear.
I have deployed a new version of my library in a WAR and no problems. Weblogic console shows the different library versions deployed, but the application that uses the library does not change. I wait to expire the page and does not change. I understand that the library and application configuration are well, since if I select the application in the console and click "update" to force it then it really get the changes, but the application's availability is interrupted...I have to do something else?
The MANIFEST file of the library is this. Is the correct way to specify versions?
It is expected that your application gets interrupted when you're updating the application with the new library.
If you don't want existing client connections to be unaffected, you need to do a side by side deployment, but that feature holding good for updating a application with the new versioned application not the shared libaries.
I see that the alternative way for you to address the issue is by building a new application with the new libaries and deploying the same with the new version number so that the existing connections to the old application will be uninterrupted and all the new requests would be routed to the newly deployed application and the old application retires as soon as it services the existing client requests.