Maven coordinates for EJB stand-alone client?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Maven coordinates for EJB stand-alone client?

Philippe Marschall
Hi

I want to call remote EJBs from a stand alone Java SE application and
need to know the maven coordinates for the EJB stand-alone client.

Cheers
Philippe
Reply | Threaded
Open this post in threaded view
|

Re: Maven coordinates for EJB stand-alone client?

kevan
Administrator

On Apr 22, 2013, at 2:51 PM, Philippe Marschall <[hidden email]> wrote:

> Hi
>
> I want to call remote EJBs from a stand alone Java SE application and need to know the maven coordinates for the EJB stand-alone client.

The client jar is in geronimo-tomcat7-javaee6-3.0.0/repository/org/apache/openejb/openejb-client/4.0.0-beta-1/openejb-client-4.0.0-beta-1.jar of your geronimo install.

In maven terms, that's

                <groupId>org.apache.openejb</groupId>
                <artifactId>openejb-client</artifactId>
                <version>4.0.0-beta-1</version>

--kevan

Reply | Threaded
Open this post in threaded view
|

Re: Maven coordinates for EJB stand-alone client?

jlmonteiro
Try looking this page if needed http://tomee.apache.org/clients.html
That may help.

Jean-Louis


2013/4/23 Kevan Miller <[hidden email]>

On Apr 22, 2013, at 2:51 PM, Philippe Marschall <[hidden email]> wrote:

> Hi
>
> I want to call remote EJBs from a stand alone Java SE application and need to know the maven coordinates for the EJB stand-alone client.

The client jar is in geronimo-tomcat7-javaee6-3.0.0/repository/org/apache/openejb/openejb-client/4.0.0-beta-1/openejb-client-4.0.0-beta-1.jar of your geronimo install.

In maven terms, that's

                <groupId>org.apache.openejb</groupId>
                <artifactId>openejb-client</artifactId>
                <version>4.0.0-beta-1</version>

--kevan




--
Jean-Louis
Reply | Threaded
Open this post in threaded view
|

Re: Maven coordinates for EJB stand-alone client?

kevan
Administrator



On Apr 23, 2013, at 8:21 AM, Jean-Louis MONTEIRO <[hidden email]> wrote:

> Try looking this page if needed http://tomee.apache.org/clients.html
> That may help.

And there's https://cwiki.apache.org/GMOxDOC30/deploying-and-running-ejb-application-clients.html but the question was pretty specific about maven coordinates...

--kevan
Reply | Threaded
Open this post in threaded view
|

Re: Maven coordinates for EJB stand-alone client?

Philippe Marschall
In reply to this post by kevan


On 23.04.2013 14:18, Kevan Miller wrote:

>
> On Apr 22, 2013, at 2:51 PM, Philippe Marschall <[hidden email]> wrote:
>
>> Hi
>>
>> I want to call remote EJBs from a stand alone Java SE application and need to know the maven coordinates for the EJB stand-alone client.
>
> The client jar is in geronimo-tomcat7-javaee6-3.0.0/repository/org/apache/openejb/openejb-client/4.0.0-beta-1/openejb-client-4.0.0-beta-1.jar of your geronimo install.
>
> In maven terms, that's
>
>                  <groupId>org.apache.openejb</groupId>
>                  <artifactId>openejb-client</artifactId>
>                  <version>4.0.0-beta-1</version>

Ah, very cool thanks. So it's essentially the same as TomEE since they
both use OpenEJB?

I had a look at the manifest and unlike the POM it seems to additionally
depend on org.apache.geronimo.specs:geronimo-osgi-locator  and
org.apache.geronimo.specs:geronimo-osgi-registry. Do they somehow help
with using the client in OSGi (outside of Geronimo) or should I still
just set up the TCCL?

Cheers
Philippe
Reply | Threaded
Open this post in threaded view
|

Re: Maven coordinates for EJB stand-alone client?

David Blevins-2

On Apr 27, 2013, at 4:23 AM, Philippe Marschall <[hidden email]> wrote:

>
>
> On 23.04.2013 14:18, Kevan Miller wrote:
>>
>> On Apr 22, 2013, at 2:51 PM, Philippe Marschall <[hidden email]> wrote:
>>
>>> Hi
>>>
>>> I want to call remote EJBs from a stand alone Java SE application and need to know the maven coordinates for the EJB stand-alone client.
>>
>> The client jar is in geronimo-tomcat7-javaee6-3.0.0/repository/org/apache/openejb/openejb-client/4.0.0-beta-1/openejb-client-4.0.0-beta-1.jar of your geronimo install.
>>
>> In maven terms, that's
>>
>>                 <groupId>org.apache.openejb</groupId>
>>                 <artifactId>openejb-client</artifactId>
>>                 <version>4.0.0-beta-1</version>
>
> Ah, very cool thanks. So it's essentially the same as TomEE since they both use OpenEJB?
>
> I had a look at the manifest and unlike the POM it seems to additionally depend on org.apache.geronimo.specs:geronimo-osgi-locator  and org.apache.geronimo.specs:geronimo-osgi-registry. Do they somehow help with using the client in OSGi (outside of Geronimo) or should I still just set up the TCCL?

