Tug’s Blog

Redis, NoSQL and more…

Prototype Windows: The Best Way to Create ‘Web 2.0’ Windows

| Comments

I am sure that most of you already know the “Prototype Windows” project that provides a very powerful way to create windows and dialogs inside your Web pages. If you do not know it, take a look it’s awesome!

Sebastien Gruhier, aka Mr Proto, and others have done a terrific job allowing developers to integrate exciting features with few lines of code. Find more on the PWC site or on Mr Proto’s blog.

In addition to the Windows API, you can also take a look to the Tranparent Message, Prototype Carousel and Prototype Graphics projects

Java 101: Generate a Unique Identifier With java.util.UUID

| Comments

A friend of mine was asking me how to generate a unique ID for his application… As you probably already know Java SE 5 has introduced the java.util.UUID class to easily generate Universally Unique Identifier (UUID). As usual Wikipedia is a great starting point to learn more about UUID.

Generating the unique ID is as simple as calling the method UUID.randomUUID() in the class. This will give a new instance of UUID that you can now manipulate; for example do a toString() to get the UUID string representation as describe in the specifications; for example 5462dc18-4653-42d1-b4e4-22fc970a6ce5

Resources:

OracleAS OC4J and Java EE Releases….

| Comments

This morning I was helping a customer to debug some Web Services deployment issues, when I simply realized that the error was coming from the fact that he was trying to deploy a JAX-RPC service on a OracleAS 10gR2 server; where it is not supported/available.

This give me the opportunity to clarify the different versions of the Oracle Application Server and their related Java Enterprise Edition release support.

Oracle AS Release J2EE/Java EE Release Comments/Extensions Certification Matrix
11.1.0.0 Java EE 5.0 * Currently available as technology preview
10.1.3.x (Oracle AS 10gR3) J2EE 1.4 * Support of EJB 3/JPA * Web Services Annotations * MTOM support (10.1.3.1) * Integration of Spring 2.0 (10.1.3.2) * Integrationf of Oracle Coherence (10.1.3.3) [OTN Certicification Matrix](http://www.oracle.com/technology/software/products/ias/files/oracle_soa_certification_101310.html)
10.1.2.x (Oracle AS 10gR2) J2EE 1.3[OTN Certicification Matrix](http://www.oracle.com/technology/software/products/ias/files/as_certification_r2_101202.html)
9.0.4.x J2EE 1.3[OTN Certicification Matrix](http://www.oracle.com/technology/software/products/ias/files/as-certification-904.html)
9.0.3.x J2EE 1.3[OTN Certicification Matrix](http://www.oracle.com/technology/software/products/ias/files/as_certification_r2_101202.html)

Visiting Paris With Velib (New Bike Transit System)

| Comments

I was in Paris last week end so I took this as a good opportunity to visit the city using the new “Velib” system. Velib is a new self service rental bike system that the city of Paris and JCDecaux put in place on July 15th. So you can take and return any of the 10,000+ bikes in any of the 750 locations all around Paris. I believe that Paris wants to a total number of 20,000 bikes for  1,400 locations.

The concept is really simple, you can take a bike for 1 euro day and it is free for 30mn, supplet of 1 euro will be charge for additional 30 mn then 2euros for the next one, … The idea is to use the bike for short periode of time, return it to a station and take another one after 5mn. So I have been enjoying the city all Sunday for only 1 euro, it was really nice to be able to ride under the Eiffel tower, les Invalides, Place Vendome on all these very nice and romantic Parisian places. Not only is it probably one of the best way to visit Paris as a touris but also it is good for the environment…

One the flip side, I need to say that Parisian drivers are not that nice with bikers, even with the 230 miles of bike lanes…

From a technical point of view, the rental system is really nice,  the bike stations have a nice and simple to use system allowing you to take a bike, see your balance and they are all connected together allowing you to take and return bike anywhere in Paris. I will try to find more information about this application that is probably quite fun, and hopefully not like the www.velib.paris.fr site, the stations are available in multiple languages.

BPEL in Cluster: In Which Node My Process Is Working

| Comments

I was helping a customer with his BPEL in cluster and we needed to follow the flow and on which machine the instance was running.

I simply use a bpel:exec activity with the following code:

1
2
3
4
5
6
7
8
9
java.net.InetAddress addr = null;

try {
  addr = java.net.InetAddress.getLocalHost();
}
catch (Exception e) {
  System.out.println("EXCEPTION :"+ e);
}
setVariableData("HostNameVariable", addr.getCanonicalHostName());

This code is just an example of what could be done. Here I am using java.net code API and put the result in a BPEL global variable using the setVariableData method. Obviously you will use appropriate code to differenciate the different nodes for example the name of the OC4J instance, hostname, … or any interesting value.

Using Your Built-In iSight With Parallels (and VMWare)

| Comments

It is probably an old tipe, but I have just configured my Windows XP Parallels VMs to use my MacBook buit-in iSight Web Cam using the driver that you can find here: - Download iSight Driver for XP

The site states that it does not work with Parallels, but I am using the release Build 3170 RC3 and I do not have any issue.

  1. Start your VM
  2. Download the Driver & Unip zip

  3. Grab the Built-In iSight using the Devices > USB menu

  4. Point the Windows Devices Manager Installer to the location of the Unzipped folder

  5. and you are done…

Oracle Development Kit for Spring

| Comments

To help you better understand the support Oracle offers to Spring developers, everything you need to get started with Spring on Oracle Containers for Java EE is now available in the Oracle Development Kit for Spring. Whether you’re new to Spring or an old hand, you’re sure to benefit from the contents of the Development Kit:

  • A comprehensive set of How-To examples illustrating Spring-OC4J integration
  • The Oracle Developer Depot Web application, which enables you to deploy and run the How-To projects on OC4J
  • A Spring extension to JDeveloper, Oracle’s free Java IDE
  • Supporting documentation and white papers

The Kit is available as a self-extracting ZIP archive. Note that you will need Oracle Containers for Java EE (10.1.3.2) or higher to use all of the How-To projects provided.

Oracle Develop 2007: Conference Near You From Oracle

| Comments

Oracle is has started to deliver the “Oracle Developer 2007” conference. In this two days even you will learn more about multiple technologies: Enterprise Java, SOA, .NET, Databases and PL/SQL, as well as Ajax, PHP, Spring, and more.

This event is organized in 4 different tracks for developers:

Find an Oracle Develop event near you: