Receive SMS with wma?

Hello everybody!

I'm trying to understand whether it would be possible for my midlet toreceive sms that would otherwise go to my mobile phone.

From what i read on the docs here and there, the starting point should be this:

MessageConnection conn=(MessageConnection)Connector.open("sms://:5000");

but wait a second... 5000 is the port where the midlet is waiting for a connection... how do i know that an incoming sms would be directed to that port?

And even if i try to register my midlet with the push registry, i am always required to specify a listening port.. so that doesn't help.

So what? am i doing something wrong? or simply, it's impossible for a midlet to receive a generic message?

Thanks for your help!

[799 byte] By [CarMasa] at [2007-11-27 5:48:35]
# 1
Application snoops on specific port, can not handle other generic messages.AMS takes care of forwarding messages to our application, if app is listening on that port.
corej2mea at 2007-7-12 15:34:14 > top of Java-index,Java Mobility Forums,Java ME Technologies...