Irene Loos

Ranch Hand
+ Follow
since Apr 15, 2002
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 Irene Loos

Thank you for all replies. We wil lbe changing the name of property file to be unique in each application.
10 years ago
Hi Jeanne,
The java class in the applciation that class it has an import statement to a class in reusbale jar that is linked thru shared libraries. Shared jars all located in the same folder.

The applciation has xml properties. The file that we need to use i specified here:
<resource
name="datasource.n1n.validate_buffers"
basepath="projects/transactions"
startpath="projects/transactions"
pattern="validate_buffers.properties">
</resource>

Once it is in the reusbale jar, the clas has following:

ResourceManager serverResources = ResourceRegistry.getInstance().get("datasource.n1n.server");
ResourceManager transactionResources = ResourceRegistry.getInstance().get("datasource.n1n.validate");
ResourceBundle transactionProperties = transactionResources.asResourceBundle();
ResourceBundle bufferProperties = ResourceRegistry.getInstance().get("datasource.cics.validate_buffers").asResourceBundle();

from there it will attempt to use property file and randonly will go to file that is called from another application that has following in xml properties:
<resource
name="datasource.n1n.validate_buffers"
basepath="projects/components/bproject/finder"
startpath="projects/components/bproject/finder"
pattern="properties/validate_buffers.properties">
</resource>


Irene
10 years ago
Hi,
We have two J2EE applications running on WAS 6.1. Application use library of jars that setup thru classpath. There is a property file with the same name but under different folder structure in two different jars. Application 1 points to file from first jar, application 2 points to a file from jar 2, but sometimes, application 1 pulls the file from jar 2 - how is that possible? The behavior is random.

Thank you
10 years ago
It works when you start the server in "debug mode" (RAD or WSAD) and same version of the code does not work without any recompile when I start the server in "run mode". It gives "null". The servlet does not even go there. During the debug mode I do not stop in any methods. The difference is only in the way how the server started. I cannot debug it, because it works in debug, so going thru debugger does not help.
14 years ago
Thank you for your reply. I verified classpath the first thing - it is correct. In regards of deployment - it works in debug mode, but when restart server in 'Run" does not work. The only change - class was renamed and all references to it chnaged.
14 years ago
Hi,
I renamed one of the local classes (Formatter.java to MyAppFormatter.java) in old perfectly working jar. I also renamed manually all refrences to this class in other classes. After compile, code works in debug and does not work in regular run. The developement was done in RAD 7.0. It runs on WedShere 5.1 server. Any suggestion?
14 years ago
by company architecture we are not allowed to use havy JavaScript. The page could be modified on demand and settings are stored for future use in DB2.

For example page had id check box and entry box (for numeric id), now customer wants to ad also "name" check box and entry box character name with maximum entry length of 20. This will be saved in db and in the future could be used as an entry on the page.

Any advise?
16 years ago
JSP
I have J2EE application where presentation is done in jsps. I need to give user ability to add/delete new fields (check and entry boxes, calls to validaton JavaScript) to the jsp on demand with preservaton of some original design. Besides handeling it thru javabean with bunch of "if" statements, is there another solution that I can use?

Thank you,
Irene
16 years ago
JSP
The methods have private access. Thank you very much. I will try to synchronize.

Irene
16 years ago
It runs on WebServer (Webshere) and yes, I suspect that two users run at the same time. My question is what better to use to prevent this. Will serialization help? Or should I use something else?
16 years ago
The controller passes uploaded file to service that will extract data

try{
jxl.Workbook workbook = jxl.Workbook.getWorkbook(new ByteArrayInputStream(spreadsheet.getStream().toByteArray()));

for (int sheet = 0; sheet < workbook.getNumberOfSheets(); sheet++){
Sheet s = workbook.getSheet(sheet);
loadSpreadsheet(s, messageIds, linkType);
}
}catch(ValidationException ex){// catch exceptions thrown from load
throw(ex);
}catch(Exception ex){
//error handling
}catch(OutOfMemoryError err){
//error handling
}


The method loadSpreadsheet() will set values from spreadsheet to serializable object. This object will be used to pass data to CICS. I think it was corrupted before it went to CICS.
[ November 29, 2007: Message edited by: Irene Loos ]
16 years ago
I have an application that takes data from .xl spreadheet, converst it to a string and loads it to database via CICs. There were no problems until recently, when two users managed to load two spreadsheets at the same time and data in the load from first spreadheet included some data from the second one. What will be the best approach to address this issue?

Thank you,
Irene
16 years ago
Thank you for advise.
19 years ago
Hello Jeanne,
Thank you for your post. I am not familiar with a profiling tool in WSAD much. I set it up but it does not provide with the size of the session. It gives information about how much references different classes have, etc. Could you please tell me more how to set up it correctly?

I know that the session size jumped 10% on the server where multiple applications are deployed after new version of our jar was deployed. But it could be related to other issues as well. We cannot distinguish session size per application. Any other suggestions?

Thank you,
Irene
19 years ago
Does anyone know how one can calculate the size of particular application session in WebSphere 5.0.1 with multiple applications running on the same server? After I moved new version of the jar to the server the session size grow 10%, even though there were only 2 simple changes to the code that should not create that big of a difference.

Also, is there any way to calculate the size of the session when you are running WSAD?


Thank you,
Irene
19 years ago