web hosting for spring and hibernate application [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have to host a web application built using JSP, Java 6, Spring 3, Hibernate 3, mySql, Tomcat 6.
I am new to hosting a web application and have some queries:-
Can anyone please guide me on this, specially from the Spring and Hibernate point of view?
What are the issues raised during hosting/running an Hibernate & Spring application ?
Will any host providing Java hosting also provide support for Spring and Hibernate?

You may use a cloud provider for that. There are a lot. Amazon web services is the leader on the market but it's moving fast (and you have a free micro instance for one year to try). Oracle just entered the ring for example. Rakspace is a big one too and there are a lot of others.
Then you may decide between IAAS and PAAS. Basically with PAAS you don't install tomcat or mysql yourself. There you have solutions like Red Hat Openshift, Vmware Cloudfoundry, Amazon beanstalkC cloudbees, Microsoft Azure.
With IAAS, you have a virtual machine. Maybe you can start by this to move up the stack and try PAAS later.
Cloud is the future of hosting. Renting a physical machine will disappear shortly. PAAS is believed to be the future of cloud. So you should try the cloud. There are tons of tutorials on this.

There are several PaaS where you can deploy a Spring application. However, not in all of them you will have support for the same containers. CloudBees is a Java PaaS where you can deploy your application in Tomcat, Jboss, Glassfish and Jetty. You have the several containers that they support here.
Specifically for Spring you have this official documentation and also this step by step guide on a blog.
They also provide two ClickStart as an example:
PetClinic ClickStart
BeesShop ClickStart
As always... try different platforms and just choose the one which meets your needs.

Related

RESTful API with either Tomcat or Node.js? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am at a decision fork where i have to pick whether to use Tomcat or Node.js in my project and need advice from experts on this.
Some questions that i have here are:
Is Tomcat (Java) or Node.js with Typescript better suited to write a RESTful API which gets values form a Database and has to interact with a another java component?
Does Node.js have unit-testing support?
Is it possible to use websockets with Tomcat for another component of the API which pushes Data to the client?
Is the type system of Java better than the system of Typescript (not all dependencies are available in Typescript (or?) and therefore don’t have types?)?
Tomcat and Node.js are really totally different from each other, so there is no one to one comparison.
While Tomcat is a web server, Node.js is a server side runtime environment - and therein lies all the difference. Java - and consequently the web and application servers supporting it - give an architectural foundation to your application which arguably no other technology can offer. On the other hand, the speed, flexibility and simplicity of JavaScript (and therefore Node.js) is a winner.
So the real question you should be asking is - do you want a robust application with solid foundation or a speedy, flexible solution?
There are also a slew of other factors to consider such as memory, performance, maintainability, and the likes.
Here are some links that might help:
Performance comparison
Java vs. Node.js:
Yes Tomcat Support websocket in tomcat. If you have already some written component in java you should use java.
You can use jersey , spring boot to implement your rest webservices.
If you are working with nosql kind of databases then nodejs could be better bet

WebDav Server library preferably in Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have an app used to manage files and folders that exposes services through an homemade RESTFul Api and I would like to add Webdav features so that files that I host can be easily accessed through standard file explorers or directly modified via MS Office and related software.
I'm looking for a server Webdav library preferably in Java to build a really simple application that would be a bridge between incoming Webdav request and my Api. Main requirement is that the Api has to support Webdav level 2 features (locking).
I have tried the Milton Api once in the past but they have changed their licensing to AGPL3 and I don't want to make my whole application AGPL3 nor can afford the commercial license so I'm looking for other alternatives.
What Api do you use or recommend?
Thanks.
If you're not tied to java you could use SabreDav (PHP).
Just clarifying milton's licensing (was changed recently) all the DAV level 1 features are available in an apache2 licensed jar which is all you need for the use cases mentioned in the question.
The AGPL+commercial license applies to the extension jar which provides locking, calendar and contacts.
Cheers,
Brad
Milton is using the Apache 2 license: https://github.com/miltonio/milton2/blob/master/LICENSE.txt
Only the enterprise extensions use AGPL.
From the homepage:
Milton.io is a Java Webdav Server Library supporting Webdav level 2, CalDav, CardDav.
Integrate your java web app with desktop and mobile devices for files, calendars and contacts
Your data could be relational databases, file system, web services or any other data source
Supports Windows, Mac, Linux, Android and iOS devices, and pretty much everything else.

What would be a good implementation for running java (javaserver pages) on a linux server? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I want to install and use java on a linux server. specifically, for creating large web applications, so I want to use JavaServer pages technology
My question: is this possible?
and how do I get started?
thanks,
av
Yes, absolutely.
Tomcat is what you need. It's an open source servlet container that supports JSP (Java Server Pages) and it works fine on Linux. It's very stable and sustains very high throughput.
I can tell you first from first hand experience that some surprisingly large companies with a lot of daily traffic use Java, Linux, and Tomcat to build their webapps.
EDIT: So, if all you are interested in is JSP, Tomcat is the place to go. For large Java webapps, some other standard technologies get used. Based on your question, these may be more than you are looking for now, but just in case....
Apache HTTP Webserver - Can provide
some caching, load balancing, and
HTTPS termination.
Hibernate - Database relational mapping
Spring - Dependency Injection and
configuration, among other things.
Struts or Spring MVC - Web App
framework
Velocity or Freemarker -
Alternatives to JSP for templating
Memcached - Distributed caching.
These are some of the other larger moving parts. All free, open source, and work very well on linux. There are tons of smaller parts that I haven't mentioned.

How to scale Java app in the cloud automagically?, or, is there a Heroku for Java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I recently came across Heroku, which looks extremely cool. You just upload your app and you're done; it scales without further intervention. Unfortunately, Heroku is for Ruby and our app is in Java.
It's a webapp, implemented as a .war file. We want it to scale automatically across clusters of servers maintained entirely by other people.
We've spoke to Rackspace. They have "Rackspace Cloudsites" which does this for Wordpress. They have no intention of supporting Java app servers in this way.
What else is out there?
The key to scalability is not the infrastructure (only). You can use various cloud offers:
Google App Engine
Amazon EC2
Heroku
CloudFoundry
VMForce (upcoming)
etc..
But if your application is not inherently scalable, the cloud won't help you.
In fact, strictly speaking, scalability is a property of the application, and it means that the application starts supporting higher load by simply adding hardware. The cloud offers you the "adding hardware" part. The rest is your responsibility.
Now, how to achieve scalability of your application is a huge topic. High scalability is a good resource for such articles.
Now Heroku supports Java. Great value for service/price :)
Take a look at Google App Engine. In your case, the App Engine Java Overview will be helpful. You can also build App Engine applications using Python.
Google App Engine does this. It's all Java and Javascript (converted from Java when needed) too.

