tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Port in Arquillian adapter
Date Mon, 19 May 2014 15:48:07 GMT
I think System.getProperty("tomee.http") would work?

Best for you is to put this port from client side (HTTPContext) in
yourextension.properties in the war then get it from TCCL.



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-05-19 17:40 GMT+02:00 Alex Soto <asotobu@gmail.com>:

> Hello I am developing an Arquillian extension and I need a way to know in
> which port has been deployed an application. When running as client, there
> is no problem because I can get the HTTPContext and get all the
> information, but when running within container, this information is not
> available. The problem is not a big problem if developer where in charge of
> defining running port, but because TomEE can be started up in random port,
> there is no way to know it for sure. Does Arquillian adapter provides any
> enrichment/util class to know this information?
>
> Thank you so much.
>
> --
> +----------------------------------------------------------+
>   Alex Soto Bueno
>   www.lordofthejars.com
> +----------------------------------------------------------+
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message