[jboss-dev-forums] [Design of JBoss ESB] - Re: Registry unRegisterService

krzych_PL do-not-reply at jboss.com
Thu Jan 10 05:31:47 EST 2008


OK. But what about situation when I have some service (let's call it service A) with ERPs A1 and A2. I want to replace this service by new version with different EPRs (A3 and A4). Of course it will work during "normal" server work. But what will happen in case when:

1. Start server
2. Deploy 1st version of service A (EPRs: A1 and A2)
3. Server crash
4. Replace service by 2nd version (EPRs: A3 and A4)
5. Start server

Server will register EPRs A3 and A4, but what about old (incorrect) EPRs A1 and A2)? Registry doesn't know that registering A3 and A4 means registering service A again. If we have registerService method in Registry interface (for example with List of EPRs as parameter, or with only first EPR as parameter) we could delete incorrect EPRs in such case.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118569#4118569

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118569



More information about the jboss-dev-forums mailing list