how to map network drive for tomcat app to read/write file

I've got a pair of windows 2008 servers. The web server receives data and needs to save this data (a java app running on tomcat receives data & tries need to write large image files to file server:e.g. LocalFILEserver\targetFolder). I think I have multiple questions. (1) How does one have a drive automatically mapped in Windows every time the machine reboots (without having to login?) I know there is an option when mapping a drive to "reconnect automatically" but is that how one does this? (2) The developer has asked the I give the accounts LocalWebServer\Users, LocalWebServer\IIS_IUSRS permission to read and write on the LocalFILEserver\targetFolder. How does one grant local accounts from one 2008 server read/write to another servers shared folder? They're not AD accounts so I'm not sure how to do this. I've had some Active Directory resource accounts created which can be given permissions on both machines.Is that the wrong approach? Thanks in advance.
pjlennonAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KuldeepchaturvediCommented:
For the second part, you can have your tomcat run under an "admin" or other previlaged user.

Note that since Tomcat is installed as a service, you can manage it with the Services tool by clicking Start->Administrative Tools->Services and looking for service called Apache Tomcat

So there you can assign a user under which this service needs to run.

Then you can grant the read/write access to this user on the mapped drive and you should be good.

Also automatically reconnect on logon should make your drive to map everytime the machine is booted.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gheistCommented:
(1) Use UNC or seek NT4 era guides
(2) This is the only way. Local accounts will connect is passwords and usernames match only interactively.
0
pjlennonAuthor Commented:
Thank you both - gheist, where would I use a UNC?
0
gheistCommented:
unc like \\.\share\file can replace c:\file
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java App Servers

From novice to tech pro — start learning today.