facebook

Help Regarding Web App communication

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #335864 Reply

    devccm
    Participant

    Hello,
    Back on Dec 8, 2012 I posted a lengthy email regarding some questions on how to communicate anything we build here with mobione/phone gap to a back end server using Spring. Wayne was kind enough to reply that there some good thoughts in the post but and to give him some time to respond.

    I may have missed the response but I am still looking for the same answers.

    First, what is the best way to communicate from a web app to a back end. I saw an example regarding using Spring RESTful Service and JSON to the web app. Is THAT THE best way to do this. Does anyone have an example that i can load into MyEclipse and MobiOne and havve them talk to each other and step thru, etc. One of the first things to do in my head anyway is to get everything communicating together before building anything. It would really be helpful if anyone has something to share. Thanks

    POSTED DEC 8, 2012
    ————————
    Hi everyone,
    I am an old school java guy that has been using eclipse from literally it’s inception, using smalltalk before that. I stopped architecting and software systems in 2008 to do something completely different that I failed and lost all the money working crazy hours building systems – to put it simply…. Last system i did was in JSF/Spring/Hibernate and some authentication engines (stuff you see wheny you log in and get a text or phone call, etc). I got by with my HTML and Javascript for small stuff but now this is apparently the game to be working in which blows my mind but ok.

    Guys I am lost and confused. I hope I can get some input here because i want to start going and tired of reading and not sure which way to build this. Here is what my project entails (I have both MobiOne and MyEclipse Spring):

    ***
    I want to build a web app that runs on iPhone and Android and will communicate to a server side solution built in Java and hopefully hosted thru Google App Engine. The app is not a crazy one at this time (more so text/input fields, etc) but I have no idea which way to go. Here is my plan and hopefully you guys can just give me some help:

    a). Develop iphone solution and android solution using mobiOne. I am most likely going to create two separate projects to make sure the look and feel follow both sides. I am guessting this is normal?

    b). Develop using mySQL, hibernate, spring, and create spring services (simple singletons for behavior) to access business logic. Going to see how this Scaffolding works… House this on Google App Engine for Java. This would be normal server side business solution. I am assuming this makes sense?

    c). Here is the I DO NOT KNOW PART… I have no idea how to control the communication and state (what would be a session with a regualr browser for servlets/JSF/Struts) between the phone apps and the Spring services that have my business logic/models. Can anyone:
    1). Point me to a website, reference, book, examples of how to do this
    2). Tell me what is the best solution to do this.
    3). Do I just use the servlet engine solution and then how do i parse the response on the other side AND
    do i need to send it over a special way. Or do I need to use a solution that works with AJAX (which is what web services –
    something I do not know at this time as we used JSF to handle that )…I am reading about JavaScript frameworks and libraries and
    not sure if I need to use Ember.js or some of the others listed on compares (in articles comparing 7 frameworks/templates) and if
    those can work inside MobiOne the best, etc. I do not want to start learning these or only picking one if I have to to get going.

    d). Again I have only designed on paper so far, but want to start coding — is there a way to setup MyEclipse running in debugMode and talking to a WebApp on MobiOne on the same machine and debugging? A lot of that i guess will determine if I can run Tomcat to serve the data and have MobiOne be able to access it in their debug
    e). For an app like this I also would want to store some data for authentication to the server? How is that done? Does MobiOne provide a solution to store that information as well as some data that would not need to possibly be refreshed for a week on (or unless requested by phone app) the phone in a transparent way for iphone or android.

    There are always more questions but this will help me at least connect the two development environments up and then help me to understand what I need to be using on the java side for communication and then what i need to do on the phone app side. I could not tell you how thankful I would be if some would share your wisdom. I thought my days of programming was going to be finished and now I have to catch up and start all over again after 16 yrs of doing it and 4 off where i lost everything i made in 16. Thank you in advance
    ——————–

    #336214

    support-michael
    Keymaster

    > First, what is the best way to communicate from a web app to a back end. I saw an example regarding using Spring RESTful Service and JSON to the web app. Is THAT THE best way to do this. Does anyone have an example that i can load into MyEclipse and MobiOne and havve them talk to each other and step thru, etc.

    Yes, RESTful webservices with JSON is the classic approach. We are actively developing MyEclipse Mobile Tools to be released Early-Access 1 by the end of March. See this blog http://www.genuitec.com/blog/?p=4961

    >One of the first things to do in my head anyway is to get everything communicating together before building anything.

    I agree with this practical approach.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Help Regarding Web App communication

You must be logged in to post in the forum log in