Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > Stored Procedur...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1260 of 1363
Post > Topic >>

Stored Procedure Call using EJB 3.0

by smithanaik17@[EMAIL PROTECTED] Nov 22, 2006 at 06:05 AM

Hi All,

I am trying to execute a stored procedure using the Ibatis framework
with the Jboss EJB 3.0 container.
I am able to successfully invoke a procedure, which has simple select
statements.

eg  DELIMITER $$;

DROP PROCEDURE IF EXISTS `msp_platform`.`getCount`$$

CREATE DEFINER=`mspplatform`@[EMAIL PROTECTED]
 PROCEDURE `getCount`()
BEGIN
select count(*) from libraryelement;
END$$

DELIMITER ;$$


However, on trying to execute a procedure which updates the database,
there appears to be some kind of a lock
and the java client hangs. The procedure that I am trying to execute is
listed below.

DELIMITER $$;

DROP PROCEDURE IF EXISTS `msp_platform`.`testUpdate`$$

CREATE DEFINER=`mspplatform`@[EMAIL PROTECTED]
 PROCEDURE `testUpdate`()
BEGIN
update libraryelement set elementName = 'test' where elementName =
'smitha';
END$$

DELIMITER ;$$


Would appreaciate any inputs regarding this issue?

Thanks,
Smitha
 




 1 Posts in Topic:
Stored Procedure Call using EJB 3.0
smithanaik17@[EMAIL PROTE  2006-11-22 06:05:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 14:49:49 CDT 2008.