Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

PB SharedObjects Multithreading using same connection

$
0
0

We have a SYBASE db server and the switch app disconnects the transaction between the client and server if there is no action for n minutes..

 

I want to piggy back on the transaction object in PB and send a wakeup call so switch does not disconnect it - for these long running reports

ie: multithreading on the SYBASE db server using one transaction object

 

I have created a window that starts a sharedobject which uses the window's transaction object -- the shareobject has a timer event

that the nvo just inserts rows into a dummy table.  It keeps inserting the rows using the windows' transaction object itran

 

When I retrieve from a datawindow in the window though the timer stops and I no longer see rows inserting in the dummy table

UNTIL after the retrieve is finished.  I want it at the same time.

 

I can't use another transaction because the first one gets disconnected. 

 

I am using ASE 12.5  and itran.dbparm = "Async=1"   

 

in other words I can share the windows transaction object between the window and a sharedobject (multithreads)

BUT as soon as the window talks to the database - the sharedobject stops and does not continue until the window is finished.

 

ANY help would be appreciated so much thx!!!

 

window:


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>