Re: Postgres 9.0 and bytea?

2011-01-09 Thread John Bruce
There is a 'bytea_output' config option that sets the output format in 9 it was changed to hex as the default instead of escape which the pre 9 JDBC driver understood. http://www.postgresql.org/docs/9.0/static/runtime-config-client.html HTH - John On Thu, Jan 6, 2011 at 1:00 PM, Kieran Kelleher

Re: Synchronized Editing Context for Locking/Unlocking

2010-09-03 Thread John Bruce
Hi Kieran, Just wondering - what is the difference between having the lock inside the try versus outside? Is it just to ensure that it is locked before doing anything with the context? I've always locked inside the try block as the first statement but I notice others lock outside the try. I always

Re: compound pk

2009-11-10 Thread John Bruce
Hi Mike, Had a situation recently on a app where some entities were using compound primary keys. Most of the time they were read only but there was a new process added that duplicated some of these entities (using EOCopying). In that case some values in the compound primary key needed to stay the

Re: Installing WO 543 on Linux

2009-11-09 Thread John Bruce
ces/Java/ERExtensions.jar > > > I've moved ERExtensions to appear above JavaFoundation, still the same.  The > above is the second line I believe, with JavaFoundation coming further down. > > > On Nov 10, 2009, at 12:56 AM, John Bruce wrote: > > Hi David, > > Wha

Re: Installing WO 543 on Linux

2009-11-09 Thread John Bruce
do. > > I'm not really deploying on Linux by choice - it's the OS that our hosting > server uses.  Not that it doesn't interest me to learn it, but I'm starting > at a point that means a lot of learning to get the thing up and running! > > Regards, > Davi

Re: Installing WO 543 on Linux

2009-11-09 Thread John Bruce
sr/java/jre1.5.0_06/lib/classes.zip" > > Where is this value set or how do I set it?  It seems that this is causing > the errors I'm getting, i.e. NoClassDef for Application etc. > > Regards, > David. > > On Nov 9, 2009, at 10:58 PM, John Bruce wrote: > > Hi Da

Re: Installing WO 543 on Linux

2009-11-09 Thread John Bruce
... > Launching iPSDistributor.woa ... > > Obviously it crashes out with NoClassDef errors etc as it can't find the > NEXT_ROOT.  What have I done wrong here? > > Regards, > David. > > On Nov 9, 2009, at 4:07 PM, John Bruce wrote: > > Hi David, > > you can te

Re: Installing WO 543 on Linux

2009-11-09 Thread John Bruce
Hi David, you can test that the script works properly by trying to launch webobjects via: /etc/init.d/webobjects start /etc/init.d/webobjects stop after running this you should have the two java processes running - if not then there's something wrong. Perhaps check the permissions on the script,

Re: Installing WO 543 on Linux

2009-11-09 Thread John Bruce
Hi David, Sorry forgot to mention that to get the adaptor to use /Apps/WebObjects instead of /cgi-bin/WebObjects you need to have this variable set in your adaptor configuration file for Apache. WebObjectsAlias /Apps/WebObjects - John On Mon, Nov 9, 2009 at 12:35 PM, David Griffith wrote: > Hi

Re: Installing WO 543 on Linux

2009-11-09 Thread John Bruce
Hi David, To do auto startup on Linux (RHEL / Centos) you need to add a script into /etc/init.d and configure via chkconfig. Attached is a sample startup script for wotaskd and javamonitor. You will need to edit it to set your NEXT_ROOT and the USER you want to run the apps as. To install put it

Re: Combining EXTJS with WebObjects.

2009-09-04 Thread John Bruce
ntly to prevent backtracking problems. 4. If you're not familair with Reflection in Java then you will want to read about that as well. NSSelector is more usefult than java.land.reflect.Method as it can be created indepently of a particular object. HTH - John > G. > > > &g

Re: Combining EXTJS with WebObjects.

2009-09-04 Thread John Bruce
Hi Gustavo, You can use the Wonder Ajax framework to get JSON data loaded so that Ext can use it as a data store. The pricipal is to have a component that generates a url which Ext can use as the remote address for a JSON data store. A very rough example which is similar to the AjaxProxy one is:

Re: developing under 10.6 and deploying under 10.5 server

2009-09-02 Thread John Bruce
Fair enough I didn't realise that Wonder had improved this and the simplified development is nice. For me, I find deveoping with a full Apache + extras setup important because in deployment we use nginx as a reverse proxy which serves content from memcache via X-Accel-Redirect headers and it's good

Re: developing under 10.6 and deploying under 10.5 server

2009-09-02 Thread John Bruce
Hi Gustavo, You don't *have* to install mod_WebObjects.so on your developer machine - it's only required if you use Apache when developing. If you use direct connect you won't need it (I don't think) but in general you *shouldn't* develop with direct connect enabled (some people might even say th

Re: WebObjects and Xcode 3.2

