A project with two or more MIDlets (on Netbeans), How two or more MIDlet can communicate?! | Thales IoT Developer Community
November 27, 2014 - 10:43am, 2260 views
Hello Everybody,
I'm writing java application for EHS8 on the NetBeans IDE.
I have 2 issues,
1. I can make one MIDlet on one project, and copy the build file to the modle and run it beside other MIDlets. I tested that many MIDlet can run at the same time. But when in the Netbeans I add new source CLDC->MIDlet, and add one of those MIDlets to another one and compile the project, Netbeans can't compile the second MIDlet or if it compile and build then on the Module it can't run! Seems it face something wrong!
2. Imagine we have many MIDlets which each of them will be installed on the Module, is there any way for their intercommunication ? For example we need to pass a message from GPS (in one MIDlet) to another one which is controlling a Socket connection! Seems there is not any "IMCConnection" class for Gemalto!
Please kindly help me in these two issues.
Thanks~
Mehrdad F.
Hello,
1. You can run more than one MIDlet on the module. But you need to create the separate MIDlet project for your another MIDlet and build this MIDlet in that separate project. Then you can install these two MIDletsd separately and run them separately.
2. Please check the PipeConnection and PipeServerConnection interfaces in the API. You open these connections as any other with Connector.open(...).
Best regards,
Bartłomiej