Hey guys

I'm working on a project with Google App Engine. To get Data from my 
devices we're using MQTT. The org.eclipse.paho.client.mqttv3.* library 
starts a Thread with "client.connect()". After some researches i found that 
you cant just simply create Threads when working with GAE. Following error 
is shown:

*java.security.AccessControlException: access denied 
("java.lang.RuntimePermission" "modifyThreadGroup")*

I continued searching and someone told to use following code instead of a 
"normal" Thread:

*Thread monitoringThread = ThreadManager.createThreadForCurrentRequest( new 
Runnable() {..}*


So i decompiled the paho library, looked up where the Thread is created and 
changed it. I created a new class exported it as mymqttclient.jar In 
eclipse i changed the order of my build at Properties -> Java Build Path -> 
Order and Export so mymqttclient.jar is loaded before the 
mqtt-client-0.4.0.jar So that it will use my created function with the 
monitoringThread.

But how can i change the order of the .jar's in the web-inf/lib ?

Thank you very much for your answers, i couldnt find something useful until 
now.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/8d6e7261-7b39-41eb-acc7-af3e31a86a26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to