Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

J2EE remote Client on Android?

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi !

I'm trying to create a remote application on Android, connecting to a Jboss server...

What i want to do is to use javax.remote features, and access Objects on the Jboss server.

The problem is that when i Run my application in the simulator, the app crashes...i'm using the following imports:



I think the problem is that maybe Android doesn't have the javax libraries installed...

Anyone can point me to the right direction?
Thank you in advance!

Dave
 
Saloon Keeper
Posts: 23414
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
RMI and CORBA interfacing to J2EE isn't much practiced these days. The focus is more on Web Services. Although Web Services can have more overhead, they offer the language independence of CORBA without the firewall issues.
 
Davide Crudo
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

thanks for your reply...

i've never used web services before...but if i understand right, I cannot pass objects
back and forth with webservices...is more like a request response...or am I wrong?

I would like to be able to pass objects...which is more practical ...

any idea?
thanks...
Dave
 
Tim Holloway
Saloon Keeper
Posts: 23414
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can pass objects as long as they're serialized.

However, you're pretty much constrained to a request/response architecture anyways. The only thing worse than having unsolicited stuff pushed to a person's desktop is having it pushed to their cellphone, so you won't find a whole lot of encouragement for it.
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Davide Crudo wrote:Hi,

i've never used web services before...but if i understand right, I cannot pass objects
back and forth with webservices...is more like a request response...or am I wrong?

I would like to be able to pass objects...which is more practical ...



Well, it's good news bad news. You can certainly pass pojos back and forth with a web service. The bad news is that Android doesn't have the SOAP stuff built in and it's not trivial to get them working. I've had pretty good luck using restful web services (ok - I've done exactly 2, but I did both the server and Android side ) that you just parse on the device with sax. But you lose the fancy wsdl parser that generates stubs and, if you had them, pojos.

Mark
 
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic