Thank you for your time and your responses :)
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Get-Server-Name-in-AppModule-tp5483475p5486944.html
Sent from the Tapestry - User mailing list archive at Nabble.com
> As was already mentioned, you don't have any requests on application
> start, so you can't get the request URI.
>
> And request URI (the host part of it) may be different even on the same
> application instance.
>
> You can try to get local host name like this:
>
>
> InetAddress.getLocalHost().ge
2012/2/15 Dmitry Gusev
>
> BTW, why do you need this?
>
> A common use-case is the adoption of the "sticky" load balancing feature,
when your code use a non-clustered resource on 2-N balanced servers.
in these kind of situations, you usually need to know on which server you
are running an asynchr
As was already mentioned, you don't have any requests on application start,
so you can't get the request URI.
And request URI (the host part of it) may be different even on the same
application instance.
You can try to get local host name like this:
InetAddress.getLocalHost().getHostName();
Or
>> Like Kalle said.
>>
>>
>>
>> For example, if you use WebLogic, inside the launch script you will
>> find:
>> java -DserverName=Server_1
>>
>> Almost all appServers starts through a script (on unix systems), you
>> should add it to each instance(in a cluster, i mean) if it is missing.
>
>
> I'm
> Like Kalle said.
>
>
> For example, if you use WebLogic, inside the launch script you will find:
> java -DserverName=Server_1
>
> Almost all appServers starts through a script (on unix systems), you
> should add it to each instance(in a cluster, i mean) if it is missing.
I'm wondering if he i
Like Kalle said.
For example, if you use WebLogic, inside the launch script you will find:
java -DserverName=Server_1
Almost all appServers starts through a script (on unix systems), you should
add it to each instance(in a cluster, i mean) if it is missing.
Cheers,
Giulio
elp@.apache
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Get-Server-Name-in-AppModule-tp5483475p5483541.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
//tapestry.1045711.n5.nabble.com/Get-Server-Name-in-AppModule-tp5483475p5483541.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional comman
On Tue, 14 Feb 2012 17:09:20 -0200, iberck wrote:
Hi forum:
Hi! (but this is a mailing list, not a forum).
How can I get the ServerName in AppModule when the application starts ?
I suppose I have to get form Request but I don't know how to archive it
The request is only available when a
Hi forum:
How can I get the ServerName in AppModule when the application starts ?
I suppose I have to get form Request but I don't know how to archive it
Thanks in advance
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Get-Server-Name-in-AppModule-tp5483475p54
11 matches
Mail list logo