From dc81a25c640d269ad169563692e3ff413867e26f Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 24 Feb 2005 20:27:52 +0000 Subject: [PATCH] WHEEEEEEEEEE! using the router to discover remote apps now git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@111 9efc2488-bf62-4759-914b-345cdb29e865 --- src/perlmods/OpenSRF/Application.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/perlmods/OpenSRF/Application.pm b/src/perlmods/OpenSRF/Application.pm index 35e72b6..f818b54 100644 --- a/src/perlmods/OpenSRF/Application.pm +++ b/src/perlmods/OpenSRF/Application.pm @@ -231,9 +231,9 @@ sub register_method { } sub retrieve_remote_apis { - my $session = OpenSRF::AppSession->create('settings'); + my $session = OpenSRF::AppSession->create('router'); try { - $session->connect or OpenSRF::EX::WARN->throw("Connection to settings timed out"); + $session->connect or OpenSRF::EX::WARN->throw("Connection to router timed out"); } catch Error with { my $e = shift; $log->debug( "Remote subrequest returned an error:\n". $e ); @@ -242,7 +242,7 @@ sub retrieve_remote_apis { return undef unless ($session->state == $session->CONNECTED); }; - my $req = $session->request( 'opensrf.settings.xpath.get', '//activeapps/appname' ); + my $req = $session->request( 'opensrf.router.info.class.list' ); my $list = $req->recv; if( UNIVERSAL::isa($list,"Error") ) { -- 2.11.0