Hello,

I am a new users of NIM and I wonder if it was possible to open a JDBC
connection in a "non-JDBC" connector

--> I am in a ldap connector e-dir to standard LDAP
and I want to write some information in a database when some events
occurs

so I have that

Code:
--------------------
<rule>
<description>Call Function/Procedure</description>
<conditions>
<or/>
</conditions>
<actions>
<do-set-local-variable name="varParam1" scope="policy">
<arg-string>
<token-text xml:space="preserve">&lt;jdbcaram>&lt;jdbc:value></token-text>
<token-text xml:space="preserve">Param1</token-text>
<token-text xml:space="preserve">&lt;/jdbc:value>&lt;/jdbcaram></token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="varParam2" scope="policy">
<arg-string>
<token-text xml:space="preserve">&lt;jdbcaram>&lt;jdbc:value></token-text>
<token-attr name="PersonID"/>
<token-text xml:space="preserve">&lt;/jdbc:value>&lt;/jdbcaram></token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="varParam3" scope="policy">
<arg-string>
<token-text xml:space="preserve">&lt;jdbcaram>&lt;jdbc:value></token-text>
<token-attr name="mail"/>
<token-text xml:space="preserve">&lt;/jdbc:value>&lt;/jdbcaram></token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="varParam4" scope="policy">
<arg-string>
<token-text xml:space="preserve">&lt;jdbcaram>&lt;jdbc:value></token-text>
<token-text xml:space="preserve">Bad Country</token-text>
<token-text xml:space="preserve">&lt;/jdbc:value>&lt;/jdbcaram></token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="varCallStoredProc" scope="policy">
<arg-string>
<token-text xml:space="preserve">&lt;nds> &lt;input xmlns:jdbc="urn:dirxml:jdbc"> &lt;jdbc:statement event-id="0"></token-text>
<token-text xml:space="preserve">&lt;jdbc:call-function jdbc:name="myLog.log_country"></token-text>
<token-local-variable name="varParam1"/>
<token-local-variable name="varParam2"/>
<token-local-variable name="varParam3"/>
<token-local-variable name="varParam4"/>
<token-text xml:space="preserve">&lt;/jdbc:call-function></token-text>
<token-text xml:space="preserve">&lt;/jdbc:statement> &lt;/input> &lt;/nds></token-text>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="varJDBCCall" scope="policy">
<arg-node-set>
<token-xml-parse>
<token-local-variable name="varCallStoredProc"/>
</token-xml-parse>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="varJDBCResult" scope="policy">
<arg-node-set>
<token-xpath expression="command:execute($destCommandProcessor, $varJDBCCall)"/>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="varResult" scope="policy">
<arg-string>
<token-xpath expression="$varJDBCResult//jdbc:value/text()"/>
</arg-string>
</do-set-local-variable>
</actions>
</rule>
--------------------


that is suppose to call a pl/sql function but I need to "open" the jdbc
connection

Notice that I have a connector that use the same jdbc connection but
for synchronizing users data.

If someone have a sample It would be great


--
guillaumebrusset
------------------------------------------------------------------------
guillaumebrusset's Profile: http://forums.novell.com/member.php?userid=73095
View this thread: http://forums.novell.com/showthread.php?t=410942