dev@glassfish.java.net

Re: Feature Announcement

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Sat, 17 Jul 2010 22:51:49 -0700

Hi Hong,

The port replication works just fine. There have been zero bugs
reported against it in the month since it was introduced in MS2. The
feature is used and exercised a LOT by the clustering infrastructure
team -- with no reported problems.

Here is an example of what it does:

<server node="vaio" node-agent-ref="vaio" name="i2" config-ref="c1-config">
<property name="rendezvousOccurred" value="true" />
<system-property name="JMX_SYSTEM_CONNECTOR_PORT" value="28687" />
<system-property name="JMS_PROVIDER_PORT" value="27677" />
<system-property name="ASADMIN_LISTENER_PORT" value="24849" />
<system-property name="HTTP_LISTENER_PORT" value="28081" />
<system-property name="IIOP_LISTENER_PORT" value="23701" />
<system-property name="IIOP_SSL_LISTENER_PORT" value="23821" />
<system-property name="HTTP_SSL_LISTENER_PORT" value="28182" />
<system-property name="IIOP_SSL_MUTUALAUTH_PORT" value="23921" />
</server>
</servers>

Thanks,

Byron

n 7/17/2010 9:02 PM, Hong Zhang wrote:
> Hi, Byron
> Even though this feature (automatic port determination) was in,
> from recent conversation with Vijay and recent experiments (a couple
> days ago), my understanding is we still need to pass in the port
> information explicitly when creating instances so the command
> replication will work as expected (due to a bug in token resolution)?
> Thanks,
>
> - Hong
>
> On 7/17/2010 2:25 PM, Byron Nevins wrote:
>> By request I'm announcing a feature that was released with MS2 (3-4
>> weeks ago).
>>
>> You don't need to specify any ports as system properties when you
>> create instances. We will do that for you automatically.
>>
>> You still are allowed to specify them if you want specific ports, but
>> you don't have to. THis is especially handy if you are a developer
>> and create instances frequently and don't care what the port values are.
>>
>> OLD:
>> asadmin create-local-instance --cluster c1 --systemproperties
>> HTTP_LISTENER_PORT=18080:HTTP_SSL_LISTENER_PORT=18181:
>> IIOP_SSL_LISTENER_PORT=13800:
>> IIOP_LISTENER_PORT=13700:JMX_SYSTEM_CONNECTOR_PORT=17676:
>> IIOP_SSL_MUTUALAUTH_PORT=13801:JMS_PROVIDER_PORT=18686:ASADMIN_LISTENER_PORT=14848
>> in1
>>
>> New:
>> asadmin create-local-instance --cluster c1 in1
>>
>> ========================
>>
>> While I'm announcing things -- restart-instance is now supported:
>>
>> asadmin restart-instance
>>
>> And you can turn on (or off) JPDA debugging like so with a restart:
>>
>> asadmin restart-instance --debug
>> asadmin restart-domain --debug=false
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188