开发者

Multiple JNDIs pointing to same resource on weblogic 10?

开发者 https://www.devze.com 2023-04-02 00:30 出处:网络
I want to know if there is any way a resource in weblogic can have multiple JNDI names? My problem is that I have 2 versions of the app deployed on the sam开发者_如何学Goe weblogic managed server (ve

I want to know if there is any way a resource in weblogic can have multiple JNDI names?

My problem is that I have 2 versions of the app deployed on the sam开发者_如何学Goe weblogic managed server (version A and B). Now, I want to repoint all the clients using version A (using jndi: java:comp/env/A) to version B (using jndi: java:comp/env/B) without the clients have to do anything. Clients use T3 connection to connect. Here the assumption is that the clients can point to version B without any code change (only point to the new apps jndi i.e. java:comp/env/B).

As of now all the clients update the JNDI names to the new version name and do a restart to repoint to my apps new version. I want to prevent this effort.

I think if I can make version A JNDI to also point to version B of app (so there are 2 jndi's java:comp/env/A and java:comp/env/B pointing to same EJB in version B), the clients will start pointing to version B.

So, if there is a way to add multiple JNDIs to a resource I should be good. If you have any other idea this can be acheieved, please let me know.


You would have to deploy the same EJB class with a different JNDI name - thus there will be 2 running deployments of the EJB with 2 different JNDI names.

I think this is a bad idea - I dont see why the JNDI name has to change from A to B in the first place?

Clients are using EJB A with JNDI A , you now have the different EJB version called B. Can't you just change the JNDI A to point to EJB B?

0

精彩评论

暂无评论...
验证码 换一张
取 消