Configure the distributed environment
Configure the environment on a server running the GRE as a daemon in distributed mode.
If required you can configure via the Genero Report Writer APIs the distributed environment of a server running on a different physical machine. However, you only need to configure the distributed environment if the server running the daemon has different resource paths to the client machine calling the report process.
Note: Passing NULL for any of the above values, will result in a default to the value set where the
GRE is running.
configureDistributedEnvironment() Parameters
- fgldir the value of the environment variable
$FGLDIR
where the GRE is running. - fglprofile the value of the environment variable
$FGLPROFILE
. - fglresourcepath the value of the environment variable
$fglresourcepath
. - dbpath the value of the environment variable
$dbpath
.
Java source code
In your .java source code, for example, include the
following:
public void setFGLDIR(String fgldir)
public void setFGLPROFILE(String fglprofile)
public void setFGLRESOURCEPATH(String fglresourcepath)
public void setEnvironment(Attributes values)
.NET source code
In your .NET source code, for example, include the
following:
String fglDir [get, set]
String fglProfile [get, set]
String fglResourcePath [get, set]
public Dictionary<string,string> environment
PHP source code
In your .php source code, for example, include the
following:
$greRunnerObj = new GreRunner($reportDesignFileName, $reportClassName);
$greRunnerObj->configureDistributedEnvironment("fgldir","fglprofile","fglresourcepath","dbpath");
Alternatively, the .php source code can use a new API call, as follows:
setEnvironment($values)