From 0211a97dc4d4c82a7b89576ae07eecd93590da5f Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 16 Feb 2005 17:35:10 +0000 Subject: [PATCH] added new config handling git-svn-id: svn://svn.open-ils.org/ILS/trunk@74 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- OpenSRF/examples/math_bench.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OpenSRF/examples/math_bench.pl b/OpenSRF/examples/math_bench.pl index d3ec7bd5de..5b999cd7c7 100755 --- a/OpenSRF/examples/math_bench.pl +++ b/OpenSRF/examples/math_bench.pl @@ -1,8 +1,8 @@ #!/usr/bin/perl -w use strict;use warnings; -use OpenSRF::System; -use OpenSRF::DOM::Element::userAuth; +use OpenSRF::System qw(/pines/conf/client.conf); use OpenSRF::Utils::Config; +use OpenSRF::Utils::SettingsClient; use OpenSRF::DomainObject::oilsMethod; use OpenSRF::DomainObject::oilsPrimitive; use Time::HiRes qw/time/; @@ -30,8 +30,7 @@ warn "PID: $$\n"; my $config = OpenSRF::Utils::Config->current; OpenSRF::System::bootstrap_client(); -my $session = OpenSRF::AppSession->create( - "math", username => 'math_bench', secret => '12345' ); +my $session = OpenSRF::AppSession->create( "math" ); try { if( ! ($session->connect()) ) { die "Connect timed out\n"; } -- 2.43.2