This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Network Connectivity Implementation as per JSR 180.  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings all,
I am currently doing some readup on the JSR 180 SIP API
implementation. It clearly defines and describes all about
"javax.microedition.sip" package containing interfaces and
classes implementing SIP functionality.
In the GCF (Generic Connection Framework) to establish
connectivity with remote machine I use the foll.
StreamConnection sc = (StreamConnection) Connector.open("socket://127.0.0.1:9000");
But as per the JSR 180 developers importing javax.microedition.sip
will have to use the Connector.open() method but typecast it of
type SipClientConnection interface as follows:
SipClientConnection scc = (SipClientConnection) Connector.open("sip:alice@company.com:5060");
When I tried this out using J2ME Wireless Toolkit 1.0.4_01 it
compiled fine but I got ClassCastException during runtime which is
quite logical because javax.microedition.io does not know
interface SipClientConnection like it does StreamConnection.
Now I am stuck here wondering what to do?
Any suggesstions, advices, insights would be of great help!
Thanx,
adios & cheers!
LearningCurve.
 
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Sun WTK (v1 or v2) does not implement the SIP API. I do not know any real device that implements this API -- maybe some Motorola devices do though. Does anyone know?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!