How to add LS Registration to the service
From GEANT2-JRA1 Wiki
[edit]
How to add LS Registration to the service
[edit]
What we need?
Basicaly you need two things:
1. to load LS Registration Component in components.properties file. The componenet requires also the Simple Scheduler component, so your components.properties file should contain:
scheduler=org.perfsonar.commons.auxiliary.components.simplescheduler.Scheduler registrator=org.perfsonar.service.commons.registration.LSRegistrationComponent
2. to configure LS Registration Component in service.properties file.
- registration values (your service will register with these values, for instance:
service.r.access_point=http://testhost-ma.xx:8080/axis/services/MeasurementArchive service.r.service_name=Test RRD MA service.r.service_type=RRD MA service.r.service_description=Test Java RRD MA, perfSONAR project
- Lookup Service to register to
service.r.ls_url=http://testhost-ls.xx:8080/axis/services/LookupService
- LS Registration Component configuration
#time in milliseconds (60000 means 60 sec) component.registrator.interval=600000 component.registrator.scheduler_component=scheduler
- File with lookup information content (Lookup Info data elements). This is optional, but the variable must exist (empty value if you don't want to use it: 'service.ls.registration_file=').
service.ls.registration_file=file:///projects/perfsonar-trunk/conf/rrd-database_TEST.xml
