Re: [Geotools-devel] How to get username from context of WPS execute method

2011-09-02 Thread Andrea Aime
On Fri, Sep 2, 2011 at 12:20 AM, Scott Ellis wrote: > I was hoping to have some luck from the GeoServerApplication singleton, but > when I call get on it from the context of my execute method it fails with > “There is no application attached to current thread btpool0-35” You're asking on the wron

Re: [Geotools-devel] How to get username from context of WPS execute method

2011-09-01 Thread Jody Garnett
You will need to look at the existing processes defined in geoserver for an example. There are several that do things to interact with the current catalog (I think when the bean is created in the spring the catalog is injected in as a dependency) - I guess you may be able to do something simila

[Geotools-devel] How to get username from context of WPS execute method

2011-09-01 Thread Scott Ellis
Hi, I am trying to write a custom WPS routine according to the instructions here: http://osgeo-org.1803224.n2.nabble.com/Add-a-WPS-process-to-GeoServer-td 6112468.html I would like to know the name of the logged in user who invoked the WPS request. How would I do that? Thanks, Scott -

Re: [Geotools-devel] How to get username from context of WPS execute method

2011-09-01 Thread Scott Ellis
I was hoping to have some luck from the GeoServerApplication singleton, but when I call get on it from the context of my execute method it fails with "There is no application attached to current thread btpool0-35" Thanks, Scott From: Scott Ellis Sent: Thursday, September 01, 2011 4:04 PM T