No need to pull those in if you do not want to.  Just need the openejb-client.jar and the geronimo_ejb spec jar, or alternatively the all-in-one spec jar

                <groupId>org.apache.openejb</groupId>
                <artifactId>javaee-api</artifactId>
                <version>6.0-4</version>




-David

Reply | Threaded
Open this post in threaded view
|

Re: Maven coordinates for EJB stand-alone client?

Philippe Marschall


On 27.04.2013 22:22, David Blevins wrote:

>
> On Apr 27, 2013, at 4:23 AM, Philippe Marschall <[hidden email]> wrote:
>
>>
>>
>> On 23.04.2013 14:18, Kevan Miller wrote:
>>>
>>> On Apr 22, 2013, at 2:51 PM, Philippe Marschall <[hidden email]> wrote:
>>>
>>>> Hi
>>>>
>>>> I want to call remote EJBs from a stand alone Java SE application and need to know the maven coordinates for the EJB stand-alone client.
>>>
>>> The client jar is in geronimo-tomcat7-javaee6-3.0.0/repository/org/apache/openejb/openejb-client/4.0.0-beta-1/openejb-client-4.0.0-beta-1.jar of your geronimo install.
>>>
>>> In maven terms, that's
>>>
>>>                  <groupId>org.apache.openejb</groupId>
>>>                  <artifactId>openejb-client</artifactId>
>>>                  <version>4.0.0-beta-1</version>
>>
>> Ah, very cool thanks. So it's essentially the same as TomEE since they both use OpenEJB?
>>
>> I had a look at the manifest and unlike the POM it seems to additionally depend on org.apache.geronimo.specs:geronimo-osgi-locator  and org.apache.geronimo.specs:geronimo-osgi-registry. Do they somehow help with using the client in OSGi (outside of Geronimo) or should I still just set up the TCCL?
>
> No need to pull those in if you do not want to.

The respective Import-Package headers in the manifest don't have
resolution:=optional so it has to be present when running in OSGi.

Cheers
Philippe
Reply | Threaded
Open this post in threaded view
|

Re: Maven coordinates for EJB stand-alone client?

David Blevins-2

On Apr 28, 2013, at 9:37 AM, Philippe Marschall <[hidden email]> wrote:

>
>
> On 27.04.2013 22:22, David Blevins wrote:
>>
>> On Apr 27, 2013, at 4:23 AM, Philippe Marschall <[hidden email]> wrote:
>>
>>>
>>>
>>> On 23.04.2013 14:18, Kevan Miller wrote:
>>>>
>>>> On Apr 22, 2013, at 2:51 PM, Philippe Marschall <[hidden email]> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> I want to call remote EJBs from a stand alone Java SE application and need to know the maven coordinates for the EJB stand-alone client.
>>>>
>>>> The client jar is in geronimo-tomcat7-javaee6-3.0.0/repository/org/apache/openejb/openejb-client/4.0.0-beta-1/openejb-client-4.0.0-beta-1.jar of your geronimo install.
>>>>
>>>> In maven terms, that's
>>>>
>>>>                 <groupId>org.apache.openejb</groupId>
>>>>                 <artifactId>openejb-client</artifactId>
>>>>                 <version>4.0.0-beta-1</version>
>>>
>>> Ah, very cool thanks. So it's essentially the same as TomEE since they both use OpenEJB?
>>>
>>> I had a look at the manifest and unlike the POM it seems to additionally depend on org.apache.geronimo.specs:geronimo-osgi-locator  and org.apache.geronimo.specs:geronimo-osgi-registry. Do they somehow help with using the client in OSGi (outside of Geronimo) or should I still just set up the TCCL?
>>
>> No need to pull those in if you do not want to.
>
> The respective Import-Package headers in the manifest don't have resolution:=optional so it has to be present when running in OSGi.

Ah.  Had assumed you were implying you weren't using OSGi and wanted to know if they were not needed in those scenarios.  Right, the OSGi case is documented in the manifest.

The locator and registry allow things like META-INF/javax.ejb.embeddable.EJBContainer and other similar java.util.ServiceLoader lookups to work in OSGi-land.  Many of the spec jars use these to find the respective impls, which are in different bundles.

So, yes, needed for OSGi clients.  Not needed for plain Java SE clients.


-David