Final JBoss 5.0.0.GA Release is now out !

September 18, 2008 | Comments (0) | TrackBack (0)

After more iterations and more months is now the JBoss 5.0.0.GA release out and what are new in this release?

- 3+ year marathon of redesigning the application server over
- The JBoss AS 5 is from the Java EE™ 5 codebase that fully complies with the Java EE 5
conformance testing certification requirements
- A completely new kernel architecture (JBoss Microcontainer)
- The most important by this release is that, JBoss 5 AS is now build on top of the new JBoss Microcontainer and that replaces the famous JBoss JMX Microkernel of the 3.x and 4.x series

What is JBoss Microcontainer?

MC is a lightweight container and is responsible for the management for POJOs, their deployment, configuration and lifecycle.

What with the integration with others JBoss Frameworks?

JBoss AOP?

The MC integrates nicely with JBoss AOP.

JBoss JMX?

JBoss 5 AS still supports JMX all MBean services written against the old Microkernel are expected to work fine.

JBoss VDF?

More important framework in the JBoss 5 AS is the Virtual Deployment Framework (VDF) . This framework takes aspectized deployers to operate in a chain over a Virtual File System (VFS), analyze deployments and produce metadata to be used by the JBoss
Microcontainer, which in turn instantiates and wires together the various pieces of a deployment, controlling their lifecycle and dependencies.

JBoss 5 AS is also integrated with other standalone JBoss projects like:
- JBoss EJB3: simplifying the component programming
- JBoss Messaging new implementation of the JBossMQ
- with the latest JBossCache (PojoCache, inMemory, transactional, ...)
- JBossWS Java EE compatible
- JBoss Transaction : 18 year history as a leader in distributed transactions
- Web container based on Apache Tomcat that includes the Apache Portable Runtime (APR) and Tomcat native technologies.

About more new features will take place in a next post and for more information about this new release, takes a look at this http://www.jboss.org/

My MAC OS X + PARALLELS keyboard combinations

May 23, 2008 | Comments (0) | TrackBack (0)

Sometimes it's exhausting to use Eclipse IDE in Parallels to implement JAVA programms, because of some long keyboard combinations .
Today I will try to give you (mac-users) some useful key combinations with meanings:


\ --> ctrl+alt+?
{ --> ctrl+alt+7
} --> ctrl+alt+0
[ --> ctrl+alt+8
] --> ctrl+alt+9
@ --> ctrl+alt+q
~ --> ctrl+alt+*
| --> ctrl+alt+>
( --> shift+8
) --> shift+9

Is JBoss 4.2.x AS Java EE 5 compatible?

March 20, 2008 | Comments (0) | TrackBack (0)

The answer is “NO”. Because some people ask me this question all the time, I think now is the time to make some explanations concerning that issue.

“The new planned JBoss Application Server 5 will support the entire Java EE 5 specification.”

JBoss 4.2.X implemented EJB 3.0 functionality by the way of EJB MBean Container. That means it runs as plugim in the APPServer. As a consequence of the EJB 3.0 plugin integration, JBoss 4.2.X supports injection of @EJB references and EntityManager between different EJB components and this support is limited only to the EJB 3.0 MBeam and the JAR files.
Any reference of @EJB into a WAR (with servlets and JSF) can’t be released in JBoss 4.2.X AS.

I hope the information was helpful.

JBoss AS 4.2.x and java.lang.OutOfMemoryError: PermGen space

January 28, 2008 | Comments (0) | TrackBack (0)

Somtimes after multiple deployments of an application in a JBoss AS instance it's possible that the server instance throws an error of type java.lang.OutOfMemoryError: : PermGen space .
to fix that problem, we have to patch the $JBOSS_HOME/bin/run.sh file with this proposition:
- firstly, we have to find the variable JAVA_OPTS in the file
- then we have to enhance the variable like this:

 JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx512m -XX:CMSPermGenSweep:ngEnabled
-XX:MaxPermSize=128m -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true"

The PermGenSpace of a JBoss AS instance has a standard value of 64m, therefore breaks down often the server instance.

$8.5 Billion to buy the big cake BEA Systems

January 21, 2008 | Comments (0) | TrackBack (0)

Oracle to buy the big cake BEA Systems for $8.5 Billion

Geronimo is now Java EE 5 compatible

June 14, 2007 | Comments (0) | TrackBack (0)

