Coldfusion apps in the Stax cloud

The datasources that are created for our applications in the Stax cloud will get expired once the application is closed (remember this is a beta!!). We can overcome this problem by executing the code for creating the datasource on Application start every time.

For example we can run the following code snippet on the OnApplicationStart() function for your Coldfusion app.

	<cfinvokeargument name="adminPassword" value="admin" />
	<cfinvokeargument name="name" value="YourDsnName" />
	<cfinvokeargument name="url" value="jdbc:stax://YourDsnName" />
	<cfinvokeargument name="class" value="com.staxnet.jdbc.Driver" />
	<cfinvokeargument name="driver" value="Stax JDBC" />
	<cfinvokeargument name="username" value="YourUserName" />
    <cfinvokeargument name="password" value="YourPassword" />

Now regarding deploying a coldfusion application in the Stax cloud there are things that to be noted such as it doesn’t support the CF Ajax libraries. To limit deployment overhead, the Stax application wizard creates applications based on the coldfusion-core template, which doesn’t include the CF AJAX libraries or the CF Admin, so you need to use the Stax SDK to create a CF application with the AJAX features.

You can create a full coldfusion application using the following Stax SDK command:

stax create -t coldfusion mycfapp


java applications in the cloud with Stax

We can now deploy our java applications in the Amazon EC2 cloud for free (currently in the limited beta stage) with the Stax network. We can build Rich Internet applications – Adobe Flex and Google Web Toolkit and also supports Web scripting – JSP, Jython, JRuby (on Rails) and Adobe ColdFusion. It also supports creating MySql databases.

We can create our own apps, develop and test them in our local environment. After that we can deploy them in to the Stax cloud.