I didnt found out the exactly article at FAQ about it.
What i didnt understand was getUnderylingStatement() give me a Statement, but i need a CallableStatement.
see : http://docs.jboss.com/jbossas/javadoc/3.2.7/connector/org/jboss/resource/adapter/jdbc/WrappedPreparedStatement.html#getUnderlyingStatement()
I also found out at:
while(ps instanceof WrappedStatement)
ps = (PreparedStatement)((WrappedStatement)ps).getUnderlyingStatement();
I didnt quite understand.
FAQ - getUnderylingStatement()
"I am trying doing a simple connection by JNDI Datasource below"
No you are not. You are trying to use proprietary api.
FAQ means it has asked many times before.
We don't put every question on the FAQ page it would be pointless.
It would be as long as the documentation (if not longer because you would
have to deal with every braindeath).
CallableStatement instanceof Statement == true