Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2EE remote Client on Android?

 
Davide Crudo
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Saloon Keeper
Posts: 18365
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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: 18365
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic