[aerogear-dev] Redirecting http requests
Matthias Wessendorf
matzew at apache.org
Wed Apr 9 04:44:14 EDT 2014
I think, I am afraid, that I don't understand what you mean :)
In worst case, do a grep and see if the URL is somewhere else ;-)
On Tue, Apr 8, 2014 at 11:22 AM, A577127 <antoine.matyja at worldline.com>wrote:
> Hello,
>
> I want to bench the AeroGear UnifiedPush Server. I've decided to make it
> quickly (and dirty) by editing the URL for GCM push notifications
> (https://android.googleapis.com/gcm/send) to another (localhost:1234).
>
> Since the UnifiedPush Server uses Google's java gcm server library, I've
> downloaded the original code ( here
> <https://code.google.com/p/gcm/source/checkout> ) and edited the
> Constants.java to replace the "GCM_SEND_ENDPOINT" constant. It seems ok, I
> create my .jar (gcm-server.jar) and install it locally with maven. Then I
> edited the file unifiedpush-push/pom.xml to add the dependancy instead of
> the old jar (com.ganyo).
>
> Everything seems ok, I deployed my .war file. But surprise ! I can still
> send push notifications to my device... (it's the first time I've been sad
> that sending a push notification worked :))
> I even checked inside the .war file
>
> (jboss-eap-6.2\standalone\deployments\ag-push.war\WEB-INF\lib\gcm-server-1.0.2.jar\com\google\android\gcm\server\),
> the file Constants.class contains my custom URL instead of the classic gcm
> send url.
>
> How is that possible ? Is the gcm send endpoint url stored somewhere I
> missed ?
>
> Thanks in advance
>
>
>
> --
> View this message in context:
> http://aerogear-dev.1069024.n5.nabble.com/Redirecting-http-requests-tp7416.html
> Sent from the aerogear-dev mailing list archive at Nabble.com.
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140409/741f1e14/attachment.html
More information about the aerogear-dev
mailing list