20071129 Thursday November 29, 2007

Joy to the World: a Web server, a web cam and House Christmas Lights

Control the Christmas lights of some guy's house.. through the Internet!! The guy somewhere in Europe.. I guess it is Europe given by the 9 hours difference and the different electrical plugs... http://www.lightscontrol.com

Technorati Tags: ,

( Nov 29 2007, 12:11:04 PM PST ) Permalink del.icio.us technorati digg
20071128 Wednesday November 28, 2007

Unified Messaging and Sun Java System Messaging Server

In general.. Sun offers an open platform for Unified Messaging services. The trend in the industry is to use open interfaces into "internet-based" email messaging platforms. As we at Sun are not actually providing voice features, we can however allow companies who have expertise leverage the successes Sun has had in providing massive scalability and manageability. We believe the the customer chooses the messaging platform, and then they choose a Unified Messaging platform to layer on top of it.

Um-1

Some voice vendors still favor a "locked in" strategy which tie the customer to a proprietary storage mechanism. Today's realities make this less desirable because of the rapid development of voice features based on Web 2.0 cause these vendors to move less rapidly due to the overhead of development on these aging proprietary stores.

Sun enables features on these Voice platforms that come directly from our experience in email. Notification is a clear example of this. Many vendor solutions consist of one of three approaches to sending a notification of a new message:

* "scan" all the mailboxes for new voicemail (IMAP polls)

* forward a copy of the message to a notification server

* maintain two mailboxes for each user

The worse method is the "scan". In this mechanism, a notification server will scan every mailbox of every user to identify new voice messages. The tragic consequences of this method is "timely notifications" versus "loss of performance" of your email platform.

The "copy on delivery" mechanism has a value in that it is supported on nearly every major email platform. The issue with this mechanism is that the forwarded message does not necessarily indicate the true state of the mailbox. A user who is logged into IMAP will still get a new message notification. The technical complexity of clearing a notification also makes this an unreliable mechanism.

The "notification mailbox" mechanism may have some merits. A voice mail message arrives in both the regular email inbox and the voice mail inbox. The two downsides of this approach are that first the email administrator needs to maintain two mailboxes and second that IMAP access does not take into account a message notification reset.

The example below indicates how Sun Java Messaging Server provides a "Universal Notification Service" for Mailbox changes. The notification mechanism is closely tied to the actual Message Store itself. This gives the benefit of matching the notification to the actual state of the mailbox. The new message notification is cleared no matter how the voice mail is actually retrieved; either by IMAP or by Phone.

Notification

Read more about how to configure Java Message Queue notifications in the

"Configuring a JMQ Notification Service" in the Sun Java System Messaging Server 6.3 Administration Guide

{, }
[composed and posted with ecto]


Technorati Tags: , , ,

( Nov 28 2007, 03:27:37 PM PST ) Permalink del.icio.us technorati digg
20071126 Monday November 26, 2007

Test Post

testing new Blogging client (Ecto) Tranquilize (Feat. Lou Reed) from the album "Sawdust" by The Killers ( Nov 26 2007, 03:08:51 PM PST ) Permalink del.icio.us technorati digg

Setting up NetBeans 5.5 for Dojo AJAX Development

Inserting the Dojo Toolkit into NetBeans 5.5

1. Download the latest version of Dojo Toolkit

At the time I'm writing this, the toolkit is currently on version 1.0.1
www.dojotoolkit.org

2. Unpack the Packaging.
This will create a directory called “dojo-release-1.0.1”. Save this directory in a location which you will
use it later.
Picture 2.png

In my case, I'm copying this directory into my Development folder.

3. Start up NetBeans 5.5

Picture 3.png

4. Create a new Project.

File->New Project->Web->Web Application

Picture 4.png

and press the Next button.

5. Define the New Project.

Project Name: HelloDojo

You can leave the rest unless you need to save the project in another location.

Picture 5.png

Click the Finish Button.

6. Examining the Web Project's Directory Structure

NetBeans should display the following..

Picture 6.png

The Directory Structure Represents the two important directories: (we will ignore the rest for now)

a. Web Pages - The HTML, JSP, CSS and Image files. Also this contains XML files used by the Server.
b. Source Packages - Server-side Java Implementations (Servlets and Enterprise Beans)

7. Copy Dojo Toolkit into the Web Pages Directory

Picture 7.png

NetBeans will reflect this change. (highlighted below)

Picture 8.png

Congrads.. You are now ready to start your Dojo Development!

Writing your first Dojo Application

1. Setting up Dojo in your Page

This example has been taken directly from the “The Book of Dojo” section entitled Hello World - Dojo for the Attention-Impaired. Full credit should be given to “lance” who is the author. I'm adding to this example the NetBeans work we did in the previous section.

The first thing we will do is:

a. Load a Cascading Style-Sheet (CSS). We will be using “Tundra” from the Dijit theme library.
b. Insert a script element into the head element. This loads the Dojo JavaScript to enable Dojo.
c. Place the “tundra” CSS class into the body tag
d. I changed the default “JSP Page” title to “HelloDojo Page”

Picture 10.png

2. Load the Required Widget/Modules

In this step, we will load the Button widget. (see “SECTION 2”)

Picture 11.png

3. Add the Widget to the HTML

Inside the BODY tag, place a new instance of the Button widget on the page.

Picture 12.png

At this time, you can actually try something out. Press the “Run Main Project” button to construct a WAR file to be installed on TomCat.

Picture 13.png

We now have a button. It doesn't do anything, but we have a button!

4. Add an Event to the Button

We are adding a specialized script tag in the above button to handle a mouse click event.

Picture 14.png

This mouse click will cause an Alert to Popup. If you run it, and click on the button, you should see the following..

Picture 15.png

This is it.. you have a very basic AJAX application working on NetBeans 5.5. Next week, I will show out the Server-side Java will provide more useful information than just a PopUp.

Final Thoughts..

I hope you found this information useful. I will be continuing this series further to include our new AJAX-based Web Client (code named Kendo). Please stay tuned..

Technorati Tags: , ,

( Nov 26 2007, 02:45:50 PM PST ) Permalink del.icio.us technorati digg