Peter Mertens wrote:
> Dear list,
> 
> i'm working on a plugin that gives the possibility to run the analysis 
> on another machine (not the one base is installed on).

Have you checked out the possiblitity to use Job agents? They can be 
used to execute any plug-in on a different server. See 
http://base.thep.lu.se/chrome/site/trunk/html/admindoc/plugin_installation/plugins.jobagents.html
for more information.

> In order to download the files (cel and cdf) over http, i need the to 
> retrieve the URL's.
> Can somebody tell me how to get this?

The file URL depends on the sesssion ID of the logged in user. Plug-ins 
are executed in a different session with a different ID, so I am not 
sure it will work since the web server may know about the session ID 
used by the plug-in. It is not possible for the plug-in to get the 
session ID for the user. In fact, the user may already have logged out 
before the plug-in is executed.

I think it is better if your plug-in call File.getDownloadStream()
and copies the file to the machine where you are going to run the 
analysis program.

> In the documentation i found that all files have method "getLocation". 
> But it is not mentioned what kind of location this is.
> Also the code of this method did not tell me more.

This method can return 3 different values: OFFLINE, PRIMARY and 
SECONDARY. If it returns OFFLINE the file is not stored at all on the 
BASE server. The SECONDARY location is a backup location and the file 
can't be accessed. You should check that the getLocation() method 
returns PRIMARY or you can't use the file.

/Nicklas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel

Reply via email to