• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

What would be a suitable Start.main Java for hosting a site on Heroku?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a project on IntelliJ and GitHub repositories with Wicket and Spring Boot frameworks. I have already created a Start.main Java file with these sources in mind.

http://wicketinaction.com/2011/09/git-wicket-running-on-heroku/
https://github.com/dashorst/heroku-wicket-examples/commit/9a4b2b9273467c03b868ffa4537c4dc6e7475b30
https://devcenter.heroku.com/articles/java-webapp-runner
https://devcenter.heroku.com/articles/deploying-spring-boot-apps-to-heroku
https://devcenter.heroku.com/articles/github-integration
https://github.com/alexo/heroku-wicket-web-app

My so-far inadequate Start.main Java file is, as so:



How then should I modify Start.main Java to meet the standards of my two frameworks and Heroku?
 
Saloon Keeper
Posts: 22112
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Franlin!

Web applications do not have a start method.

Web applications are not continously-running programs, They are collections of service routines that get called by the application server (container) when a web request comes in.
 
Franklin Oliveira
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's interesting, Tim. I have a brother whose actually good enough at this stuff to have a paid job with it. He's helping me and he thinks a Start.main is necessary. Is there any issue with Heroku, Spring Boot and/or Wicket that may be causing the confusion?
 
Tim Holloway
Saloon Keeper
Posts: 22112
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On reflection, that may be a Spring Boot main class. Spring Boot runs as a standard Java application that launches an internal Tomcat - or, in this case, jetty webserver. So while the webapp has no main class or method, Spring Boot may. But the best place to ask about Spring Boot is probably the Spring forum. Let me see if I can cross-link this thread there.
 
Let nothing stop you! Not even this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic