Help

The first early draft[1] is now available! Please send comments to jsr-299-comments(AT)jcp.org. We really /do/ pay attention to community feedback, so if you take the time, it won't be wasted!

(The JCP site is currently experiencing technical difficulties, so we're making the spec available for download here, temporarily.)

I would like to give a huge thanks to everyone on the expert group who helped get us this far. I know it's inelegant to single out individuals, but since it is rare to see people (especially individual JCP members) recognized for their contributions to spec groups, I'm going to do it anyway. Extra special thanks to:

  • Bob Lee
  • Linda DeMichiel
  • Jacob Hookom
  • Adam Winer
  • Michael Youngstrom
  • Richard Kennard
  • Conny Lundgren
  • Roger Kitain
  • Chris Maki

Let us know what you think!

19 comments:
 
19. Oct 2007, 14:36 CET | Link
Ivan

Looks very promising, but I realise that there is a fundamental idea of using annotations in a way that is different from Seam there. Honestly, I couldn't grasp it after the first read (maybe because it is too simple after all these years), maybe there is info on this topic somewhere?

 
19. Oct 2007, 15:06 CET | Link

Yes, Seam followed JSF in using string-based identifiers for injection. Web Beans follows Guice in this respect, and uses typesafe identifiers.

 
19. Oct 2007, 15:48 CET | Link
Ivan

Nice. Is there already any project to implement this JSR that you know of?

 
20. Oct 2007, 00:43 CET | Link

I have made some initial babysteps on the RI / TCK, but we've got a long way to go before anything usable comes out of that :-)

 
20. Oct 2007, 19:33 CET | Link

I will really like to have the basic Annotations as java code. I want to visualize the usage and readability in my code when using them. Can you provide them on some form?

 
20. Oct 2007, 20:10 CET | Link
Ivan

The API is not settled down yet either, is it?

 
20. Oct 2007, 20:14 CET | Link
Ivan

By the way, I tried to mimic this annotation stuff in eclipse and it was really tiresome to define @RetentionType and @Target by hand for each annotation. Maybe other IDEs let you do it in an easier way but this really irritates when you do it every two minutes which is what is necessary to do when you work with Web Beans. I guess there is no way to fix this from the Web Bean standard side so it is up to the IDE teams to improve annotation support, or maybe something can be changed in Java annotations themselves..

 
23. Oct 2007, 01:36 CET | Link
The API is not settled down yet either, is it?

This is an early draft. There have already been refinements made in the two weeks since I submitted this draft to the JCP. I expect that there will be many future new features and refinements before we release a public draft.

 
23. Oct 2007, 01:38 CET | Link
By the way, I tried to mimic this annotation stuff in eclipse and it was really tiresome to define @RetentionType and @Target by hand for each annotation. Maybe other IDEs let you do it in an easier way but this really irritates when you do it every two minutes which is what is necessary to do when you work with Web Beans. I guess there is no way to fix this from the Web Bean standard side so it is up to the IDE teams to improve annotation support, or maybe something can be changed in Java annotations themselves..

The default for @RetentionType is completely wrong, in my view, but this is done at the language level and we can't do much to fix it.

Now, if you think it is important, we /could/ drop the requirement that annotations be defined as runtime retention, and expect the Web Beans container to read the annotations directly from the disk. This might make it a bit harder to implement Web Beans, but is certainly possible using Javassist.

I think it is important to keep the @Target stuff there, to help the IDE and compiler figure out what annotations can go where.

 
23. Oct 2007, 13:53 CET | Link
Ivan

It would be reasonable for the corresponding Web Bean annotation like @BindingType to imply both the appropriate @RetentionType and @Target's. Otherwise it looks like data duplication. Not sure if we are hitting a Java limitation here, maybe it's possible to invent something?

 
23. Oct 2007, 19:15 CET | Link
It would be reasonable for the corresponding Web Bean annotation like @BindingType to imply both the appropriate @RetentionType and @Target's. Otherwise it looks like data duplication. Not sure if we are hitting a Java limitation here, maybe it's possible to invent something?

Sorry, no, this stuff is hardwired into the compiler and Java language spec.

 
24. Oct 2007, 14:52 CET | Link
Gurkan Erdogdu | gurkanerdogdu(AT)yahoo.com

I dislike the configuration of the web-beans.xml configuration files that are distributed everywhere such as war, ejb, ear, lib etc....It is nice to have one configuration file place to put it into the specific directory. such as WEBBEAN-INF/web-beans.xml

26. Oct 2007, 02:22 CET | Link

1) Can the event scope be nested transactions (as undo redo stack) of a single conversation scope? As an undo operation is performed on the browser, can the event scope rollback be called from the undo stack? The rollback can be implemented programmatically by the developers or if the JPA supports nested transactions in future, it could be delegated to JPA.

2) Will WebBeans have first class support for remoting? Or would it be more tilted towards JSF for presentation?

 
27. Oct 2007, 00:59 CET | Link
  1. no, not really
  2. yes, the latest draft of the spec already has this (we'll do an EDR2 in a couple of months)
23. Nov 2007, 14:36 CET | Link
Gurkan Erdogdu | gurkanerdogdu(AT)yahoo.com

Hi;

I am developing a initial implementation of this EDR but I am tackled on exceptions. I did not fully understand clean semantics of the exceptions that Web Beans container throws on initiliazition or runtime. Will it be documented in the next revision?

Also I have created some interfaces extending from Container, Context etc... to get working implementation. Will its definitions and methods be changed in the next revisions much?

In the mean time, I am playing with my initial implementation without EJB's, that is great !!! I enjoyed it, it is simple and fully configurable; It enables us with easily changed implementation class using annotations simply.

Congrulations;

08. Jan 2013, 06:00 CET | Link

Welcome to buy Arcteryx jackets from Arcteryx outlet.2012 Brand New Arcteryx sale.If you love Arcteryx Jacket,here is the right and the best place for you.As you can find the latest Mens Arcteryx and Womens Arcteryx with reasonable price.The Arc teryx jackets are perfect for many outdoor activities.Choose your own Arcteryx clothing now.

02. Feb 2013, 07:12 CET | Link

Now, you can have the bags michael by michael kors in the Michael kors online store. All people want to have their own bags kors michael kors. So do you. If you are fond of the kors bags, come to the michael kors online store. The kors, also called michael kors michael kors, sale hot here. The kors by michael kors will tell you who is michael kors. You can also lead a colourful life with the michael kors michael. Wish you a happy life with the michael kors. http://www.michaelkorsbybags.com/

 
20. Feb 2013, 06:56 CET | Link

As Jordan http://www.jordanoutletonline.com/Brand schools gear up for rivalry matchups starting Wednesday, they will have a distinct advantage on their feet: the Air Jordan XX8. http://www.authenticshoescheap.net/ You can buy customized jewelry http://www.tiffanyjewellerysale2013.co.uk/very effortlessly, nevertheless there is one thing considerably far more particular when you obtain designer jewelry.http://www.uktiffanyjewellery1837.co.uk/ This is similar to customized jewelry http://www.tiffanyuk4saless.co.uk/in the way that it’s special but it is targeted at a specialized niche market place.

16. Mar 2013, 04:08 CET | Link

My Link OBD2 Software My Link Vag Kabel My Link Auto OBDII Codeleser