定义Call Spec CREATE OR REPLACE PROCEDURE insertAccount(owner INvarchar, bal IN number, newid OUT number)AS LANGUAGE JAVA NAME 'GenPK.insertAccount(java.lang.String [])';/
在ejbCreate()内调用存储过程 Public AccountPK ejbCreate(String ownerName, int balance) throws CreateException{ try { CallableStatement call = conn.prepareCall{ "{call insertAccount(?, ?, ?)}"}; return new AccountPK(accountID); }}