admin@glassfish.java.net

Re: does HostAndPort need to be Serializable?

From: Bill Shannon <bill.shannon_at_oracle.com>
Date: Mon, 11 Oct 2010 16:10:04 -0700

Ludovic Champenois wrote on 10/11/10 03:43 PM:
> On 10/8/10 5:42 PM, Bill Shannon wrote:
>> The com.sun.enterprise.util.HostAndPort class, which is largely used
>> by the deployment facility, is Serializable. Anyone have any idea
>> if that's necessary? A full build and quicklook passes if I remove
>> that, so unless someone knows why it needs to be Serializable I'm
>> going to remove it. (And make the class immutable.)
> I vaguely recall the need for that within old NetBeans, when using AMX as a
> client side, as this class was returned somehow via a transitive closure of some
> client apis...
> It was GF 2 time, so I do not know if this is true in gf 3.

Hmmm... Any idea how we could find out?

Does anyone who understands the deployment facility know if this is still
an issue, e.g., with the use of JSR-88 APIs for deployment?