Which SOA architecture is most appropriate for a Java application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am currently working on a pretty large Java 6 application where we are looking to split some of our functionality out into a service oriented architecture.
It seems that the primary SOA framework for the application space is OSGi and I have been looking into Felix and Knopplerfish but I wanted to make sure that this isn't my only option.
Does it make sense to use an actual web service protocol for our application like SOAP, even though we are not building a web app? Is this even acceptable?
Have any of you used an implementation of OSGi (Felix, etc.) with your desktop application? if so, how did it go? Do you know of anything better?
We're all pretty new to SOA here so any help would be greatly appreciated.
My company uses OSGi extensively, and it works well for us, in that we can version various components and have greater control over what gets exposed from each component.
If you envision ever wanting to run different components on separate hardware, then writing using web services (REST/SOAP/etc) makes sense. But there's a performance penalty in both sending bits from one process or network to another,and serializing/marshalling that data so it can be sent, and doing the opposite on the other side. If you don't ever think that will happen, then don't use web services.
We use Eclipse RCP as our application platform, which is OSGi based (Equinox). Our application makes usage of both the Eclipse plugins as well as pure OSGi bundles. In our case we have services that are both local to the application as well as remote (via Spring Remoting) to Java EE servers.
In your case, OSGi may make sense for your app, but remote service protocols don't.
Also, a desktop application on its own is not considered SOA. You are simply componentizing your application, which is a good thing.

Categories