ejb@glassfish.java.net

Re: EJB deployment question

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Thu, 25 Mar 2010 09:30:53 -0400

On Mar 24, 2010, at 7:58 PM, bea wrote:

> Hi,
>
> Thank both.
> Finally I've created an ear file with my two war modules and the EJB
> module. I've kept the local interface in order to build an EJB client
> that serves as a dependency of the web applications while compiling.
>
> I'm going to try it with a @Remote interface, to see which option
> would be the best approach, though to my knowledge, the @Remote
> interface is used when the EJB client and the EJB module are in
> different class loaders, isn't it?

It's used when you want that option, but the client can be in the same application or
in a different application. This flexibility, or location transparency, is the main advantage
of the Remote view.

>
>
>
> On Wed, Mar 24, 2010 at 9:15 PM, John Arevalo <johnarevalo_at_gmail.com> wrote:
>> You have to create a @Remote interface in order to use EJB from
>> another app in same server
>>
>> On Wed, Mar 24, 2010 at 12:14 PM, bea <beaotx_at_gmail.com> wrote:
>>> Hy all,
>>>
>>> I'm having some doubts about using EJB 3.1.
>>>
>>> First, I have a @Stateless ejb which implements a @Local interface.
>>> I've generated a jar and deployed it to a Glassfish v3 application
>>> server.
>>>
>>> Second, I have a war application deployed in the same applications server.
>>>
>>> I'd like to use my ejbs from my war, as I'll have to resuse them from
>>> other application. Is there any way to do it? As I've seen in the EJB
>>> FAQ, all I have right now doesn't work.
>>>
>>> Any help would be appreciated.
>>>
>>> Best regards.
>>>
>>> --
>>> Beatriz Nombela Escobar
>>> beaotx_at_gmail.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>>>
>>>
>>
>>
>>
>> --
>> John Arévalo
>> GNU/Linux User #443701
>> http://counter.li.org/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>>
>>
>
>
>
> --
> Beatriz Nombela Escobar
> beaotx_at_gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>