Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Sascha L. Teichmann
Hi Larry, Larry Becker schrieb: > Hi Sascha, > > Only potentially, but practically speaking my code is blocking the > GUI thread, and there is nothing running to put more jobs on the > queue. The while loop in processQueue will keep maxRunningThreads > running untill the queue begins to empty.

Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Larry Becker
Hi Sascha, Only potentially, but practically speaking my code is blocking the GUI thread, and there is nothing running to put more jobs on the queue. The while loop in processQueue will keep maxRunningThreads running untill the queue begins to empty. When is empty, there are no more render job

Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Sascha L. Teichmann
Hi Larry, the magic word here is 'critical region' Have a look a the finally block. Assume the setRunningThreads(getRunningThreads() - 1) call was executed and the counter went to zero. This is done in Thread A. And now directly comes a context switch to your code in Thread B. Your if statement th

Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Larry Becker
Hi Sascha, I do not see the difference. It seems to me that when a task is finished, the runningThreads count is decremented as in: try { runnable.run(); } finally { setRunningThreads(getRunningThreads() - 1);

Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Sascha L. Teichmann
Hi Larry, The method is named runningThreads(). This was my mistake. I will add add get getRunningThreads() to reestablish compatibility. Thanks for this hint. BTW: You're code: while (threadQueue.getRunningThreads() > 0) Thread.sleep(200); tests if there are running _threads_ left. This do not

Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Larry Becker
It doesn't look like I'm going to have time to test the new ThreadQueue anytime soon. I did plug it in long enough to determine that it broke my code that called getRunningThreads() since that method is no longer present. I didn't have time to look for the new method that I should use instead.

Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Michaël Michaud
>Hei Saschachaël > >i got positive feedback from my colleaque on the changes of the >threading stuff. >If Michael aggrees too, you can commit > > As far as I'm concerned, I am really pleased to see Sascha's contribution to the core. OJ really needs contributions from skilled programmers :-) .

Re: [JPP-Devel] A new ThreadQueue ...

2007-05-30 Thread Stefan Steiniger
Hei Sascha i got positive feedback from my colleaque on the changes of the threading stuff. If Michael aggrees too, you can commit stefan Sascha L. Teichmann schrieb: > Hi! > > Stefan Steiniger schrieb: >> Similar to Landon I have never touched threading nor heared any lectures >> or read boo

Re: [JPP-Devel] R: Multiple Layers from the same database connection

2007-05-30 Thread Martin Davis
We made the Datastore API cache connections and reuse them if a user requested a connection with the same connection params. So when you load layers from a project file they will reuse already-open connections whereever they can. At least, this is how it's *supposed* to work... it's been a wh

Re: [JPP-Devel] Code Style Standards

2007-05-30 Thread Paul Austin
I think a good set of standards to follow are the Sun Java Code Conventions. It's a fairly short (ish) standard and avoids all the variable prefix and class prefix stuff. http://java.sun.com/docs/codeconv/CodeConventions.pdf In terms of package imports I don't ever manually type imports any more

[JPP-Devel] Joining tabular data to a layer's attribute.

2007-05-30 Thread Roman Isitua
Hello Guys, The application i am working on requires loading tabular data from different database systems e.g SQLServer, Oracle. This data changes very frequently and is mainly numeric. Reading a table from a database is easy but how can I join such data to a layer's attributes. This would

[JPP-Devel] R: Multiple Layers from the same database connection

2007-05-30 Thread P . Rizzi Ag . Mobilità Ambiente
I can't completely understand what you're saying... Using the Datastore API you can open several layers from a single connection... You can try my PostGIS/Oracle plugin from: http://sourceforge.net/project/showfiles.php?group_id=118054&package_id=217237 But you pointed out something I never realiz

[JPP-Devel] R: Code Style Standards

2007-05-30 Thread P . Rizzi Ag . Mobilità Ambiente
cautious about embedding too much > metadata in a name. I worked with a guy that like to put all sorts of > information in a file name. Something like: > > 20070530-Created_By_Sunburned_Surveyor_Read_Only_Peters_Comput > er_Backup_Directions.txt > > This always drove me crazy

Re: [JPP-Devel] JoinTablePlugin in OPENJUMP 1.2 beta

2007-05-30 Thread Stefan Steiniger
aehmm.. sorry it was on the mouse menu now in beta 1.2 it is in tools\edit attributes stefan Stefan Steiniger schrieb: > > Roman Isitua schrieb: >> Hello Guys, >> >> 1. How can I bring tabular data from a database to >> openjump ? > in jump is a right-mouse-click-on-layer-name function which ca

Re: [JPP-Devel] JoinTablePlugin in OPENJUMP 1.2 beta

2007-05-30 Thread Stefan Steiniger
Roman Isitua schrieb: > Hello Guys, > > 1. How can I bring tabular data from a database to > openjump ? in jump is a right-mouse-click-on-layer-name function which can be used to add csv-txt file (table) data to a layer > > 2. Can the JoinTablePlugIn be used to join tabular > data from a dat