-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goole app engine jar pubnub subscribe didnt go in successCallback #7
Comments
The PubNub Java client for GAE is based on our 3.3 codebase, as 3.4+ uses async, multithreaded requests which are not permitted in GAE. If you would like to send us an example of what you are trying to do using regular PubNub 3.4 or 3.5, we are happy to assist you in porting it to PubNub for GAE. geremy |
Thanks for your reply. My problem is,i created restapi in which when any client open android app the rest will call and that app also send id of that client. Now i handle restapi so first id subscribe to pubnub and channel name same as client id and now i would like to create another channel for broadcast but i am not able to create using google app engine pubnub jar. and i would like to set unique uuid for all client that also not possible in GAE. my code is as follow:
Thanks & Regards |
@DivyeshRupawala Just to be sure I understand you, these are the two main issues for you:
|
Thanks for your help. now pubnub.subscribe( "ch1,ch2,ch3", receiver) is working fine but another problem is why callback not return from connect method? i check it out Pubnub-Standardedition-3.4.jar it's return from callback only problem with google app engine pubnub jar it's never return from callback and waiting for new message.because of this issue i am not able to subscribe another channel.and after few minutes it will throw an error thread time out. yes i would like to set UUID dynamically. Thanks & Regards |
Hi Divyesh- You must remain on GAE_33 branch and 3.3 version, as GAE has restrictions such as single-threaded operation that PubNub for Java 3.4+ does not accomodate (PN for Java 3.4+ uses fully async, multi-threaded operations). So it sounds like the remaining two issues are connect callback and custom UUID? Please prioritize these fixes... 1-5 (1 is urgent, showstopping, 5 is nice-to-have), and we will discuss at next engineering meeting this week. |
Thanks for your help Yes this two issue connect callback and custom UUID for my project. Priority : 1 Thanks & Regards |
Ok, we'll see what we can do... standby for an update by early next week. |
Hi Divyesh, We have made a fix for you regarding setting the UUID on this branch: https://github.com/pubnub/java/tree/GAE_3.3_branch/java/3.3 Please verify. Also, we've confirmed that the connectCallback also works using this code:
|
@DivyeshRupawala Since our GAE code is single-threaded and blocking by design (since GAE does not allow multithreaded code), based on what you are trying to achieve, it may not work... if it still does not work the way you expect, please:
geremy |
Thanks for your your help My problem is now resolved.Now i am able to set UUID and also create multiple channel using Thanks & Regards |
close #7 fixed |
@DivyeshRupawala great! Let us know what else we can assist with. |
I am using google app engine 1.7.4 java.i didn't used python.and i used python google app engine jar for pubnub.
after subscribe called didn't go in successCallback but after i publish any message that i will get message in successCallback.
for that reason i didn't create multiple channel. Its doesn't provide
pubnub.subscribe( new String{'channel1','channel2'}, message_receiver )
It's only provide string parameter for subscribe channel.
Thanks & Regards
Divyesh
The text was updated successfully, but these errors were encountered: