I wanted to get my wiki noticed on weblogs.com, blo.gs, and the like, so I found a place that accepts HTTP GET requests and pings a multitude of these services. pingomatic.com will take the name of your "weblog" and the url as part of a request, and will ping a variety of various ping services.

So, I wrote a little custom class to spawn a new thread and run an http get at pingomatic.com (so the entire process runs in the background). Put the attached jarfile into your WEB-INF/lib directory, and change Edit.jsp to add the following code after the call to saveText():

            // send http request to pingurl
            Properties props = wiki.getWikiProperties();
            String pingurl = props.getProperty("jspwiki.pingurl");
            if(pingurl != null) {
                try {
                        com.encodedrecords.http.PingThread pt = new com.encodedrecords.http.PingThread(pingurl);
                } catch(Exception pingex) { System.err.println(pingex.toString()); }

Then, in jspwiki.properties, add:

jspwiki.pingurl = http://pingomatic.com/ping/?title=(YourApplicationNameHere)&blogurl=http%

Note in the above, there are two things that need to be edited: change title= to the name of your wiki, and change blogurl= to a url-encoded form of your wiki's url.

This is a fairly simple application, and I'd be happy to take suggestions on how to improve, etc.


Did you notice the PingWeblogsComFilter that comes with the 2.1 alphas?

-- JanneJalkanen

Hmm, no, I've really only been working against 2.0.52. I should take a look at those.

-- MarkBeeson

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
pingurl.jar 1.5 kB 1 21-Sep-2004 22:02 MarkBeeson
« This page (revision-3) was last changed on 23-Sep-2004 01:22 by MarkBeeson