<div dir="ltr">I think, I am afraid, that I don't understand what you mean :) <div><br></div><div>In worst case, do a grep and see if the URL is somewhere else ;-) </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 8, 2014 at 11:22 AM, A577127 <span dir="ltr"><<a href="mailto:antoine.matyja@worldline.com" target="_blank">antoine.matyja@worldline.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I want to bench the AeroGear UnifiedPush Server. I've decided to make it<br>
quickly (and dirty) by editing the URL for GCM push notifications<br>
(<a href="https://android.googleapis.com/gcm/send" target="_blank">https://android.googleapis.com/gcm/send</a>) to another (localhost:1234).<br>
<br>
Since the UnifiedPush Server uses Google's java gcm server library, I've<br>
downloaded the original code ( here<br>
<<a href="https://code.google.com/p/gcm/source/checkout" target="_blank">https://code.google.com/p/gcm/source/checkout</a>> ) and edited the<br>
Constants.java to replace the "GCM_SEND_ENDPOINT" constant. It seems ok, I<br>
create my .jar (gcm-server.jar) and install it locally with maven. Then I<br>
edited the file unifiedpush-push/pom.xml to add the dependancy instead of<br>
the old jar (com.ganyo).<br>
<br>
Everything seems ok, I deployed my .war file. But surprise ! I can still<br>
send push notifications to my device... (it's the first time I've been sad<br>
that sending a push notification worked :))<br>
I even checked inside the .war file<br>
(jboss-eap-6.2\standalone\deployments\ag-push.war\WEB-INF\lib\gcm-server-1.0.2.jar\com\google\android\gcm\server\),<br>
the file Constants.class contains my custom URL instead of the classic gcm<br>
send url.<br>
<br>
How is that possible ? Is the gcm send endpoint url stored somewhere I<br>
missed ?<br>
<br>
Thanks in advance<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/Redirecting-http-requests-tp7416.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/Redirecting-http-requests-tp7416.html</a><br>
Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>