Sunday, September 21, 2008

EJB3 has incomplete entity management

After to have (zero)configured your session beans, it is possible to add AS behaviors using AS specific deployment descriptors... and that's good because portability becomes only a deploy configuration before packaging...
entities are not ready, seems to be not possible to provide entity manager specific behaviors at configuration level, as written in hibernate documentation:
In the current release only pure EJB3 annotations overriding are supported. If you wish to use Hibernate specific features in some entities, you'll have to either use annotations or fallback to hbm files.
sob...

Thursday, September 18, 2008

usefull namespaces

ejb-jar.xml <ejb-jar version="3.0"> http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd

persistence.xml <persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">

web.xml <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

faces-config.xml <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">

facelets <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core">

application.xml <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> <application>

Thursday, August 21, 2008

Useful VIM commands

Working with VI can be very fast if commands are known... i've found this recap here

Thursday, July 24, 2008

alternatives

JRE
update-alternatives --config java

JDK
update-alternatives --config java_sdk_su

Sunday, July 13, 2008

Time's tyrant

No matter if we're working on a product, if customer ask customer must have and if time is so few who cares about the product, better to take care of the project... :/