This is the RestaurantGuide modified to deploy on the Ejip.Net Hosting Platform.  Within this download, you'll find documentation on how to deploy this sample and how to deploy your own application.  By investigating the .xml configuration files, you'll notice that changes have to be made to deploy to your Ejip.Net hosted domain.  Also, there are code changes made to two classes to enable the AligoAccessor and AligoDBConnector classes to connect to databases in the Ejip.Net Hosting Platform.  The changes are minor and you have the ability to develop locally and deploy remotely without on-going changes each time you switch between development (locally) and deployment remotely (Ejip.net).  The changes are necessary to deploy a database application to Ejip.Net.  Ejip.Net requires the use of standard J2EE DataSources; therefore, Aligo's proprietary connection manager will not work in Ejip.Net.  The changes wrap the details of using DataSources from you automatically (see howtoUseEjipDBConnections.txt)

Also, included in this download are the following documents to guide you through deploying your own Aligo application on Ejip.Net:

howtoSignUpForTrialAccount.txt
howToDeployYourOwnApp.txt
howtoUseEjipDBConnections.txt
howToSetupAligoLogging.txt

Directory Structure and contents
---------------------------------
/RestaurantGuide
	/aligoconf - holds configuration and runtime .jars necessary to deploy an Aligo application to Ejip.Net
		/license - holds lic.key file.  You must copy this from your valid lic.key
		/profilemanager - holds profilemanager.xml
			/externallib - holds exteranl device configurations for the profilemanager
		
	/classes - where classes are compiled

	/properties - holds Ejip.Net deployable properties files like aligo.xml, web.xml, and UAQuery.xml
		/tlds - holds tag library information for aligo

	/release - where the Ejip.Net deployable .ear file is put on build.cmd release command

	/tojar - This is where restaurant.jar and restaurant.war are generated.

	/sql - where SQL scripts are located to help you create the database tables for the application

	/src - contains source code for the restaurant guide sample.

	/wartemp - temporary holder during war build process

	/xls - holds style sheets for the application


To get the example running on your Ejip.Net site:
-------------------------------------------------------------------------------------------------
- copy your /ALIGO_HOME/license/lic.key to /aligoconf/license directory

You'll have to modify the followig files with your domain name including the "www" prefix. (e.g. "www.aligo-example.com", or "www.aligo-example.net")
- Modify /aligoconf/profilemanager/profilemanager.xml to add your domain
- Modify /properties/aligo.xml to add your domain 
- Modify /properties/web.xml to add your domain.

- Create database. In the Ejip.Net Console, Database section, cut-and-paste in the /sql/postgreSQL/restTables.sql and click Execute button.
- Set build.properties ejip.dbplugin.jar=ejip-dbplugin.jar
- Set build.properties m1.jars=YOUR_ALIGO_HOME/m-1/jars
- Set build.cmd's ANT_HOME to point to your environment's version of ant.bat.  You should just have to set it to ALIGO_HOME again.
- Build application for Ejip.Net.  From the application home directory (e.g, /RestaurantGuide) run build.cmd release.  ANT will create a file, RestaurantGuide.ear in the /release directory.  You'll notice that RestaurantGuide is actually deployed to Ejip.Net as a J2EE Application (.ear) rather than a Web Application (.war) as it is in the Aligo Server's Tomcat environment.
- Deploy application to Ejip.Net.  In the Ejip.Net Console, Deploy section.  Upload the /release/RestaurantGuide.ear to the J2EE Tab.
- Upload the following jars to the LIB tab from the Ejip.Net Console.

/ALIGO_HOME/m-1/jars/aligoprofileservlet.jar
/ALIGO_HOME/m-1/jars/m1.jar
/ALIGO_HOME/m-1/jars/m1framework.jar
/ALIGO_HOME/m-1/jars/pminternallib.jar
/ALIGO_HOME/m-1/jars/properties-syntax.jar
/RestaurantGuide/tojars/restaurantguide.jar - the one created in /tojar directory when a release is made

- Setup logging in Ejip.Net- In the Ejip.Net Console, Deploy section.  In the WEB tab, create the following directories:

---------------------
 J2EE	| WEB | LIB |
---------------------
	/aligo
            /log
		/profilemanager
		/restaurantguide

You can check here for logs while the RestaurantGuide application is running on Ejip.Net.


NOTE: Modifications to code and re-releases require uploading the /tojars/restaurantguide.jar to the LIB tab as well as re-deploying the RestaurantGuide.ear.
NOTE2: Source code for sample was changed to allow Ejip.Net database connectivity, and to make 2 SQL queries in AligoConnector to work on PostgreSQL.	