Re: Migrating from EOF to Cayenne

2012-07-12 Thread Andrew Lindesay

Hi;

I can't speak for WO integration but from the perspective of using 
Cayenne with other infrastructure, I can say that I enjoyed working with 
Cayenne a while back -- I'm sadly not using it at the moment.


Coming from an integrated stack like WO, it is possible to forget that 
Cayenne is focused on the object-relational bit; be careful to evaluate 
it in terms of its remit.


cheers.



I agree that we need to more closely examine Cayenne before jumping in with 
both feet.



--
Andrew Lindesay


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Migrating from EOF to Cayenne

2012-07-12 Thread Andrew Lindesay

Hi John  Hugi;


True, this is the biggest gap I've come across - I have an app that does
exactly that.  However, there are a few built-in alternatives, namely
SQLTemplate and EJBQLQuery. But if you have a lot of this in your app,
you'll probably want to wait to consider migrating.


In my use of Cayenne I have created a set of objects like f.s. and 
friends that render to JPQL and in doing this I can't immediately think 
of any 'blockers'.


cheers.

--
Andrew Lindesay


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Most requested stuff on Google Moderator

2012-03-28 Thread Andrew Lindesay

Hello John, Chuck, Pascal and Others;

 I am not moving to something newer and worse because WO is old...
...

...That means you continue to maintain your apps that use WO, you
find a new technology, and you write your new apps in something else.


You may be interested to take a look at;

http://www.silvereye.co.nz/lestuff.html

Regards;

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JUnit and WOA Launching

2012-01-16 Thread Andrew Lindesay

Hi Ray;

Thanks for your reply.

I would like to test the application from outside, but in addition, I 
want to be able to test various algorithms which have been encapsulated 
in 'helpers' within the application; hence the need to launch the 
application within the same virtual machine as the tests are running from.


cheers.

On 16/01/12 6:59 PM, Ray Kiddy wrote:


On Jan 12, 2012, at 1:38 PM, Andrew Lindesay wrote:


Hello;

A colleague and I are trying something at the moment; trying to launch a WOA 
from a thread within a JUnit test running out of Eclipse.

We had some problems with the runtime not finding the main bundle (of course) and added 
the .woa in the ${workspacehome}/build directory. The problem is that now 
seems to be not finding components' classes which are clearly in;

${workspacehome}/build/XYZ.woa/Contents/Resources/Java/...

We're launching the WOA with;

XYZApplication.main(args);

Has anybody tried this before? :)

Regards;

--
Andrew Lindesay


Wow. And I thought I had tried some weird things. This is ... interesting. But 
weird.

I suspect that the problem in this chain is junit. How junit sets up its 
classpath can be a bother. But then I do not run junit tests from eclipse. I 
run them from ant. Or I invoke the tests directly in my woa.

It may seem strange but I suspect you would have more luck with starting with a 
java command-line invocation that launches you WOA. I assume your tests are 
trying to launch that so that they can be clients of the app, yes? So, can your 
tests access the WOA when it is launched on the command-line?

You can, within java, construct an exec call which invokes java. You can, 
within java, construct an exec call which invokes java which launched your WOA. 
You will have more control of the setup of the wo app if you launch it that 
way. Then, can you have your junit test run the code that launches your woa?

This could work, no? Now you are making me wonder if I can do this from ant for 
Project Wonder testing

cheers - ray

  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/apl%40lindesay.co.nz

This email sent to a...@lindesay.co.nz




--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


JUnit and WOA Launching

2012-01-12 Thread Andrew Lindesay

Hello;

A colleague and I are trying something at the moment; trying to launch a 
WOA from a thread within a JUnit test running out of Eclipse.


We had some problems with the runtime not finding the main bundle (of 
course) and added the .woa in the ${workspacehome}/build directory. 
The problem is that now seems to be not finding components' classes 
which are clearly in;


${workspacehome}/build/XYZ.woa/Contents/Resources/Java/...

We're launching the WOA with;

XYZApplication.main(args);

Has anybody tried this before? :)

Regards;

--
Andrew Lindesay
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Weird Behaviour...

2011-12-07 Thread Andrew Lindesay

Hello;

I see a similar situation to Calven in the application I am working on 
and have seen this in a development setting with one user.  This is the 
first time I think I have seen this and I have undertaken a number of 
projects over the years without having done anything particularly 
radical.  I don't (and probably can't) understand what is happening, but 
adding that piece of code seems to resolve the problem.


I have to pause to wonder (not project wonder) to myself if there is 
something going on at the platform level here.  Calven; what are you 
developing and deploying on?


Regards;

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Weird Behaviour...

2011-12-07 Thread Andrew Lindesay

Hello;


projects over the years without having done anything particularly
radical.


^^^ I mean particularly radical (as in different) in this situation.

Regards


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Weird Behaviour...

2011-12-07 Thread Andrew Lindesay

Hi there;

Yes I believe this actually is indicative of the problem; it seems that 
the editing context at that moment doesn't think it has any changes when 
it actually does.


cheers.

On 8/12/11 2:59 AM, ISHIMOTO Ken wrote:

Hi,

Do you use

ec.hasChanged() {

ec.saveChanges();

}

I have found, but not find why sometimes hasChanged() says false but the
EO really changed.





On 2011/12/05, at 15:35, Calven Eggert wrote:


Hi, All

I'm having some weird behaviour and have spent the last weekend trying
to figure out what is going on. Here is what's happening:

I have an EO record that has a number of fields including foreign
keys. I run the application on my machine or on a Mac Server and edit
a record by changing field values, including selections in different
popups to change the foreign key values. I verify that the changes
have been made by using a SQL application called Froq App to look
directly into the database.

Now the weird thing is that sometimes the data is not changed in the
database. I'll log out and then back into the app and make the exact
same changes and this time it works. This completely scares me and now
I have absolutely no faith in what the application is saving.

Any one have any clues on why this might be happening and what I can
do to figure this out. I'm completely stumped. :-(

Calven
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobjects-dev@lists.apple.com
mailto:Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com

This email sent to k...@ksroom.com




Thank you

Ken Ishimoto


K's ROOM

[E-Mail] k...@ksroom.com mailto:k...@ksroom.com
[iChat:] ibase_...@mac.com mailto:ibase_...@mac.com
[HP] http://www.ksroom.com/
_
This e-mail has not been scanned for viruses because it was written on
an Mac,
and there are NO Viruses on an Apple Computer.
For further information visit http://www.apple.com






  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/apl%40lindesay.co.nz

This email sent to a...@lindesay.co.nz



--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Weird Behaviour...

2011-12-06 Thread Andrew Lindesay

Hello Calven;

Thanks, but I guess we should thank the original people who investigated!

It would be nice if a dot release of WO could be done with a patch for 
whatever problem this is because it's a bit of an uncomfortable bug.


cheers.

On 7/12/11 3:35 AM, Calven Eggert wrote:

Andrew,   THANK YOU, THANK YOU, THANK YOU!!!

This was exactly what was happening in my case and by simply adding this:

 public WOResponse dispatchRequest(WORequest request) {
EOObserverCenter.notifyObserversObjectWillChange(null);
return super.dispatchRequest(request);
 }

It completely solved my problems.  No more sporadic saves are happening.  wow!  
After a week I was really thinking I was going crazy.

Thanks again and again.

Calven


On 2011-12-05, at 3:38 PM, Andrew Lindesay wrote:


Hi Calven;

Somebody mentioned to me this posting;

http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg25391.html

We have seen a similar (unsettling) problem in a system which I am involved in 
and this seems to have worked-around the problem for us.

Regards;

On 6/12/11 3:35 AM, Calven Eggert wrote:

Hi, All

I'm having some weird behaviour and have spent the last weekend trying to 
figure out what is going on.  Here is what's happening:

I have an EO record that has a number of fields including foreign keys. I run 
the application on my machine or on a Mac Server and edit a record by changing 
field values, including selections in different popups to change the foreign 
key values.  I verify that the changes have been made by using a SQL 
application called Froq App to look directly into the database.

Now the weird thing is that sometimes the data is not changed in the database.  
I'll log out and then back into the app and make the exact same changes and 
this time it works.  This completely scares me and now I have absolutely no 
faith in what the application is saving.

Any one have any clues on why this might be happening and what I can do to 
figure this out.  I'm completely stumped. :-(

Calven
  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/apl%40lindesay.co.nz

This email sent to a...@lindesay.co.nz




--
Andrew Lindesay
www.silvereye.co.nz








--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Weird Behaviour...

2011-12-05 Thread Andrew Lindesay

Hi Calven;

