Ciri
Ciri

Reputation: 371

Run a simple Java program in the OpenShift cloud

what is the easiest method to run a Java program inside a gear on OpenShift?

I don't need a complex framework or web server. I just need a container to which I can upload my Java Files, compile and execute them in the cloud. The application I have in mind is very simple, a program that gathers some information and that I can connect to via RMI and just ask for the data.

Thanks.

Upvotes: 2

Views: 1045

Answers (2)

juanignaciosl
juanignaciosl

Reputation: 3573

If you don't need an application server you'd better take a look at DIY cartridge. You'd just have to create it from your code:

rhc app-create yourapp diy-0.1 --from-code git://github.com/(...).git

You could even use git hooks to launch it. Take a look at the hooks I use at my Wedding Tables Planner web, based in this template.

Upvotes: 5

akostadinov
akostadinov

Reputation: 18594

I think easiest is tu run a jbossas app and stop the jbossas cart if necessary. Otherwise you may play with the diy app type.

Upvotes: 1

Related Questions