blog.dblevins.com
David Blevins' Blog: November 2012
http://blog.dblevins.com/2012_11_01_archive.html
Wednesday, November 21, 2012. CDI, when to break out the EJBs. I sometimes joke that CDI is basically EJB 4.0. While that's obviously not true there is a considerable amount of similarity and that does create a bit of confusion for people. Here is some general information on EJB and CDI as they relate to each together. Note that EJBs are. In future versions of Java EE we'll be continuing to align them. What aligning means is allowing people to do what they already can do, just without the. So in a fundam...
blog.dblevins.com
David Blevins' Blog: March 2010
http://blog.dblevins.com/2010_03_01_archive.html
Tuesday, March 2, 2010. Man-page based Bash Completion. Hacked up this little function which you can use to get generic bash completion on any command based on the man page. You just need to source this file. Here's what it looks like when executed. Mingus: 03:16:45 $ wget - c[TAB] - ca-certificate=file - certificate=file - convert-links - ca-directory=directory - connect-timeout=seconds - cut-dirs=number - certificate-type=type - continue. Subscribe to: Posts (Atom). Santa Monica, CA.
blog.dblevins.com
David Blevins' Blog: June 2010
http://blog.dblevins.com/2010_06_01_archive.html
Friday, June 18, 2010. EJB annotations and Stereotyping. Certainly for the EJB-related annotations, I would love to see @Stateless, @Stateful, @Singleton and @MessageDriven be used for stereotyping as well as all the other class level annotations for transactions, security, locking, timeouts and scheduling. RolesAllowed({"SuperUser", "AccountAdmin", "SystemAdmin"}) @Stereotype @Target(METHOD) @Retention(RUNTIME) public @interface Admins {}. Here's a couple great scheduling examples:. We (the industry) ne...
blog.dblevins.com
David Blevins' Blog: September 2011
http://blog.dblevins.com/2011_09_01_archive.html
Friday, September 30, 2011. JavaOne is next week and as usual I will be there. I'm a bit busier than usual this year, but as always I'm more than happy to get together with anyone. In fact it's my favorite part of JavaOne, so please do reach out. Here's my speaking schedule:. Session Title: Meet the Experts: EJB 3.2 Expert Group. Venue / Room: Hilton San Francisco - Imperial Ballroom A. Date and Time: 10/3/11, 21:00 - 21:45. Session Title: EJB with Meta-annotations. Venue / Room: Parc 55 - Powell I/II-.
blog.dblevins.com
David Blevins' Blog: July 2010
http://blog.dblevins.com/2010_07_01_archive.html
Friday, July 16, 2010. ApplicationException is evil. sort of. Historically EJB has frowned on RuntimeExceptions. Throwing them results in your transaction getting rolled back and your bean instance being immediately destroyed. You're welcome to try your transaction again . just as long as you weren't keeping your data in your @Stateful session bean, cause, you know, the container just destroyed that. hope you didn't need it to retry your commit. And is the above even a good idea? The problem is it is har...
blog.dblevins.com
David Blevins' Blog: October 2010
http://blog.dblevins.com/2010_10_01_archive.html
Friday, October 1, 2010. EJBnext Connector/Bean API : JAX-RS and beyond. It isn't commonly known that MessageDrivenBeans (MDBs) are not directly tied to the Java Message Service (JMS). In fact, they are tied to the Java EE Connector Architecture. It's even less commonly known that MDBs are not necessarily asynchronous. It's really the Connector that drives the communication style. The touchpoints between the Connector and the MDB are the ActivationSpec/ActivationConfig. We'll cover that later. Only class...
blog.dblevins.com
David Blevins' Blog: August 2009
http://blog.dblevins.com/2009_08_01_archive.html
Monday, August 17, 2009. Another good name for this pattern might be ThreadLocal Encapsulation. This pattern is a real ThreadLocal killer as it is a way to track state over several calls without widespread ThreadLocal usage. Add the following Interceptor as a global interceptor at the beginning of the interceptor stack. Anyone downstream of this interceptor can make a call like this to get access the an infinite amout of state up the stack. You can move specific state forward for quick access. Yo...
blog.dblevins.com
David Blevins' Blog: December 2009
http://blog.dblevins.com/2009_12_01_archive.html
Monday, December 28, 2009. EJB 31 goes final. The EJB 3.1. And Java EE 6. Specifications finally closed this month and are up for download. On a personal level, I'd like to say that EJB 3.1 has been the most productive I've been on a specification, thanks in no small way to the truly amazing group we had. For many of us it is a labor of love. First a major thanks to Ken Saks. As well the deepest appreciation to my fellow Expert Group members. There were many, but a special thanks to Reza Rahman.
SOCIAL ENGAGEMENT