Somebody mentioned to me this posting;

http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg25391.html

We have seen a similar (unsettling) problem in a system which I am 
involved in and this seems to have worked-around the problem for us.


Regards;

On 6/12/11 3:35 AM, Calven Eggert wrote:

Hi, All

I'm having some weird behaviour and have spent the last weekend trying to 
figure out what is going on.  Here is what's happening:

I have an EO record that has a number of fields including foreign keys. I run 
the application on my machine or on a Mac Server and edit a record by changing 
field values, including selections in different popups to change the foreign 
key values.  I verify that the changes have been made by using a SQL 
application called Froq App to look directly into the database.

Now the weird thing is that sometimes the data is not changed in the database.  
I'll log out and then back into the app and make the exact same changes and 
this time it works.  This completely scares me and now I have absolutely no 
faith in what the application is saving.

Any one have any clues on why this might be happening and what I can do to 
figure this out.  I'm completely stumped. :-(

Calven
  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/apl%40lindesay.co.nz

This email sent to a...@lindesay.co.nz




--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Maven

2011-11-16 Thread Andrew Lindesay

Hello;

I have used maven with non WO projects and my experiences have been 
mostly good.  Using maven feels a bit like being on a lovely but narrow 
garden path (with all the beer and fermented shark you could ever want) 
through hell.  If you diverge off the path (break maven conventions) 
then it's not a good place to be, but if you stay on the path then it's 
quite good.  The neat thing I like is being able to go to Eclipse - 
Import Project and it takes-up your project with dependencies.


cheers.


I was chatting with our favorite Icelandic WO Dev and he said Ant is simple. Maven 
is simpler, though.
So, is Hugi right, or has the fermented shark finally pickled his brain?


--
Andrew Lindesay
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Maven

2011-11-16 Thread Andrew Lindesay

Hello;

On 17/11/11 11:42 AM, Chuck Hill wrote:
 That has been pretty much my experience with it.  When it just
 works it is great.  But...

Yes maven is very 'not fun' when it doesn't just work.

It's interesting (to me) that the disadvantage in ant is maven's 
advantage and the disadvantage in maven is ant's advantage.  I heard or 
read that 'ant with ivy' is a good middle ground, but I haven't had the 
opportunity to try that yet; anybody else?


cheers.

--
Andrew Lindesay
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: How to access WOApplication variables from inside a framework

2011-10-20 Thread Andrew Lindesay

Hello Jürgen;

It depends on the situation.

Can you elaborate what you mean by variables.

At the very least, you could use KVC;

WOApplication.application().valueForKey(key)

cheers.

On 21/10/11 1:13 PM, Jürgen Tabert wrote:

Hi all,

I am looking for the easiest (best?) way to access a WOApplication variables 
from inside a framework.

Thanks for any help,
Jürgen
  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/apl%40lindesay.co.nz

This email sent to a...@lindesay.co.nz




--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Finding WO people for startups (cult of the dead)

2011-09-28 Thread Andrew Lindesay

Hello Aaron;


Anyway I think we table this discussion... This is a WO list after all.


Thanks for your overview; it is always interesting to hear about other 
systems and approaches like this.


Of course Smalltalk is a whole different ball-game to java, but it 
sounds like the component-state architecture is a ~little~ bit more akin 
to Apache Wicket if you can imagine a scenario where Wicket were to have 
no actual template.


cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Seaside (was; Finding WO people for startups)

2011-09-27 Thread Andrew Lindesay

Hello Aaron;

Would you be able to give a brief overview of Smalltalk+Seaside so we 
can understand what is WebObjects-esque about it?


cheers

On 28/09/11 11:02 AM, Chuck Hill wrote:

Hi Aaron,

On 2011-09-27, at 9:19 AM, arosenzw...@clinworx.com wrote:


What is cool about Smalltalk / Seaside with respect to WO?

5) Even better than in-line binding it has no template file what-so-ever by 
design. All your HTML output is coded in the programming language. No more unbalanced DIV 
tags. Everything is refactorable.


Is that better?  In my imagination that makes it like PHP.  Would that not 
obstruct what little view of page structure that is still there in WO?


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Wonder vs WO app/framework in WOLips

2011-09-19 Thread Andrew Lindesay

Hi all;

As long as the option remains there; I seem to have to use New Project 
(non-PW) to get a new project into Eclipse and then SVN the project into 
it -- seems to be the only way to get an existing WO project out of SVN 
into Eclipse.


cheers.

On 19/09/11 4:08 PM, Chuck Hill wrote:

That seems good to me.  Anyone that needs a non-Wonder project knows enough to 
easily create one.


On 2011-09-18, at 2:04 PM, Pascal Robert wrote:


Hi everyone,

Quick survey: does anyone of you still use the WebObjects project types in WOLips instead of the 
Wonder types? I think it's confusing to have both, especially for new people. And now that the 
future of WO is in Wonder, I don't see why many people would select the WebObjects project types. Be aware this 
is only for the File -  New action, the WebObjects project types would be still available from the 
Project... list.






--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


RE: Editing Context Sporadically not Reverting?

2011-07-31 Thread Andrew Lindesay

Hi there;

I'm still trying to track this one down; getting closer to the source of 
the issue, sporadically the exception below (illogically) fires;


- - - - -

EOEditingContext ec = myEo.editingContext(); // actually default ec

String newValue = GEN RANDOM STRING;
myEo.setFoo(newValue);

if(ec.updatedObjects().isEmpty())
throw new IllegalStateException(...);

- - - - -

Has anybody got any ideas about what broadly happens between a value 
being set on an EO and the editing context's updated objects being 
populated?  -- this may give me some leads.


cheers.

 Original Message 
Subject: Editing Context Sporadically not Reverting?
Date: Fri, 29 Jul 2011 11:20:34 +1200
From: Andrew Lindesay a...@lindesay.co.nz
To: webobjects-dev@lists.apple.com

Hi;

We're seeing a wierd one which I have not previously had come up.

I have an object X living in the default EC which is modified by
takeValuesFromRequest(..).  In the invokeAction(..) the method
revert() is invoked on the default EC.  However the modifications on X
survive the revert.  This happens sporadically.  If I look at
updatedObjects() on the ec just prior to the revert, when this problem
arises it seems to think it has no modified objects.

I'm fairly sure that I am sticking to the editing context golden rules
and are not doing anything terribly wierd.

Has anybody else seen this one?

cheers

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Editing Context Sporadically not Reverting?

2011-07-28 Thread Andrew Lindesay

Hi;

We're seeing a wierd one which I have not previously had come up.

I have an object X living in the default EC which is modified by 
takeValuesFromRequest(..).  In the invokeAction(..) the method 
revert() is invoked on the default EC.  However the modifications on X 
survive the revert.  This happens sporadically.  If I look at 
updatedObjects() on the ec just prior to the revert, when this problem 
arises it seems to think it has no modified objects.


I'm fairly sure that I am sticking to the editing context golden rules 
and are not doing anything terribly wierd.


Has anybody else seen this one?

cheers

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: UML view for an EOModel

2011-07-04 Thread Andrew Lindesay

Hi Tobias;

This question may be better asked on the main WebObjects mailing list 
hosted by Apple.  You can, I think, still drop an .eomodeld onto the 
OmniGraffle application;


http://www.omnigroup.com/products/omnigraffle

This will produce a diagram, but hand-tweaking is required to properly 
layout a larger model for comprehension purposes.


I did write an .eomodeld -- GraphViz...

http://www.graphviz.org/

...ant task.  But you can't then tweak the diagram by hand and for a 
larger model the end-result ended up looking spaghetti!  It's OK for 
smaller chunks, but that's not the idea.


So there are no easy answers that I know of without some manual 
intervention!


cheers. 

On 4/07/11 5:36 PM, Tobias Janz wrote:

Hi everyone,

i have a very large EOModel (not designed by myselft) and it is realy
hard to get the relationships between the Entitys.

So i think it would be helpful to understand the Design if i can get an
UML like Diagramm.

Is there a way to get a graphical overview of an EOModel?

I use WO5.4, Eclipse 3.6 with WOLips 3.6 and MacOS 10.6.

Thanks

Tobias Janz



--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Concurrent request handling

2011-04-07 Thread Andrew Lindesay

Hi Xavier;

I would suggest not putting the formatter in the EO class because the EO 
is model layer and the formatter really belong as part of the display 
logic -- blurring the two eventually ends up causing design problems in 
the long-haul.


I think in the past when faced with this situation, I added accessors to 
the components' controllers' super-class which then gets or creates a 
formatter for a particular purpose (data quantity format / timestamp / 
currency etc...) which is cached in the user info in the WOContext 
instance for the current request-response cycle.  This approach allows 
you to re-use the formatters for the request-response cycle and then 
just allows them to be garbage collected at the end of the cycle.


cheers.


Sorry to jump into this to add another question:)
But I would have expected the formatter to not be an issue as it's not
actually writing data.
If you have a stateless app (like full of DA), how would you handle that
as you can actually put the formatter in Session?
Do you have to put the formatter inside the EO class?


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Concurrent request handling

2011-04-07 Thread Andrew Lindesay

Hi Xavier;

I would probably add accessors to the superclass and then have a helper 
singleton to actually cache and factory them into the WOContext, but it 
depends on your application design as to what will work best.


Hope this helps.

cheers.


That means I would have as much formatter instances as there's a request for a 
specific component/page. It's probably not a big deal, it just feels strange to 
me to have something that is application-wide used in a component part.
Would it be a better practice to implement those formatter in a component 
super-class or have them as an interface for the components that need them?


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Urgent help required

2011-03-23 Thread Andrew Lindesay

Hello Vaibhav;

You could do it with a StringBuffer fairly simply -- just create a 
StringBuffer and use the .append() method to add the commas and values.


cheers.

On 24/03/11 11:32 AM, vaibhav srivastava wrote:

Hello community ,

I have array of values need to be write in csv

array {(x0,y0,z0),(x1,y1,z1),(x2,y2,z2)}

then I have column header as (a,b,c)

now format, which I want my array to be written in csv is

a x0 y0 z0
b x1 y1 z1
c x2 y2 z2

Can anybody help me out with the logic to write in the csv in this format.


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Concurrent request handling

2011-03-10 Thread Andrew Lindesay

Hello Gennady;

If you are having application-freezes on exceptions that may be another 
problem and it may be best to conclusively sort that out rather than 
work around it.


cheers.

On 10/03/11 10:22 PM, Gennady Kushnir wrote:

Hello all !
I am wondering whether to turn on concurrent request handling on my
deployment or not.
What are potential drawbacks of this? I assume there should be some.
Why would it be off by default otherwise?
I could not find anything interesting on this in documentation.

And another question: would concurrent request handling save me from
global application deadlocks when one single request locks on
exception?


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Employing mod_deflate Apache module

2011-02-15 Thread Andrew Lindesay

Hi Gennady;


Why make such tricks whereas Apache should do that already?

Because you might be using WebObjects without Apache.


Another reason (depending on your deployment) is that you may have a 
number of application servers with ample CPU resource, but one 
web-server/load-balancer with limited CPU resource.  By compressing in 
the application-server, you could utilise more of the application-server 
resource compressing pages rather than the load-balancer.


cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Informix Adaptor

2011-02-14 Thread Andrew Lindesay

Hello;

Has anybody had a go at creating an Informix JDBC plugin for EOF?

cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


NPE in responding to client

2011-01-26 Thread Andrew Lindesay

Hello;

The last few days I have been getting a number of these;

SEVERE WOWorkerThread id=76 
socket=Socket[addr=/x.x.x.x,port=x,localport=x] Exception occurred 
while responding to client: java.lang.NullPointerException


This error message is not too specific about what is causing the problem 
-- no stack trace etc...  has anybody else encountered a slew of these 
errors and has any idea about the cause?


cheers

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: SELECT statement on relationship binding

2011-01-23 Thread Andrew Lindesay

Hi Tarun;

Large to-many can be trouble for the reason that you have identified.  I 
tend to omit those from the model, leaving the to-one relationship in 
place.  EOF allows this because the relationships are not automatically 
reflexive.


In this I mean that the to-one and to-many relationships are modelled 
separately and you can just remove the to-many one for the large 
relationship.


cheers.




On 24/01/11 11:04 AM, Tarun Reddy wrote:

So I've got a situation where I'm seeing a SELECT that will eventually
kill my performance and want to see if I can fix it before my site goes
live.

My EOModel has an object called a Landing and an object called a
SiteDefinition. The SiteDefinition defines what the site looks like and
the Landing represents a user landing on the site. When a user comes to
the site, I create a Landing and associate it with the SiteDefinition so
that I can capture what site a user sees and what users were on a site.

SiteDefinition to many Landings

When I add the relationship using this:

aLanding.setSiteDefinitionRelationship(getSiteDefinition());


WebObjects decides it needs to select all Landings where the
siteDefinitionID equals the one I'm assigning. This is fine in dev where
I may only have 17 records but eventually I may have 10s of thousands of
records.

Is this my EOModel, and if so how can I prevent it?

Thank you,
Tarun



  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/apl%40lindesay.co.nz

This email sent to a...@lindesay.co.nz



--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WebObjects / EOF and Timeouts on JDBC Connections

2010-12-12 Thread Andrew Lindesay

Hello;

Network appliances which uncleanly tear-down (sounds bad) database 
sockets can cause problems if the socket is left waiting for a read. 
For this reason, I'm wondering if anybody knows about timing out the 
connection on the JDBCContext.  Has anybody tried implementing 
adaptorContextShouldBegin and checking for a 'last used timestamp' 
(stored on the side) or something like this?


cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Timestamps and PostgreSQL

2010-12-06 Thread Andrew Lindesay

Hi Ramsey;

Possibly not helpful, but you can stick this construct inside the class;

static
{
  ... do stuff ...
}

I guess that runs before main() because it has to initialise the class 
before it can run code in it.


cheers.


I might be mistaken, but I don't think you can get any earlier than main():

public static void main(String argv[]) {
TimeZone.setDefault(...);
ERXApplication.main(argv, Application.class);
}


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Timestamps and PostgreSQL

2010-12-03 Thread Andrew Lindesay
It really doesn't help Chuck; we've got users, WebObjects and timezones 
here too.


I did once know about GMT0 and PG, but I haven't used PG in production 
for a couple of years now.  I think I did configure a PG server host to 
GMT0 once and a colleague tells me that he configured 
postgres.conference in the equivalent of /var/lib/pgsql/data -- I think 
he means .configuration there...


cheers.

 I am trying to debug a timestamp issue.
 Run away to New Zealand.  South Island.  Assume a new identity.  Save 
yourself while you still can!


--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Database Connection Question

2010-11-23 Thread Andrew Lindesay

Hi Guys;


One per db context and no.

My problem is that I see my app opening more connections than a number
of models it has.


Mike talked through a work-around for this bug to me recently on here. 
I had the same problem eating lots of connections into an Oracle 
database from the app-servers.  If you are using ERXJDBCAdaptor.java 
then it should resolve this problem I think; otherwise I created my own 
JDBCAdaptor and copied in the methods jdbcInfo() and typeInfo() 
verbatim.  This seems to have resolved the problem.


cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WebObjects scalability question - WOSession?

2010-11-16 Thread Andrew Lindesay

Hi Chuck and Pascal;


...and a road map, that might attract people to pitch in and do something.  Or 
not.


Without wanting to start a long thread on the matter, I imagine that any 
level of transparency on the future of this technology would  improve 
the level of community involvement.


cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Application monitoring

2010-11-15 Thread Andrew Lindesay

Hi Greg;


We just had an issue with our WebObjects application becoming
unresponsive on our new production server (a Mac Mini of course!).  The


It is probably a good idea is to get a stack trace of your 
unresponsive application to see what all of the threads are doing and 
really diagnose the problem rather than just keep restarting the instances.


Have a look at this material to get some ideas;

http://wiki.objectstyle.org/confluence/display/WO/Deployment-Debugging+Frozen+Deployed+Instances

cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WebObjects scalability question

2010-11-15 Thread Andrew Lindesay

Hi Greg;


#1 - Only one thread can be processing at once.  I seem to recall that
this is a limit in EnterpriseObjects but it's been a while.


You are right that one EOF stack can only be used by one thread.  You 
can load-up multiple EOObjectStoreCoordinators into a pool and use those 
within one virtual machine to create instances of EOEditingContext-s.  I 
think there's some material in PW for this or you could roll your own.


For bulk data processing such as a billing system, one approach is to 
use a map/reduce approach.  Divvy up the work into little parcels and 
then distribute them to other virtual machines each with their own EOF 
stack.  This spreads the load across available CPU and memory resources.



With that being said, how can you horizontally scale your application
layer?  If you setup more instances of your app, they each have their
own caches, which will be out of sync with each other.  Is there a
commonly used framework for doing distributed cache management?  And is
it possible to make your applications multithreaded so page requests can
be processed concurrently?


Yes you can process concurrently -- there's a setting for that or you 
can use;


WOApplication.setAllowsConcurrentRequestHandling(..)

For handling keeping caches consistent, you can use a change 
notification system.  This will shift changes from one EOF stack into 
other EOF stacks.  This works really well and there is an implementation 
in PW as well as other implementations available.


cheers.

--
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Scala and WebObjects

2010-11-11 Thread Andrew Lindesay

Hi Pascal;


The question is more that I don't understand why people wants to rewrite WO 
when you can simply extend it.


I think the problem is obviously more political than technical. 
Technically you are correct in that WebObjects is extensible with or 
without PW.


cheers.

___
Andrew Lindesay
www.silvereye.co.nz
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


OpenJDK, Java and Mac

2010-10-25 Thread Andrew Lindesay
Hello;

Excuse my ignorance, but I'm trying to get a handle on the impact of using 
OpenJDK for WebObjects and other java dev going forward if there's no 
official JDK for MacOS-X.  I understand that OpenJDK on MacOS-X uses X11 for 
GUI material (swing/AWT) which would seem tolerable, but are there other 
substantive differences with OpenJDK with respect to the official JDK for non 
GUI applications?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EO Model Doc – Build Product

2010-08-25 Thread Andrew Lindesay
Thanks Mike; it's looking good on Firefox now which will probably make somebody 
sitting in my vicinity a bit happier. ;-)

cheers.

 Thanks for applying that patch for the SCRIPT tag in FFX, but I can't seem 
 to see a build product for it in Hudson -- I can see one from 13-AUG on 
 mdimension HTTP files.  Is that subject to continuous integration?

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


EO Model Doc – Build Product

2010-08-24 Thread Andrew Lindesay
Hello (Mike)

Thanks for applying that patch for the SCRIPT tag in FFX, but I can't seem to 
see a build product for it in Hudson -- I can see one from 13-AUG on mdimension 
HTTP files.  Is that subject to continuous integration?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


EO Model Doc

2010-08-23 Thread Andrew Lindesay
Hello;

Can I confirm; the web pages generated by this tool (thanks Mike) don't render 
on Firefox?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EO Model Doc

2010-08-23 Thread Andrew Lindesay
Thanks Mike -- I'll try it again in a month or so.

cheers.

 http://issues.objectstyle.org/jira/browse/WOL-1169
 i just haven't had a chance to apply this patch yet

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EO Model Doc

2010-08-23 Thread Andrew Lindesay
Hi Mike;

OK; I might give that a go as well if I get a moment -- thanks.

cheers.

 You can specify your own templates btw. It's only the built-in ones that have 
 this issue.
...
 Can I confirm; the web pages generated by this tool (thanks Mike) don't 
 render on Firefox?

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Dates (1-day resolution) redux

2010-08-11 Thread Andrew Lindesay
Hello Paul;

I'm not sure if that would work if you had people viewing and entering data 
from the perspective of different time-zones?  Maybe it would be better to 
normalise to midday for the user's timezone as opposed to the application 
server's timezone -- assuming your application server operates in GMT+0.

cheers.

 public static NSTimestamp normalisedDate(NSTimestamp date) {
...
 Thanks for all the input on this.  I think I'll try the approach above in the 
 first instance.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[Job] Auckland, New Zealand

2010-08-06 Thread Andrew Lindesay
Hello all; For any New Zealanders on this mailing list, there is a WebObjects 
development position open in Auckland at the moment;

http://www.seek.co.nz/users/apply/index.ascx?Sequence=13PageNumber=1ChannelID=1SiteID=9JobId=17851462SearchType=5Keywords=

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WebSocket?

2010-08-02 Thread Andrew Lindesay
Hello;

Out of curiosity more than a pending need, has anybody considered how HTML5's 
WebSocket might be used with WebObjects?  I guess that a WebSocket would look 
like a really long request which occupies a thread as opposed to an async 
architecture like NIO / NSRunLoop?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Suggestions for best deployment?

2010-07-26 Thread Andrew Lindesay
Hi Simon;

 ...amazon RDS for database server..

I see that's using MySQL –– does it somehow handle deferred referential 
integrity checking?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: any there any other actions which could cause a timeout?

2010-07-23 Thread Andrew Lindesay
Hi Jake;

If you don't have concurrent request processing turned on then if an instance 
(X) is already dealing with another request which takes more than a few seconds 
to return a response, the Apache adaptor seems to fail-over a new inbound 
request to another instance (Y) even though the new request is related to a 
session.  As the second instance (Y) is oblivious to the session on the new 
request it gives you a session timeout response.  This could be what is 
happening in your case.

cheers.

 can someone tell me if there is anything else which can cause a timeout?
 we have set setSessionTimeOut to be an hour in Application class, but we are 
 intermittently experiencing timeouts when the hour has not been reached.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EOF and 2 x Database Connections

2010-07-04 Thread Andrew Lindesay
Hi Mike;

Thanks -- I was looking at the framework EOAdaptors/JavaERJDBCAdaptor and 
missed the ERExtensions material!  Without jumping through too many hoops, is 
it necessary to make a new framework to subclass JDBCAdaptor in a usable manner?

cheers

 Actually that's not the part I meant... It does two things. One is that it 
 does a connection pool, but that isn't the patch. The patch is the thing that 
 disconnects the cached context. There's a bug in the superclass that leaves a 
 connection open after a call to typeInfo (and jdbcInfo). It's only about 6 
 lines of fix in there to prevent the problem.
...
 It may be in erxjdbcchannel  I don't have the code in front of me 
 at the moment. Search the source for _cachedContext.
...
 Thanks again Mike; I see from PW code that the solution to this is to 
 subvert EOF's own management of database connections by supplying the system 
 with a connection from a connection pool each time it needs one.  Looks 
 good, but requires ERExtensions so I'll probably leave it and put up with 
 the wasted connection per instance for the time-being.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EOF and 2 x Database Connections

2010-07-04 Thread Andrew Lindesay
Actually; scrap that question -- I think I have been here before and it is 
necessary!

 Without jumping through too many hoops, is it necessary to make a new 
 framework to subclass JDBCAdaptor in a usable manner?

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


EOF and 2 x Database Connections

2010-07-03 Thread Andrew Lindesay
Hello;

As my WOA boots, I'm doing a simple fetch of a reference table using.  From the 
(Oracle) database-server end, I seem to see two connections rather than one 
connection just after the fetch has run.  Has anybody else observed this 
behaviour?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Multiple Models, Coalesced Transactions - is it possible?

2010-06-30 Thread Andrew Lindesay
Hi Mike;

Whatever I'm doing works with that so don't worry about those keys -- thanks 
again.

Regards;

 If it's easy for you to take a quick look for me and let me know then that 
 would be really great thanks -- just so I know.
..
 It's not strictly .equals, but if they are .equals that's good enough ... 
 there are a handful of keys that JDBCPlugIn cares about (url, username, 
 couple others -- i can look them up if you really care) that determine when 
 you get a new eodatabasecontext.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Multiple Models, Coalesced Transactions - is it possible?

2010-06-29 Thread Andrew Lindesay
Hello;

I have 5-6 models in an application.  Thus far this has worked out fine because 
many database servers were employed and a socket or two to each was not a 
problem.  Now the database servers have been consolidated and with each model 
requiring a database connection, the number of connections to one database 
server from all of the instances is actually quite large!

I have been reading the java-doc for the JDBC*/EO* classes trying to get my 
head around how things work at the JDBC connection / transaction level.  What I 
would like to do is to modify the Table Name in the models to be prefixed 
with the schema name and then to somehow see if I could use one connection and 
hence coalesce each transaction commit/rollback across all of the models.

My guess is that this concept is not how EOF works and I'm probably not going 
to be able to do it without also coalescing the models together.

Has anybody any insights?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Multiple Models, Coalesced Transactions - is it possible?

2010-06-29 Thread Andrew Lindesay
Hi Chuck;

Ah; that's the key piece of information –– if two models' connection 
dictionaries are equals() then the same JDBC connection is used for the two 
models.

cheers.

 Are these models using different logins and schemas?  If not, they should all 
 share the same connection if their connection dictionaries are .equals().  If 
 they are all different, then EOF is going to want to consider them to be 
 different.  Putting the schema name in the table name and ensuring that the 
 connection dictionaries are .equals() may work, I have never tried that.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Multiple Models, Coalesced Transactions - is it possible?

2010-06-29 Thread Andrew Lindesay
Hi Mike;

If it's easy for you to take a quick look for me and let me know then that 
would be really great thanks -- just so I know.

cheers.

 It's not strictly .equals, but if they are .equals that's good enough ... 
 there are a handful of keys that JDBCPlugIn cares about (url, username, 
 couple others -- i can look them up if you really care) that determine when 
 you get a new eodatabasecontext.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Oracle searching with accented characters

2010-06-07 Thread Andrew Lindesay
Hello Amiel;

I needed to do some connection initialisation with Oracle late last year and 
was able to successfully implement the EOAdaptorContext.Delegate interface 
and then set my delegate as the default delegate;


EOAdaptorContext.setDefaultDelegate(MyAdaptorContextDelegate.singleton());

In my implementation of;

EOAdaptorContext.adaptorContextShouldConnect(..)

I was able to get the new connection, configure it with things I needed and 
then WO seems to use it.

Not sure where the general approach came from; API browsing, suggestion on here 
or PW -- maybe PW has something for this sort of thing?

Hopefully shedding some light on your dark day. :)

