> I'm not saying that isn't the case. You can get a handle on the service
> using the static helper or retrieving the instance of the service directly
> from the ServiceBroker and any information you need regarding the server
> setup is available via the servlet service.
am I doing something wrong here?
TurbineServices ts = (TurbineServices)TurbineServices.getInstance();
System.out.println("servelt service is registered: "
+ ts.isRegistered("ServletService")); // "is registered: true"
TurbineServletService servlet =
(TurbineServletService)ts.getService("ServletService");
System.out.println("getservername: "
+ servlet.getServerName()); // "getservername: null"
System.out.println("getserverport: "
+ servlet.getServerPort()); // "getserverport: null"
System.out.println("getserverscheme: "
+ servlet.getServerScheme()); // "getserverscheme: null"
System.out.println("getcontextpath: "
+ servlet.getContextPath()); // "getcontextpath: null"
System.out.println("schedulerservice is registered: "
+ ts.isRegistered("SchedulerService")); // "is registered: true"
TurbineSchedulerService ss =
(TurbineSchedulerService)ts.getService("SchedulerService");
System.out.println("number of jobs: "
+ ss.listJobs().size()); // "number of jobs: 1" --correct
so the servlet service isn't behaving as I would expect... but TurbineServices is...
and so is SchedulerService.. am I missing something? Is there a better way to get the
Server info?
</dan>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]