gim priy

Greenhorn
+ Follow
since Oct 13, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by gim priy

Hi team,

I want to load the values of the Struts "ApplicationResources.properties" dynamically(with out restartting the server).Is there any way to do that ?

this is a part of my jsp


<tr>
<td class="textdefault tdwidth6 textnowrap"><label for="username"><bean:message key="smlogin.username"/></label></td>
<td colspan="2">

<input type="text" name="USER" size="32" maxlength="255" style="margin-left: 1px">
</td>
</tr>

In ApplicationResources.properties

smlogin.username=User name:


Thx
gimhan

[ EFH: Added HTML escapes ]
[ June 07, 2006: Message edited by: Ernest Friedman-Hill ]
17 years ago
Hi team,

I want to load the values of the Struts "ApplicationResources.properties" dynamically(with out restartting the server).Is there any way to do that ?

this is a part of my jsp


<tr>
<td class="textdefault tdwidth6 textnowrap"><label for="username"><bean:message key="smlogin.username"/></label></td>
<td colspan="2">

<input type="text" name="USER" size="32" maxlength="255" style="margin-left: 1px">
</td>
</tr>

In ApplicationResources.properties

smlogin.username=User name:


Thx
gimhan

[ EFH: Added HTML escapes ]
[ June 07, 2006: Message edited by: Ernest Friedman-Hill ]
17 years ago
Hi team,

I want to load the values of the Struts "ApplicationResources.properties" dynamically(with out restartting the server).Is there any way to do that ?

this is a part of my jsp


<tr>
<td class="textdefault tdwidth6 textnowrap"><label for="username"><bean:message key="smlogin.username"/></label></td>
<td colspan="2">

<input type="text" name="USER" size="32" maxlength="255" style="margin-left: 1px">
</td>
</tr>

In ApplicationResources.properties

smlogin.username=User name:


Thx
gimhan

[ EFH: Added HTML escapes ]
[ June 07, 2006: Message edited by: Ernest Friedman-Hill ]
17 years ago

Originally posted by P.W Mathias Nilsson:
renameTo() method only works if you write to the same hd volume. If you try to rename a file to a diffrent volume this wont work. renameTo is fast but not to recommend if you don't know if you want to rename a file and move it.



Added comments :

* Input and ouput directories remain on the same disk although it is NFS mounted , Is it affected for the above intermittancy ?

* code snippet

if (!srcFile.renameTo(dstFile))
{
logMsg = Log.logError(CATALOG_ID, 12, new Serializable[] {
new Long(jobInstanceId),
new Integer(taskOrder),
inputFileName,
outputFileName});
if (DEBUG) { System.out.println (logMsg); }
throw new TaskProcessFailureException(logMsg);
}


thx and regards,
gim
18 years ago
Hi folks,

*I am using renameTo(..) in my code to move a file when a particular task is being took place.

*Sometimes when I run the above task , task is failed to process and give the following error stack.

TaskProcessFailureException : .... attempt to move :

/usr/../../input/../xxx.dat -> /usr/../../Data/../xxx.data FAILED at ...

*This crashing is INTERMITTENT , not regulary.

*but the nice thing is, even though job is failed, data file(xxx.data) is compleately moved to the Data folder .

*We can re-run the job successfully after it is failed , by moving the data file back to the input directly and runs it again.

*I am so confused abt the behaviour of this renameTo(..) method, Can u guys pls aware me are there any issues , file size limitation , jdk verion limititaion, when we use the renameTo(..) method..


Thx and best Regards.
gimhan
18 years ago