[Pljava-dev] Multithreading

Patrick Peisker p.peisker at web.de
Wed Feb 22 07:01:37 UTC 2006


Hi,

I have problems using pl/java and multithreading. My scenario:

- A pl/java trigger is called before an update is exceuted on a table. This trigger writes something into a queue (singelton pattern)

- A pl/java funtion creates a new thread (class which extends java.lang.thread)

- The new thread is asking the queue for entries and if there are some entries, the thread should call a webservice using axis

No Problems with:

- Creating new thread

- Write and read data from the queue

- Calling a webservice with axis from a pl/java function or trigger

Problems:

- Call a webservice from the thread: On creating  an axis service object the jvm hangs up and the database automatically shut downs and restart!

Any ideas?

thx,

Patrick





______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!		
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130




More information about the Pljava-dev mailing list