Thomas Soddemann schrieb:
> Felix Knecht wrote:
>> Hi all
>>
>> I'd like to get the port of the servlet engine (jetty/tomcat/...) where
>> cocoon-2.2 is running in (.e.g. 8888).
>> Is this possible and if so how can I get the port?
>>
>> Thanks
>> Felix
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>   
> Hi Felix,
>
> what about the getServerPort() method from javax.servlet.ServletRequest?
> Or do you need the port before are request was made? In that case I am
> curious, what is the use case?
>
Yes, I need it before a request is made.

Use case is:
I have a worker zipping files (in a cocoon application A). Another
application (B) send a jms message to the worker (A), which files shall
put into a zip file. The zip file is stored into filesystem (A) and
shall be made available for download via http. Application B receives
and acknowledge jms message containing the URI to this zip file. Thus I
need to create the URI for app B withing app A. Getting the host name
isn't a problem, but as app A can be put anywhere in any servlet engine
running on any port I need to figure out this port to be able to create
the URI which is sent back to app B.

In short:
Broadcast a jms message to create a zip file and receive a jms message
containing the (http) URI where the zip file is downloadable.

Felix


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to