Index News FAQ TUTORIALS Contact Mailing List Partners DeskTop    

Mailer
Pojo Application Server

There are several reasons for doing this project:

  • A background Mailer always comes in handy for things like sending emails to administrators, providing confirmation of an order, proving an email address by sending a password to it, etc etc.
  • Its also a great template for developing your own servers on Harbor, and the source is provided below. 
  • Its a good proving exercise for Harbor. This software operates in a multithreaded environment and like most java mailers its based on the SUN java mail libraries which are themselves complex socket based libraries.

If Harbor can run code like this, its also possible to build another Skype, or another Google Earth as a full application that starts from a browser, or possibly even a Yahoo type desktop driven search engine, and every product could also offer the user games and entertainment. Essentially anything that can be done in a powerful standalone application.

The container certainly does have wonderful attributes....

  • Ease of development - Cant get easier than designing standalone.
  • Code portability -  Runs just about anything.
  • Complete Application Delivery - Unique to Harbor
  • Speed - No fancy introspection and parsing, it just loads up the code and runs it.
  • Least Scalability Requirements - One has so much control over the application design, its easy to make it heavy on the client and light on the server, and to use objects quickly and efficiently.
  • Easiest Admin - If you can drag and drop, you qualified.
  • Best Developer Investment - We first make great standalone applications, or great libraries. Just so happens they also work in an application server.

Remember that you can use this Mailer in ANY software, its an independent application and its NOT part of the container.... until we drop it in.

To Test the Mailer Server
http://localhost:8080/harbor/ships/Harbor_Mailer_Ship.jar
and the UI tester will jump out of your browser
and let you play with the mailer server.

If you would like to change this Mailer, modify the stand-alone code, then just drop it back into Harbor.

 

The Harbor Mailer for ease of testing is pre-packaged in the War.
Down-Load Harbor, and you'll have it all.

Source Code Listing

POJO APPLICATION CODE

HARBOR SERVER CODE (Ship)

The Mail Engine (Server Side)

 

A Mail Package (It holds the mail to go)

 

User Interface (So you can test it) 

 

The CD Unit (The bit you run to start it)

SHIP (Harbor CD Unit) Makes it run remotely 

The Interfaces

Copy all the interfaces

I_MailEngine  
I_MailPackage  
I_UI  
I_CDTestUnit  

If one looks at the code for the stand alone application and then at the Harbor specific code, easy to see why its called a POJO application server.

 

Infinite Tool Base

Because this is a POJO container your tool base is actually every
 Java library on the web.

We will list tools here that we feel are special, and that come with Harbor example code where that is applicable.

 

Partners

 Overview

 Download

 Documentation

 Certification

 Tools

 Samples

 Tips and Tricks

 

 



Harbor Symbol

Models, Models, Models! Free Modeling Portfolio! ModelCoast. Photographers! Free Photographic Portfolios. Imagegods. Visit The Best Free Image Hosting.