The Apache Geronimo project with the latest release candidate (2.0-M6-rc1) has passed all tests in the Java Enterprise Edition 5.0 Compatibility Test Suite. Summarized, we can say that, it is the first open source application server other than Glassfish to pass the tests.


To conver some Java EE functionalities, this version use projects such as:

XMLType with TopLink-essentials JPA

April 30, 2007 | Comments (0) | TrackBack (0)

TopLink-essentials is only a reference implementation of JPA at sun and does not support XMLType of oracle. for more informations about how to support XMLType with TopLink-essentials Tom Ware Principal Software Engineer for Oracle gave this solutions:
Prior to the time we implemented XMLType support in Oracle TopLink it was possible to get some basic XMLType support working using a custom Converter in TopLink. Here is a link with a brief description of what a converter is:
http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/relmapun002.htm#sthref3777
It should be possible to build an converter in TopLink Essentials that can handle at least basic reading and writing (more complex queries will still require using native SQL). Configuring a mapping to use a converter is an extension of the actual JPA specification and would require using a descriptor Customizer. There is a description in the
link below.
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html#TopLinkCustomizationValidation
Hopefully, this can help you.

Make the different between TopLink Essentials JPA and Oracle TopLink product (10.1.3)

April 30, 2007 | Comments (0) | TrackBack (0)

Because some peoples ask me frequently about the different about TopLink Essentials and Oracle TopLink product, I decided to give through this blog a minimal answer.

TopLink Essentials are the reference implementation (RI) of JPA, is an open source effort that is licensed under the Common Development and Distribution License (CDDL) v1.0. It can be freely downloaded and used under the terms of this license agreement. This means, you can only use it for the management of persistence and orm with Java EE and Java SE. The binary distribution of TopLink consist of 2 jars:

In addition to TopLink Essentials that makes the JPA implementation alive, Oracle offers its Oracle TopLink product (10.1.3) that contains an earlier preview binary of JPA and also offers developers additional object-relational capabilities, object-XML mapping (JAXB), non-relational mapping using Java 2.0 Connector Architecture (JCA).

JEE Developers have to learn Java EE Class Loading architecture of their AppServer

April 15, 2007 | Comments (0) | TrackBack (0)

Ernie Svehla Chief Architect of IntelliObjects gives us through this presentation by infoQ some views of Java EE Class Loading Architectures and makes the difference between architectures Class Loading in some AppServers like JBoss AS 4.0.2, Sun's Appserver 9, BEA WebLogic 9.1. I found this presentation useful and interesting.

Speed up your Web-App development with the EJB 3.0 and JPA

April 5, 2007 | Comments (0) | TrackBack (0)

In this interesting Pinaki Poddar's blog you can learn how the EJB 3.0 and JPA programming model can reduce and simplify some tasks in the development of Web Applications.

Die Java Persistence API

March 23, 2007 | Comments (0) | TrackBack (0)

Take a look at our new article in the current JavaSPEKTRUM edition. I wrote this article with Phillip Ghadir and Oliver Tigges and the article describes some important aspects about
Java Persistence API (JPA) .

EJB 3.0 Spec. with WebLogic Server 10.0

February 12, 2007 | Comments (0) | TrackBack (0)

The big AppServ provider WebLogic with it brand new WebLogic Server 10.0 had passed the Compatibility Test Suite (CTS) of Java Sun and is now certified against the Java EE 5 CTS. In this new release, OpenJPA with the Apache License plays a important role as a default JPA persistence provider. If you want to more about the new release, check this site from edocs.bea.com

What is Java Persistence API (JPA)?

February 3, 2007 | Comments (1) | TrackBack (0)

Java Persistence API is a new architecture and standard API, that can be use for the management of persistence and O2R-Mapping. This API is part of the Java EE platform. But sometimes I have the feeling to work with the Hibernate ORM framework.
For more information about JPA take a look at this URLs:
http://jcp.org/aboutJava/communityprocess/final/jsr220/index.html
https://glassfish.dev.java.net/javaee5/docs/DocsIndex.html
http://www.hibernate.org/397.html
http://www.eclipse.org/dali
http://schuchert.wikispaces.com/EJB+3+and+Java+Persistence+API
http://www.oracle.com/technology/pub/articles/gupta-jpa.html
http://static.springframework.org/spring/docs/2.0.x/reference/orm.html#orm-jpa
http://e-docs.bea.com/kodo/docs40/full/html/ejb3_overview.html
http://incubator.apache.org/openjpa/docs/latest/manual/manual.html#jpa_overview_why