Re: SSL connections to postgresql in Azure

2021-06-09 Thread Rick Bonnett
PERTY, "org.postgresql.Driver") .put(Constants.JDBC_URL_PROPERTY, "jdbc:postgresql://<>:5432/are?user=<>&password=<>&ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory"); } }; Rick Bonnett Programmer Analyst Ascent Global Logistics [X]

Re: SSL connections to postgresql in Azure

2021-06-09 Thread Rick Bonnett
Thanks. That got me on the path to success Rick Bonnett Programmer Analyst Ascent Global Logistics [X] PO Box 1039, Augusta, ME, 04332 Office: 207.620.8670 ascentgl.com<http://ascentgl.com/> [cid:eeb9a99a-9f1c-43c5-b220-54ed4a9e63ad] From: M

SSL connections to postgresql in Azure

2021-06-09 Thread Rick Bonnett
aps) { for (DbEntity entity: dm.getDbEntities()) { entity.setSchema("p"); } } ObjectContext ORMContext = cayenneRuntime.getContext(); Rick Bonnett Programmer Analyst Ascent Global Logistics [X] PO Box 1039, Augusta, ME, 04332 Office: 207.620.8670 ascentgl.com<http://ascentgl.com/> [cid:0

Cayenne 4 logging

2018-09-10 Thread Rick Bonnett
msg%n Any help is greatly appreciated Thanks Learn more about Ascent Global Logistics at www.ascentgl.com<http://www.ascentgl.com/>. [1492612735782_ascentlogo.jpg] Rick Bonnett Programmer Analyst Ascent Global Logistics Office: 207.620.8670 P.O. Box 1039 August

Re: Selecting against postgres sequence

2014-01-08 Thread Rick Bonnett
rmQuery(rawSelect); >Map row = (Map)list.get(0); > > Number autoincrementID = (Number)row.get("ID"); > >return new Integer(autoincrementID.intValue()); >} > > > On Wed, Jan 8, 2014 at 2:45 PM, Rick Bonnett wrote: >> I’m trying to dir

Selecting against postgres sequence

2014-01-08 Thread Rick Bonnett
I’m trying to directly fetch the nextval form a postgres sequence using Cayenne, and am baffled but why I am getting nothing back. I’m using SqlTemplate to build my query, since the modeler does;t seem to let me model a sequence DB object directly. Code snippets: 1) using performQuery SQLTempl

Eclipse runnable jar file can't find cayenne resources

2013-12-11 Thread Rick Bonnett
This is using 3.1B2. >From Eclipse, I export my project as a runnable jar file. When I try to >execute it from bash, I get this exception thrown at startup: Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at s

Re: Config files in jar file?

2013-08-28 Thread Rick Bonnett
either. Maybe there are some clues. And finally - if the standard ResourceLocator above doesn't work, you can define your own. Sorry if this answer is too abstract. I guess I'll need to experiment with namespaces to better understand class loading patterns involved. Andrus On Aug 20, 20

Config files in jar file?

2013-08-20 Thread Rick Bonnett
This is all related to a RESTful service running under Glassfish and developed in Eclipse. In my current project, I have all my Cayenne model classes, and a corresponding manager class contained in a separate namespace, say EventModel. I export a jar file for this namespace and use Maven to th

Re: SQLTemplate problems in 3.1B2

2013-04-16 Thread Rick Bonnett
kely the culprit. So which Glassfish version do you have? Maybe I can try a basic test in an isolated environment. Andrus On Apr 16, 2013, at 1:26 PM, Rick Bonnett mailto:rbonn...@mesca.com>> wrote: OK. One more level down the rabbit hole now… now that I have velocity seemingly loading,

Re: SQLTemplate problems in 3.1B2

2013-04-16 Thread Rick Bonnett
ple of what you needed. Not sure how easy it would be to integrate with your app. http://classpathhelper.sourceforge.net/ On Tue, Apr 16, 2013 at 8:38 AM, Rick Bonnett wrote: I'm trying to use SQLTemplate queries and running into a strange problem. This snippet works fine if I run it

Re: SQLTemplate problems in 3.1B2

2013-04-16 Thread Rick Bonnett
n example of > what you needed. Not sure how easy it would be to integrate with your > app. > > http://classpathhelper.sourceforge.net/ > > On Tue, Apr 16, 2013 at 8:38 AM, Rick Bonnett wrote: >> I'm trying to use SQLTemplate queries and running into a strange problem. >> This snippet wo

SQLTemplate problems in 3.1B2

2013-04-16 Thread Rick Bonnett
I'm trying to use SQLTemplate queries and running into a strange problem. This snippet works fine if I run it in a plain Java application, but fails if I then use it within a web service running under Glassfish. In both cases I am using the same cayenne metadata files. I have also noticed the sa