aspose file tools
The moose likes Web Services and the fly likes Can't invoke delete sql from web service client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Can Watch "Can New topic
Author

Can't invoke delete sql from web service client

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 204
Hi,

I have an EAR project, written with CXF.
backend is built with hibernate 4.
The problem is when the client service facade execute a remove(obj) through web sersice, it doesnt' invoke the delete hibernate sql query in the backend.

The log message shown that it is going through the cxf calls:



but there is no sign of finding its invocation with the "delete" sql query.

Here is my client service facade invoking the remove(obj) function:



In the above code, logger.debug("======== removing product+category....") is executed, so I am very sure the remove(p) function is getting invoke.

Any help is much appreciated.
Thanks
Sam
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 613
can you post code of your remove method ? how are transactions handled? is there exception thrown after this call that might cause a rollback?


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can't invoke delete sql from web service client
 
Similar Threads
Stuck on manyToMany association
SessionBean method returning POJO == exception?
How to return class instance?
Unable to find specific product
if table has reference ,then could i put refered table with refering table seperately