[OT] call gifsicle via Java process

2007-02-10 Thread Ute Hoffmann

Hallo,
I'm sorry for this off topic post, but im pulling my hair after hours  
of testing and looking and perhaps someone sees what I miss.


I need to call gifsicle from a java process to optimize .gif images (as  
imageMagick fails to do so and getting it working with ImageMagick   
seems to either need a very old IM version or some tuning of the  
tifflib. I looked into it but descided not to).


This is what I want to do:

call a exec from my java function which hands over the correct infos to  
gifsicle and gifsicle reading the file in and writing it optimized back  
to disk.


This is the error I get:
Fehler bei der KonversionTTGifsicle$Exception: Could not exec process:  
/usr/local/bin/gifsicle   
/Library/WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ 
26basispaket9.gif   
/Library/WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ 
ute_nn.gif: not found. invocation line: /usr/local/bin/gifsicle   
/Library/WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ 
26basispaket9.gif   
/Library/WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ 
ute_nn.gif. error output: null


The file is there. When I open a terminal on the server and copy
/usr/local/bin/gifsicle   
/Library/WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ 
26basispaket9.gif   
/Library/WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ute_nn.gif


into the terminal gifsicle does as asked. Only difference aside from  
java involved/not involved: I'm logged in as root


So:
a) Do you think that what I see here is a permission problem
b) Has someone experience with calling gifsicle from java and could  
perhaps give me a code example of the call.


Thank you for some insight.

Regards

Ute

P.S:
This is my call:

String[] cmdArray = new String[] {
/usr/local/bin/gifsicle + +sourceFilePath+  +outFilePath
};

NSMutableArray stdErrContents = new NSMutableArray();
NSMutableArray stdOutContents = new NSMutableArray();
int resultCode;
try {
resultCode = exec( cmdArray, stdOutContents, stdErrContents );
}
catch 
 ___
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 archive@mail-archive.com

Re: Query on relationship to abstract entity failing w/horizontal inheritance

2007-02-10 Thread John Larson
Son of a gun, I tried it on a identical situation in my model and I  
got the same thing! I also use the regular jdbc driver.  I've never  
had to do it before so I never caught it.  So, if misery loves  
company, at least you now have company.


I would definitely say that eo does not support using relationships  
defined in abstract entities that are subclassed using horizontal  
inheritance as query qualifiers.  Another one of those things to put  
in the just when you think you understand eo . . .  file.  (See my  
post about batch faulting relationships from abstract entities when  
using single table inheritance.)


John

On Feb 6, 2007, at 11:13 AM, Ken Anderson wrote:


John,

The concrete sub-entities are not abstract - and yes, I've been  
bitten by that EOModeler 'feature' too.


Unfortunately, I found another case where it's difficult to work  
around it... so I'm still stuck trying to figure this out.  I have  
a feeling that I'm going to have to iterate over all the child  
entities and perform this query separately on each individual  
concrete sub-entity.  Not optimal, but not too bad either  
considering the alternative I was using, which is to fetch all the  
objects and qualify in-memory (yikes).


The database is multi-company, and I have to be very strict to make  
sure data from one company doesn't co-mingle with another.  To do  
that without duplicating the company OID in each table, I have a  
userInfo attribute called 'MemberCompanyRoleKeyPath'.  I then  
qualify on whatever that keypath is so that all records for a  
particular company can be found.


Thanks for your thoughts!

Ken

On Feb 6, 2007, at 12:05 PM, John Larson wrote:

Sounds like you're moving on already, but I want to remember  
having this problem before when using EOModeler.  Creating  
subclasses of abstract entities defaults the subclasses to  
abstract.  Are you sure your subclasses are not abstract?  I use  
horizontal inheritance all the time for some documents with  
different line types that are vastly different.  Can you qualify  
on an attribute that isn't a relationship?


John

On Feb 6, 2007, at 10:31 AM, Ken Anderson wrote:

Unfortunately, that didn't work.  Even with setIsDeep set to  
true, it still has NULL for the table name.  And yes, the  
abstract entity is set to abstract.


Oh well - I'm going to go with single table for this particular  
situation.


Thanks again Mike.
Ken


On Feb 6, 2007, at 10:58 AM, Mike Schrag wrote:

If I had to guess, I bet it's because none of the EOUtilities  
methods do a fetchSpec.setIsDeep(true) and thus don't fetch on  
subclasses.  If you steal the code from that method and add the  
setIsDeep, maybe that will work?


EOQualifier qualifier =  
EOQualifier.qualifierWithQualifierFormat(format, args);
EOFetchSpecification fetchSpec = new EOFetchSpecification 
(entityName, qualifier, null);

fetchSpec.setIsDeep(true);
NSArray results = ec.objectsWithFetchSpecification(fetchSpec);

On Feb 6, 2007, at 10:54 AM, Ken Anderson wrote:


Everyone,

I swear this has worked in the past - if I'm mistaken, please  
remind me!


I have an entity (MemberRuleField) with a relationship to an  
abstract entity (MemberRule).  MemberRule (and it's sub- 
entities) has a relationship called MemberCompanyRole (this  
defines what company the rule is for).  The inheritance  
structure is implemented using horizontal inheritance (separate  
table for each concrete sub-entity).


I would like to perform this query:

eos = EOUtilities.objectsWithQualifierFormat(ec,  
MemberRuleField, memberRule.memberCompanyRole = %@, new  
NSArray(new Object[] {memberCompanyRole}));



What I think this should do is create a query for every  
concrete sub-entity.  Instead, I get this:


SELECT t0.field_values, t0.long_field_values,  
t0.member_rule_oid, t0.oid, t0.op, t0.rule_field_oid,  
t0.trans_id FROM member_rule_field t0, null T1 WHERE  
T1.member_company_role_oid = ? AND t0.member_rule_oid = T1.oid  
withBindings: 1:11(memberCompanyRoleOid)


I only get one query, and the table name is NULL for the  
related table.  That unfortunately makes sense, because the  
memberRule relationship points to the MemberRule entity, which  
is abstract and does not have a table (yes I know, single table  
inheritance would solve this problem...and vertical would  
probably solve it too).


Any thoughts?  I would really prefer to use horizontal here...

Ken

 ___
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/mschrag% 
40mdimension.com


This email sent to [EMAIL PROTECTED]


 ___
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 

Re: Query on relationship to abstract entity failing w/horizontal inheritance

2007-02-10 Thread Ken Anderson

John,

I *have* solved this problem, albeit slightly inelegantly.  I  
determine when such a situation exists, create duplicate  
relationships to all the concrete sub-entities, and create an OR  
qualifier to replace the key value qualifier.  At the moment, my  
implementation requires a subclass of EOEditingContext and the  
qualifiers, but it doesn't have to be that way.  Let me know and I'll  
be happy to split out the code for you.


Ken

On Feb 10, 2007, at 7:42 AM, John Larson wrote:

Son of a gun, I tried it on a identical situation in my model and I  
got the same thing! I also use the regular jdbc driver.  I've never  
had to do it before so I never caught it.  So, if misery loves  
company, at least you now have company.


I would definitely say that eo does not support using relationships  
defined in abstract entities that are subclassed using horizontal  
inheritance as query qualifiers.  Another one of those things to  
put in the just when you think you understand eo . . .  file.   
(See my post about batch faulting relationships from abstract  
entities when using single table inheritance.)


John

On Feb 6, 2007, at 11:13 AM, Ken Anderson wrote:


John,

The concrete sub-entities are not abstract - and yes, I've been  
bitten by that EOModeler 'feature' too.


Unfortunately, I found another case where it's difficult to work  
around it... so I'm still stuck trying to figure this out.  I have  
a feeling that I'm going to have to iterate over all the child  
entities and perform this query separately on each individual  
concrete sub-entity.  Not optimal, but not too bad either  
considering the alternative I was using, which is to fetch all the  
objects and qualify in-memory (yikes).


The database is multi-company, and I have to be very strict to  
make sure data from one company doesn't co-mingle with another.   
To do that without duplicating the company OID in each table, I  
have a userInfo attribute called 'MemberCompanyRoleKeyPath'.  I  
then qualify on whatever that keypath is so that all records for a  
particular company can be found.


Thanks for your thoughts!

Ken

On Feb 6, 2007, at 12:05 PM, John Larson wrote:

Sounds like you're moving on already, but I want to remember  
having this problem before when using EOModeler.  Creating  
subclasses of abstract entities defaults the subclasses to  
abstract.  Are you sure your subclasses are not abstract?  I use  
horizontal inheritance all the time for some documents with  
different line types that are vastly different.  Can you qualify  
on an attribute that isn't a relationship?


John

On Feb 6, 2007, at 10:31 AM, Ken Anderson wrote:

Unfortunately, that didn't work.  Even with setIsDeep set to  
true, it still has NULL for the table name.  And yes, the  
abstract entity is set to abstract.


Oh well - I'm going to go with single table for this particular  
situation.


Thanks again Mike.
Ken


On Feb 6, 2007, at 10:58 AM, Mike Schrag wrote:

If I had to guess, I bet it's because none of the EOUtilities  
methods do a fetchSpec.setIsDeep(true) and thus don't fetch on  
subclasses.  If you steal the code from that method and add the  
setIsDeep, maybe that will work?


EOQualifier qualifier =  
EOQualifier.qualifierWithQualifierFormat(format, args);
EOFetchSpecification fetchSpec = new EOFetchSpecification 
(entityName, qualifier, null);

fetchSpec.setIsDeep(true);
NSArray results = ec.objectsWithFetchSpecification(fetchSpec);

On Feb 6, 2007, at 10:54 AM, Ken Anderson wrote:


Everyone,

I swear this has worked in the past - if I'm mistaken, please  
remind me!


I have an entity (MemberRuleField) with a relationship to an  
abstract entity (MemberRule).  MemberRule (and it's sub- 
entities) has a relationship called MemberCompanyRole (this  
defines what company the rule is for).  The inheritance  
structure is implemented using horizontal inheritance  
(separate table for each concrete sub-entity).


I would like to perform this query:

eos = EOUtilities.objectsWithQualifierFormat(ec,  
MemberRuleField, memberRule.memberCompanyRole = %@, new  
NSArray(new Object[] {memberCompanyRole}));



What I think this should do is create a query for every  
concrete sub-entity.  Instead, I get this:


SELECT t0.field_values, t0.long_field_values,  
t0.member_rule_oid, t0.oid, t0.op, t0.rule_field_oid,  
t0.trans_id FROM member_rule_field t0, null T1 WHERE  
T1.member_company_role_oid = ? AND t0.member_rule_oid =  
T1.oid withBindings: 1:11(memberCompanyRoleOid)


I only get one query, and the table name is NULL for the  
related table.  That unfortunately makes sense, because the  
memberRule relationship points to the MemberRule entity, which  
is abstract and does not have a table (yes I know, single  
table inheritance would solve this problem...and vertical  
would probably solve it too).


Any thoughts?  I would really prefer to use horizontal here...

Ken

 ___

Re: [OT] call gifsicle via Java process

2007-02-10 Thread Jerry W. Walker

HI, Ute,

This sounds very much like a permissions problem. It looks like  
gifsicle is throwing that first Error with conversion because it  
can't open a file which is cascading to the other errors.


You say that you are logged in as root. I presume you mean that when  
you ...open a terminal on the server and copy... you are logged in  
as root. If that's the case, my first question is what user is your  
WO app running under?


When your WO app is running, do a ps command on Terminal to see what  
user it is running under. Then do an su command to that user on  
your terminal and try running the gifsicle command manually again as  
that user.


The other possibility (less likely) is that the user environment for  
your running WO app is missing some critical parameter for gifsicle.  
To test that, you might copy the following to a shell script:


#! /bin/sh
{
echo I am:
who am i
echo \nI am executing within the directory:
pwd
echo \nMy environment is:
env
}  /tmp/testoutput.txt

If you exec that little shell script from within your WOApp instead  
of gifsicle, it should answer all of the above questions. You will  
find the answers, of course, at /tmp/testout.txt.


Regards,
Jerry

On Feb 10, 2007, at 5:56 AM, Ute Hoffmann wrote:


Hallo,
I'm sorry for this off topic post, but im pulling my hair after  
hours of testing and looking and perhaps someone sees what I miss.


I need to call gifsicle from a java process to optimize .gif images  
(as imageMagick fails to do so and getting it working with  
ImageMagick  seems to either need a very old IM version or some  
tuning of the tifflib. I looked into it but descided not to).


This is what I want to do:

call a exec from my java function which hands over the correct  
infos to gifsicle and gifsicle reading the file in and writing it  
optimized back to disk.


This is the error I get:
Fehler bei der KonversionTTGifsicle$Exception: Could not exec  
process: /usr/local/bin/gifsicle  /Library/WebServer/Documents/ 
cmsboard/ttwcmsdaten/bilder/tmp/26basispaket9.gif  /Library/ 
WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ute_nn.gif: not  
found. invocation line: /usr/local/bin/gifsicle  /Library/ 
WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ 
26basispaket9.gif  /Library/WebServer/Documents/cmsboard/ 
ttwcmsdaten/bilder/tmp/ute_nn.gif. error output: null


The file is there. When I open a terminal on the server and copy
/usr/local/bin/gifsicle  /Library/WebServer/Documents/cmsboard/ 
ttwcmsdaten/bilder/tmp/26basispaket9.gif  /Library/WebServer/ 
Documents/cmsboard/ttwcmsdaten/bilder/tmp/ute_nn.gif


into the terminal gifsicle does as asked. Only difference aside  
from java involved/not involved: I'm logged in as root


So:
a) Do you think that what I see here is a permission problem
b) Has someone experience with calling gifsicle from java and could  
perhaps give me a code example of the call.


Thank you for some insight.

Regards

Ute

P.S:
This is my call:

String[] cmdArray = new String[] {
/usr/local/bin/gifsicle + +sourceFilePath+  +outFilePath
};

NSMutableArray stdErrContents = new NSMutableArray();
NSMutableArray stdOutContents = new NSMutableArray();
int resultCode;
try {
resultCode = exec( cmdArray, stdOutContents, stdErrContents );
}
catch 
 ___
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/jerrywwalker% 
40gmail.com


This email sent to [EMAIL PROTECTED]



--
__ Jerry W. Walker,
   WebObjects Developer/Instructor for High Performance Industrial  
Strength Internet Enabled Systems


[EMAIL PROTECTED]
203 278-4085office



___
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 archive@mail-archive.com


Data freshness and inter-applications/instances notification

2007-02-10 Thread Dev WO

Hi list,
it's been some time without a data freshness question:)

I've been reading the list and Practical WebObjects book to get as  
much details as I can, but I just can't find the solution I'd like.
Here's a quick summary of the project related to this, it may give  
you a better understanding about my goals:
-Actually there are 2 WOApplications (Front Office and Back Office)  
and a Framework (with the eomodel)
-In the FO, I'm using the sharedEditingContext to initialize some  
entities. I've got multiple initializeList method to be able to  
invalidate only specific lists when needed.
-The FO answer to some DirectActions which lead to a new  
initialization for a specific entity (I'm using  
InvalidateObjectsWithGlobalIDs, it seems to invalidate correctly all  
the relationships of the entity)
-In the BO depending on the object edited/added/deleted a call to one  
of the specific FO DirectAction is triggered.


The deployment is only one instance for each (1 FO and 1 BO) for now,  
and because it doesn't work with multiple instances;)


This setup allows me to get fresh data every time there's a fresh  
data to display, immediately, and basically down from 2 request  
per day on the DB to about 100.


But this is not as good as it seems...
There are 2 different things I'm looking at:
A-making this work with 2 or more instances of the FO
B-making a change to the FO (yes FO user can also add things to the  
DB) be populated to all the FO instances


Regarding A, I was looking at the NotificationFramework of Project  
Wonder, but if I red correctly is not really efficient if the  
application has a lot of request (I know this one doesn't).
So I was thinking I could issue a grep command to get the list of  
running instances, then issue a specific DA request for each instance  
(actually there's no callback feature so I don't know if the  
instance got the notification and behave as expected), or maybe I  
could use some code from WOMonitor to get the instance numbers for a  
specific application.


What's your opinion about this? maybe (most probably) there's  
something better than this I didn't find;)


Regarding B, FO user can post comments, they can't edit anything only  
add things.
This is a news system, so I really need people to be able to see  
any comment posted as soon as it is posted. It works for now as  
there's only one instance and I'm using a specific ec to add the  
comment (set the sharedEC to null) so the sharedEC reflect the  
changes immediately.
But if I have multiple instances, I got mixed up result as the new  
comments only updates their own instance...So I've got to find a way  
to notify all running instances of the modifications.

Any pointer about this one?

My knowledge of EOF underlying layers is clearly lacking a lot of  
things, if someone feel I need to read a couple things about it,  
don't hesitate to mention what I should read;)


Thanks for sharing your knowledge:)

Xavier
___
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 archive@mail-archive.com


Re: [OT] call gifsicle via Java process

2007-02-10 Thread Jerry W. Walker

Hi, Ute,

On Feb 10, 2007, at 11:58 AM, Ute Hoffmann wrote:


Hi Jerry,
thank you very much for your help. I did as you told me, tried to  
su to appserver but could not. (I was still root after the su).


I haven't tried this as root, but if you can log in as a non-root  
user with admin and sudo privileges, execute the following command:


sudo -u appserver sh

That should put you in a unix shell as appserver. You can confirm  
this by going into a directory for which appserver has no write  
permissions and trying the Unix touch command to create a new file.  
When you've confirmed that you're appserver, try to execute your  
gifsicle command again within the directory that WO tries to execute  
it. If that works, then you should start examining appserver's shell  
environment (which should have been printed out by the small shell  
script I gave you.



So I made the sh and executed it and got this as whoami:

I am:
appserve tty??Feb 10 17:45

Is it right that it says appserve? Is that just shortened or is the  
user really appserve (without r)?


No, it's not right, it just truncates to 8 characters. You were  
right, it's appserver.



I am executing within the directory:
/Library/WebObjects/Applications/ttcmsboard.woa

right. The image files I try to work on are created previously by  
the same WOApp via another exec talking to imageMagick. The user  
appserver has all rights on them, they belong to him, to be precise.


Yes, but does appserver have permissions at the directory level to  
create a new file in that directory?


I use imageMagick extensively in this component and all calls work  
fine, overwriting the existing image whenever needed. So  
ImageMagick seems to have read and write rights.


Though I doubt it, it's possible that ImageMagick has the suid bit  
set and is running as an suid program with root permissions set.



Any idea? The call? perhaps the call is faulty?


I tend to doubt it, but it's possible.

Regards,
Jerry



Am Samstag, 10.02.07 um 15:43 Uhr schrieb Jerry W. Walker:


HI, Ute,

This sounds very much like a permissions problem. It looks like  
gifsicle is throwing that first Error with conversion because it  
can't open a file which is cascading to the other errors.


You say that you are logged in as root. I presume you mean that  
when you ...open a terminal on the server and copy... you are  
logged in as root. If that's the case, my first question is what  
user is your WO app running under?


When your WO app is running, do a ps command on Terminal to see  
what user it is running under. Then do an su command to that  
user on your terminal and try running the gifsicle command  
manually again as that user.


The other possibility (less likely) is that the user environment  
for your running WO app is missing some critical parameter for  
gifsicle. To test that, you might copy the following to a shell  
script:


#! /bin/sh
{
echo I am:
who am i
echo \nI am executing within the directory:
pwd
echo \nMy environment is:
env
}  /tmp/testoutput.txt

If you exec that little shell script from within your WOApp  
instead of gifsicle, it should answer all of the above questions.  
You will find the answers, of course, at /tmp/testout.txt.


Regards,
Jerry

On Feb 10, 2007, at 5:56 AM, Ute Hoffmann wrote:


Hallo,
I'm sorry for this off topic post, but im pulling my hair after  
hours of testing and looking and perhaps someone sees what I miss.


I need to call gifsicle from a java process to optimize .gif  
images (as imageMagick fails to do so and getting it working with  
ImageMagick  seems to either need a very old IM version or some  
tuning of the tifflib. I looked into it but descided not to).


This is what I want to do:

call a exec from my java function which hands over the correct  
infos to gifsicle and gifsicle reading the file in and writing it  
optimized back to disk.


This is the error I get:
Fehler bei der KonversionTTGifsicle$Exception: Could not exec  
process: /usr/local/bin/gifsicle  /Library/WebServer/Documents/ 
cmsboard/ttwcmsdaten/bilder/tmp/26basispaket9.gif  /Library/ 
WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ute_nn.gif:  
not found. invocation line: /usr/local/bin/gifsicle  /Library/ 
WebServer/Documents/cmsboard/ttwcmsdaten/bilder/tmp/ 
26basispaket9.gif  /Library/WebServer/Documents/cmsboard/ 
ttwcmsdaten/bilder/tmp/ute_nn.gif. error output: null


The file is there. When I open a terminal on the server and copy
/usr/local/bin/gifsicle  /Library/WebServer/Documents/cmsboard/ 
ttwcmsdaten/bilder/tmp/26basispaket9.gif  /Library/WebServer/ 
Documents/cmsboard/ttwcmsdaten/bilder/tmp/ute_nn.gif


into the terminal gifsicle does as asked. Only difference aside  
from java involved/not involved: I'm logged in as root


So:
a) Do you think that what I see here is a permission problem
b) Has someone experience with calling gifsicle from java and  
could perhaps give me a code example 

Re: WOForm and multipleSubmit

2007-02-10 Thread Andrew Lindesay

Hello Mike;


It's actually more of an effect on WOSubmitButton than it is on
WOForm ... WOForm calls wocontext._setIsMultipleSubmitForm(true),
then passes down to its children.  For a WOSubmitButton, if the...


Thanks for that –– it looks like there's a whole raft of private API  
involved. :-(


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 archive@mail-archive.com


Fwd: Java Monitor restarts hang my app?

2007-02-10 Thread Mac First


On Feb 5, 2007, at 10:28 AM, James Cicenia wrote:
I currently run about 6 apps on my server, one with three  
instances as it has the most traffic.


About one a week, the java monitor will hang upon its scheduled  
restart of this application
and all three instances will be dead. I also notice that when I go  
back into the java monitor
I do get a red error stating something about my domain not being  
found.


Is this a memory leak on my end? A javamonitor issue under load?


I've seen something like this when there's a dangling session.  One  
way to debug this is to try a not-graceful restart.  If that works,  
the problem is a dangling session (non-graceful kills open sessions.)


WO certainly has its share of leaks, one that is a big gotcha for  
some people is the undo stack.  I typically set mine to null in the  
constructor.


--
Interesting words that aren't in my default Microsoft spell checker  
(and,

hence, are flagged when I type them in e-mail): heh, sheesh.


___
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 archive@mail-archive.com


eogenerator question

2007-02-10 Thread Guido Neitzer

Hi.

Is there a way to tell eogenerator to create an abstract subclass if  
the entity is marked abstract?


cug
___
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 archive@mail-archive.com


RE: Data freshness and inter-applications/instances notification

2007-02-10 Thread Andrew Lindesay

Hello;


Regarding A, I was looking at the NotificationFramework of Project
Wonder, but if I red correctly is not really efficient if the
application has a lot of request (I know this one doesn't).


I'm a bit unsure as to why the P.W. change notification would be  
inefficient compared to using D.A-s?  Listing on a queue server would  
have to be at least as efficient as firing requests through the HTTP  
adaptor and then the rest would be the same in both cases.


My only project with change notification has a fairly project- 
specific arrangement, but more recently I've been doing some work on  
a generic solution.  This hasn't hit production yet, but it does seem  
to work quite well and uses a JMS topic to move the change  
notifications around.


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 archive@mail-archive.com


Re: eogenerator question

2007-02-10 Thread Chuck Hill
I recall going down this road once and discovering that EOF did not  
like abstract classes.  At least I think it was EOF, it might have  
been one of our other tools.  I can't recall what the issue was, but  
if you start getting odd exceptions, consider that it might come from  
marking EO objects as abstract.


Chuck

On Feb 10, 2007, at 7:04 PM, Guido Neitzer wrote:


On 10.02.2007, at 19:56, Guido Neitzer wrote:

Is there a way to tell eogenerator to create an abstract subclass  
if the entity is marked abstract?


To answer my question: yes, it is:

In the subclass template change the class definition line to:

public $if isAbstractEntity$abstract $endif$class  
$classNameWithoutPackage$ extends $GEN_PREFIX$ 
$classNameWithoutPackage$ {


Seems to work fine. Sorry for asking too early but I didn't think  
it would be THAT easy. ;-)


cug
___
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/chill% 
40global-village.net


This email sent to [EMAIL PROTECTED]



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects





___
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 archive@mail-archive.com


Re: eogenerator question

2007-02-10 Thread Guido Neitzer

On 10.02.2007, at 22:05, Chuck Hill wrote:

I recall going down this road once and discovering that EOF did not  
like abstract classes.  At least I think it was EOF, it might have  
been one of our other tools.  I can't recall what the issue was,  
but if you start getting odd exceptions, consider that it might  
come from marking EO objects as abstract.


I keep that in mind. Thanks for the hint. I have a project running  
where it doesn't make problems, but that doesn't say anything.


cug
___
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 archive@mail-archive.com