Demo: develop a Java EE application on public or private cloud

Developing Java EE applications is easy with WAS Liberty- but what if it’s a cloud application? In this video, Liberty expert Tom Banks will go through a simple demo of how you can develop and deploy Java EE apps simply and quickly with WAS Liberty and IBM Bluemix. Learn more: ‪

Tom explains “I’m going to be talking to you about WebSphere Applications and the Liberty Profile about developing it on your laptop and about developing for the Cloud… So here I’ve got my default Eclipse install. It says, “A standard Eclipse theatre install for Java EE developments.” And I’ve installed the WebSphere development source for Eclipse. Now those are free to download from the website. So if you go to the website here, click on “download the latest GA or download the latest theatre,” then you get a page which will let you click and drag and install the icon onto Eclipse. And that will install Eclipse and Bluemix tools that you need to be able to develop your Java EE applications. So this is my standard Java EE development environment. I’ve got a Liberty Profile server here. To create another server you could just use the Wizards to go through new server, choose the Liberty Profile if you want an on-premise one, and you can have a new runtime. You could either choose an existing install or choose to download a new install off the runtime from my website. Once you’ve downloaded and installed that… You’ll end up with a server like the one I’ve got here. The scenario is you’re flying, on a multi-route flight, with a connection and your first flight is late. So you’re going to miss your connection. This is an application for an air hostess on your flight to go – to rebook you before you land… So it’s just a very basic JSP page, which is a very simple combination of Java and HTML. And I’m going to want to deploy this application to my Liberty server to actually to see it and start testing using it. So the first thing I’m going to do is I’m going to start my Liberty Profile runtime. It takes maybe one or two seconds to start and it’s already ready to go. And I’m just going to click and drag my application from the top there onto the server. And now it’s just going to deploy it. So it took point one of a second to deploy. I’ll refresh this page now. This is my connection booking system. So this is designed to work on the tablet, computer, or a laptop. And what you do is you go, “Right, well I’ve got an adult here. He’s delayed on his flight and I’ve got these three flight options I can book him on.” He doesn’t want to go on the two-hour one. He wants to wait a few more hours in the airport to get some sleep. And I’m going to put him on a – on a business class flight. I’m going to give him a little bit of compensation now. The web application is aware of where it’s running, so this one is running on my UK laptop. So it’s realized that the currency for conversation should be in pounds. So I’m going to give him a hundred pound voucher as compensation. I’m going to give him another thousand air miles of compensation. So I’ll click on the… rebooking and then I’ll talk to the backend system on a remote server and that will complete the booking for him… and that’s all running on this local Liberty server, which I just clicked and dragged on. Now when you’re developing your web applications, you’re going to be able to want to make changes very quickly. So one of the things you can do with the Liberty Profile is to change your application code while it’s running. So it’s still running on my machine, I can change the code without needing to restart anything. It will immediately be updated to the new version. So to make things… I’m going to add a whole bunch of garbage text. So this could be an actual code change to change the behavior of the application. And I’ve just hit “save.” And what we’re going to see is … the application will update, if I’ve got it deployed properly… there we go. I’m going to restart and reload the webpage and we can see that the text has been added there and it’s already being updated… And I can show that by deleting that code from next to the button, hitting save, going back to my webpage, refreshing, resending the form and the – and the code is already gone… So that’s how you can build applications on your local development environment on your laptop.

Duration: 6:44
Publisher: IBMcloud
You can watch this video also at the source.

Inxy Hosting CDN Marketplace