A Maven repository for javax.interceptor

View: New views
7 Messages — Rating Filter:   Alert me  

A Maven repository for javax.interceptor

by Antonio Goncalves :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: A Maven repository for javax.interceptor

by Sahoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: users-help@...


Re: A Maven repository for javax.interceptor

by Felipe Gaucho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: users-help@...


Re: A Maven repository for javax.interceptor

by Antonio Goncalves :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
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@...
For additional commands, e-mail: users-help@...




--
--
Antonio Goncalves (antonio.goncalves@...)
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

Re: A Maven repository for javax.interceptor

by glassfish-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: users-help@...


Re: A Maven repository for javax.interceptor

by alexismp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... 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@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: A Maven repository for javax.interceptor

by glassfish-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My apologies. Don't know how I missed it.
[Message sent by forum member 'orid' ]

http://forums.java.net/jive/thread.jspa?messageID=371840

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...