When you try teach anything new for someone, IMHO the easiest way is to do that relating with something you already know. So far Struts is a framework that almost everybody touched at least once. So I will use some of Strtus concepts to explain jBPM process execution.
jBPM is not just a Process Machine, locked in just one way to promote interaction between tasks, in fact jBPM is...
on Aug 28, 2007
In the second part of the series, you can see how we can utilize EJBCA to create certification for a client side application which will communicate with Glassfish server when Client cert authentication (Mutual Authentication) is enabled whether by changing the listener attributes or by describing it in the web-config.xml.
In order to create client certification we will need to perform...
on Aug 23, 2007
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog
OK, native queries in JPA. Not really well documented. Of course I understand that we really should not be doing that, but hey there are times where it is just plain easier.
The following code snippet goes after an Oracle sequence and gets the value.
EntityManager em = this.getEntityManager();Query query = em....
on Aug 22, 2007
One of the most repeated question in GlassFish mailing list is SSL, Certification, Mutual Authentication,.... In this Entry I will try to address some of this questions by giving an step by step guide for using EJBCA to issue certificate, use them in both glassfish and clients which connect to glassfish in some manner. clients like web browser, standalone java applications,...
There are several...
on Aug 16, 2007
The free 2007/2008 Sun Tech Days Program, Sun's worldwide developer conference, will start in Boston, MA on September 11-12, followed by conferences in Rome, Milan, Shanghai, and other locations between late September and May 2008. Technical experts on the Java platforms and Solaris OS will hold technical sessions and hands-on labs on a variety of topics, including Java EE 6 and GlassFish, Java...
on Aug 13, 2007
It was shown in the previous article
Extending the NetBeans Tutorial JSF-JPA-Hibernate Application, Part 3 - Enabling JMX Monitoring on Hibernate v3 and Ehcache 1.3.0 on "SimpleJpaHibernateApp"
how to configure Java Persistence API (JPA) based application to use Hibernate and Ehcache as the JPA and caching implementation provider respectively.
on Aug 11, 2007
The motivation behind re-namespacing Dojo for jMaki was simple. We want to have both Dojo 0.4.3 and Dojo .9 running in the same web application and we also want to give our users the ability to use jMaki many years in the future. So I undertook the task of re-namespacing Dojo by hand and quickly found out that it was a involved task. Reason being there are 27350 instances of the word Dojo spread...
on Aug 10, 2007
Because I was presenting MCP at
the first ever Jazoon conference, my
friend and expert JSF Developer Alexander Jesse invited me to speak at
the first ever JSF User Group meeting. The meeting was held at a Credit
Suisse office in Zürich on the evening of the last day of the
Credit Suisse is the largest financial institution to go public with
its investment in JSF, though...
on Aug 1, 2007
During the latest days I've been fighting with my hosting provider because I tried to deploy Xwiki (xwiki.org) in my hosted web site. The core issue was XWiki requires that the web container security policy includes:
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
Actually, it's Struts and Velocity that requires that, not XWiki code itself. See for more info
on Jul 31, 2007
In Widgets talking to Widgets Carla describes how widgets from different toolkits can easily communicate. There is a more basic level of communication which you can do declaratively which we call jMaki Actions
jMaki Actions are a declarative way of associating widget behavior.
Consider a case where you have a Dojo Fisheye and you simply want it to select a tab or URL when an item is clicked....
on Jul 29, 2007
The Portal Post, Sun's group blog on portal development-related topics, recently underwent a redesign and now boasts a cool logo, pointers to a wealth of references, and frequent postingsat least one a day. The topics range from development tips to the latest in the open-source portal projects. Really impressive!
Kudos to the heroes behind the scenesthe Sun Java System Portal Server...
on Jul 27, 2007
Back in college I spent many hours
of my copious Freshman year free time playing LHX on Will Day's PC. At the
time, all I had was an Apple //c, which was already behind the times by
then. As you can read in the Wikipedia entry, this was a flight
simulation game. The thing I remember most was the "missle-cam" view,
where you could fire a TOW missle and then switch to the missle's eye
on Jul 25, 2007
I've been spending significant part of my time this week on HK2. After some initial work on configuring components inside HK2 and talking to Kedar who knows the current GF configuration mechanism inside out, I decided to make some serious changes to the way HK2 works internally.
In the initial work, I used to load configuration directly into components. While this was faster, it prevents us...
on Jul 20, 2007
I spent a good portion of the day on HK2 (the rest went to the usual "fix bugs now! I mean NOW!" drill that we all know right before a big release.)
Much of the productivity improvements in HK2 (compared to how GFv2 is done) come from the fact that HK2 comes with a Maven plugin that knows how to build a HK2 module. It's much like how Maven plugin is built by Maven, where all kinds of additional...
on Jul 16, 2007
Our team just released four JBI Components, a SIP BC, an XMPP BC, an RSS BC, and a UDDI BC . Having developed those components, we're now reaping the rewards; we're able to combine these low-level collaboration "services" to produce new and cool collaboration capabilities. Essentially, the four components together create a collaboration platform. One use for just such a platform might be a...
on Jul 12, 2007
At a live Sun Expert Exchange Forum next Tuesday, July 17, you can ask an expert panel questions online on such topics as running Windows on Sun servers, compatibility between Java technology and .NET, and Project Tango, a collaborative project on Web services.
Interested? Do sign up.
on Jul 10, 2007
Project Grizzly 1.5.2 has been released and marked as beta. This release has been integrated in various products such as (to name a few) GlassFish v3, Phobos, Restlet, Shared Shell and used/tested/evaluated by companies/products like Electronic Arts, Ericsson, Foto, Hadoop, etc.
What changed since 1.5.1:
JRuby now supports Grizzly ARP
Added SSL TCP Client support
gCometd has been updated to the...
on Jul 10, 2007
This Sample Store Catalog app demonstrates the usage of JavaServer
Faces, a Catalog Stateful Session Bean, the Java Persistence APIs, and
Seam to implement
pagination of data sets. I took this example Pagination
of Data Sets in a Sample Application using JSF, Catalog Facade
Stateless Session, and Java Persistence APIs and refactored
it to use Seam on Glassfish by following the steps...
on Jul 6, 2007
Glassfish v3 is built by Maven 2, so most of the time the edit/build/debug cycle is as easy as:
$ mvn -o compile$ mvn gf:run
Now, when I am debugging a problem, I often want to see more detailed logs that are recorded at INFO/CONFIG/FINE/etc levels. Unfortunately, the java.util.logging package doesn't make this very easy — you'd have to write a property file, and use a system property to...
on Jun 29, 2007