File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java Micro Edition
j2me application with Pushregistry
Joined: Dec 16, 2008
Dec 24, 2008 01:53:00
can you help me.i use pusgregistry in my applicaiton but
it is launching automatically when i send message on that number.
thakns in advance
i addedd in jad file
midlet name,*,port number
but it is not working.
please help me
[ December 24, 2008: Message edited by: prajapati ajay ]
[ December 26, 2008: Message edited by: prajapati ajay ]
Joined: Oct 08, 2000
Jan 03, 2009 06:40:00
I don't know much about Push Registry. Have a look at this docs,
The format of the MIDlet-Push attribute is... MIDlet-Push-<n>: <ConnectionURL>, <MIDletClassName>, <AllowedSender> ...where: MIDlet-Push-<n> is the property name that identifies push registration, and where <n> is a number starting from 1; for example, MIDlet-Push-1. Note that multiple push entries are allowed. <ConnectionURL> is a URL connection string that identifies the inbound endpoint to register, in the same URL format used when invoking Connector.open(). For example, socket://:5000 reserves an inbound server socket connection on port 5000. <MIDletClassName> is the fully qualified class name of the MIDlet to be activated when network activity in <ConnectionURL> is detected; for example, j2medeveloper.basicpush.PushMIDlet. <Allowed-Sender> is a filter used to restrict the servers that can activate <MIDletClassName>. You can use wildcards; a * indicates one or more characters and a ? indicates one character. For example, 192.168.1.190, or 192.168.1.*, or 192.168.19?.1, or simply *. Listing 1 shows a JAD file with a static registration of an inbound socket connection on port 5000, with no address filtering, which activates MIDlet j2medeveloper.basicpush.PushMIDlet. MIDlet-1: PushMIDlet,,j2medeveloper.basicpush.PushMIDlet MIDlet-2: WMAMIDlet,,j2medeveloper.wma.WMAMIDlet MIDlet-Name: MyMIDletSuite MIDlet-Vendor: Sun Microsystems, Inc. MIDlet-Version: 1.0 MIDlet-Jar-Size: 4735 MIDlet-Jar-URL: basicpush.jar MicroEdition-Configuration: CLDC-1.0 MicroEdition-Profile: MIDP-1.0 MIDlet-Push-1: socket://:5000, j2medeveloper.basicpush.PushMIDlet, * MIDlet-Permissions: javax.microedition.io.PushRegistry, javax.microedition.io.Connector.serversocket
I think your syntax is incorrect. to know more on the above refer to :
I agree. Here's the link:
subject: j2me application with Pushregistry
% of each Section in SCEA 5 step 1 exam
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015