The problem at hand is that EclipseLink (great project lead by James Sutherland) does not use a query cache when dealing with ReadAll queries, i.e: all calls to getResultList() go to the database. Some object-level caching is performed by avoiding construction of new objects based on the primary key values the database call returns. EclipseLink compares the PK values returned by the...
Micromatas GWiki is now OpenSource
CDI (Contexts and Dependency Injection for the Java EE platform) is defined in JSR-299 and enhances support for dependency injection in Java EE 6. The more I use CDI the more I like it...However, I couldn't find a simple example of how to configure your application with CDI by reading configuration attributes from a file. Here is an example of how it can be done:
Specifying injection points...
Here is the second part of the CAFE fundamentals blog series. This time, I am explaining two important interfaces called Communication and UserProcedure with an example. If this is the first time you are hearing about SailFin CAFE, I recommend reading the CAFE fundamentals article and the blog on writing your first CAFE application. The core of this discussion is an example which shows...
The Bean Validation specification went final around the same time that the Java EE 6 specifications went final. The Java Persistence 2.0 specification allows for Managed classes (entities, mapped superclasses and embeddable classes) to be configured with Bean Validation constraints.
In this example we are going to use Eclipse Galileo which you can download and then install from here. You will...
I'v just published an integration module for using GridGain with Spring Batch. Using this module you can distribute Spring Batch processing inside a GridGain grid with the implementation of remote chunking.
What I realized shortly after we put out Magnolia 4.3 is that while we tried to explain new multisite support for example in this screencast there are still plenty of grey areas and lot of confusion when people actually get to use the multisite support. And I think I wrote and talked about this topic earlier as well.
Of course as with any new functionality, there are still...
FESI Research Program Overview
FESI is the Free and open source software Enterprise Solutions Institute. We are a research program designed to study tomorrow's internet technologies as a means to teach folks in the local workforce how to use technologies our customers will likely want to implement. We also perform this research to prepare local engineers with the knowledge and...
Here is an example of OSGi/JMS/MDB comprising of two OSGi bundles deployed in GlassFish:
a) A JMS message producer bundle
b) A JMS message consumer bundle
Content available at: http://blogs.sun.com/arungupta/entry/totd_128_ejbcontainer_createejbcontainer_embedded
This a rather long article covering OpenESB (Open ESB) administration and management along with discussing a complete sample application shows how to develop solutions based on OpenESB
Java EE Security refcard is available for download. This refcard covers Java EE 6 security and discuss how each application server supports the specs. The refcard covers authentication, authorization, and transport security in Web Application, EJB application and web services by introducing the concept and the related annotations and deployment descriptors which help us realize the concept.
GlassFish security book authored by Masoud kalali and published by Packt is now available for purchase. The book covers GlassFish, Java EE 6, OpenSSO and OpenDS.
Two talks at JavaOne this year:
S313580 - "Swinglabs Dev Update" with Karl and Alex ... I hope guys will do most of the talking :D
S314239 - "Building Content Management solutions based on Java Content Repository" together with Greg
BTW for those wondering what is happening with the swinglabs.org, server have been recently moved around yet again. It is now in so...
Java Web Services and XML
I decided to write down the answer for some questions which my book's readers email me or ask me via twitter in my weblog so everyone can benefit from the answers. Here is the answer to the first question which involves custom security realms.
GlassFish supports 5 types of security realms out of the box which are sd follow:
File Realm: Usefull for development and testing purposes. GlassFish...
In which our hero makes Jersey dance in ways that probably make the Jersey authors take to their sick beds with a headache.
Content available at: http://blogs.sun.com/arungupta/entry/totd_133_jpa2_jpql_criteria
On April 28th, 2010, we will be kicking off the first phase of FESI's research. This where we set up the project, and start to get our hands dirty. Attached is the flyer we will use to promote FESI and what we're trying to accomplish. Hopefully it will help us get the word out to the local community.
Also as the kickoff, we'll be participating with a networking group that meets...
Java User Groups
Last week's kickoff of FESI's research program went very well. There are a number of folks (>500) who are now following this blog on Java.net, and a number who have gotten involved. While we wait for more folks, we'll be researching new technologies, the first being NOSQL databases.
If the kind of topics we're research interests you, please feel free to join the project;...
This article introduces GlassFish CLI or command line administration console. GlassFish provides several administration channels; one of them is the command line administration interface or CLI from now on. The CLI has many unique features which make it very convenient for command line advocates and new administrators which like to get familiar with CLI and use it in the daily basis. The CLI allows us to manage, administrate, and monitor any resources which application server exposes to the administrators.