In much the same way as you would set HttpServlet attributes at the
Context (container) level, so that there is a single instance of them
accessible to ANY Session,  I need

A way to store an attribute at a Scope higher than Session scope in
FTPServer.   Just as the FTPSession object has  .setAttribute() and
.getAttribute(),  so that you can store attributes specific to a given
Session-I need to store a single attribute so that ALL sessions can
access the same one.  In other words, the FTPlet equivalent of
HttpServlets'  context.setAttribute();

 

FTPSession DOES have get/setAttribute().  But I did not find one, nor
anything like it, in the FTPletContext or FTPServerContext objects.
Does anyone know of any existing FTPServer or FTPlet API class which has
a way to allow me to do this?   Since multiple Sessions (and therefore
multiple threads) would be accessing it, it would have to be
thread-safe.

 

Any candidates?  I really don't want to reinvent the wheel here,
especially because of the concurrency issue.  I'm thinking something
like this must already be built into the FTPlet API, I just don't know
where to look.

 

Does anyone know?

 

 

Reply via email to