dev@glassfish.java.net

Re: [v3 action] pom.xml and osgi.bundle review reqeust

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Mon, 06 Jul 2009 11:41:24 -0500

Sahoo wrote:
> In general, there should not be a direct dependency on kernel. Can you
> explain why you want such a dependency?
Yes.

To support Java Web Start for app clients the AppClientDeployer injects
GrizzlyService so it can register and unregister GrizzlyAdapters.

That's how I understood this is done. Is there an alternative?

- Tim
>
> Thanks,
> Sahoo
>
> Tim Quinn wrote:
>> Hi.
>>
>> Adding Java Web Start support to server-side app client deployment,
>> etc. This involves adding a new exported package
>> org.glassfish.appclient.server.core.jws and adding a dependency on
>> core/kernel to the server-side pom.
>>
>> Thanks.
>>
>> - Tim
>>
>>
>>
>>
>>
>> Index: ../../../appclient/server/core/osgi.bundle
>> ===================================================================
>> --- ../../../appclient/server/core/osgi.bundle (revision 28532)
>> +++ ../../../appclient/server/core/osgi.bundle (working copy)
>> @@ -1 +1,3 @@
>> --exportcontents: org.glassfish.appclient.server.core;
>> version=${project.osgi.version}
>> +-exportcontents: \
>> + org.glassfish.appclient.server.core; \
>> + org.glassfish.appclient.server.core.jws;
>> version=${project.osgi.version}
>> Index: ../../../appclient/server/core/pom.xml
>> ===================================================================
>> --- ../../../appclient/server/core/pom.xml (revision 28532)
>> +++ ../../../appclient/server/core/pom.xml (working copy)
>> @@ -98,5 +98,11 @@
>> <artifactId>appclient-connector</artifactId>
>> <version>${project.version}</version>
>> </dependency>
>> +
>> + <dependency>
>> + <groupId>org.glassfish.core</groupId>
>> + <artifactId>kernel</artifactId>
>> + <version>${project.version}</version>
>> + </dependency>
>> </dependencies>
>> </project>