View Issue Details

IDProjectCategoryView StatusLast Update
0002286JEDI VCSServerpublic2005-06-13 16:29
ReporterTHuberAssigned ToTHuber 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Product Version2.40 RC2 
Target VersionFixed in Version2.40 Stable (Server) 
Summary0002286: Impossible to use FB Embed in Service Mode
DescriptionDue to differences SrvMain.pas and SrvServiceUnit.pas
it is impossible to connect to FB Embedded with
JVCSServer in Service Mode.

Needs better handling of FB Embedded Mode
Code sample attached.
Additional Informationadded to SF tracker by Gokhan Ersumer - sky_khan
TagsNo tags attached.
Fix in JVCS version2.40 RC2
Releasedocumentation

Relationships

related to 0002361 closedTHuber Releaseinfo: 2.40 server issues 

Activities

2004-11-02 13:19

 

FBEmbedBug.txt (1,455 bytes)
from SrvMain.pas

        if (UpperCase(FDBServer) = 'LOCAL') or
           (UpperCase(FDBServer) = 'LOCALHOST') or (Trim(FDBServer) = '') then
          FServerDatabase.DatabaseName := FDBDatabase
        else
          FServerDatabase.DatabaseName := FDBServer + ':' + FDBDatabase;

from SrvServiceUnit.pas

            if (UpperCase(FDBServer) = 'LOCAL') or
               (UpperCase(FDBServer) = 'LOCALHOST') or (Trim(FDBServer) = '') then
              FServerDatabase.DatabaseName := 'localhost:'+FDBDatabase
            else
              FServerDatabase.DatabaseName := FDBServer + ':' + FDBDatabase;


          FServerDatabase.DatabaseName := FDBDatabase                           (SrvMain - OK)
          FServerDatabase.DatabaseName := 'localhost:'+FDBDatabase        (SrvServiceUnit - Failed)

FB Embed would not accept 'localhost:path' or ':path' syntax which means TCP protocol.

My workaround is  :  (in SrvServiceUnit.pas, both FIB & IBX)

        if FDBUseEmbeded then
            FServerDatabase.DatabaseName :=FDBDatabase
        else            
        begin
            if (UpperCase(FDBServer) = 'LOCAL') or
               (UpperCase(FDBServer) = 'LOCALHOST') or (Trim(FDBServer) = '') then
              FServerDatabase.DatabaseName := 'localhost:'+FDBDatabase
            else
              FServerDatabase.DatabaseName := FDBServer + ':' + FDBDatabase;
        end;              
         	
FBEmbedBug.txt (1,455 bytes)

THuber

2004-11-07 06:05

developer   ~0005583

Standalone and Service should handle connection both the same way so I will slighlty change the suggested solution.

THuber

2004-11-14 06:11

developer   ~0005626

fb embedded now possible in FIB+ port.

Issue History

Date Modified Username Field Change
2004-11-02 13:19 THuber New Issue
2004-11-02 13:19 THuber File Added: FBEmbedBug.txt
2004-11-02 13:19 THuber Fix in JVCS version => 2.40 RC2
2004-11-02 13:22 THuber Fix in JVCS version 2.40 RC2 => 2.40 RC3
2004-11-03 04:30 THuber Fix in JVCS version 2.40 RC3 => 2.40 RC2
2004-11-07 06:05 THuber Note Added: 0005583
2004-11-14 06:11 THuber Status assigned => resolved
2004-11-14 06:11 THuber Resolution open => fixed
2004-11-14 06:11 THuber Note Added: 0005626
2004-12-10 16:09 THuber Fixed in Version => 2.40 RC2
2005-01-15 05:55 THuber Relationship added related to 0002361
2005-06-13 16:29 THuber Status resolved => closed
2005-06-13 16:29 THuber Fixed in Version 2.40 RC2 => 2.40 Stable (Server)