users@glassfish.java.net

Re: Glassfish embedded 3.1.1: change default IIOP port programmatically

From: Bhavanishankar <bhavanishankara.sapaliga_at_oracle.com>
Date: Thu, 18 Aug 2011 16:46:35 +0530

You can use 'asadmin set' command via CommandRunner
<http://embedded-glassfish.java.net/nonav/apidocs/org/glassfish/embeddable/CommandRunner.html>

Or you can pass your own domain.xml with modified IIOP port using
GlassFishProperties.setConfigFileURI()
<http://embedded-glassfish.java.net/nonav/apidocs/org/glassfish/embeddable/GlassFishProperties.html#setConfigFileURI%28java.lang.String%29>
API.

Those are the only two ways.

_Bhavani.

On 08/18/2011 02:40 AM, forums_at_java.net wrote:
> Hello,
>
> I work actualy with JEEUNIT for my unit test case. And I want to change
> programmatically IIOP listener port.
>
> Is it possible without changing the domain.xml file?
>
>
>
> Thanks for your help
> Regards,
>
> Sébastien
>
>
> --
>
> [Message sent by forum member 'sebglon']
>
> View Post: http://forums.java.net/node/834528
>
>

-- 
Sun, an Oracle Company