dev@glassfish.java.net

Re: svn commit: r29623 - trunk/v3/extras/embedded: . all nucleus shell web

From: Siraj Ghaffar <Siraj.Ghaffar_at_Sun.COM>
Date: Tue, 28 Jul 2009 09:01:55 -0400

Jerome Dochez wrote:
>
> On Jul 27, 2009, at 2:25 PM, Kenneth Saks wrote:
>
>>
>> On Jul 27, 2009, at 5:17 PM, Siraj Ghaffar wrote:
>>
>>>>
>>>> Just the glassfish distribution or also the web profile distribution?
>>> both
>>>>
>>>>> This jar will go in the lib/embedded, not in modules so there is
>>>>> little bit of work in getting it into the distribution, rather
>>>>> than just adding it in pom.xml
>>>>
>>>> So if I have either distribution and I want to run an application
>>>> in glassfish embedded mode, what does the java command look like?
>>>> Is it something like this :
>>>>
>>>> java -classpath $V3_HOME/lib/embedded-shell.jar -jar myejbmodule.jar ?
>>> yes. probably more like java -classpath
>>> $V3_HOME/lib/embedded/embedded-shell.jar -jar myejbmodule.jar
>>>>
>>>>
>>>>>
>>>>> There was some discussion on additional content in shell jar
>>
>> What's in it now? Is it basically all the system code needed to run
>> any EE 6 application for the given distribution , plus the extra
>> embedded-specific classes?
> it depends on your use case...
>
> do you want to use GF in inplanted mode, meaning you are embedding
> inside your VM but you have a full fledge glassfish installation
> directory you can point to. In that case you use the
> embedded-shell.jar and you should have the entire appserver jars
> available.
> In that case myejbmodule.jar is supposed to have a main class that
> will point to the glassfish installation when invoking the embedded
> API (see the tests/embedded/inplanted tests).
>
> if you want to use GF in normal embedded mode, meaning you have no
> glassfish installation and you just expect one huge jar file, you need
> to use one of the uber jar that Siraj produces and of course you are
> limited to that uber jar content (plus whatever jar you put on the
> classpath). This is the mode that ant and maven will most likely use.
>
yes, for example, embedded ant tasks put the uber jar and the
ant-tasks.jar(that contains embedded task classes) in the classpath.
> so which one do you need/want ?
>
> jerome
>
>>
>>>>> but I am not clear on that. We can perhaps talk to Jerome
>>>>> tomorrow about it?
>>>>>
>>>>> Kenneth Saks wrote:
>>>>>>
>>>>>> On Jul 23, 2009, at 2:07 PM, Marina Vatkina wrote:
>>>>>>
>>>>>>> Hi Siraj,
>>>>>>>
>>>>>>> Will these be jars that correspond to the GF distributions? I.e.
>>>>>>> web jar will include ejb module?
>>>>>>>
>>>>>>> Will these jars be for separate downloads or part of the GF
>>>>>>> install with just refs to the actual module jars in the manifest
>>>>>>> class-path?
>>>>>>
>>>>>> Hi Siraj,
>>>>>>
>>>>>> Can you send a response to these? Marina and I are still both
>>>>>> unclear on which new .jars have to be created and by whom. Thanks.
>>>>>>
>>>>>> --ken
>>>>>>
>>>>>>>
>>>>>>> thanks,
>>>>>>> -marina
>>>>>>>
>>>>>>> sirajg_at_dev.java.net wrote:
>>>>>>>> Author: sirajg
>>>>>>>> Date: 2009-07-23 14:47:04+0000
>>>>>>>> New Revision: 29623
>>>>>>>> Added:
>>>>>>>> trunk/v3/extras/embedded/
>>>>>>>> trunk/v3/extras/embedded/all/
>>>>>>>> trunk/v3/extras/embedded/nucleus/
>>>>>>>> trunk/v3/extras/embedded/shell/
>>>>>>>> trunk/v3/extras/embedded/web/
>>>>>>>> Log:
>>>>>>>> This will have generate the different embedded jars
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail:
>>>>>>>> commits-unsubscribe_at_glassfish-svn.dev.java.net
>>>>>>>> For additional commands, e-mail:
>>>>>>>> commits-help_at_glassfish-svn.dev.java.net
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>