cheers.

 I am currently in a battle with searching the db and accented characters.
 We have some data having accented characters like pépé
 I need pépé to be included in the result set when I query select * from 
 persons where firstname like '%pe%'
 So I need to set the following on oracle
 alter session set NLS_SORT=GENERIC_M_AI;
 alter session set nls_comp=LINGUISTIC;
 This works but I do not know how to set this with webobjects or if it is even 
 advised. I wonder how you guys handle this using WO?
 Can anyone shed some light on my dark day please?

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


LEWOStuff -- lestuff

2010-05-30 Thread Andrew Lindesay
Hello;

The LEWOStuff project has undergone some changes over the last year and as a 
result has morphed into the lestuff project.  There have been some clean-ups 
which have gradually been introduced and the build/project system has also 
shifted to use Apache Maven.  There are no binary builds at the moment as the 
project is distributed as a trunk snapshot source distribution.  Let me know 
if you have any trouble following the instructions --- Note; there is an 
additional build step at the present time which is outlined in the web site.

LEWOStuff framework is now built as a .jar file with the filename 
lestuff-woplusfwk...jar, but the *bundle* name and hence framework-name 
remains as LEWOStuff.

Also now included in lestuff is a new java/servlet web-framework I have been 
working on for some time called Cedar.  Cedar draws some concepts from my 
exeriences with WO.  Cedar provides some integration with Apache Cayenne 3.x 
(http://cayenne.apache.org) which is a java object-relational mapping 
technology.  There is also an Eclipse IDE plugin (separate project) for working 
with Cedar components.  Early days and documentation is still a little thin, 
but this will probably be of interest to some of you.

More information can be found here;

http://www.silvereye.co.nz/lestuff.html

Regards;

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Invalidating Objects

2010-05-20 Thread Andrew Lindesay
Hello Ramsey  Marc

Thanks for getting back to me.

 I've seen similar problems...Using a nested editing context anywhere?

I _was_ until they seemed to causing some other problems so I have removed use 
of that now.  I don't think the nested ECs would have been used on the 
instances where the problem was manifesting itself though.

 Otherwise, what you describe is exactly what we are seeing. We also use 
 invalidate...(), the nulled out EO is never refetched, the only way to 
 recover is to restart the app.


What I have done is to use a lock across the work of handling R-R cycles and 
the change notification (the only place where the invalidate is actioned).  In 
this way, if the issue is one of concurrency with regular EC use then I 
should see this issue go away for human-facing instances which are doing any 
EC-work outside of the R-R cycles.  It's still a fair way off a production 
deploy, but I will let you know if this resolves the issue.

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Invalidating Objects

2010-05-20 Thread Andrew Lindesay
Hello Mike;

I think I was _just_ doing fetches at one point, but I suspect that there was a 
change in 5.3 - 5.4 in that invalidate...() in 5.3 did not drop to-manys 
from caches in EOF and 5.4 seemed to.  In 5.3 fresh fetch with pre-pretches 
into to-manys did re-cache the to-many, but in 5.4 it did not seem to.  I 
obviously am unable to look and see what it is actually doing, but that is my 
observation and the only way I could get it to function for to-many's is to use 
invalidate... –– I presume that change notification in PW is functioning 
seamlessly under high load in 5.4 without invalidate and for to-many 
relationships?  Do you take out a DBC lock for the duration of the change 
notification process for all DBC's which are involved in the changes?  I guess 
I should go take a look...

cheers.

 What I have done is to use a lock across the work of handling R-R cycles and 
 the change notification (the only place where the invalidate is actioned).  
 In this way, if the issue is one of concurrency with regular EC use then I 
 should see this issue go away for human-facing instances which are doing any 
 EC-work outside of the R-R cycles.  It's still a fair way off a production 
 deploy, but I will let you know if this resolves the issue.
 in wonder's we take a dbc lock during the background queue processing, then 
 do a refreshing fetch of the affected EO so that it updated the snapshots. 
 you really don't want to ever do an .invalidate() because if you any EO's in 
 an modified state, they'll be messed up.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


RE: Invalidating Objects

2010-05-20 Thread Andrew Lindesay
Hi Chuck;

That looks perfect thanks; I will try it out soon!

cheers.

 Does this have any bearing on your problem?
...
 That is what I use to re-fresh to-many relationships.  The only time I use 
 invalidate is when I know that an EO with a snapshot has been deleted from 
 the database.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Invalidating Objects

2010-05-18 Thread Andrew Lindesay
Hello;

As part of a built-in change notification facility, I am using 
EOObjectStoreCoordinator.invalidateObjectsWithGlobalIDs(..) with the relevant 
OSC locked.  All use of other editing contexts are locked and unlocked 
correctly.  Occasionally I seem to end up with disappearing snapshots where 
all the values of the snapshot go to NULL -- I can only imagine this would be 
linked to my use of 'invalidate..'.  Other new editing contexts then see the 
NULLed-out EO and the EO does not seem to re-fault in that instance.  When that 
corrupted EO is used in some sort of qualifier, EOF will treat the 
primary-key qualifier as looking for NULL.

Any ideas where to look or has anybody else had this problem and has any 
pointers?

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Wotonomy

2010-04-26 Thread Andrew Lindesay
Hello Cheong;

 I visited the site some time back...Any reason you found it useful?

Given how they usually go, I don't think I want to start one of those 
threads!!! :)

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Wotonomy

2010-04-23 Thread Andrew Lindesay
Hello;

I see there is a Wotonomy project which (was) is implementing a WO-API 
re-implementation.  Does anybody know what became of that?  Is it still being 
developed?

http://sourceforge.net/projects/wotonomy

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Concurrency Issue

2010-04-07 Thread Andrew Lindesay
(Mike - 20hrs ago)
 random wo tip: iterating keys on NSDictionary = copy, iterating keys on 
 HashMap = no copy. if you change dict=map, beware ConcurrentModExc

^^^ What a co-incidence... probably related issue. I guess there's no easy fix 
for this other than lodging a radar.

 I thought I'd ask if anybody else has had any experience with this one?
 
 java.util.ConcurrentModificationException
  at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
  at java.util.HashMap$KeyIterator.next(HashMap.java:828)
  at com.webobjects.foundation.NSDictionary.init(NSDictionary.java:369)
  at com.webobjects.foundation.NSDictionary.init(NSDictionary.java:397)
  at com.webobjects.eocontrol.EOObjectStore.userInfo(EOObjectStore.java:347)
  at 
 com.webobjects.eoaccess.EOModelGroup.modelGroupForObjectStoreCoordinator(EOModelGroup.java:795)
  at com.webobjects.eoaccess.EOUtilities.modelGroup(EOUtilities.java:1045)
  at 
 com.webobjects.eoaccess.EOUtilities.databaseContextForModelNamed(EOUtilities.java:809)

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Concurrency Issue

2010-04-07 Thread Andrew Lindesay
Hi Mike;

Good to know user info not called within WO and that EOUtilities is not 
locking; there is one other place in my code where I use the info dictionary on 
the object store so it must be something of a race condition in my code 
somehow... I will investigate.

cheers.

 Definitely the underlying cause for the exception, but as far as what 
 triggered this event, that's a tougher one. It doesn't really make sense to 
 me, actually. The only API that actually mutates EOObjectStore's userInfo 
 dict is setUserInfoForKey, which isn't called anywhere in the code. Are you 
 using this method in your own code? All the other accesses of EOObjectStore's 
 userInfo result in copies, so I'm not sure who actually modified the thing 
 underneath you. Definitely there is a locking bug in this code, though. 
 Either it needs to be under the standard objectstore lock (which EOUtilities 
 isn't respecting), or it needs to be synchronized (which it's not).

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Concurrency Issue

2010-04-06 Thread Andrew Lindesay
Hello;

I thought I'd ask if anybody else has had any experience with this one?

 java.util.ConcurrentModificationException
   at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
   at java.util.HashMap$KeyIterator.next(HashMap.java:828)
   at com.webobjects.foundation.NSDictionary.init(NSDictionary.java:369)
   at com.webobjects.foundation.NSDictionary.init(NSDictionary.java:397)
   at com.webobjects.eocontrol.EOObjectStore.userInfo(EOObjectStore.java:347)
   at 
 com.webobjects.eoaccess.EOModelGroup.modelGroupForObjectStoreCoordinator(EOModelGroup.java:795)
   at com.webobjects.eoaccess.EOUtilities.modelGroup(EOUtilities.java:1045)
   at 
 com.webobjects.eoaccess.EOUtilities.databaseContextForModelNamed(EOUtilities.java:809)

cheers.

___
Andrew Lindesay
www.silvereye.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Retrieving an EO from a serialized Propertylist in database table textfield

2010-02-24 Thread Andrew Lindesay
Hello Johan;

You really need to serialise a GID and then deserialise the GID and fault it on 
the target system.  NSKeyGlobalID and NSTemporaryGlobalID both conform to 
NSCoding so I guess that you could use that to achieve what you are after?  You 
could also use something like my JSON serialisation as an alternative.

cheers.


 I am trying to get a NSarray of NSDictionaries with Objects from one 
 application to another application via a database text field. 
 
 My idea was that I would first serialize the stuff on one side:
 
 setPlistTextField ( NSPropertyListSerialization.stringFromPropertyList( 
 cart() ) )
 
 next, get it out on the other side:
 
 itemsList= (NSArray) NSPropertyListSerialization.propertyListFromString( 
 plistTextField() )
 
 And then from the NSDictionary retrieve the EO Objects with some EOUtilities 
 method. 
 
 I first thought that 
 
 Product ciProduct = (Product) EOUtilities.localInstanceOfObject( 
 session.myEc(), (nl.netsense.theater.Product) 
 tmpCartItem.objectForKey(product) )
 
 would do the trick, but that is not the case (I can imagine that the stuff I 
 am sending it is not really a EnterpriseObject.
 
 The NSDictionary that I am getting contains stuff like this:
 
 {performance = nl.netsense.theater.Performance pk:994; total = 11.0; 
 qty = 1; product = nl.netsense.theater.Product pk:136; }
 
 Which EOUtilities method would be able to retrieve the EO again from a 
 dictionary value like:
 
 performance = nl.netsense.theater.Performance pk:994
 
 ?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Andrew Lindesay
Hello Chuck;

Assuming an instance with concurrent request processing turned on, if there are 
a number of sessions (or even stateless users) on the same instance with a 
large volume of transactions, will the streaming WORequest multiplex with the 
other requests?  My understanding was that the WebObjects adaptor queues 
requests into an instance rather than multiplexes them.

So if a large transaction arrives from a slow pipe, will it not block the other 
requests until either the adaptor times it out or a response is returned to the 
client?

PS: The javadoc for WORequests refers to the wis request handler -- I hadn't 
heard of this one before!

cheers.

 Are you using the streaming handler for uploads?  If you are, there should 
 not be any timeouts from the adaptor.  I've seen uploads of large files over 
 slow connections to GVC.SiteMaker go on for a very, very long time with no 
 timeout.
...
 I wouldn't up the time on the adaptor because other clients who are using 
 that instance will get blocked and may reach their timeouts.
...
 In my case, I don't think upping the adaptor timeout will block since 
 WOAllowsConcurrentRequestHandling is set to true. Does that sound correct?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Andrew Lindesay
Hello Anjo;

Does each apache handling thread eventually have an on-going connection to 
every instance in the deployment?

cheers.

 The (apache) adaptor maintains a connection per-thread. So you can easily 
 have a slow and a fast request concurrently. Only when they land in the app, 
 depending on if you have CCR on or off they will queue up.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Andrew Lindesay
Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is broken up into 
little chunks and fired into a WOA bit by bit in sequence into a stream.  I 
haven't explicitly tested this from iPhoneOS, but it has been used in a 
production system from MacOS-X to move video files around.  You could build 
something similar to this.

I wouldn't up the time on the adaptor because other clients who are using that 
instance will get blocked and may reach their timeouts.

cheers.

 Does anyone have a recommendation on how to manage a file upload from say, an 
 iPhone, to a WO app (direct action) that takes longer than the WO adaptor 
 time out? Or, should I just set the WO adaptor timeout to something like five 
 or ten minutes to handle slow/flaky EDGE connections?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Any dedicated forums or lists for WO jobs

2010-01-08 Thread Andrew Lindesay
I think there is also;

webobjects-w...@yahoogroups.com

cheers.

 You mean, I should just yell if I have a job opening?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: LEWOStuff (the stuff with JSON-RPC!)

2010-01-07 Thread Andrew Lindesay
Hi Henrique;

 Thank you, that did it. I was thinking I had to change something on the 
 server, I now realize the 'on the wire' format is always the same, right? 
 It's the client that has to be instructed on how to deserialize.

That's essentially correct.  The LEWOJSONFormat handles WO-specific types a bit 
differently to the vanilla LEJSONFormat.  It is also possible to extend or 
override its behaviour by adding your own serialisers or deserialisers which 
can be registered with the LEJSONFormatFactory.

 But does it mean that If I have the EO Model also on the client it will 
 instantiate the right classes? I get this now :
 ERROR er.extensions.eof.ERXEntityClassDescription  - Entity Obra not found in 
 the default model group!

It should de-serialise EO's to proxy objects on the client, but hmm... the 
problem here for you is that the LEWOJSONFormat is going to de-serialise GID's 
to their concrete WebObjects types as opposed to my proxy objects!  I guess I 
have not had the situation arise where the entity is not available from the 
default model group in a WO-WO situation.

Tricky tricky because GID transport is core to how I tend to use JSON-RPC in a 
WOA-WOA scenario, but in your situation where the client WOA is oblivious 
to the EO model, it is undesirable that it should try to de-serialise GID's as 
WebObjects types from that model, but you still want the benefits of the 
KVC-accessible EO proxies in the client.  In general you also probably still 
want access to the GID's as proxies as well in order to be able to manipulate 
data in the master WOA.

I guess there a few ways to tackle this; for the short term, are you able to 
just insert the EO model into the client WOA?  I'll sleep on it...

 Also if I'm also using wonder, what's your advice? Better to subclass ERXApp 
 and only implement the bits need for JSONRPC?

I haven't explicitly done a PW-centric app with it, but the arrangement is such 
that it should plug-in fine.

 Thank you again for sharing your work and answering questions.

No worries.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: LEWOStuff (the stuff with JSON-RPC!)

2010-01-06 Thread Andrew Lindesay
Hi Henrique;

Thanks for the email.

Because the JSON-RPC system intentionally transports model chunks and not 
complete parts of the model, the concept of de-serialising to an EO on the 
client-side makes less sense.  This is a conscious design decision.

For WebObjects applications which are consumers of JSON-RPC web services, the 
client in the WebObjects application is intended to produce instances of...

nz.co.lindesay.common.webobjects.eo.proxy.LEEOEnterpriseObjectProxy

...instead of...

nz.co.lindesay.common.eo.proxy.LEEOEnterpriseObjectProxy

This class conforms to NSKeyValueCoding and should do what you want.  This 
behaviour will automatically happen if you add this to your application 
constructor in the client;

static
{

LEJSONFormatFactory.singleton().setFormatClass(LEWOJSONFormat.class);
}

(If you are subclassing from LEWOApplication then this happens by default.)

Hope this helps and let me know how you get on.

cheers


 I am starting with your JSON RPC precisely on a WO-Wo scenario. Looking at 
 the pdf, the examples and some mails I've been able to have the 'server' WOA 
 respond to login request and send simple answers like strings. When I try to 
 return EO's ( an NSArray of them) the client gets an ArrayList of 
 nz.co.lindesay.common.eo.proxy.LEEOEnterpriseObjectProxy which do not have 
 KVC. 
 How do I convince the server (or is it the client? to send an *NSArray*  of 
 nz.co.lindesay.common.WEBOBJECTS.eo.proxy.LEEOEnterpriseObjectProxy ??
...
 Thanks in advance for any tips.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Best way to run period task?

2010-01-06 Thread Andrew Lindesay
Hello Mark;

Could you use cron on a UNIX host inside your deployment network hitting a DA 
in your system?

cheers.

 What's the recommended way to run a periodic task from within a WO 
 application? In this case its infrequently (hourly) and independent of any 
 web requests. 

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [SPAM] Re: Best way to run period task?

2010-01-06 Thread Andrew Lindesay
Hi Mark;

It depends somewhat on your deployment topology; if you have a number of 
instances then the timer would go off in a number of instances and your 
periodic scheduled task may run a number of times.

cheers.

 Triggering an action could work - was thinking of a thread created in the 
 actual WO app that wakes every hour - any reason not to do that?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Another newbie question

2010-01-02 Thread Andrew Lindesay
Hi Mark;

If I understand you correctly, I would typically create smaller re-usable 
components to put into two different larger components.

cheers.

 I have a component (java/html/api/woo/wod) and want to create a derived 
 component that specialises some of the java functionality, but doesn't need 
 to modify the html of the base component. I can't figure out how to get the 
 derived component to return the base class html since the derived classes 
 just extend the java class.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Another newbie question

2010-01-02 Thread Andrew Lindesay
Hello Mark;

Could you use a java.text.Format subclass and bind this into the 
FieldEditor component using a format binding to provide for the differing 
parser/formatter -- much in the fashion by which WOTextField works?

cheers.

 There is a base component FieldEditor which does in-place editing using the 
 AjaxInPlace component + 2 ERXWOTemplate instances for the edit and view 
 modes. I then am wanting to derive from this to create StringFieldEditor / 
 IntegerFieldEditor / etc that specialize the java to provide view and edit 
 values in different ways as required. The html in FieldEditor component 
 doesn't need to change, and it doesn't make sense to me to have multiple 
 copies in the derived classes. What I'd like to happen is the base class html 
 be used and the overridden getter methods in the derived java class provide 
 the data for display. Is this an approach that applicable to WO? If not how 
 would this be approached to limit duplication of code / html?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Can't create new project.

2009-12-20 Thread Andrew Lindesay
Hi James;

I know others have expressed that they have had no problems on Cocoa, but my 
experience differs; I have found that after some period, the Cocoa version 
really slows down considerably.  I switched to Carbon and it seems to be OK.

cheers.

 There are a dozen versions! I saw at the bottom with the familiar icon 3.5.1.
 Is this ok? Should I get Carbon or Cocoa?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Oracle and EOF with Timestamps

2009-12-15 Thread Andrew Lindesay
Hello Don;

 select * from v$version;

Oracle Database 11g Release 11.2.0.1.0 - 64bit Production

 What version is your jdbc file?

ojdbc5 -- JDBC for 1.5

 I take it you are using the thin driver and not the OCI driver correct?


jdbc:oracle:thin:.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Getting a Connection When Created?

2009-12-15 Thread Andrew Lindesay
Hello;

Without subclassing the JDBC adaptor, is there a means of getting a freshly 
created JDBC connection (channel) and doing stuff to configure it before it is 
pressed into service?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Oracle and EOF with Timestamps

2009-12-15 Thread Andrew Lindesay
Hi Don;

It seems that if I intercept the Oracle connection as it is created and force 
the timezone to GMT+0 in there, the problem is resolved.  Thanks for looking 
anyway.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Getting a Connection When Created?

2009-12-15 Thread Andrew Lindesay
Hi Kieran;

You are alluding to using a DataSource I presume?

No I'm not using PW in this application.

cheers.

 I think your best bet is to subclass and/or work with Wonder's ERXJDBCAdaptor 
  Andrew, you do use Wonder, right?  ;-)

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Oracle and EOF with Timestamps

2009-12-15 Thread Andrew Lindesay
Hi there Don;

Somebody near me says I do. :)

