[for this question - I'm looking more for a "best practices" type answer, if there is such a thing.]
I am able to auto-detect servers coming online. Network Registry emits notifications that provide information about the newly started server. For the most part, all you know about the server is its locator URI. How can I determine what "kind" of server it is? Let me define what I mean when I say "kind" of server. As an example, suppose I have two different types of server endpoints - one that processes credit card payments and one that verifies the validity of a customer's social security number (the point is, they are both very different and do different things). When one of them comes online, the Network Registry notifies me. But how do I know which server came online? How do I know that the "credit card processor server" was the one that started and not the "customer social security check" server? All I have to go on (I think) is the locator URI. Can I put my own "custom" parameters in the locator URI and use that to further identify the server endpoint? For example: socket://localhost:1234/?enableTcpNoDelay=false&servertype=CREDITCARD notice that in addition to the connector parameters (enableTcpNoDelay) I also gave it my own custom parameter (servertype=CREDITCARD). When I detect a new server, the Network Registry notification tells me the locator URI and I just search the URI's path for the parameter that tells me the kind of server it is. I actually haven't tried this yet, so I'm not even sure if this trick of adding custom params to the URI is valid, but hopefully you get my point. What is a good way to determine the KIND of server that is at a particular locator URI endpoint? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3939291#3939291 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3939291 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
