[jcifs] Different client properties on the same JVM

Javier Mendez Vasquez jmendez at searchtechnologies.com
Fri Oct 21 10:50:42 MDT 2011


Hi Mike,

Thanks for your response.

What I'm really looking for is changing user credentials (such as username, domain and password) used to connect to file shares. If properties were not static, I could have more than one thread doing stuff to multiple file shares at the same time (each share may require different credentials).

All shares are likely to be on the same intranet, so DNS server, timeout, WINS Server and other network properties are the same for all shares.

I really appreciate your efforts, thanks.

Regards,
Javier

-----Original Message-----
From: Michael B Allen [mailto:ioplex at gmail.com] 
Sent: Thursday, October 20, 2011 10:48 PM
To: Javier Mendez Vasquez
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Different client properties on the same JVM

On Thu, Oct 20, 2011 at 8:32 PM, Javier Mendez
<jmendez at searchtechnologies.com> wrote:
> Hi,
>
> I´m facing a problem with the client properties. I want to use two (or more)
> different sets of properties on the same Java virtual machine.
>
> Is my understanding, that in the way JCIFS is built at the moment, it will use a
> static reference to the client properties (jcifs.Config) and then the first time
> classes are referenced those properties are loaded.
>
> What is the purpose behind that?

Hi Javier,

Windows clients cannot dynamically change their lmcompatibilitylevel
or WINS server or response timeout or whatever you might set through
jcifs.Config. So it was not considered important for JCIFS to be able
to change these properties in a non-global way either. But ...

> Also, are there any plans of changing the way properties are managed in the
> future? If no, then how much effort (if that is possible of course) would be
> required to make that change?

Yes. This has been a desirable feature for a while. But it would
require considerable restructuring. It's really a 2.0 feature. But
that is on hold indefinitely because I just don't have a lot of "Free"
time these days. We're in maintenance mode right now and even that is
limited mostly to significant bugs.

Thanks for the feedback.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1411 / Virus Database: 1522/3963 - Release Date: 10/20/11


More information about the jCIFS mailing list