dev@glassfish.java.net

Re: [embedded] EmbeddedDeployer

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Mon, 18 May 2009 09:12:02 -0700

On May 15, 2009, at 11:08 AM, Arun Gupta wrote:

> CCing dev_at_glassfish
>
> Jerome,
>
> Any idea about the questions below on EmbeddedDeployer ?
>
> -Arun
>
> Siraj Ghaffar wrote:
>> Hi Arun,
>> Jerome was working on the API, so he would probably be able to
>> answer both your questions. The API would have some more additions/
>> changes, and yes there should be some way of getting to the
>> deployer, unless Jerome had something else in mind.
>> --Siraj
>> Arun Gupta wrote:
>>> Siraj,
>>>
>>> Looked at the new APIs and couple of questions ...
>>>
>>> 1). I think creating a Server from ServerInfo is not intuitive. Do
>>> you know of any precedents ?

not sure what you mean here... Server server = serverInfo.create(); is
the API, is this the non intuitive part ?

>>>
>>> 2). How do I deploy the archive now ? Server.getDeployer() is not
>>> available.

yeah the API is far from complete but it should look like this :

// default server configuration
ServerInfo info = ServerInfo.getServerInfo("MyEmbeddedGF");

// configure and add the web container, with port 8080
WebContainer web =
server.addContainer(server.createConfig(WebContainerInfo.class));
web.setHttpPort(server.createPort("8080"));

// deploy the app to any configured embedded container...
server.getDeployer().deploy("foo.war");


>>>
>>> -Arun
>>>
>>> Siraj Ghaffar wrote:
>>>>
>>>> I checked in the javadocs at https://embedded-glassfish.dev.java.net/nonav/v3-final-api/apidocs/
>>>> Look for org.glassfish.api.embedded - this javadocs has all the
>>>> glassfish-api, since that's where I can run mvn from. I need to
>>>> filter out the non-embedded classes.
>>>>
>>>>
>>>>
>>>> Jennifer Chou wrote:
>>>>> You need do svn co https://svn.dev.java.net/svn/embedded-glassfish
>>>>>
>>>>> And I forwarded email earlier from Byron on how to update the
>>>>> javadocs. But don't follow it exactly or you'll overwrite the
>>>>> existing javadocs for prelude.
>>>>> You can create a new folder and link for the v3 javadocs.
>>>>>
>>>>> Jennifer
>>>>>
>>>>> Siraj Ghaffar wrote:
>>>>>>
>>>>>> Any one knows how to publish on https://embedded-glassfish.dev.java.net
>>>>>> ?
>>>>>>
>>>>>>
>>>>>> Arun Gupta wrote:
>>>>>>> It's slow but up.
>>>>>>>
>>>>>>> Can you upload the javadocs ?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> -Arun
>>>>>>>
>>>>>>> Siraj Ghaffar wrote:
>>>>>>>> Nazrul Islam wrote:
>>>>>>>>>
>>>>>>>>> Is it possible to publish the new Javadocs somewhere and
>>>>>>>>> link from Embedded GlassFish project (https://embedded-glassfish.dev.java.net/)?
>>>>>>>>>
>>>>>>>>> GFv3 Prelude Javadocs are here: https://embedded-glassfish.dev.java.net/nonav/gf-embedded-api/apidocs/
>>>>>>>>>
>>>>>>>> https://embedded-glassfish.dev.java.net/ is down. When it
>>>>>>>> comes up, I'll put it up there.
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_embedded-glassfish.dev.java.net
>>>>>>>> For additional commands, e-mail: dev-help_at_embedded-glassfish.dev.java.net
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_embedded-glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_embedded-glassfish.dev.java.net
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_embedded-glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_embedded-glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_embedded-glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_embedded-glassfish.dev.java.net
>>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_embedded-glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_embedded-glassfish.dev.java.net
>
> --
> Application Platform, Sun Microsystems, Inc.
> Blog: http://blogs.sun.com/arungupta
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>