1.Create a HelloWorld Web project from Eclipse and make sure you have choose the traget runtime with was liberty profile.
2.Create a servlet named HelloWolrd ,and generate get and set method.Write the below code to the doGet method.
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
PrintWriter p = response.getWriter();
p.println("<BODY>");
p.println("<H2>This a blueMix demo");
p.println("</BODY>");
}
3.Start the WebSphere Application Server Liberty Profile at localhost ,choose the server and add your hellow world project to the runtime server,so you can do the local testing for that.
Notes:Sometimes your liberty default 9080 might be occupied,so you might need to change httpPort in the server.xml
<server description="new server">
<!-- Enable features -->
<featureManager>
<feature>jsp-2.2</feature>
<feature>localConnector-1.0</feature>
</featureManager>
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint httpPort="9085" httpsPort="9443" id="defaultHttpEndpoint"/>
<applicationMonitor updateTrigger="mbean"/>
<webApplication id="HelloWorld" location="HelloWorld.war" name="HelloWorld"/>
</server>
4. Launch the url in the web console ,open the browser to do the testing
5.Once you liberty application is ready on local side, you can deploy it to the BlueMix,The step is very simple.Choose the IBM BlueMix server and add your project into it.
6.During the deployment,it will let you change the application detail info,deployment detail,service selection info.
Pls make sure the deploy url is not used by others,otherwise the deployment will be failed
If the deployment is sucessful,you can see your liberty application is already deployed in the BlueMix.
7.Visit the BlueMix url http://helloworld001.ng.bluemix.net/HelloWorld
Now our first HelloWorld Liberty demo is completed,enjoy it.
Thanks for the information Very usefull.
ReplyDeleteThanks for sharing such informative post keep updating. Keep updating.
ReplyDeleteSnap on our tags to know more about us.
Web Design company in Hubli | web designing in Hubli | SEO company in Hubli
This information really worth saying, i think you are master of the content and thank you so much sharing that valuable information and get new skills after refer that post. Websphere Training in Chennai
ReplyDeleteThank you for sharing this powerful article, your explanation is clear and very easy to understand. Please kindly visit our site to get more information about IT solution.
ReplyDeletemelbourne seo services
the blog is about How to use eclipse to develop liberty java application to BlueMix Part Two#java it is useful for students and Java Developers for more updates on java follow the link
ReplyDeletejava Online Training Hyderabad
Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
ReplyDeletejava course in delhi
Hi,
ReplyDeleteThanks for sharing a very interesting article about How to use eclipse to develop liberty java application to BlueMix Part Two. This is very useful information for online blog review readers. Keep it up such a nice posting like this.
Regards,
WondersMind,
Web Design Company Bangalore
Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.
ReplyDeleteRPA Training in Chennai | Best RPA Training in Chennai
Web Designing Training in Chennai | Best Web Designing Training in Chennai
SQL Server Training in Chennai | Best SQL Server Training in Chennai
Digital Marketing Training in Chennai | Best Digital Marketing Training in Chennai
UNIX / LINUX TRAINING IN CHENNAI | BEST UNIX/ LINUX TRAINING IN CHENNAI
C/C++ TRAINING IN CHENNAI | BEST UNIX / LINUX TRAINING IN CHENNAI
C C++ Training in Chennai | Best C C++ Training in Chennai
Web Designing Training in Chennai | Best Web Designing Training in Chennai
I have to voice my passion for your kindness giving support to those people that should have guidance on this important matter.
ReplyDeleteMCSE Training in chennai | mcse training class chennai
Your post is exceptionally useful to get some powerful tips to lessen weight appropriately. You have shared different pleasant photographs of the equivalent. I might want to thank you for sharing these tips. Definitely I will attempt this at home. Continue refreshing increasingly basic hints this way. making a contribution
ReplyDelete