Can 'sandbox-directory' be reloaded?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can 'sandbox-directory' be reloaded?

thao nguyen
Hello,

I follow the instruction here:
http://www.orbeon.com/orbeon/doc/reference-pipeline-api
to create a webservice for calling pipeline.

I use also: props.put("oxf.resources.filesystem.sandbox-directory",
resourceManagerSandbox); to assign the resource manager.

The webservice requirement is the sandbox-directory generated at run-time. But
it seems resource manager won't change until tomcat restarted.

My test is somthing like this:
1. Start tomcat
2. webservice create folder 0001
3. Pipeline run on folder 0001
4. Finish
5. webservice create folder 002
6. Pipeline STILL run on folder 0001
7. Finish
8. RESTART tomcat
9. webservice create folder 003
10. Pipeline run on folder 0003
...

My question are:
- Are there a function like update resource manager? Or re-initialize
sandbox-directory?
- What can I do to make sandbox directory flexible? Or is it possible?

I greatly appreciate any help,
Thao


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Can 'sandbox-directory' be reloaded?

Alessandro  Vernet
Administrator
Thao,

The page you link to is intended for people who would like to use the
pipeline API in their own app, not really if you are using the
"standard" Orbeon Forms servlet, and running Orbeon Forms in a servlet
container.

Resources are loaded using a resource manager, i.e. a class that
implements org.orbeon.oxf.resources.ResourceManager. I've never seen a
case where we wanted the base path for the resource manager to change
a runtime, so you might have to change the Java code of one of the
resource managers (most likely FilesystemResourceManagerImpl) if you
want to support that.

Short of that, I am wondering if you couldn't use always the same
directory, but then dynamically pick at your application level a
subdirectory, which would be generated dynamically.

Alex

On Thu, Apr 1, 2010 at 3:40 AM, Thao Nguyen
<[hidden email]> wrote:

> Hello,
>
> I follow the instruction here:
> http://www.orbeon.com/orbeon/doc/reference-pipeline-api
> to create a webservice for calling pipeline.
>
> I use also: props.put("oxf.resources.filesystem.sandbox-directory",
> resourceManagerSandbox); to assign the resource manager.
>
> The webservice requirement is the sandbox-directory generated at run-time. But
> it seems resource manager won't change until tomcat restarted.
>
> My test is somthing like this:
> 1. Start tomcat
> 2. webservice create folder 0001
> 3. Pipeline run on folder 0001
> 4. Finish
> 5. webservice create folder 002
> 6. Pipeline STILL run on folder 0001
> 7. Finish
> 8. RESTART tomcat
> 9. webservice create folder 003
> 10. Pipeline run on folder 0003
> ...
>
> My question are:
> - Are there a function like update resource manager? Or re-initialize
> sandbox-directory?
> - What can I do to make sandbox directory flexible? Or is it possible?
>
> I greatly appreciate any help,
> Thao
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet