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 developing a mobile application. For database communication I want to use my existing way: WCF Data Service (which is an OData service).
I'm not often programming with java, but I thought this will not be a problem. Failed.
My first try was the odata4j library. All the time I got NullPointerExceptions (I tried really small things like getEntities. It took about one hour to recognize that the documentation is outdated and ODataConsumer.create(..) does not longer exist and you need to use ODataJerseyConsumer).
Then I tried to use a class I found in the internet: RestClient which is available here. I did some modification and in the end it was working, but it does not support odata functionallity (queries like $filter, $oderby, ...) and for each request I need a new instance.. so I'm not happy with it.
Then I tried my own implementation with HttpClient and JSONObject classes. It is a lot of code to do things like I want to and it is very uncomfortable.
So the question is: Is there another library you can recommend that I missed? Do you have any hints how to implement my own "OData Consumer library" or do you want me to invest more time into odata4j?
I found myself in a very similar situation just a month ago.
I recommend that you go back to OData4j for Android development. When you run into issues or get confused, post to the OData4j forum. John Spurlock, the create of OData4j, personally responds to almost all of the posts there. When I was having issues (I created a producer, not a consumer), he was VERY patient and prompt in his responses.
OData4j doesn't have the nearly as many tutorials as it should. So take good notes of the steps you go through and then share your expertise afterwards!!
As for iOS development with OData, the best out there is OData4ObjC. Unfortunately, the current version was abandoned about a year ago and therefore doesn't support iOS 6. I've updated the code and samples to work. it can be found here.
Good luck! And let me know how it goes! I'm considering making an Android app that integrates OData also. :)
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 7 years ago.
Improve this question
I'm currently making an android application that will be used by a certain number of clients. Each client will have an account and will access information from the server. This information is stored in a DB.
My question is what is the best way to create a server side that will, later on, be compatible with other platforms (iOS, Windows, etc.)?
Can I use sockets on different platforms? Or should I create a Web Service?
I found a certain tutorial that I think is explaining a similar thing, but I think it demands a certain amount of knowledge, and I'm totally new to this, and haven't learned this at faculty (I'm good with sockets but I never had much confidence in them, and the idea of sending HTTP requests to the server looks much better).
Can someone divert me to a tutorial or lectures of how this is supposed to be done?
Connection between Android and a server would most easily be done with http requests.
There are several libraries available who make this easy like Retrofit.
For server-side applications you can take a look at Jersey in combination with a tomcat server.
There are of course many applications who can do these... so it comes down to a matter of preference.
There are many web development frameworks that works on many platforms such as spring, vertx, play and many others to name. You can you create rest like api for this purpose. Give all the low level works to the framework. You should not worry about low level details as most off them are handled by frameworks today.
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 3 years ago.
The community reviewed whether to reopen this question 11 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I built an application using GWT in 2012 and it has worked fine until now when a major functionality upgrade is required.
I used GWT because my background is Java and having worked in MVP type projects prior to that it was a good fit.
Today, any problem I encounter and do a google search for has answers that are posted 2 to 3 years ago ( and in a lot of cases don't solve my own issues ) This is telling me that GWT is being left behind.
Because I built the app primarly as a hobby to learn GWT I feel like I would like to learn a more recent framework when rebuilding my application.
So to narrow it down, I want to know if there is any suitable more recent alternative to GWT out there that still allows me to code in Java.
I understand this may seem like a broad question where answers will be mainly based on opinion but how else can you pick peoples brains except asking "What is your opinion" How do I do a,b,c using Java is going to be answered 3 different ways by 3 different people based on their opinion of how it should be done.
I have heard about Vaadin (https://vaadin.com/home)
Vaadin is a covering around GWT giving you more flexibility to work and the same time maintaining the GWT like experience.
Otherwise this is a good compilation, you could pick what you might need:
https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS
As a long time GWT user I am increasingly drawn to AngularJS. Obviously we're talking JavaScript rather than Java here, but coming from a Java background myself I'm finding JavaScript with AngularJS a decent alternative to GWT.
Check OpenXava it's easy to use. http://www.openxava.org/ate/gwt-alternative
There is nothing wrong with GWT per se. Polyglot programming has real costs and there is plenty of activity e.g. on gitter. https://gitter.im/gwtproject/gwt
New users can use https://github.com/gwtboot to get started and there are modern ui kits like https://dominokit.github.io/domino-ui-demo/index.html?theme=indigo#home
Since you still want to code in Java and want to learn something new, i would suggest using "modern GWT", i.e. using elemental2 / j2cl. You should consider learning to refactor your app to separate your view layer from the underlying ui framework. Avoid the parts that will go away in GWT 3.0 such as RequestFactory
JSF? http://en.wikipedia.org/wiki/JavaServer_Faces
It's the "official" (part of Java EE) framework for Java web apps. I've used it briefly in the past and was relatively happy with it. I very much prefer it over other frameworks that still rely on JSPs.
cuba-platform if you are looking for ready made components and Web Firm Framework if you are looking for a framework which can be used to build any UI component. Both are java frameworks to build web ui.
I would recommend learning either Swing or JavaFX.
Swing has been arround since Java 1.2 and is the more "mature" one.
javaFX is their new "hip" version and was introduced into the JDK at version 7.
Personally I'd go for JavaFX just to be "future-proof".
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
Coming from Windows Phone/Store development, I'm used to a lot of tutorials and sample projects on things. I can't, for the life of me, find any good resources on how to create an Android app which interacts with a real REST service. Just a simple app which talks to some random API to help people see how to write Android apps. An app which just hits an API and throws some decent looking view elements on the display would be great.
In Windows land, typically these resources are plentiful and offer best practices, project layout suggestions, etc. Since Android has a greater market share, I expected to find resources easier, but apparently not. Any help would be appreciated. My current setup is using Android Studio.
Here it is one: http://code.tutsplus.com/tutorials/create-a-weather-app-on-android--cms-21587
At the 9 point you will find the class used for the httpCall. This is just the first one I found looking on Google for "meteo app android tutorial" . It seems good.
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
The plan is to create a list of Apache James learning resources, involving a wide a range of aspects from setting it up to using API from java.
If you read this and have some great tutorial at your fingertips, please drop a line or two.
I'll start with
The Official Apache James Wiki
an article by IBM: Working with James, Part 1: An introduction to Apache's James enterprise e-mail server
Some more resources:
http://www.mobilefish.com/developer/james/james.html
http://blyx.com/public/docs/JAMES_2.pdf
For version 3, here is the best I have found so far :
http://james.apache.org/server/3/config.html (not very helpful, but it is something)
http://www.mail-archive.com/server-user#james.apache.org/ (see questions of others)
https://james.apache.org/mail.html (mailing lists - when no docs are available, bugging people may help or force them to write more documentation... Although even that doesn't seem to work with Apache...)
If I manage to make it work the way I want, I might put some instructions here as well.
I'm PMC of James project.
We are working on making running James easier. So far :
We managed to make running it easier by providing docker images (Have a look to dockerfiles on github and https://hub.docker.com/r/linagora/james-jpa-guice/ (for instance) for automatically built image... )
We also made a CI system available for potential contributors : https://github.com/linagora/james-jenkins
We are working hard to a new website, more appealing, and that better present the project.
I understand your concerns, and actually think myself the documentation and communication of the project is a bit unfriendly.
I bielieve that some tutorial might help. Could you please :
Specify which use cases you are targetting (SMTP relay, IMAP server, integration of other applications with e-mails) and we can try to provide "tutorials".
Don't hesitate to contribute to the project. On the mailing list. Or with contributions to the website.
The right place to have such discussions is IMO the Apache James user mailing list.
Cheers,
Benoit
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 3 years ago.
Improve this question
My requirement is to access moodle as a backend engine and front end will be mint in Java[jsf]
now I want to know that is there any interface available to access Moodle from Java , using WebServices or any APIs or anything.
Initially I tried using Sakai which is in Java, but the problem is there is no clear API written for it.
So let me know the option for using Moodle from JAVA.
Also if it is possible than what will be the feature available through the WebServices or API. ?
Or any other LMS that is in Java and provide API or WebService to make this working.
I reviewed many LMS (dokeos, docebo, ATutor) last year and to be frank all of them sucked. Moodle was the most stable, had more plugins and a huge community.
I came across Project Sakai, I havn't tried it, but sounds promising. Something very interesting from Google is cloudcourse (in python I guess, but looks awesome demo). But not a complete LMS (compared to moodle).
You forgot to add Chamilo they have a list of available web services (SOAP) that you can use to create courses, users, add users to courses, etc
https://www.olat.org/ and https://www.openolat.com seem a good alternative to moodle.