Subject FBManager and starting Firebird
Author Eric Vickery
I have the following code that doesn't seem to be starting Firebird
correctly. When I run it I get an exception with the message "Unable to
complete network request to host "localhost"". If I start Firebird manually
it works fine. Can anyone give me any insight into my problem.

Thanks,
Eric


private boolean startFirebird(String pServerURL, int pServerPort, String
pDatabaseName, String pUser, String pPass)
{
mFBManager = new FBManager();

mFBManager.setServer(pServerURL);
mFBManager.setPort(pServerPort);

try
{
mFBManager.start();
mFBManager.createDatabase(pDatabaseName, pUser, pPass);
}
catch (Exception pExp)
{
System.out.println("An error occurred while starting
firebird.");
System.out.println("\t\t\tThe error reported was: " +
pExp.getMessage());

// null out the manager because we had a failure.
mFBManager = null;
return false;
}

return true;
}