This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
CMP - failed to retrieve data from database - but NO exception..
Hi, I've developed this simple CMP to retrieve user Group information from database. It failed to retrieve data from database but no exception is thrown (Yes, I stepped through the code, nothing happenned). And now I'm kind of stuck without any error message to start debuggin with. So, I'm just asking for general advice/direction...
1. CLIENT side Here's the Strut's action class ** ie. the CLIENT ** (yes, that's where they retrieve local proxy to CMP directly, as opposed to doing it thru a session bean):
2. The CMP GroupBean:
3. SCREEN DUMP
I still haven't been able to get to the bottom of it. The only thing I know is that for sure my CMP "GroupBean" is sending nothing to target database. I used p6spyand intercepted anything to/from database.
5. XDoclet generated "jbosscmp--jdbc.xml" (NOTE: The datasource tag looks correct....)
Any idea? Thanks in advance!
Joined: Oct 26, 2004
First off, found a problem, rectified it, and BUT THE PROBLEM REMAINS:
So this error was rectified (BUT STILL PROBLEM REMAINS - MY BEAN IS SENDING NOTHING TO DATABASE!)
home = (GroupLocalHome)PortableRemoteObject.narrow(ref, GroupLocalHome.class);
you for sure need to have:
home = (GroupLocalHome) ref;
I will not say that this is the ONLY problem, but that definately is a problem! :-)
<a href="http://www.BossTalks.com" target="_blank" rel="nofollow">http://www.BossTalks.com</a><br />Free advices and help for entrepreneurs: from Idea to IPO<br />Software and IT Project Management forum