2009-08-28 Thread John Bruce
bjects/Adaptors/Apache2.2/apache.conf file that I include in my /etc/apache2/httpd.conf file so if you have it set it to somewhere else then you will need to put it there. - John On Fri, Aug 28, 2009 at 10:06 PM, David Holt wrote: > > On 28-Aug-09, at 1:54 PM, John Bruce wrote: > >>

Re: WebObjects and Xcode 3.2

2009-08-28 Thread John Bruce
I just installed it from the WebObjects 5.4.3 update which you can download here: http://support.apple.com/downloads/WebObjects_Update_5_4_3_for_Mac_OS_X_10_5 The only part that didn't work straight away was the Apache 2.2 adaptor but replacing it with the one that Mike Schrag made available work

Re: [OT] Parsing legacy fixed width flat files

2009-03-24 Thread John Bruce
Hi Q, I've haven't tried this one but it might be useful: http://flatpack.sourceforge.net I've have used the next one but I don't think it does fixed width or multiline but it does CSV very well: (note its a commercial product) http://www.ricebridge.com/products/csvman/ Haven't used this one i

Re: Wonder FrontBasePlugIn Error?

2009-03-19 Thread John Bruce
Hi Drew, I've had this problem before I think. The problem was that the current version of the Wonder FrontBase plugin expects your column name to be in upper case in order to return the database type for the attribute, otherwise it defaults to a varchar, hence the string '1'. As a work around mak

Re: inter-instance communication ?

2008-09-23 Thread John Bruce
Hi Gavin, I've also used Shoal ( https://shoal.dev.java.net/ ) which is a Java library for group communication. It uses JXTA by default but can also use JGroups. I have used it as a replacement for JGroups EOF syncing but you can also easily use it for sending notifications to members of the group

Re: WO and Clouds

2008-06-04 Thread John Bruce
d. Some thoughts I had on this are creating an EOAdaptor for Simple DB or Couch DB or even a direct interface for Erlang's Mnesia database. At the end of the day it all depends on your problem domain but the whole make you app and deploy with instant scalability seems too good to be true.

Re: WO and Clouds

2008-06-04 Thread John Bruce
d. Some thoughts I had on this are creating an EOAdaptor for Simple DB or Couch DB or even a direct interface for Erlang's Mnesia database. At the end of the day it all depends on your problem domain but the whole make you app and deploy with instant scalability seems too good to be true.

Re: Propagate primary key questions

2007-07-21 Thread John Bruce
Hi James, I think this is the same problem I had when I did this - basically the owned eo is created automatically for you. If you create your own one you end up with two and the one you created is not attached. So basically try not creating it yourself and it should just be there... note that yo

Re: WebObjects vs J2EE?

2007-01-08 Thread John Bruce
Hi Ian, This may or may not be helpful but I have started looking into porting an existing WO 5.2.3 app to Java EE 5. I havn't done any formal comparisons or analysis but here are some things that struck me early on: EJB 3.0 Gone are the days or XML descriptors and three classes to just map one

Re: Retrieve data from DB

2006-12-04 Thread John Bruce
Just to add to what Chuck has already said. Casting to User will work but only if you are using a custom Class for the "User" entity in your model. If you are using EOGenericRecord you can retrive the value for the admin attribute (the equivalent of a database column) through Key-Value coding eg:

Re: Detecting eo changes when they happen

2006-10-11 Thread John Bruce
Hi Florijan, One option that might be worth considering is adding standard java bean property change support to your eo's since this is a Swing app. You could do that via EOGenerator as previously described but another way could be to do it using aspects. I remember reading an article about this

Re: using webobjects for the first time

2006-08-10 Thread John Bruce
well I tried removing one of my own attributes as a class property and basically got the same error message as you gave above so that may be the culpret.-JohnOn 8/11/06, John Bruce <[EMAIL PROTECTED]> wrote: Hi,Is the barCodeNumber attribute of the Visitor entity a class property - by that

Re: What is the best way to synchronize EOs between coordinators?

2006-06-04 Thread John Bruce
I've also had some success with jgroups (http://www.jgroups.org). Using the NotificationBus class it is quite easy to send serialized java objects to applications on the same network using multicast. I just changed the existing JMS based change notification framework to use this instead. The Notif

RE: XMLHttpRequest integration on WebObjects

2005-10-22 Thread John Bruce
Hi Miguel, It really depends on what you want to do. The easist way to use AJAX in WO is via direct actions. You can use the XHR object to call your direct action and then you can process the response which can be xml, html, or even a markup such as json. The are a number of toolkits available whi

Re: Web Based EOModeler?

2005-10-20 Thread John Bruce
Hi Chuck,I was thinking about this the other day too. One of the problems with the XCode EOModel intergration that I see is that Apple may take the view that updating and improving EOModler isn't worth it. So it would be nice to have an alternative. I was thinking an Eclipse Plugin could nice, kind