Inter process Communication

Login to reply to this topic.
Sun, 2003-06-08 11:53
Joined: 2003-05-13
Forum posts: 55
Hi,
 I am implementing a software which has to get some systems related info and also present a good ui to the user. i was planning to implement the function for getting the systems info using symbian c++ and then use a java midlet to present a ui and this midlet can connect to my c++ program via a socket and get the info whenever it is needed. now the problem is: Is this possible??? shud be, i have not read anything contrary to it at least till now. secondly, is there a way i can run my c++ program from the java midlet (i doubt it but still ask) or vice versa.
 and finally, the software is such that it has to get the info (actually the info is the Cell ID) at regular intervals. can i set up an event to do that rather than polling my c++ program every second, say. and is i set up an event (this has to be done in c++ i guess since is system info) then how do i tell my java midlet. i am fairly new to symbian os and have to implement this soon. any help would be appreciated. thanx a lot, coolral.

Sun, 2003-06-08 22:25
Joined: 2003-04-03
Forum posts: 31
Inter process Communication
To my knowledge J2ME can not use JNI (so you can not do IPC). Also I doubt file access is possible with J2ME as these are running in their isolated environment.

The usage of client sockets should be possible. If you manage to do that, you can of course send packets whenever the cell id changes.

There also is an unsupported hack to launch the Java VM from Symbian C++ (search the forums at http://nkn.forum.nokia.com). The launching of C++ programs from J2ME will probably not be possible.

good luck,
zeep

zeep

Mon, 2003-06-09 14:17
Joined: 2003-05-13
Forum posts: 55
Inter process Communication
hi,
 ok, thanx for the info. but if file access is not allowed in j2me, then how can a java midlet store information for future use? that is in persistent storage. as for sockets, i am thinking of trying that but if there is no way to get persistent storage, then i will have to discard the java module altogether and use c++ instead. much tougher to port then Sad as for launching the java vm using c++, the only thing that i find on nokia regarding java is that it does not support sockets as well Sad( at least midp 1.0 does not. that is even worse news. looking for the program launching example in the forum though. thanx for ur help. cheers, coolral.
Mon, 2003-06-09 14:23
Joined: 2003-04-03
Forum posts: 31
Inter process Communication
There is a way of persistent storage defined in j2me. But the data is stored application specific. No direct access to the filesystem is possible.

Client sockets should be available in Nokias J2ME implementation.

Sorry that I can't help any further, never actually did anything in J2ME, just read some docs about it Wink

good luck,
zeep

zeep

Fri, 2003-09-19 12:46
dubik (not verified)
Forum posts: 2043
Inter process Communication
You can add your information into .jad and in midlet call getAppProperty() method.

Sergiy
  • Login to reply to this topic.