Pergunta

I have an JSF web application that needs to get some information from a native android app.

I've read about creating HTTP requests in android, and I think I can figure it out, but I have no clue on what to do on the JSF side of things. Do I create a new page, bean or what? Is http requests even the proper way to go?

I simply want to send a string from the Android app, to the JSF web app and store it in a bean somewhere. Any help would be greatly appreciated thanks!

Additional info Using Android API 16 JBoss Server 7.1 Eclipse JSF

Foi útil?

Solução

JSF is a component based MVC framework for HTML form based applications. What you're concretely asking is more a job for a web service, not a HTML form controller. JSF is not a web service framework and is hence the wrong tool for the job. You're better off using JAX-WS (SOAP) or JAX-RS (RESTful) or maybe even "plain vanilla" servlet.

Then, to let your JSF web application share the same data, just use the same data store (DB).

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top