Solved

Roaming Profiles and Java

Posted on 2009-05-08
7
1,048 Views
Last Modified: 2013-11-23
We just implemented Roaming Profiles for some laptops that we have.   Our primary software is a Java Based application that these laptop users use to access map data.  The issue I am having is that when the Java product launches it seems to be looking for the data in the location of the roaming profile on the server.   The server may or may not be available to the mobile user.  Does Java use data out of the application data folder?   If it does is there a way around this problem?
0
Comment
Question by:blackfox_01
  • 4
  • 3
7 Comments
 
LVL 1

Expert Comment

by:bleistift
ID: 24338922
If the Java application you are using caches in the Java temporary internet file location, the default is the application data folder.  On my version of Java, you can change the temporary file location by going to the Control Panel -> Java -> Temporary Internet Files -> Settings -> Location -> Change, and select a location outside of the application data folder.
0
 
LVL 1

Author Comment

by:blackfox_01
ID: 24339101
So if the file caches it to the temporary internet files location then when the roaming profiles copy their data up then they would lose that information and would not be able to start up.  Correct?
0
 
LVL 1

Expert Comment

by:bleistift
ID: 24339365
That could be the case, but it depends on the Java app.  Is the app compiled and run locally or is it hosted off of a server?
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 1

Author Comment

by:blackfox_01
ID: 24339722
Well here is the issue.  The Java App runs locally but it does a download from the server to check for any new updates.  My issue is that part of the app is supposed to run when it is offline.  But when the app launches it appears to be looking at the server profile directory and that causes the app to crash.  
0
 
LVL 1

Accepted Solution

by:
bleistift earned 500 total points
ID: 24339821
It sounds like the server update check is hard coded into the app.  If that's the case, my earlier suggestion would not work.

Is this developed in-house?  Can you inquire with the developers to see why the app is checking the roaming profile?

If it is hard coded into the application, you can either 1) ask the developers to change this behavior or 2) use local caching for your roaming profiles so that an offline version of the profile is stored locally
0
 
LVL 1

Author Comment

by:blackfox_01
ID: 24339869
Thats what I thought.  I have them looking at it now.   I think they have the central database location hard coded now and that is a change from what they have done in the past.    I believe its the hard coding of the location that is the problem.   I think they have finally accepted that.  I dont think the app is checking the roaming profile as much as it is looking at the location of the temp intrnt files for the code it has downloaded and when it does that it ends up looking at the remote server for the files.  So I think I have a 2 fold problem.   1 the developer has the database server hardcoded in and 2. the roaming profiles is forcing the java application to look at the server for the downloaded files.
0
 
LVL 1

Author Comment

by:blackfox_01
ID: 24452435
Well I found a rather time intensive fix.  Apparently when the roaming profiles are set up Windows changes the locations or program files,  application data,  favorites and a couple of other folders.  When you turn off Roaming profiles on the machine those changes do not get reverted.  I had to go in and change all of these locations back to their original locations wherever the problem showed up in the registry.   I also had to delete some keys that were pointing these folders to the remote server location as well.  All in all there were about 20 different places to change the references.   Once I changed these the problems went away.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question