EJB 3 for the Blog Code
I really wanted EJB 3 for this weblog code, so I've finally started it.
First, I wanted to rebuild the blacklist system to be more configurable and support regular expressions. Instead of fighting with the old EJB 2.1 entities for the blacklist, I defined new EJB 3 entity and stateless session bean in a new EJB jar.
I built a client jar for my new EJB 3 code without the concrete session bean implementation code and without the persistence.xml
. Excluding the persistence.xml
was important, because the JBoss server tries to pick it up and deploy the entities again as part of the client (the old EJB 2.1 jar). Each of my old packages got a copy of the client jar to allow them to use the new modules, since I have JBoss configured to isolate all the deployment units from each other.
Next, I may move the dynamic link tree (on the left of this page) to be EJB 3, or maybe I'll look at moving referrers to EJB 3. EJB 3 is so much nicer now -- I never want to look back.
Filed Under: Blog-Code Technology Toys Java Computers