on 02-27-2009 10:04 AM
i have a requirement where i need to pass the values based on DEV ,QA,PROD servers.
Initially we used to send these by assiging constant values.Now we want to retrive these values from table.For Ex In Dev sending value would be 123tst in Prod value would be 123.Also we are retriving some values from same table using JCO call,now we need extarct one more and it shud be compared with server.can we extract the server name by using JCO call..if so please let me the parameters required for the same..
OR Is there any otherway to retrieve the Hostname or application server name so that value can be sent based on that.
Regards,
Deep.
Using java code in UDF you can get HostName of Server and you can pass that information in the payload.
java.net.InetAddress.getLocalHost().getHostAddress();
Gives IP Address of the machine
java.net.InetAddress.getLocalHost().getHostName()
Gives The Host Name of the machine
Edited by: Praveen Gujjeti on Feb 27, 2009 3:40 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.