• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpConnection in a separate thread...possible?

 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm studying that connections should be performed through a separate thread. My question is: is it possible to create a separate Thread which is NOT a MIDlet to perform, let's say, an http connection and then invoke this Thread from a MIDlet?

I tried, maybe I am doing something wrong, but the separate thread solution doesn't work. In few words, the emulator doesn't ask me for permissions to go online and nothing else happens. On the other hand, if I create my MIDlet to be also the thread which runs the connection, everything works fine.

Any idea?

Thank you.
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please refer

MAKING HTTP CONNECTIONS USING BACKGROUND THREADS
http://java.sun.com/developer/J2METechTips/2001/tt0917.html

Regards

william
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic