How to Configure CloudAnalyst in Eclipse


Create New Java Project

New Java Project in Eclipse

New Java Project in Eclipse

Create Java Project in Eclipse

Create Java Project in Eclipse

New Java Project in Eclipse: Java Settings

New Java Project in Eclipse: Java Settings

Java™ Application Development on Linux® – Free 599 Page eBook

Enterprise Java Virtualization:

Understanding the TCO Implications

InfoWorld’s Java IDE Comparison Strategy Guide:

Java Essential Training

Apache Jakarta Commons: Reusable Java™ Components

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

Go to File->Import

New Java Project in Eclipse: Import Source Code from Existing Project

New Java Project in Eclipse: Import Source Code from Existing Project

New Java Project in Eclipse: Import resources from Local File System

New Java Project in Eclipse: Import resources from Local File System

Run CloudAnalyst in Eclipse

Run CloudAnalyst in Eclipse

Done!!!

CloudAnalyst GUI

CloudAnalyst GUI

Single Sign-On for Java and Web Applications

Bulletproof Java Code: A Practical Strategy for Developing Functional, Reliable, and Secure Java Code

Transforming a Generic Java IDE to Your Application Specific IDE:

The Java Virtual Appliance—No OS Required

BEA WebLogic® Operations Control: Application Virtualization for Enterprise Java

Enabling Rapid ROI: With Java™ – Based Business Intelligence Applications:

CloudSwing-Flexible PaaS (Sample Application Deployment Demo)


Related Blogs:

What is PaaS?

CloudBees~ Java Platform as a Service (Sample Application Deployment Process)

CloudSwing-Flexible Platform as a Service

CloudSwing is a Cloud within a Cloud; Its a PaaS available as a SaaS 🙂 Bit complicated as we hear it but extremely easy when we really understand it.

Its a Completely Flexible PaaS solution with a pre-build templates for various stacks.

Available Platforms:

On top of it, Flexibility will drive the user crazy since user can use Open-source and proprietary software as component and use it easily.

Application Monitoring:

CloudSwing also helps you manage and monitor all of your applications across multiple clouds. OpenLogic has partnered with New Relic to provide application monitoring within CloudSwing. New Relic monitoring agents which are by default installed on pre-built stack,  collect information about the performance of your applications, but do not collect any identifiable data processed by or stored in your application.

Supported Public Clouds:

  • AWS
  • Rackspace
  • Windows Azure (In Rodmap)
  • Private Clouds (In Roadmap)
  • User can use his private Cloud account as well.

Free Plan:

Up to 3 members and deploy up to 5 concurrent applications.

When you are done using your deployed applications, you will want to make sure you Stop the application to avoid using up your cloud time. Go to the Applications page, click the Application and click Stop to shut it down.

Let’s Deploy a Sample Application of Struts-Spring-Hibernate with Tomcat Stack.

1) 1 Step Registration and You are on the way to the CloudSwing Journy.

Registration for CloudSwing PaaS

Registration for CloudSwing PaaS

2) Dashboard, Click on the New Application

CloudSwing PaaS Dashboard

CloudSwing PaaS Dashboard

3) Click on the START.

CloudSwing Services

CloudSwing Services

4) Select the appropriate technology STACK.

CloudSwing - Select a Platform - Tomcat

CloudSwing – Select a Platform – Tomcat

CloudSwing - Select a Platform - Tomcat -verify details

CloudSwing – Select a Platform – Tomcat -verify details

5) Verify the Components in the pre-built stack and ADD new if required.

CloudSwing - customize the tomcat platform

CloudSwing – customize the tomcat platform

6) Select a Public Cloud on which you want to deploy your sample application.

CloudSwing - Select Publci Cloud to deploy an application

CloudSwing – Select Publci Cloud to deploy an application

7) Select appropriate Configurations as required for the Application

CloudSwing - Select Public Cloud Select Server Configuration

CloudSwing – Select Public Cloud Select Server Configuration

8) Verify the Instance Details and Click on LAUNCH!

CloudSwing - Launch the instance

CloudSwing – Launch the instance

9) If any Additional components have been added and you want to save that CUSTOM stack then you can Save the Private Stack as well.

CloudSwing - instance allocation

CloudSwing – instance allocation

10) Once the Instance is ready You get the IP Address and SSH Private Key (.PEM)

CloudSwing - instance details

CloudSwing – instance details

CloudSwing - Default Tomcat Page information

CloudSwing – Default Tomcat Page information

11) Verify the Tomcat.

CloudSwing - Tomcat Page verification

CloudSwing – Tomcat Page verification

12) PuTTY’s Key Generator is broken into three main functions: generating, importing, and exporting keys. If you will be receiving a key from another source, you will import the key into the PuTTY Key Generator and then export a PuTTY key for use with the PuTTY applications.

CloudSwing - Import SSH key into PUTTYZen

CloudSwing – Import SSH key into PUTTYZen

13) Download WINSCP

WinSCP (Windows Secure CoPy) is a free and open source SFTP, SCP, and FTP client for Microsoft Windows. Its main function is secure file transfer between a local and a remote computer. Beyond this, WinSCP offers basic file manager and file synchronization functionality. For secure transfers, it uses Secure Shell (SSH) and supports the SCP protocol in addition to SFTP.

Download WinSCP

Download WinSCP

14) Use Imported Key; Username and Password Ubuntu to login into the instance.

Login into the Tocat Server with the use of Key, Uname and password

Login into the Tocat Server with the use of Key, Uname and password

15) Copy the Application from the Local system to Remote.

Copy war file from the local system to CloudSwing Remote Server

Copy war file from the local system to CloudSwing Remote Server

Copy war file from the local system to CloudSwing Remote Server

Copy war file from the local system to CloudSwing Remote Server

16) If you can’t copy the files and get Permission related. errors then Give permission to destination directory with Recursion attribute and try again.

Permissions in Ubuntu

Permissions in Ubuntu

17) While dealing with MySQL, if you get permission related error then give proper rights to the location where data file is available.

Then Create a DB and RUN an SQL Script.

Create Database with the use of .sql script

Create Database with the use of .sql script

19) Change the Database related configurations in the configuration fileof DB (Host, Username, Password, Port) and RESTART tomcat

Change the Database related Properties in Application Configuration

Change the Database related Properties in Application Configuration

20) Done!!!

Sample Application on CloudSwing

Sample Application on CloudSwing

Example of—————-.pem

—–BEGIN RSA PRIVATE KEY—–
MIIEpQIBAAKCAQEAjcGj98PIJXcQM08TqruFyIul+p9TTyEM73UR74FvRaq8wH22APIwI9Pk8y9Z
cDaAcLWC7N8E7zx8YCHSl0WfzBNWexs7dgZMH31UZIaGoaRlDYT6Gdf6vhp/ohHD88kTjae4nXUe
DuK8qLNXnDCt4jvFvnQXjmGY4slTcdvlbqFaZG/Jr0S4FnPLWV3uiikwdfwtcXQtp6fr3rNAL59R
P/gEA1/UAVCvJYsoa9GQGoiaxTJodkas77/oaarZDF+ZeYT0h+zmR0hUTUBf5I/gvpb0jJq8KzsQ
o0J93MpijZUynLn8m+sa3Gvrp1K+xxnIjaS7+cn/fa3pSEStdvokLQIDAQABAoIBAFKf1mmYxPUJ
Y/j0E3uFV6Ifu3vMF+vcUMTV0MFwCSJrNR9hZo9AmsyXOjCAnbnpGo4XThuwlhi3gasqq6ueWljB
wLt6kPrnCsG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Kvp1kYXljvl00J3gpPFcIEKxPJcLzlks03J6dLoKgBEnTUtp5o=
—–END RSA PRIVATE KEY—–

Example of—————-CS.ppk

PuTTY-User-Key-File-2: ssh-rsa
Encryption: none
Comment: imported-openssh-key
Public-Lines: 6
AAAAB3NzaC1yc2EAAAADAQABAAABAQCNwaP3w8gldxAzTxOqu4XIi6X6n1NPIQzv
dRHvgW9FqrzAfbYA8jAj0+TzL1lwNoBwtYLs3wTvPHxgIdKXRZ/ME1Z7Gzt2Bkwf
fVRkhoahpGUNhPoZ1/q+Gn+iEcPzyRONp7iddR4O4ryos1ecMK3iO8W+dBeOYZji
yVNx2+VuoVpkb8mvRLgWc8tZXe6KKTB1/C1xdC2np+ves0Avn1E/+AQDX9QBUK8l
iyhr0ZAaiJrFMmh2Rqzvv+hpqtkMX5l5hPSH7OZHSFRNQF/kj+C+lvSMmrwrOxCj
Qn3cymKNlTKcufyb6xrca+unUr7HGciNpLv5yf99relIRK12+iQt
Private-Lines: 14
AAABAFKf1mmYxPUJY/j0E3uFV6Ifu3vMF+vcUMTV0MFwCSJrNR9hZo9AmsyXOjCA
nbnpGo4XThuwlhi3gasqq6ueWljBwLt6kPrnCsGj9GevfZOD1Z6+rmQX3j+mBFS7
1CIpRmtfohys4fs9L0eJWPxh50ghHM44rm4/9rPhMvD/gcgsBvKJUgygNineWBEa
PsU/qo36VPR4EdvFP9XWrSvEFNOT+marzRNkCTWTW0UZxtskcvX7uI4k4b32QJEz
2xO7OdsdEjb7WJxq7SZbVC0UTDbsLJjfxlu9PHYXYxgipM1e6kTmy+5vkEfrrSAl
czptEwVgNioLWbB48550WH0qTIEAAACBANJKLOeo3HuLqnedzXZe9WDsW21Sh4Ky
qxpS3Yu7Zap1CmZlG6PQWv8F+glU0M5k8lLRqMDSygHANZtSpXEw8015A8DjQYOR
4wFB/Ge48yB9faiMDpCI2nvmRE7QtbuVdL4qpGFpwuCZw840IygBSEA/nGbpfs97
yXr2AtexFpyhAAAAgQCskdhtrt4B9+TnuyWQYrQMx9ImRShkPcEg9GKix04YNx9b
L6jNolNhjfzdz9ES9IOu2o5Ey6QTYrAhAm42YYJxNTG+Xni8jAyTeQKVZ2wWb/EA
pAOYEKn2up8a2Dls1N00i7RpdDnxM47V80CdltgLJY1s4vrQtbIj8waNQbYwDQAA
AIEApjZNABx3tOSWE1i5lmWdeHmagbktKgpSxQYLpWYlNgbsp5llOLOLdhH1wR38
PbMdqoOuDf3FBTz10c0VJ43ScFm3u+t3Chhn9500iHd1/gHz/mClr4rpPnRdZKvp
1kYXljvl00J3gpPFcIEKxPJcLzlks03J6dLoKgBEnTUtp5o=
Private-MAC: ee593a11e05d0aa146ebbb524167437f7a25190a
Related articles