agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Multithreading
Date: Wed, 22 Feb 2006 08:01:37 +0100
Message-ID: <802147018@web.de> (raw)

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





view thread (4+ messages)  latest in thread

Message-ID: <802147018@web.de>
Permalink:  ../802147018@web.de/
Also on:    postgresql.org/message-id/802147018@web.de

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] Multithreading
  In-Reply-To: <802147018@web.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox