kangi ha scritto:

>Can i have global interceptor for all tables?
>

yes.

example dbforms config:

--- cut here --- --- cut here ---

<?xml version="1.0" encoding="ISO-8859-1" ?>

<dbforms-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="dbforms-config.xsd">

<!-- tables definition -->
<table name="MY_TABLE">
...
</table>


<!-- ========== connection =================================== -->
<dbconnection
isJndi = "false"
isPow2 = "true"
defaultConnection = "true"
connectionProviderClass = "org.dbforms.conprovider.SingleConnectionProvider"
conClass = "com.p6spy.engine.spy.P6SpyDriver"
name = "jdbc:oracle:thin:@devel:1521:myDb"
username = "user"
password = "pwd"/>

<!-- ========== global interceptor =========================== -->
<interceptors>
<interceptor className = "com.foo.bar.MyGlobalInterceptor"/>
</interceptors>

</dbforms-config>

--- cut here --- --- cut here ---

P.S.:
note the DbForms cvs head contains a fix regarding the usage of global
interceptors - previously, if an application used a global interceptor,
there was the possibility that a local interceptor could be executed 2
times instead of one.

Luca





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to