cheers.

 Do you have Oracle Metalink?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Oracle and EOF with Timestamps

2009-12-14 Thread Andrew Lindesay
Hello;

I'm communicating with an Oracle database through an EOF model.

It is working well except that I get this trace logging coming through when 
timestamp attributes are being SELECT'ed on;

SQLState(65000) vendor code(6502)
java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error
ORA-06512: at SYS.DBMS_UTILITY, line 102
ORA-06512: at line 1

at 
oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:132)
at 
oracle.jdbc.driver.DatabaseError.createSqlException(DatabaseError.java:185)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:438)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
at 
oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:202)
at 
oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1005)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
at 
oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3550)
at 
oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4693)
at 
oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1086)
at oracle.sql.TRANSDUMP.getTransitions(TRANSDUMP.java:79)
at oracle.sql.TIMEZONETAB.updateTable(TIMEZONETAB.java:548)
at 
oracle.jdbc.driver.OracleStatement.getDefaultTimeZone(OracleStatement.java:5831)
at 
oracle.jdbc.driver.DateCommonBinder.setOracleCYMD(OraclePreparedStatement.java:17474)
at 
oracle.jdbc.driver.TimestampBinder.bind(OraclePreparedStatement.java:17951)
at 
oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(OraclePreparedStatement.java:3014)
at 
oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2247)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3530)
at 
oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1062)
at 
com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAndExecute(JDBCChannel.java:263)
at 
com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression(JDBCChannel.java:337)
...

The fetch still works fine, but this problem is consuming some capacity and I 
don't know why.  It seems to be invoking a stored-procedure to fiddle timezones.

If I create a simple java program to fetch some data, I don't see this.

Has anybody else seen this one?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: Oracle and EOF with Timestamps

2009-12-14 Thread Andrew Lindesay
Hello Don  Chuck;

 I use Oracle with WebObjects.  I have not seen this type of error.  What are 
 you trying to do specifically?  Do you have any code?  Send me the datatype 
 and field name.  How are you trying to manage the timezone.

We're setting the Oracle host to GMT+0 and the WO server's JVM to GMT+0 so it 
should be GMT+0 clean right through.  The timestamp type we're using in the 
model is TIMESTAMP.  I wonder if using TIMESTAMP WITH TIMEZONE type might 
resolve the issue by not trying to do any timezone fiddling.

The timestamps are being transformed for the user in WOComponents using a 
subclass of java.text.Format and all processing, web services and IO inside 
the WebObjects application is all GMT+0 relative.

When faults fire in EOF, we seem to get the PL/SQL function 
get_tz_transitions fired (which looks to be a performance constraint) and it 
fails with that exception I posted.  This appears to go to stdout and yet the 
fault is resolved OK from EOF's perspective.  I can only presume it is 
something going on inside the Oracle JDBC driver rather than EOF.

 Check the data type of the relevant column in the JDBC2INFO.  It might have 
 some definition that is causing Oracle to do this and a different data type 
 (or value type!) might avoid this.

I deleted that from the model some years ago (after you correctly suggested it 
as a remedy to another problem) and it hasn't resurfaced!

  Could it be a driver version / Oracle version mismatch?

I think this is ok.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: SnowLeopard ant build of apps for java 1.5 on 10.4

2009-12-10 Thread Andrew Lindesay
Hello David;

 I seem to have problems with the DataSource API change between 1.6 and 1.5 
 which only seem to be able to be resolved by reverting to a 1.5 javac –– has 
 anybody else worked around this?
 
 I've not had any problem building with 1.6 for deployment on 1.5. FMI, what 
 are you doing that is encountering the DataSource API changes?

Download LEWOStuff and have a look at the class LEPooledDataSource -- this 
compiles ok on 1.6 now, but won't compile with 1.5.  I'm presently doing a 
tricky-swap-out of the source code at build time on a 1.5 machine.  I don't 
want to install old-er JVM's on my MacOS-X 10.6 machine in case something 
breaks.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: SnowLeopard ant build of apps for java 1.5 on 10.4

2009-12-08 Thread Andrew Lindesay
Hello;

I seem to have problems with the DataSource API change between 1.6 and 1.5 
which only seem to be able to be resolved by reverting to a 1.5 javac –– has 
anybody else worked around this?

cheers.

 I'm trying to figure out how to build WO 5.3.3 apps under 10.6, to be 
 deployed on 10.4 (with java 1.5).  I would normally build my apps on the 
 development box with ant, then move them over.  I got the impression from 
 something I read (no idea where, now) that you could use Snow Leopard's java 
 1.6 compiler to build 1.5-compliant apps.  I don't think the Eclipse Java - 
 Compiler - compliance level affects what ant does, neither from within 
 Eclipse, nor (of course) from the command line.
 
 I've seen suggestions to add source and target attributes to the wocompile 
 task.  I assume that means something like this:
  wocompile srcdir=Sources destdir=bin source=1.5 target=1.5
 
 We are setting the compiler compliance level and using the source and target 
 values in our wocompile tasks and building WO5.3.3 apps for deployment on 
 Tiger and Leopard server without issue.
 
 flash-2:foo david$ file Application.class 
 Application.class: compiled Java class data, version 49.0 (Java 1.5)


