Re: Get Server Name in AppModule

2012-02-15 Thread iberck
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

Re: Get Server Name in AppModule

2012-02-15 Thread Markus Grell
> 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

Re: Get Server Name in AppModule

2012-02-15 Thread Giulio Micali
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

Re: Get Server Name in AppModule

2012-02-15 Thread Dmitry Gusev
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

Re: Get Server Name in AppModule

2012-02-14 Thread Markus Grell
>> 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

Re: Get Server Name in AppModule

2012-02-14 Thread Markus Grell
> 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

Re: Get Server Name in AppModule

2012-02-14 Thread Giulio Micali
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

Re: Get Server Name in AppModule

2012-02-14 Thread Kalle Korhonen
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. > >

Re: Get Server Name in AppModule

2012-02-14 Thread iberck
//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

Re: Get Server Name in AppModule

2012-02-14 Thread Thiago H. de Paula Figueiredo
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

Get Server Name in AppModule

2012-02-14 Thread iberck
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