Skip to main content

Posts

Setting up EJB3 default interceptor

It wasn't easy to find out how to configure a default interceptor in EJB3 environment. It's okay to make this snippet into the ejb-jar.xml: <assembly-descriptor> <interceptor-binding> <ejb-name>*</ejb-name> <interceptor-class>pkg.IC</interceptor-class> </interceptor-binding> </assembly-descriptor> Maybe everybody forget to mention maybe it's a Glassfish V2 trick that I get this error message during deployment: Interceptor binding contains an interceptor class name = pkg.IC that is not defined as an interceptor ...unless I register the interceptor class itself too with this: <interceptors> <interceptor> <interceptor-class>pkg.IC</interceptor-class> <around-invoke> <method-name>call</method-name> </around-invoke> </interceptor> </interceptors> <interceptors> and <as...

Survey

Some months ago I read an article which said programmers usually do their hobby projects much better than their working projects. There are several reasons like time-pressure, predefined set of useless tools and pointless procedures, rubber specifications etc. I've made a little survey about that. Do you feel sometimes it would be better to be a shepherd somewhere on a sympathetic highland in, say, Scotland and to forget all office crap? Or do you arrive at yor workplace every morning that you know you will change the world a little, of course in the right direction? The survey is here at the right. Thank you for giving an answer if you did. It would be nice to know the distribution of the answers by several categories like programming languages, destination environments, open source and commercial projects, speciality of the projects (banking, science, administration, telecommunications, entertainment, web/publishing), however, this simple survey is not capable for that. But I hav...

AppServer Shootout

Recently we organized an AppServer shootout (we call it deatmatch) on our local Java User Meeting. The three contestants would have been Sun's Glassfish v2, Redhat's JBoss and IBM's Geronimo. Unfortunately IBM guy couldn't attend on this event because of other business and JBoss presentation had technical difficulties so we had to do with Glassfish demo. Let's see the 8 tasks: 1. Deploying simple EJB3/JPA webapplication with pre-initialized DB. Checking WSDL as a bonus. It was easy and elegant. We checked WSDL which was an ugly and large XML but it's been generated automatically. We did a test request by using the Glassfish's admin console. That means we filled an HTML form containing one of the webservice's method's parameters and submitted it. 2. Remote deploy from build script. (Usual development task.) We did it from Netbeans using Ant and a special Glassfish deploy task. AFAIK hot deploy is also supported by Glassfish when appserver scans a pre-...

Challenge24 EC

Challenge24 had been started as an internal competition at the local techincal university of Budapest. For now it became an international programming contest which is being organized 8th time this year. The contest itself usually happens in May when teams must be present personally but it's preceeded by a qualifying session (a.k.a Electronic Contest ) which has been arranged on the last weekend of February and teams didn't have to be present personally, just to be online. At Electronic Contest there are up to 8 combinatorical, geometrical, game theorical problems which have to be solved by sending the result files to the central server. Teams are free to choose platform and programming language. More information including rules, list of teams and their scores, assignment of the Electronic Contest can be found on the homepage . The name is Challenge24, because the main contest in May lasts for 24 hours. I didn't take part nor this year nor earlier but I usually download and...

JavaPosse Episode 157

Why do I post these? I've been regularly listening these podcasts and sometimes I flag more interesting subjects in order to be able to re-listen them. It's just one step forward to flag *all* main subjects and make it public whether it's useful for others. This one was the latest Episode in 2007 or the first in 2008 depending on the point of view. With this, all tracklists of 2008-episodes are present up to now. Further ones are posted to the JavaPosse Google Group. Henceforward, I plan to write real posts here. :) Original shownotes and the audible mp3 of the podcast can be found here . More tracklists can be found here . 00:10 Metal theme, intro 03:40 Announcing JavaPosse Roundup 09:35 'Smart Drink Coasters - Digital Pub' / Is java slow? 14:00 Is java loosing place? Reflecting for weird articles. 21:55 What did you give for Christmas? 31:55 Favourite aspect or moments of the year 33:10 JavaPosse Google Group 41:40 Last year predictions 45:50 Predictions for next ...

JavaPosse Episode 158

This is a tracklist of a JavaPosse Episode. Original shownotes and the audible mp3 can be found here . More tracklists can be found here . Newcast for January 9th 2008 00:25 Intro (T-shirt is available) 01:44 Roundup - only days left for the early bird price 02:35 Bruce Eckel: should we simply stop adding new features to Java? 17:40 Apple has released an updated developer preview version of Java 6 22:50 Two Professors from NYU have slammed Java as a teaching language 33:20 Scala Roundup 38:00 Library of the week - PDF Renderer 40:30 Up and coming Project of the Week - Mighty Box Quick News Items 44:00 JSR 271 - The Mobile Information Device Profile 3 (better known as MIDP 3) 44:23 Chris Adamson has issued a call for comments on how java.net might be improved in 2008 44:48 Is Rails a Ghetto? 45:51 Apache Wicket 1.3 has been released 46:09 Motorola has released a new version of the ROKR music playing phone 46:15 JSR 286 - the Java Portlet Specification 2.0 46:33 JSR 255 - JMX (the Java M...

JavaPosse Episode 163

This is a tracklist of a JavaPosse Episode. Original shownotes and the audible mp3 can be found Shownotes . More tracklists can be found More Tracklists . 00:30 Intro -couple of guests in studio, club feeling, somebody is speaking from the cupboard. Roundup, Sun / MySQL, etc. 17:28 Grails 1.0 released 21:10 Registration for JavaOne is now open 30:25 Closures 38:50 JSF has passed Swing as the number one GUI component model for job demand 42:20 JavaFX update N, reinventing client Java 49:40 Nymbus Look and Feel 52:10 Font rendering Quick News 64:00 A NetBeans Innovators Grants program has been introduced by Sun 64:50 How to write a full application that uses JSF, Seam 2.0 and JPA together, Carol McDonald's blog 65:26 Duke's Choice Award (deadline is 14th March) 65:40 Opera Mobile 69:37 TheServerSide.com has an introduction to using MapReduce in Java applications 69:58 Sun has released a new version of their Solaris Express Developer Edition 70:57 Sun has also posted a pro...