The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: A Maven repository for javax.interceptor

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 6 - Last Post: Nov 14, 2009 10:46 AM by: orid Threads: [ Previous | Next ]
Antonio Goncalves
A Maven repository for javax.interceptor
Posted: Nov 6, 2009 1:03 PM
  Click to reply to this thread Reply
Attachment att1.html (3.0 K)

Hi,

Now that the interceptor is a seperate spec (still bundled with EJBs, but a
seperate spec) which also workd with ManagedBeans, I was excepting to
see a javax.interceptor
repository under http://download.java.net/maven/glassfish/org/glassfish/ (a
bit like javax.annotation). But it's not the case.

I'm developing a javax.annotation.ManagedBean and I use an interceptor. It's
a bit frustrating to have a dependency to javax.ejb when I just want to use
an interceptor for a ManagedBean.

Will this separate javax.interceptor be created or it will stay with javax.ejb
?

Thanks,
Antonio
[att1.html]


Sahoo
Re: A Maven repository for javax.interceptor
Posted: Nov 6, 2009 8:24 PM   in response to: Antonio Goncalves
  Click to reply to this thread Reply

You should not be depending on javax.ejb and nor should you use
javax.interceptor even if it were available. To compile your code, you
should be using a different dependency for Java EE APIs.
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Ludo,

Which repo has this artifact? Is there a non-SNAPSHOT version?

Sahoo
Antonio Goncalves wrote:
> Hi,
>
> Now that the interceptor is a seperate spec (still bundled with EJBs,
> but a seperate spec) which also workd with ManagedBeans, I was
> excepting to see a javax.interceptor repository under
> http://download.java.net/maven/glassfish/org/glassfish/ (a bit like
> javax.annotation). But it's not the case.
>
>
> I'm developing a javax.annotation.ManagedBean and I use an
> interceptor. It's a bit frustrating to have a dependency to javax.ejb
> when I just want to use an interceptor for a ManagedBean.
>
>
> Will this separate javax.interceptor be created or it will stay with
> javax.ejb ?
>
>
> Thanks,
> Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


Felipe Gaúcho
Re: A Maven repository for javax.interceptor
Posted: Nov 7, 2009 12:20 AM   in response to: Sahoo
  Click to reply to this thread Reply

IMO: SUN definitely should publish a complete and updated list of
Maven dependencies for all its products...

The frequency of questions about that in the Java mailing lists is
enormous.. and a clear Glassfish Maven page should promote and
facilitate the adoption of Glassfish technologies ...

I opened an issue here:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=10225

Community: if you agree this is a good idea, please vote on this issue
to help SUN people to allocate resources on this...

* Better yet if such a list is updated automatically as soon a new
version is available...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


Antonio Goncalves
Re: A Maven repository for javax.interceptor
Posted: Nov 7, 2009 4:23 AM   in response to: Sahoo
  Click to reply to this thread Reply
Attachment att1.html (3.0 K)

Hum... that's a bit of a shame. The entire message with Java EE 6 is
modularity, extensibility... I like the idea of just having to depend on
what I need. If the only choice is javaee-api, the modularity message is
lost. I think javaee-api is very useful, but also having separate artifacts
would help.

My 2 ents

Antonio

2009/11/7 Sahoo <Sahoo@sun.com>

> You should not be depending on javax.ejb and nor should you use
> javax.interceptor even if it were available. To compile your code, you
> should be using a different dependency for Java EE APIs.
> <dependency>
> <groupId>javax</groupId>
> <artifactId>javaee-api</artifactId>
> <version>6.0-SNAPSHOT</version>
> <scope>provided</scope>
> </dependency>
>
> Ludo,
>
> Which repo has this artifact? Is there a non-SNAPSHOT version?
>
> Sahoo
>
> Antonio Goncalves wrote:
>
>> Hi,
>>
>> Now that the interceptor is a seperate spec (still bundled with EJBs, but
>> a seperate spec) which also workd with ManagedBeans, I was excepting to see
>> a javax.interceptor repository under
>> http://download.java.net/maven/glassfish/org/glassfish/ (a bit like
>> javax.annotation). But it's not the case.
>>
>>
>> I'm developing a javax.annotation.ManagedBean and I use an interceptor.
>> It's a bit frustrating to have a dependency to javax.ejb when I just want to
>> use an interceptor for a ManagedBean.
>>
>>
>> Will this separate javax.interceptor be created or it will stay with
>> javax.ejb ?
>>
>>
>> Thanks,
>> Antonio
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>


--
--
Antonio Goncalves (antonio.goncalves@gmail.com)
Software architect

Web site : www.antoniogoncalves.org
Blog: agoncal.wordpress.com
Feed: feeds2.feedburner.com/AntonioGoncalves
Paris JUG leader : www.parisjug.org
LinkedIn: www.linkedin.com/in/agoncal
[att1.html]


orid

Posts: 5
Re: A Maven repository for javax.interceptor
Posted: Nov 14, 2009 4:37 AM   in response to: Sahoo
  Click to reply to this thread Reply

This artifact does not contain javax.annotation.ManagedBean

Alexis Moussine...
Re: A Maven repository for javax.interceptor
Posted: Nov 14, 2009 7:59 AM   in response to: orid
  Click to reply to this thread Reply

I just grabbed it now and can see it there:

% jar tvf ~/.m2/repository/javax/javaee-api/6.0-SNAPSHOT/javaee-
api-6.0-SNAPSHOT.jar | grep ManagedBean
453 Wed Nov 04 10:15:14 CET 2009 javax/annotation/ManagedBean.class
442 Wed Nov 04 10:15:14 CET 2009 javax/enterprise/inject/spi/
ProcessManagedBean.class
535 Wed Nov 04 10:15:12 CET 2009 javax/faces/bean/ManagedBean.class

Not sure why you are not seeing it.
-Alexis

On Nov 14, 2009, at 13:37, glassfish@javadesktop.org wrote:

> This artifact does not contain javax.annotation.ManagedBean
> [Message sent by forum member 'orid' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=371816
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


orid

Posts: 5
Re: A Maven repository for javax.interceptor
Posted: Nov 14, 2009 10:46 AM   in response to: Alexis Moussine...
  Click to reply to this thread Reply

My apologies. Don't know how I missed it.




 XML java.net RSS