Send/Receive data between JQuery Mobile and server

Hello there,

I have made a mobile app using JQuery mobile which has static data on it. Now I want to go a step futher to have my app connect to db and get and send data from the web app to the server. but I don't know how to do it. I want to use Java technology on the server side with mssql 2008 db. any help will be appreciated. I could not also find any tutorial on the internet with respect to java server side.

cheers
Zolf
zolfAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Are you making an html5 app that is actually a website in mobile format or are you making an html5 app that will be used as as webview or are you making a true native app?

If the first 2, you can use the data connections you are used to and no special java required.   If you are making a pure native app, then you will need to make a web service for your database and send calls to the endpoints as REST or SOAP.  

This has been answered very nicely http://www.experts-exchange.com/Programming/Languages/Java/Android/Q_27620111.html
0
zolfAuthor Commented:
thanks for your comments. I am making an web app using HTML5 specifically for mobile devices.can you please elaborate on this
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
>specifically for mobile devices

Can I surf to your jquery mobile site by going to www.yoursite.com? if yes, you are making a traditional website in a mobile format.  You may or may not be loading this into a webview.  If this is the case, you can use the traditional database calls you are used to making on your other sites.

If you are making an android app (assuming because you said java) that is only to be run natively (not a web view), then you will make calls to your db by hitting endpoints to a web service.  You can create the webservice using your own db server.   This means your question is really two fold.  1) How to I create a web service 2) How to I send and receive data making RESTful calls to my web service.

http://developer.android.com/guide/components/bound-services.html

http://www.google.com/events/io/2010/sessions/developing-RESTful-android-apps.html 

I have given you a general overview.  It would be good to understand this a little, then perhaps break out your needs to more detailed questions.

If you are just asking about creating the webservice on the server, you can already do this in .NET and don't need to use java.  However, if you want to use java, I know a lot of  people use http://www.springsource.org/  If this is what you really want to concentrate on, then we should get this question under the Java topic.  I have not used spring myself, but from what I understand it is pretty involved.

The point of my answer is you don't have to use java on the server just because you may be using android.  You only need java on the NATIVE mobile app.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zolfAuthor Commented:
thanks you so much for explain and clearing my doubts so clearly.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Responsive Web

From novice to tech pro — start learning today.