on 11-22-2008 7:15 PM
Hi java gurus!
We are on the way of testing failover functions of j2ee applications by killing j2ee server process ....
And, first of all we should exactly know on which cluster nodes apllication is running.
Further, how to get to know where j2ee application is running if It was launched via SAP WEB Dispatcher?
With best regards,
Vladimir
Please, any ideas ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Who wants to know the server node? The application or the enduser?
Enduser: enter j a v a s c r i p t : a l e r t ( d o c u m e n t . c o o k i e ) into your adress bar. (without the white spaces, of course)
The server node is the value of the cookie saplb_*
Application: well, there is an API, but according to the spec, an application shouldn't depend on that information
Cheers, Karsten
Hi Karsten,
thank you for the answer!
Information is needed for me - J2EE Administrator. And I just need to know whether application is running on server0 or server1, and which host...
So It could be done just via parsing of cookie files? By default any j2ee application (user apllcations) is obliged to write there such information? What If I've just launched such a webDynPro, and It did'nt produced any cookies?
Best regards,
Vladimir
Hi Vladimir.
The saplb_* cookie is always there, no matter what kind of application you run.
It's the load balancing identifier:
http://help.sap.com/saphelp_nw70/helpdata/DE/f2/d7914b8deb48f090c0343ef1d907f0/frameset.htm
Cheers, Karsten
In NW 7.1 there exists also another way, at least in development systems:
Press CTRL-Alt Right-Click in the application window and select the context menu entry "Technical Info". In the popup window there is a tab "System Information" (not in production systems!). In that tab you find several infos about the system and especially a line like
Server node ID: |329582850|3295828|Server 00 32_3295828|>servername>/<ip-address>|SERVER|RUNNING
Armin
Respect to everyone involved in the discussion!
Finally, I've found out the id of j2ee's node in HttpFox plugin of Mozilla browser from the Cookie being sent:
saplb_* (J2EE5368000)5368050 End Of Session
JSESSIONID (J2EE5368000)ID0602844950DB11459898637670928245 End Of Session
Best regards,
Vladimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.