Re: JOnAS 5.2 M5 @Singleton

Florent BENOIT <[email protected]> Fri, 11 Mar 2011 09:52:57 +0100
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <[email protected]>
    Hi Hans,

By default EJB 3.1 API is not added to the classpath in order to remain 
Java EE 5 certified.

Here is a maven dependency that you could use in your Eclipse project :

    <dependency>
      <groupId>org.ow2.spec.ee</groupId>
      <artifactId>ow2-ejb-3.1-spec</artifactId>
      <version>${ow2-spec.version}</version>
    </dependency>

with ${ow2-spec.version} = 1.0.6


You may create a JIRA issue in order that we add in JONAS_ROOT/lib/ 
folder the jar file.

Regards,

Florent


Hans J. Prueller wrote:
> Hi all,
>
> I just upgraded to JOnAS 5.2.0-M5 to try out the EJB-Singleton Feature 
> as announced.
>
> When I try to add the @Singleton Annotation to my SLSB, I only have 
> javax.inject.Singleton available in my classpath
>
> but javax.ejb.Singleton is missing.
>
> I am using Eclipse and have JONAS_BASE/lib/client.jar in my classpath.
>
>
> What else do I have to add to get the javax.ejb.Singleton annotation 
> available for my project ?
>
>
> regards,
> Hans
>