Hello,
I'm having trouble with a JDBC driver.
This driver uses XML call to SQL commands. (INSERT and UPDATE) because
it has to use some particular type of data.
The problem I'm dealing with comes up when I use a workflow to
provision an account on the target system.
My workflow sets a custom ldap-attribute representing a profile on the
target system and gives an entitlement (needed by the creation policy on
the driver).
Many times when I claim and accept the workflow it make 2 INSERT: it
runs 2 times because I have 2 transaction started:
First transaction is:
>
> [05/18/09 15:06:21.641]:ECV ST:Start transaction.
> [05/18/09 15:06:21.645]:ECV ST:Processing events for transaction.
> [05/18/09 15:06:21.651]:ECV ST:
> <nds dtdversion="3.5" ndsversion="8.x">
> <source>
> <product version="3.6.0.4294">DirXML</product>
> <contact>Novell, Inc.</contact>
> </source>
> <input>
> <modify cached-time="20090518130621.596Z" class-name="User"
> event-id="colidmserver#20090518130621#1#1" qualified-src-dn="O=xxx
> coll\OU=xxx
> \OU=Interni\CN=a85xxxx" src-dn="\DEMOxxx
> \xxx
> coll\xxx
> \Interni\a85xxxx" src-entry-id="47506" timestamp="1242651981#1">
> <modify-attr attr-name="ecvIdRuolo">
> <add-value>
> <value timestamp="1242651981#1"
> type="string">42E5B55E0B069F24E040007F01007143</value>
> </add-value>
> </modify-attr>
> </modify>
> </input>
> </nds>
> [05/18/09 15:06:21.674]:ECV ST:No event transformation policies.
> [05/18/09 15:06:21.675]:ECV ST:Subscriber processing modify for
> \DEMOxxx
> \xxx
> coll\xxx
> \Interni\a85xxxx.
> [05/18/09 15:06:21.676]:ECV ST:Converting <modify> to <add>
> [05/18/09 15:06:21.677]:ECV ST:Reading relevant attributes from
> \DEMOxxx
> \xxx
> coll\xxx
> \Interni\a85xxxx.
> [05/18/09 15:06:21.678]:ECV ST:
>



Second transaction starts with:

>
> [05/18/09 15:06:22.423]:ECV ST:Start transaction.
> [05/18/09 15:06:22.425]:ECV ST:Processing events for transaction.
> [05/18/09 15:06:22.427]:ECV ST:
> <nds dtdversion="3.5" ndsversion="8.x">
> <source>
> <product version="3.6.0.4294">DirXML</product>
> <contact>Novell, Inc.</contact>
> </source>
> <input>
> <modify cached-time="20090518130622.013Z" class-name="User"
> event-id="colidmserver#20090518130621#1#2" qualified-src-dn="O=xxx
> coll\OU=xxx
> \OU=Interni\CN=a85xxxx" src-dn="\DEMOxxx
> \xxx
> coll\xxx
> \Interni\a85xxxx" src-entry-id="47506" timestamp="1242651981#8">
> <modify-attr attr-name="DirXML-EntitlementRef">
> <add-value>
> <value timestamp="1242651981#8" type="structured">
> <component name="nameSpace">1</component>
> <component name="volume">\DEMOxxx
> \xxx
> coll\Driverxxx
> \ECVCollaudo\CreazioneECV</component>
> <component name="path.xml">
> <ref>
> <src>AF</src>
>
> <id>cbf191cefce5496c82c2d0948c2045fb:2b0fb20a04194 5b88e05b1525d730cff</id>
> <param>{enter Entitlement param here}</param>
> </ref>
> </component>
> </value>
> </add-value>
> </modify-attr>
> </modify>
> </input>
>


both this transaction run the Matching rule, wich has no result, so the
make 2 INSERT!!!


The very wierd problem is that some other time the driver stars just
one transaction, like:


>
>
>
> <nds dtdversion="3.5" ndsversion="8.x">
> <source>
> <product version="3.6.0.4294">DirXML</product>
> <contact>Novell, Inc.</contact>
> </source>
> <input>
> <modify cached-time="20090518130622.013Z" class-name="User"
> event-id="colidmserver#20090518130621#1#2" qualified-src-dn="O=xxx
> coll\OU=xxx
> \OU=Interni\CN=a85xxxx" src-dn="\DEMOxxx
> \xxx
> coll\xxx
> \Interni\a85xxxx" src-entry-id="47506" timestamp="1242651981#8">
> <modify-attr attr-name="DirXML-EntitlementRef">
> <add-value>
> <value timestamp="1242651981#8" type="structured">
> <component name="nameSpace">1</component>
> <component name="volume">\DEMOxxx
> \xxx
> coll\Driverxxx
> \ECVCollaudo\CreazioneECV</component>
> <component name="path.xml">
> <ref>
> <src>AF</src>
>
> <id>cbf191cefce5496c82c2d0948c2045fb:2b0fb20a04194 5b88e05b1525d730cff</id>
> <param>{enter Entitlement param here}</param>
> </ref>
> </component>
> </value>
> </add-value>
> </modify-attr>
> </modify>
> </input>
> </nds>
> </nds>
>
>
>


and it makes just ONE correct INSERT.

I really have no clue on what the problem could be.

Any ideas?
Thank you,
Luca Muliere


--
luca982
------------------------------------------------------------------------
luca982's Profile: http://forums.novell.com/member.php?userid=30673
View this thread: http://forums.novell.com/showthread.php?t=373154