ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  jRendezvous: Java and Rendezvous Working Together
Subject:   RendezvousContext code segment
Date:   2003-10-06 07:43:35
From:   craigp
Response to: RendezvousContext code segment

Apologies for my ignorance here, but I would really like to expand this example a little further to advertise another webpage that I would like to automagically pick up using Rendezvous.


Basically, we're developing a J2EE application and using JBoss with Tomcat to run it. When our webapp is running, we browse to it at 'http://localhost:8080/PServer/Admin/'. What I would really like to happen is for this location to appear in the Rendezvous list in Safari - and when this is done I am also going to use the client features of JRendezvous to pick up locations for use in a Java Swing app we have written.


So, my question to the community is: how can I configure Tomcat with the class you have provided above, to point to an arbitrary location as opposed to '~/Sites'?


Alternatively (and this may be slightly beyond the scope of your article), it would be really nice to be able to declare a new type of Rendezvous service ('pServer_http._tcp.local.' - 'pServer' over http over tcp at local - if such a thing is possible) and I can construct the correct path to the web page in my Java Swing app if this service can tell me the host name and port number the PServer webapp is running on.


Thanks for reading and any help would be greatly appreciated. I will post back anything useful that I discover!