Hi! I'm having some problems with the subscription in Java. As a reference, 
I'm using this code<http://code.google.com/p/pubsubhubbub-java/downloads/list>. 
In the subscriber, there is a Test class with the following lines:

String hub = "http://myhub.example.com/endpoint";;
String hub_topic = "http://publisher.example.com/topic.xml";;

I changed them to fit my exercise, so I wrote:

String hub = "https://pubsubhubbub.appspot.com/subscribe";;
String hub_topic = "http://192.168.1.100:8080/receiveTemplate/feed/";;

http://192.168.1.100:8080/receiveTemplate/feed/ is a webpage that shows a 
RSS feed when prompted using GET.

If I run Test class, I always get this response:

2012-10-18 16:07:02.765:INFO:oejs.Server:jetty-8.1.7.v20120910
2012-10-18 16:07:02.819:INFO:oejs.AbstractConnector:Started 
[email protected]:8080
http://Myname-PC:8080/
the status code of the subscription is:409

What am I missing? I suppose I have to add the callback link too: should I 
add it to *hostname*? Do I have to modify the *contextPath* I see in 
Subscriber and Web classes? In the first one *contextPath* string is set to 
"*/push/*", while in the latter to *"/push"*.

Reply via email to