pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Dave Cramer <davecramer@postgres.rocks>
Cc: pgsql-jdbc@lists.postgresql.org <pgsql-jdbc@lists.postgresql.org>
Subject: Re: embeded tomcat and correct DataSource.
Date: Tue, 17 Nov 2020 16:15:37 -0700
Message-ID: <30d1835c-069f-05d2-8b05-3a9f00f45bf3@gmail.com> (raw)
In-Reply-To: <CADK3HHKJ--69hJzfiGzT9eUwB_i_TTds9BU+ZKgERgkaV+HftQ@mail.gmail.com>
References: <0f62f2cb-7474-0af5-3bbe-c3747c079dcb@gmail.com>
	<CADK3HHKJ--69hJzfiGzT9eUwB_i_TTds9BU+ZKgERgkaV+HftQ@mail.gmail.com>


On 11/17/20 3:15 PM, Dave Cramer wrote:
> I haven't setup an embedded tomcat in a while. I'd like to know the 
> answer as well.
>
> Any reason you aren't using something like quarkus ?
>
> Dave Cramer
> www.postgres.rocks
>
>
> On Mon, 16 Nov 2020 at 12:05, Rob Sargent <robjsargent@gmail.com 
> <mailto:robjsargent@gmail.com>> wrote:
>
>     Asking for confirmation that, when using an embedded tomcat
>     instance, I should use the PGConnectionPoolDataSource if I wish to
>     use Apache connection pool mechanism.
>
>
Well I was just shooting for the shortest stack possible.   This is a 
home-grown server doing a very specific task, very specific clients 
(science stuff, neither Sir Elton nor I understand) My current working 
version has me managing a bare socket with a Selector.  But there are a 
couple of brittle parts there so a dear friend (still laughing up his 
sleeve I'm sure) suggested embedding tomcat to leverage their selector 
impl and http support.  Tests using DriverManager are working, now I 
think my last hurdle to using a DataSource is a jOOQ/java date/time 
issue.  I'm not at all sure I've wired the DataSource in correctly, but 
examples using embedded tomcat are rare as hen's teeth.

view thread (7+ messages)  latest in thread

Message-ID: <30d1835c-069f-05d2-8b05-3a9f00f45bf3@gmail.com>
Permalink:  ../30d1835c-069f-05d2-8b05-3a9f00f45bf3@gmail.com/
Also on:    postgresql.org/message-id/30d1835c-069f-05d2-8b05-3a9f00f45bf3@gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: robjsargent@gmail.com, davecramer@postgres.rocks
  Subject: Re: embeded tomcat and correct DataSource.
  In-Reply-To: <30d1835c-069f-05d2-8b05-3a9f00f45bf3@gmail.com>
  References: <0f62f2cb-7474-0af5-3bbe-c3747c079dcb@gmail.com> <CADK3HHKJ--69hJzfiGzT9eUwB_i_TTds9BU+ZKgERgkaV+HftQ@mail.gmail.com> <30d1835c-069f-05d2-8b05-3a9f00f45bf3@gmail.com>

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

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