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'm trying to access a soap webservice from a jsp page. I need something simple and lightweight as this is a mockup.
Thanks in advance.
If you have Java 6 or newer, you could use the built-in JAX-WS implementation. Sun has a guide on how to use it to build services. It appears that the client implementation is in Part 2.
Although they show how to generate the webservices client using the NetBeans IDE, you can also use the wsimport command-line client to do it, which is in the Java bin folder.
I believe the Eclipse SoapUI plugin can also generate JAX-WS web service artifacts.
I think Apache CXF and its ability to code generation could be the easier way in Java. Were you to use Groovy and GSP, you could use GroovyWS, which relies upon CXF under the hood, and allows litteraly no-brainer call to web-services (which is by the way possible in most of the cases thanks to support for scripting languages of JVM).
While Java6 has a built-in webservice implementation, it is, in my opinion, overly complex and hard to use. My preference would be for Spring-WS, which is leightweight and easier to use.
u can use spring's functionality. look at the section "17.5.2. Accessing web services using JAX-RPC" # http://static.springsource.org/spring/docs/2.5.6/reference/remoting.html.
Or if you are not using spring, then generate stubs using the tooling provided by ur Java EE SDK to invoke the service
I would use JAX-WS.
For web-service, I suggest Apache's Axis2 Engine. It's opnesource, you've the source so that you can learn more....
Related
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
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
What are the open source java based frameworks that can be used to build a dynamic websites?
The dynamic website should allow users to change content in the site. I am not looking for a portal solution, but something lightweight and customizable.
I would recommend Play! Framework. I have worked with it before and it is pretty easy to learn. Extensive tutorials and documentation are on their website.
Because of Play's extensibility, there are many modules for it, one of which is a lightweight CMS module. I have not used this module, but it sounds like what you might be looking for.
Search about Spring MVC or JSF.
Really every Java web framework can be used to create dynamic sites. That's pretty much the entire point of using Java and such frameworks.
If you only needed to serve static content just Apache would be all you need,
There is a bewildering choice of web frameworks in Java. Everyone will tell you theirs is best and all others are bad.
My 2 cents; JSF is one of the most popular choices, rather easy and has lots of support and resources available for it. It's already part of the standard Java EE library, so in most cases you don't have to download or install anything to get started. Any Java EE implementation (JBoss, Glassfish, Resin, Geronimo, etc etc) will do. The only exception is Tomcat.
While there are other choices that also work, it's hard to go wrong with JSF.
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 2 years ago.
Improve this question
I don't want to code things that already exist...
Check mature and lightweight leeloo OAuth 2.0 Java library: http://leeloo.smartam.net/
It implements draft 10 of OAuth 2.0 specification and help you to build client, authorization and resource server.
It was not tested on an Android platform, but you are welcome to provide a feedback.
I know this post is a little old, but since google always directs me to this one when I search for an Android OAuth 2.0 library, I think I need to tell you about OAuth2Android:
Currently it supports Bearer-Tokens and MAC-Tokens based on the
specifications:
draft-ietf-oauth-v2-16
draft-ietf-oauth-v2-bearer-06
draft-ietf-oauth-v2-http-mac-00
Other extensions are also possible and it will be updated.
You need at least Android Platform Version 2.3.3; API Level 10.
You can get it here:
https://github.com/Xotan/OAuth2Android
or
git#github.com:Xotan/OAuth2Android.git
regards Christoph
OAuth 2 is still in draft stage (as of this writing, draft 10).
For now, Apache has an incubator project called Apache Amber which is:
"...a Java development framework mainly aimed to build OAuth-aware
applications"
FYI, the Scribe java library is awesome - great docs, simple and dedicated to oauth.
https://github.com/fernandezpablo85/scribe-java/wiki/getting-started
The google-oauth-java-client is written by Google, and supports OAuth 1.0 and 2.0 (draft 10)
Here is the list of OAuth libraries proposed by Twitter development wiki: http://dev.twitter.com/pages/oauth_libraries#java
Currently at least one of the mentioned libraries is qualified as mature by Twitter developers. I think we can trust their expertise in OAuth.
Leeloo worked great with Github.
https://bitbucket.org/smartproject/oauth-2.0/wiki/Home
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'm new to google appengine and java webprogramming (jsp/servlets/frameworks) (not to webprogramming or java). I was wondering if appengine supported java frameworks and, if so, which of them are recomandable? Are there any frameworks that support authentication?
Thanks
A Google employee linked to the following information on a mailing list:
While we do not support the entirety of the Java EE specification, many of its individual components are supported. These include:
Java Data Objects (JDO) -- notes
Java Persistence API (JPA) -- notes
Java Server Faces (JSF) 1.1 - 2.0
Java Server Pages (JSP) + JSTL
Java Servlet API 2.4 -- notes
JavaBeans™ Activation Framework (JAF)
Java Architecture for XML Binding (JAXB)
Java API for XML Web Services (JAX-WS)
JavaMail -- notes
XML processing APIs including DOM, SAX, and XSLT
Gaelyk is a framework designed specifically to support applications written for the GAE. However it's not a Java framework, it's a Groovy framework. However, Groovy the language is almost a strict superset of Java, so if you know Java, you should find it very easy to learn. In fact, it's quite likely that if you use Gaelyk you can write most/all of your code in Java (though I wouldn't recommend this), because most Groovy libraries/framework work with either Groovy or Java code.
The Groovy Web Console is built using Gaelyk. It's an app that allows you to run Groovy code in a webpage.
Jello-framework is a new Java framework for Google App Engine.
According to it's site it is an End-to-End Java framework including comprehensive Data Authorization model, a powerful RESTful engine, and out-of-the-box UI views.
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
Which JavaScript library you recommend to use with Java EE + Struts + iBatis ?
Something like Ext JS, Dojo, frameworks that can be easily integrated with Struts.
There exists a framework that is supposed to tie in nicely with Java Server/Middleware called JSON-RPC
However I have never used it and cannot vouch for it.. Aside from that my favourite framework is cough jQuery
edit after reading more closely, the JSON-RPC is not quite what you are looking for.. but it still might be useful for ya to look into ;)
Here's a good article on Dojo for Java Developers.
You must choose the Javascript library based on what you expect from the library, not based on the server libraries. The tipical JS libraries (Ext JS, JQuery, Prototype, Dojo, YUI, etc) work on the browser and don't have any dependence on server tecnology.
If you are looking for a way to use your server POJO's from javascript take a look at DWR. This library is now part of the dojo foundation, but I've used it with jQuery and Prototype with ease.
would suggest you go for Struts 2. It has built in dojo and also has options to plugin other libraries like prototype, jquery, gwt, yui, etc.
Should be really handy, since you're using Struts as your web layer..