___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: MySQL and PG (was Dr. Miguel....)

2009-12-03 Thread Andrew Lindesay
Hello Guido;

I have to concur; PG has been really great for me and I have had some problems 
with MySQL.  The most serious problem with MySQL was memory-exhaustion in the 
driver, but the latest MySQL driver has seemed to _finally_ resolved that one.  
I have to also concur with Mike though in that I did try to take pgpool 
(replication only) to a production environment and it was not a happy morning 
and I had to roll it back.  If I had to choose between the two for a small WOA, 
I would definitely lean towards PG because of the trouble-free operations I've 
experienced.  I notice there are a number of companies offering support for 
larger PG deployments.

cheers.

 I don't think I ever used MyISAM tables with a WO app. I have seen corrupted 
 data with InnoDB tables and WO usage though. For the rest, they might have 
 been MyISAM used from some PHP web crap, but the thing is: the SQL stored the 
 thing and some historic data gets corrupted. That was the issue we had. I 
 can't recall exactly enough to blame it completely on MySQL, but I stopped 
 using it and I had never ever again any issues with corrupt data (95% 
 PostgreSQL, 5% FrontBase usage). 
 
 FrontBase has the issue that you can easily kill the server with bad input. 
 This can't happen with PostgreSQL as you get your own backend for each 
 connection.
 
 Between the three databases MySQL, PostgreSQL, and FrontBase, I've used 
 PostgreSQL the most and with the most success and least amount of trouble. 
 I'd love to see a multi master clustering solution for it though that 
 actually works and is not a piece of shit.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EOF / multithreading app design question

2009-12-01 Thread Andrew Lindesay
Hi Ken;

I do this sort of thing; feeding in workload via messaging queues and process 
it.

If you had a number of instances consuming from the queue rather than focussing 
on threading within one instance, I wonder if you really need to do anything 
special around EOF concurrency within a single JVM?  In my applications, the 
batch processing occurs on a different EOObjectStoreCoordinator to the regular 
user-processing and so there is no contention between the two.  This seems to 
work well for me.

 ...a single context for all this stuff takes up a few hundred megabytes 
 already.

Can you not break down the workload (presumably by message) and create a new EC 
each time you have to do some work?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: new Session

2009-11-23 Thread Andrew Lindesay
Hello Frank;

You could pass basic session information between the instances and then allow a 
trusted token to initiate a new session on an other instance other than the one 
on which the user was previously working.

cheers.

 I want to be able to create a new session, so once the user has logged in and 
 is working in one session, he should be able to open a new session, but 
 without logging in again.
 I need this because if a user is for instance creating an invoice and the 
 phone is going, so he can create another session to search the data and then 
 later continue to work with the older session.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


EO Adaptor Debug

2009-11-23 Thread Andrew Lindesay
Hello;

I have used this many times prior, but it's got me today;

-DEOAdaptorDebugEnabled=true

I can't seem to get out the SQL trace -- I know there's gotchas around this 
one.  Can anybody remember how to make this one work?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EO Adaptor Debug

2009-11-23 Thread Andrew Lindesay
Hi Chuck;

Thanks for that.

I tried what you have done in code as well as;

-DEOAdaptorDebugEnabled=true

-DNSDebugGroups=(NSLog.DebugGroupSQLGeneration,NSLog.DebugGroupDatabaseAccess,NSLog.DebugGroupEnterpriseObjects)
-DNSDebugLevel=NSLog.DebugLevelDetailed

I'm getting trace of what the adaptors are doing, but still no SQL!

cheers.

 You've probably changed the NSLog Group or Level.  Here is what I use to turn 
 this on in code

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Velocity Template Question

2009-11-21 Thread Andrew Lindesay
Hi;

Thanks for that -- works really well.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: OT: Stepwise gone

2009-11-21 Thread Andrew Lindesay
Hi Joe;

Most of the articles on there are fairly old, but my WO articles are PDF'ed on 
my web site if anybody wants them.  It's sad to see the site go as it was the 
main source of news in the NeXT days, but I guess those days are long gone.

cheers.

 Scott took his site down as noted below.
 http://www.stepwise.com/

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Velocity Template Question

2009-11-20 Thread Andrew Lindesay
Hi Mike;

 #if ($entity.sortedClassAttributes.containsObject(code))
 ...
 and contains -- it's a List (maybe a Set). and you would have to have 
 looked up the attribute code already, obviously.


Sorry; I'm a bit new to this -- can you elaborate on that?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Velocity Template Question

2009-11-20 Thread Andrew Lindesay
Hi Mike;

You are right; I'm trying to add a method to the entitys' superclasses for 
fetching based on code if the code attribute is present.  I'm trying to 
achieve what I had before using velocity.  I am doing something like this, but 
the #if is not firing;

 #if ($entity.sortedClassAttributes.containsObject(code))
   @SuppressWarnings(unchecked)
   public static nz.co.orcon.osm.eo.main.OcnDuration 
 fetchByCode(EOEditingContext ec, String code) {
   
   }
 
   ...
 
 #end

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOWODC 2010 : official date and venue

2009-11-19 Thread Andrew Lindesay
Hand up. :)

cheers.

 it would be great for future WOWODC to move it around to see different 
 cities.
 I'm seriously planning on a Gold Coast, Australia WOWODC.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Velocity Template Question

2009-11-19 Thread Andrew Lindesay
Hello;

In eo-gen templates, is it possible to do something like this;

 #if ($entity.sortedClassAttributes.code)
 ...
 #end


Where the ... would be inserted if the code attribute were present in the 
list of 'sortedClassAttributes'?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Andrew Lindesay
Hello Don;

You will be happy to know that I've got some quite good material in this space.

Check out my WOWODC-2009 video and or look at LEWOStuff;


http://homepage.mac.com/andrewlindesay/le/manuals/lewostuff/LEWOStuffOverview.pdf
(6.10.1 LEJSONFormat)
(7.20 JSON-RPC)

There are also a range of clients for various platforms included.

The JSON serialisation and deserialisation can be used separately from the 
JSON-RPC infrastructure as well.

Do you have a specific thing you want to do?

cheers.

 I am looking to play with some JSON implementations with WebObjects.  
 Unfortunately I have not been able to find much information or examples.  I 
 searched through google and the Wiki, without much success
 Any hints on where to go to find information and small examples?

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: JSON and WebObjects

2009-11-10 Thread Andrew Lindesay
Hello Don;

The framework will deal with EO serialisation for you.  Watch the WOWODC-2009 
video on this subject and check out the sample code which was shown in the 
video;


http://homepage.mac.com/andrewlindesay/le/downloads/JSONRPCHandsOn-SessionCode-1sep2009.zip

I think John Lennard is doing some foo like this at the moment... John?

cheers.

 I am wanting to pass EO Objects back and forth to an AJAX web application.  
 We have a need where the entire front wend web application will be designed 
 by graphics designers, no developers involved, then it will be turned over to 
 the Developers to make sure all the bits are filled in.  (management's words 
 not mine).  But the developers cannot modify the design.
 The way I expected would be the easiest to implement would be to use JSON and 
 AJAX, to receive objects to populate the interface.

___
Andrew Lindesay
www.lindesay.co.nz

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Validation errors inside a sub-component

2009-11-05 Thread Andrew Lindesay

Hi Pascal;

Subsection 7.10 of this gives you a brief overview of how I handle  
this which I think is akin to what Ramsey is meaning;



http://homepage.mac.com/andrewlindesay/le/manuals/lewostuff/LEWOStuffOverview.pdf

It may give you some ideas.

cheers.

Maybe drop all your validation handling into your page component  
instead and then you can get at it with context.page?  Extra bonus:  
use the same page super class everywhere and your validation  
handling is done in one place for your entire app. (^_^)

...

I'm trapping validation errors like this :


___
Andrew Lindesay
www.lindesay.co.nz

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOWODC 2010 : call for presenters

2009-11-02 Thread Andrew Lindesay

Hello Dennis;

If I am going next year then I would like to hear a session on your  
framework -- it sounds interesting and I have not yet had time to look  
at it.


cheers.

It appears that several people on this list are promoting all kinds  
of other PDF generating frameworks, for whatever reasons they have.
We were proposing to present at the WOWDC on how to make some  
advanced PDF reports that cannot be created with the regular  
template systems; with a fair amount of new example code.
However, if this appears not to be of benefit to most of the  
community, maybe we should focus on presenting the other items.


___
Andrew Lindesay
www.lindesay.co.nz

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


  1   2   3   4   5   >