Help coderanch get a
new server
by contributing to the fundraiser

Arundhathi Menon

Ranch Hand
+ Follow
since Jan 14, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Arundhathi Menon

Hi,

When I set back the datetime on my machine and start up JBoss , the log in freezes. If I open multiple browser wndows and attempt logins from each , they go thru fine. It almost seems as if the first thread waits for other requests to somehow push it through.

Does the war / JBoss contexts have any impact when we set back the date time on the server?

Thanks
M
13 years ago
Thanks Greg & Preity.
Greg , you are right , what am comparing is the UI entity versus its old copy that was stored in the DB. They are different class types for sure , but have the same set of properties.
By 24 out of 30 I meant the dirty flag had to be set only when certain properties are updated and not all.

Preity , thanks for the input. I was trying to get to a generic way of coding this versus writing it all out in a block of If statement with multiple OR conditions.

Looks like the only way out.

Thanks again
14 years ago
What would be a smart of checking if an object is dirty especially if am looking at only a subset of its properties for a change

Eg. class Person should be have a field updated if and only if 24 specific properties out of its 30 properties are modified

instead of defining a method like

private boolean hasChanged(Person p1 , Person p2){
if(!p1.getAttr1().equals(p2.getAttr1()) ||
!p1.getAttr2().equals(p2.getAttr2()) ||
!p1.getAttr3().equals(p2.getAttr3()) ...
......................................
return true;
}
return false;
}

I dont want to use reflection just to accomplish this. Is there a better design for checks like these?

Thanks
Menon
14 years ago
Has anybody got a solution to this? I have the same problem

Hibernate seems to append a ',' after the table name in the update HQL

Thanks
Menon
Hi,

My webservice call returns an XMLStreamReader. I would like to know how to extract just the string representation of the whole xml so that I can dump it in the DB for future processing.

I short , converting the XMLStreamReader's content into an outputstream is what I need.

Can someone help?

Thanks in advance

Menon
Hi,

I am invoking a web service call from my client application and it seems to work from certain machines alone.

The error that is thrown is as follows:



Please help!

Regards
Menon
14 years ago
Rectified the problem.

You can set the time out on the client side in the following manner:

14 years ago
Hi,

I am invoking a webservice in a for loop. The service is synchronous and I have tried applying a thread sleep so as to wait before I make the next call in the loop :

[code]
for(...)
{
WS client call

Thread sleep
}

I still get a read time out , the first couple of iterations go thru fine though.

Please let me know what can be done.

Thank you.

Regards
Menon


14 years ago
Thanks Travis.
14 years ago
I am using Rampart on the client side.

My Web App is a consumer of a Web Service which requires Rampart for client authentication. Hence inorder to fire those web service calls , I need to package Rampart.mar in my WAR file.

I though all files under WEB-INF/lib would be loaded by the classloader and hence be on the classpath.

Seem to be runnning into issues configuring this
14 years ago
Thanks Ulf , for pointing that out.

Is packaging the rampart.mar file directly under src folder considered a good practise?

Am keen on bundling it all up in the app and am trying to figure out the best way to do it.

Or better still , do you think the class path attribute when I build the WAR file can be tweaked to accomodate these files n the classpath?
14 years ago
Hi Ulf,

Thank you for you quick response.

Will I have to pass this path as well? I am using the following method



where path is null and the axis2xml file is specified.

Since path is null , it looks for it in the classpath. So if I am to place the *.mar file in the WEB-INF/module directory , will it automatically look it up? I mean , is it like a default path?

14 years ago
Hi,

I am using rampart for WS security in my app.

I have placed the rampart.mar including the rampart jars in my WEB-INF/lib folder. For some reason , it doesnt seem to be able to read the file from the classpath. Please let me knwo what needs to be rectified. I do not want to point to a folder outside my app and want to pack in rampart along into my WAR file.



Thank you.

Regards
Menon

14 years ago
Hi Preethi,

You can try appending the request parameters directtly to the servlet URL -

url ? param1 = value && param2 = value.

In your servlet code , you can retrieve it using request.getParameter("param1").
14 years ago
Hi,

I need to locate the path of the file - rampart.mar which I have placed in the folder <proj>/lib

To locate the path at runtime, I tried executing the command :



It fails!

I realised that since my output folder in eclipse is set to build/classes , all the resource files that are placed under the src folder can be read in the above manner ,since post compilation they will be present in the folder build/classes.

How can I read the 'rampart.mar' file which is more of a runtime dependency jar?

Hope to hear from someone on this

Thank you!!
14 years ago