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
You've gotten it wrong. You don't find out the server name is from the
application, you tell the the application what server name you want to
use. In a generic case, it's impossible to know what the external
server name is and there are almost always multiple aliases.
Basically, you either configur
I'm sorry
Hi mailing list ;)
Where is the best plance to wait the first request in the AppModule ?
Sorry, I'm a newbie in Tap
Thank you for your response Thiago
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars
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
10 matches
Mail list logo