admin@glassfish.java.net

Re: syncing applications

From: Hong Zhang <hong.hz.zhang_at_oracle.com>
Date: Wed, 07 Apr 2010 20:59:59 -0400

>>
>> If we move to shipping the original archive instead of all the
>> individual files, I'll still need this.
> v3/common/internal-api/src/main/java/org/glassfish/internal/deployment/GenericHandler.expand
> is how we expand the archive on server side. We could extract the
> logic here and put it in a utility method and shared between server
> and client.
Actually thinking more about this part, I think we should just let
ArchiveHandler to expand the archive. The ArchiveHandler is the one
doing the expansion on DAS and it should be used to do the expansion on
the instance side too.

There is API to find suitable ArchiveHandler based on the archive
(Deployment.getArchiveHandler), and once we have the archive handler, we
could just call its expand method to expand the archive on instance.