now we only get the router target from the bootstrap file if
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 16 Feb 2005 18:02:24 +0000 (18:02 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 16 Feb 2005 18:02:24 +0000 (18:02 +0000)
we are connecting to 'settings'

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@76 9efc2488-bf62-4759-914b-345cdb29e865

src/perlmods/OpenSRF/AppSession.pm

index b8fa4c2..1e901a6 100644 (file)
@@ -200,21 +200,20 @@ sub create {
        }
 
        my $r_id;
-       my $conf = OpenSRF::Utils::Config->current;
-       if(!$conf) { die("No transport target for $app!"); }
-       $r_id = $conf->targets->$app->[0] || #just the first for now...
-                               die("No transport target for $app!");
 
-=head lasdf
+       if( $app eq "settings" ) {
+               my $conf = OpenSRF::Utils::Config->current;
+               if(!$conf) { die("No transport target for $app!"); }
+               $r_id = $conf->targets->$app->[0] || #just the first for now...
+                               die("No transport target for $app!");
        } else {
-               my $targets =  $config_client->config_value("apps",$app,"transport_targets", "transport_target");
+               my $targets =  $config_client->config_value("apps",$app,"transport_targets", "router_target");
                if( !ref($targets) ) { $targets = [ $targets ]; }
 
                # XXX for now, just use the first
                        $r_id = $targets->[0] ||
                                die("No transport target for $app!");
        }
-=cut
        
        my $peer_handle = OpenSRF::Transport::PeerHandle->retrieve("client"); 
        if( ! $peer_handle ) {