Not all third-party libraries can be used with App Engine Java standard 
runtime, due to the limitations imposed by the sandbox 
<https://cloud.google.com/appengine/docs/standard/java/runtime#threads>. If 
the library will accept a ThreadFactory 
<https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadFactory.html>,
 
you can pass it one that you get from 
com.google.appengine.api.ThreadManager.currentRequestThreadFactory() 
<https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/ThreadManager#method-detail>.
 
Otherwise, the library will need to be modified in such a way as to make 
use of App Engine's ThreadManager.

On Saturday, April 15, 2017 at 10:03:37 AM UTC-4, Manish Sharma wrote:
>
> Hello,
>
>
> This is my first post here.
>
>
> I am using GAE for my backend(module created through Android Studio). I 
> added a library that helps in sending FCM messages to FCM Cloud Connection 
> Server but this library spawns threads to handle things which is where I am 
> getting this exception for trying to spawn threads.
>
> Now, I know that TaskQueue API is provided for this purpose but the 
> library is not under my control.
>
> How can I get around problems with using 3rd party libs that use 
> concurrency?
>
>
> Any help is truly appreciated.
>

-- 
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/fcdc7cba-7278-4ffa-9793-c44a27eff4a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to