J2EE 1.4 Patterns were workarounds...and Java EE 5 Patterns are opensourced now

My Java EE 5 Architekturen Book is completed now (it only has to be reviewed and printed), and I found some time to opensource all the examples at java.net  The project   (Patterns For Java EE 5) consists actually of several Netbeans 6 projects which demonstrate patterns, utilities and new ideas. About 20 projects are still waiting for check in (I have to find some time for cleanup). P4J5 (https://p4j5.dev.java.net) covers service oriented, as well as domain driven ideas. All the samples are tested with Glassfish v2, Netbeans 5.5/6 the Netbean's sample JavaDB so they should work out of the box. Although the book was written in german language, all the examples come with english javadoc. I checked in initially the replacement of the ServiceLocator "pattern". In the next weeks I will check in the remaining patterns/projects.
Btw. although J2EE patterns were said to be workarounds, they are still very suitable for some cases in the Java EE 5 environment.

We will discuss all the patterns in the Java EE 5 Patterns workshop in Hamburg at oose.de next week :-).


Hello Adam, well done for your p4j5 project @ java,net.

Is there any chance to publish your book in english as well?

I had a look on your service locator, when i moved top j2ee 5 i have to admit that this was my initial problem. Actually I was trying to find a elegant way of calling my EJb3 SLSB from Struts Actions. I could find anything magic so I ended up doing JNDI calls.

So that means that we are going back to the old days of JNDI look- ups from non ejb layers like a non EJB3 aware framework like struts.

Do you have any comments on the caching we can do at this point - since now we dont have so many interfaces if interface caching is safe - or recommended!

Posted by Paris Apostolopoulos on June 26, 2007 at 01:29 AM CEST #

Hi Paris,

I hope I anwsered your questions in the http://www.adam-b
ien.com/roller/page/abien?entry=servicelocator_jndi_naming_helper_and with the title: "S
erviceLocator, JNDI Naming Helper and Java EE 5 Post".
I think my book will not be translated, but the next one I will surely write in
english :-).

I forgot to mention the caching, but I will cover it tomorrow :-).

If you have thoughts and questions about p4j5 - just let me know,



Posted by Adam Bien on June 26, 2007 at 08:55 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments