How to implement a single instance app manager in java (CVM PhoneME)?
Posted
by Marcus
on Stack Overflow
See other posts from Stack Overflow
or by Marcus
Published on 2010-05-20T20:12:32Z
Indexed on
2010/05/20
20:40 UTC
Read the original article
Hit count: 238
Hi,
I'm working on a application manager for embeded platform based on the CVM PhoneME VM. The VM is started by a C++ app which configures the CVM and then triggers the VM itself. This C++ app is called form the command line passing the main class name and the classpath of a java application. There is a main java app (lets call it Manager) which loads the app using classloaders. I want this manager to be a single instance application so it could track all running apps.
In other words: The first time I start an app (app1 for instance), the VM will launch and the Manager will load the app1. In further calls to load other apps (app2, app3 and so on), the same instance of the Manager would load those apps.
The manager is working fine, except for the fact that this is not a single instance.
Is it possible to do what I want?
I found this: http://www.knowledgesutra.com/forums/topic/59760-how-to-implement-single-instance-application-on-java/
This is almost the same I want, except for the app loading part. However, the necessary packages are not available in the CVM implementation.
Thanks very much.
© Stack Overflow or respective owner