• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic