Re: rowDiffsForAttributes

2014-03-04 Thread Stephane Guyot
David, last time I've seen this trouble, it was Owns Destination and Propagate 
Primary Key used un conjonction on a to-one relationship. Could you check your 
model ?
Hth,
Stephane 

Envoyé de mon iPhone

 Le 4 mars 2014 à 21:31, David Avendasora webobje...@avendasora.com a écrit :
 
 
 On Mar 4, 2014, at 3:19 PM, Chuck Hill ch...@global-village.net wrote:
 
 On 2014-03-04, 12:01 PM, David Avendasora wrote:
 
 It sounded promising, but unfortunately this did not fix it. It appears to 
 be something I’m doing wrong.
 
 Really?  Gosh!!!
 
 You know, you could at least *pretend* to be surprised.
 
 No?
 
 grumble…
 
 My imagination is only so good.
 
 Are you manually disposing editing contexts?
 
 No. However, I am calling revert() on the nested ones if they have errors() 
 but I leave them for GC to get rid of them...
 
 
 
 Chuck
 
 
 On Mar 4, 2014, at 1:05 PM, Ramsey Gurley rgur...@smarthealth.com wrote:
 
 Are you using nested ecs? If you are, try 
 ec.setRetainsRegisteredObjects(true).
 
 https://github.com/wocommunity/wonder/pull/342
 
 On Mar 4, 2014, at 9:35 AM, David Avendasora webobje...@avendasora.com 
 wrote:
 
 Hey all,
 
 I’m getting the following exception (I added line breaks to make it 
 digestible by any on the list):
 
 IllegalStateException: rowDiffsForAttributes: snapshot in 
 com.webobjects.eoaccess.EODatabaseOperation 
 {
 _dbSnapshot = {}; 
 _entity = MYEntity; 
 _newRow = 
 {
 whatsit = PHONE;
 whosit = false;
 chuckIt = false;
 id = 3451;
 }; 
 _object = com.nekesto.neo.model.MYEntity pk:3451; 
 _globalID = _EOIntegralKeyGlobalID[MYEntity (java.lang.Long)3451]; 
 _databaseOperator = EODatabaseUpdateOperator; 
 } does not contain value for attribute named chuckIt with snapshot key: 
 chuckIt
 
 I can see that the _dbSnapshot is completely empty and I know that that is 
 what it’s complaining about. The object exists in the DB with a PK 
 matching the id value, which matches up with the _object and the 
 _globalID. How could the _dbSnapshot end up empty? What 
 horribly-inappropriate thing have done? 
 
 I have gone over everyplace I instantiate “MYEntity” and I’m never using 
 the EO’s constructor, it’s always being done by 
 ERXEOControlUtilities.createAndInsertObject(editingContext, “MYEntity”).
 
 As far as I can tell I’m never crossing EC boundaries without 
 localInstancing it. 
 
 Is there anything else that can cause the _dbSnapshot to be empty?
 
 I’m making use of multiple EOObjectStoreCoordinators, 1 each for two 
 different EOModelGroups, but this code should only ever be using the 
 defaultModelGroup in the defaultObjectStoreCoordinator. So I don’t *think* 
 it has anything to do with that, but, well, I’m me and I do stuff all the 
 time that future me is shocked at.
 
 Dave
 
 
 —
 WebObjects - so easy that even Dave Avendasora can do it!™
 —
 David Avendasora
 Senior Software Abuser
 Nekesto, Inc.
 
 
 
 
 
 ___
 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/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com
 
 
 —
 WebObjects - so easy that even Dave Avendasora can do it!™
 —
 David Avendasora
 Senior Software Abuser
 Nekesto, Inc.
 
 
 —
 WebObjects - so easy that even Dave Avendasora can do it!™
 —
 David Avendasora
 Senior Software Abuser
 Nekesto, Inc.
 
 
 
 
 
 ___
 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/stephane.guyot11%40wanadoo.fr
 
 This email sent to stephane.guyo...@wanadoo.fr
 ___
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: Problem with pages saved in a variable

2009-10-14 Thread Stephane Guyot


Andri,

	I don't what exactly you want do, but have a look on API Session :  
restorePageForConextID, savePage, savePageInPermanentCache.
	You can start to override this API and just log, to understand how  
WebObjects works with pages and contextIDs.


HTH,
Stephane


Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit :



Dear List,

in an Applications Session, a NSMutableDictionary object is used for
caching pages. Everytime the pageWithName method is called, the
dictionary is queried in order to determine if the requested page does
already exist, if true the existing page is returned, else a new  
one is
generated and stored in the dictionary. This is made in  
Application.java

by overriding the pageWithName method:

  public WOComponent pageWithName(String aName, WOContext aContext) {
Object result = null;
if ( aContext.hasSession() ) result =
((NSMutableDictionary)((Session)aContext.session()).cachedPages 
()).objectForKey(aName);

if ( result == null ) {
  result = super.pageWithName(aName, aContext);
  if ( aContext.hasSession() ) if ( aName != null )
((NSMutableDictionary)((Session)aContext.session()).cachedPages 
()).setObjectForKey(result,

aName);
}
return (WOComponent)result;
  }

This works with one exception. Making changes on Enterprise Objects is
not possible in every case. Saving changes works, if always the same
object is changed but not if two different objects are changed  
(changing

the first, saving the changes, then changing the second and saving the
changes). But if making changes on a object, saving it, and then  
revert

the changes (to the same state as before changing it the first time),
making changes on other objects is possible.

As mentioned in the WO API Reference, for pages being stored in a
variable the ensureAwakeInContext method has to be called, but this
has no effect. Same if refreshing the objects in the default editing
context (refreshAllObjects, refaultAllObjects) which is used on  
all

pages.

Any suggestions or other hints would be appreciated.

Regards
Andri


--- Disclaimer:
- This  
email and

contents is for use only by the intended recipient. If you are not the
individual or entity to whom it is addressed, you are hereby formally
notified that any use, copying or distribution of this email and
attachments, in whole or in part, is strictly prohibited. If you have
received this email in error, please notify the sender and delete the
message and attachment(s) from your system. Any views, opinions or
information, expressed or contained in this email, are those of the
sender and not necessarily reflect those of CEDES. To help protect our
environment, please avoid printing out this information unnecessarily.
 ___
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/ 
stephane.guyot11%40wanadoo.fr


This email sent to stephane.guyo...@wanadoo.fr



IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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 alternatives

2009-10-10 Thread Stephane Guyot


Hi Stephane,

	the trouble with Flash is that's a proprietary format :  http:// 
codemoiunmouton.wordpress.com/2009/04/24/le-top-10-des-critiques-sur- 
flash/


	Yes, you needs a Plugins, if you decide to stay in the browser, or a  
runtime if you wants develop Desktop Apps  for Windows, Mac and  
Linux : http://timesreader.nytimes.com/timesreader/index.html
	Flex is opensource, LCDS is expensive and not opensource, but you  
have BlazeDS an opensource subset, AMF specification are public ...


	There's other alternatives : http://codemoiunmouton.wordpress.com/ 
2009/07/01/flex-ou-silverlight/


Athena :  http://www.baao.com/Video/Athena

Goods news, you can develop with your Mac and Eclipse 

HTH,
Stephane

PS :  to wait until other alternatives emerge having fun time :   
http://codemoiunmouton.wordpress.com/2009/07/03/realite-augmentee-et- 
flash/


Le 10 oct. 09 à 07:30, Stephane Guyot a écrit :




Interesting thread 

today I don't believe the challenge is on the server anymore.

Speaking for myself , less time I spent on the server, better I am.
	Actually I've choose Flex, I don't wants spent more time with  
Javascript, did you have serious JS Debugger, did you have serious  
JS Profiler ?
	Flex is server side agnostic, puts whatever you want on the  
server : Python, Rails, Php, Java 


	It would be nice to be able to use WO on the server but only Apple  
will decide 

It would be nice to be able to use Flex/Flash on iPhone but .


	How to build Rich Application without writing any line of code on  
the server ?
	The world is moving : http://coenraets.org/blog/2009/10/my-max- 
session-video-posted-model-driven-development-with-flex-4-and-lcds3/


Stephane

PS : Perhaps Apple should buy Adobe  :-)



Le 10 oct. 09 à 02:22, Lachlan Deck a écrit :



On 10/10/2009, at 10:28 AM, Ravi Mendis wrote:

On Friday, October 09, 2009, at 07:11PM, Joe Little  
jmlit...@gmail.com wrote:

LiftWeb is painful to the eyes. Scala is great, LiftWeb just won't
gain traction with my brain.


I couldn't agree more:
I love Scala, but it's a shame about Lift...

If you're looking for alternatives or just something new, try  
Scala with WebObjects instead.


This should get you started:
http://wiki.objectstyle.org/confluence/display/WO/WebObjects+with 
+Scala


IMHO Scala is to Java what Objective-C was to C.
My first impressions of Scala is akin to what i felt about  
Objective-C when i first discovered it 15 yrs ago...


interesting...

For most developers i suspect that a sore-point of using  
WebObjects nowadays is...Java.
So maybe you need to look at Java-alternatives not WO- 
alternatives :)


Yeah, Java is certainly one point of consideration for its lack of  
dynamism. Certainly utilising Groovy or Scala could help here.


But honestly I believe the major sore point (if there be one  
amongst the surveys) is the waiting for news about 5.5 and/or  
5.6's arrival (which is all probably under NDA for you guys who  
were at WOWODC) ... and for that matter Giandiua ;).


with regards,
--

Lachlan Deck

___
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/ 
stephane.guyot11%40wanadoo.fr


This email sent to stephane.guyo...@wanadoo.fr



IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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/ 
stephane.guyot11%40wanadoo.fr


This email sent to stephane.guyo...@wanadoo.fr


IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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 alternatives

2009-10-09 Thread Stephane Guyot



Interesting thread 

today I don't believe the challenge is on the server anymore.

Speaking for myself , less time I spent on the server, better I am.
	Actually I've choose Flex, I don't wants spent more time with  
Javascript, did you have serious JS Debugger, did you have serious JS  
Profiler ?
	Flex is server side agnostic, puts whatever you want on the server :  
Python, Rails, Php, Java 


	It would be nice to be able to use WO on the server but only Apple  
will decide 

It would be nice to be able to use Flex/Flash on iPhone but .


	How to build Rich Application without writing any line of code on  
the server ?
	The world is moving : http://coenraets.org/blog/2009/10/my-max- 
session-video-posted-model-driven-development-with-flex-4-and-lcds3/


Stephane

PS : Perhaps Apple should buy Adobe  :-)



Le 10 oct. 09 à 02:22, Lachlan Deck a écrit :



On 10/10/2009, at 10:28 AM, Ravi Mendis wrote:

On Friday, October 09, 2009, at 07:11PM, Joe Little  
jmlit...@gmail.com wrote:

LiftWeb is painful to the eyes. Scala is great, LiftWeb just won't
gain traction with my brain.


I couldn't agree more:
I love Scala, but it's a shame about Lift...

If you're looking for alternatives or just something new, try  
Scala with WebObjects instead.


This should get you started:
http://wiki.objectstyle.org/confluence/display/WO/WebObjects+with 
+Scala


IMHO Scala is to Java what Objective-C was to C.
My first impressions of Scala is akin to what i felt about  
Objective-C when i first discovered it 15 yrs ago...


interesting...

For most developers i suspect that a sore-point of using  
WebObjects nowadays is...Java.

So maybe you need to look at Java-alternatives not WO-alternatives :)


Yeah, Java is certainly one point of consideration for its lack of  
dynamism. Certainly utilising Groovy or Scala could help here.


But honestly I believe the major sore point (if there be one  
amongst the surveys) is the waiting for news about 5.5 and/or 5.6's  
arrival (which is all probably under NDA for you guys who were at  
WOWODC) ... and for that matter Giandiua ;).


with regards,
--

Lachlan Deck

___
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/ 
stephane.guyot11%40wanadoo.fr


This email sent to stephane.guyo...@wanadoo.fr



IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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

Where is my post ?

2009-09-18 Thread Stephane Guyot


Hi,

more than 12 hours later I decide to send my post again.

	Jean-Pierre , I vote for your answer , loosing business ( 20  
mililion of euros ) is a good indicator.


Think Different ...

Stephane


De : Stephane Guyot stephane.guyo...@wanadoo.fr



Date : 18 septembre 2009 07:41:57 HAEC



À : webobjects Apple webobjects-dev@lists.apple.com



Cc : Jean Pierre Malrieu jp.malr...@free.fr



Objet : Rép : WebObjects become opensource ?


	My vote for the best post on this thread,  even if reality may  
hurt some of us. ( Sorry Christian :-) )


	To learn a technology nothing is better than reading the source,  
same thing for debugging ...but it's only a developper point of view.


	For manager point of view, opensource means some kind of garantee  
for the future ...,  even if sometimes it's a big joke, what Oracle  
will do with MySql ?


	I still believe in WebObjects, because with  WO you finish your  
project when J2ee guys are still thinking about architecture and  
patterns ... , Mister WO versus Mister J2ee ?


	Opensource could mean bigger community, growing not shrinking ...   
why not imagine multiple language implementation ?


	Objective-C, yes why not. But we can still look further, Scala,  
Groovy, Ruby , Python  yes good ideas, we can still imagine  
Erlang, and C-sharp , Php , everybody needs somebody, and  
anybody is wellcome in the WO community.


	I can't work for free for a company that has 30 B$ of cash in  
bank, not enough time and money, I needs money to pay iPods my  
children wants

and for micro-credit ( www.kiva.org)


	Trust in me, tomorrow would be a better day is not a roadmap ... ,  
sorry but I remember Steve mail we received when NeXT decide to  
stop the hardware.


	Ray explane us that it's easier to help WO commnunity when being   
outside of Apple, very interesting, you looks like Mister PC  
inside, and Mister Mac outside ?


	I'm a freelance developper, and words have meaning, I'm free, I  
don't care about my relation with insiders at Apple, open(source)  
and free are very similar 




	One more thing, I don't think there's any stupid guy on this list,  
Pascal sorry to hurt you, sorry to be so annoying, disturbing but  
we simply needs help from Apple.



Think different ... 



Stephane




Le 17 sept. 09 à 22:44, Jean Pierre Malrieu a écrit :





We are talking about relatively big projects (at least for us more  
than 20 million of euros are a lot). These markets are more  
politically driven than technically driven. Our costumers want to  
rule out some big players (not for religious reasons, just  
because they noticed that bigger companies did not care about  
users), and the open source requirement is a way to acheive this.  
But then, this cannot be half-done.


Some of the solutions we propose are already written using WO. Our  
public costumers offer to repay us (you heard it: pay twice!) to  
rewrite them with purely open source libraries.
This might seem crazy to you, and might not apply anywhere else in  
the world, by that is what happens here.


And please don't conclude that our client are irrational. Open  
source might cost them more at first than choosing highly  
discounted solutions from big companies, but in the end, it will  
be much cheaper than proprietary solutions.


JPM






IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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

What could we do to convince Apple to opensource WebObjects ?

2009-09-16 Thread Stephane Guyot


Hi,

my primary goal was not to discuss about patents.

	I just think that WebObjects is a WOnderfull technology,  very well  
integrated solution ( EOF+WO )


	I've spent 10 years developping with WO, but for 3 years now I'm  
working with Flex.
	Nice technology, server side agnostic, you can use whatever you  
wants on the server side,
	and to be honest less I work on the server better am I, J2ee is  
simply a nigthmare,
	non-ecolgic technology,  you needs so much time and energy for  
simple things with WO.


EOF is much more simplier than Hibernate

	WebObjects is much more simpler than JSF, WebFlow and all Spring  
technologies and concepts ( Inversion of Control  ) you don't needs  
100 jars to do web application.


	Apple may benefits from WebObjects Halo effect, if they decide to  
opensource the technology.


	Patents, is just money, and it seems that Apple has  some cash in  
Bank ( 30 B$,  today Apple is bigger than IBM, and SUN is in my point  
of view the Lehman Brother of IT ).


	I know that the community,  Mike, Chuck, Pascal, Anjo  and ... ,   
are doing great work to promote WO,  but I not totally agree the way  
they do it.


	I give enough money to Apple, buying Macs, iPhone, iPods and iTunes  
Music
	( I'm very happy client, http://itunes.apple.com/WebObjects/ 
MZStore.woa/wa/viewAlbum?i=191345352id=191345213s=143442  ),
	I don't wants spent time to do the marketing of a non opensourced   
product (WebObjects), marketing they have never done.


	The question I'm asking to myself and you , what could we do to  
convince Apple to opensource WebObjects ?


	Why Apple is doing opensource for some technologies , WebKit, Grand  
Central Dispatch ... but not for WO ?



Perhaps someone inside Apple may publicly give us some good reasons ...


Cheers,
Stephane

Le 16 sept. 09 à 09:48, Q a écrit :




On 16/09/2009, at 7:02 AM, Mike Schrag wrote:

If you were well-versed in ANY field, wouldn't your scenario  
equally be true? If I'm a mechanic and you come up with a new  
engine design, once I see what you've done and how you've done it,  
it's probably pretty easy for me to make one ... I have no idea  
about Pharma, but I presume that once a drug is released, it's  
probably pretty easy for generics to replicate it. It does seem  
there should be some consideration for that, and the patent system  
is the current answer to that. Why should software be in some  
other category?


Also, re: MP3/JPEG (and things like RSA fall into this category  
too) -- It's grunt work to do it once someone already has defined  
a spec, or figured it out and you cheat off their paper, but it's  
no small feat to come up with it in the first place. This is sort  
of the point, it seems to me. Stealing the idea is always easier  
than making it first, so we have patents to give incentive to  
people to bother coming up with it first. There's obviously a  
failure window in the patent system for the guy who truly  
independently develops it, but I don't really see a way to close  
that gap -- i think it's a weakness you have accept for the  
greater good of the imperfect system.


Personally I have no issue with the concept of software patents in  
general, it's how they are often used I object to.
Patents should be a way to protect yourself from having to compete  
against your own invention in a commercial market. Ie. Patents  
should exist for the purpose of protection from direct competition  
and utilising an idea or invention with exclusivity, not a way of  
extracting the maximum amount of revenue from everyone who finds  
value in your IP in some way.


For example, you invent the next big thing in facial recognition.  
You should be able to patent your invention for that purpose to  
allow you to use it in your own or your partners / customers  
products with exclusivity for a set period of time. If your  
competitors want to use it too, then the patent affords you the  
control to allow or deny their ability to use your invention to  
compete with you for that specified purpose for a limited amount of  
time. Just because you have a patent doesn't mean you should be  
able to prevent someone else from using your original idea in a new  
and creative but totally non competing way, like say in the  
autofocus function of a video camera.


What you shouldn't be allowed to do is to patent something for an  
abstract use case and never actually use it for anything of value,  
instead you use the patent as a tool to extort royalties from  
others that want to use this IP, and would inevitably have invented  
the same thing but were not the first to do so. This behaviour of  
holding IP to ransom prevents other people from being able to take  
a good idea and turning it into something even better, or combining  
it with other ideas and using it in a way the original creator  
could never have dreamed of by themselves.


It's a bit of a grey area 

Why Opensource ?

2009-09-11 Thread Stephane Guyot


	Good news : http://www.appleinsider.com/articles/09/09/11/ 
apple_open_sources_snow_leopards_grand_central_dispatch.html



	However, opening the code to the community could help pave the way  
for its adoption.


My english is better when I copy/paste 

Stephane


IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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 become opensource ?

2009-09-09 Thread Stephane Guyot


Hi list,

i'm still waiting for an opensource version of WebObjects.

I cant believe the news today, there 's so many good news, ( Sun  
totally disappears, eated by Oracle ),

 could we hope good news for WebObjects ?

What's new about WebObjects today ?  WebObjects.org ?  Gianduia ?

My actual client is just looking for a robust, scalable ...   
persistence, web solution but ... they only use opensource solution




Stephane

PS : the last joke of Sun was named JavaFX :-)


IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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: Snow Leopard compatibility and the future of webobjects

2009-06-13 Thread Stephane Guyot


yllan,

year over year it's the same song 
I can understand your problem : http://itunes.apple.com/WebObjects/ 
MZStore.woa/wa/viewAlbum?i=261634423id=261634131s=143442


Predict the future is a very hard task, very error prone exercice :

Top 20 financial institutions by market capitalization in 1999 vs 2009
http://www.leap2020.eu/GEAB-N-35-is-available!-Global-systemic-crisis- 
June-2009-When-the-world-steps-out-of-a-sixty-year-old- 
referential_a3248.html


Apple vs Java : http://finance.yahoo.com/q/bc? 
t=5ys=AAPLl=onz=mq=lc=JAVA
Sorry,  Apple vs Oracle : http://finance.yahoo.com/q/bc? 
t=2ys=ORCLl=onz=mq=lc=AAPL


It's clear that Apple is doing big business today , directly with the  
help of WebObjects
but  for my (2 cents ) point of view, the only thing I know today is  
very simple :


We don't  know what Apple will do in the future with WebObjects  and  
that's a major  trouble for some of us 


You can consider other alternatives like Hibernate : http:// 
blog.xebia.com/2009/02/07/hibernate-and-multi-threading/



Stephane

PS : I'm not pur capitalistic guy, but sometimes I'm testing myself  
as a small banking institution
IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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: appendToResponse

2009-02-02 Thread Stephane Guyot

Atli,

could you try to put your signin logic earlier in invokeAction ?

In the request /response loop , you would be more comfortable to  
decide which page to choose for the response, see  :
public WOActionResults invokeAction(WORequest aRequest,WOContext  
aContext)


I think it's too late, in appendToResponse, you can only append and  
not replace by another one. ( perhaps it's possible , but i don't  
remember )



HTH,
Stephane

Le 2 févr. 09 à 13:38, Atli Páll Hafsteinsson a écrit :


Hi guys

In my attempt to make a user signin mechanism I override  
appendToResponse in a component that wrappes every page in my app  
and check if the user is signed in and if not try to display the  
content of my login page (the login page is not wrapped), code:


public void appendToResponse( WOResponse response, WOContext  
context ) {logger.debug( Entering appendToResponse in  
ApplicationLook );WOComponent currentPage = context.page 
();if( (((Session)session()).user() == null)  ! 
(currentPage instanceof Login) ) {logger.debug( Not  
logged in, showing login page );Login loginPage =  
pageWithName( Login.class );WOResponse r =  
loginPage.generateResponse();System.out.println 
( r.contentString() );super.appendToResponse( r,  
context );}else {super.appendToResponse 
( response, context );}}


This does not work, r.contentString() indeed has the content of the  
login page but nothing is delivered to the browser, just an empty  
page.


Any ideas??

Regards,
Atli

Fyrirvari á tölvupósti / e-mail disclaimer
http://us.is/Apps/WebObjects/US.woa/wa/dp?id=3776

 ___
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/ 
stephane.guyot11%40wanadoo.fr


This email sent to stephane.guyo...@wanadoo.fr


IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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: Great Web 2.0 graphics, buttons, etc., site for photoshop challenged WO Developers ; -)

2008-11-10 Thread Stephane Guyot

Kieran,

have a look :
http://www.brightpointinc.com/FlexDemos/degrafagauge/ 
degrafagaugesample.html
http://examples.adobe.com/flex2/consulting/styleexplorer/ 
Flex2StyleExplorer.html


Notes that you don't need to press update, there's some logic on  
the client side.


And one more thing , it's open source.

http://www.degrafa.com/category/data-visualization/
http://code.google.com/p/degrafa/

Stephane


Le 10 nov. 08 à 19:17, Kieran Kelleher a écrit :



http://www.freshgenerator.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/ 
stephane.guyot11%40wanadoo.fr


This email sent to [EMAIL PROTECTED]



IBCM :  International Bank of Chatenay-Malabry http://www.kiva.org/ 
lender/stephane4127 - Click on Map View





 ___
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 [EMAIL PROTECTED]

Re: Charting question

2008-11-01 Thread Stephane Guyot


Julius,
I have no idea of what you can or cannot do with GCharts.


2. What would you recommend using instead?


Have a look on that :

http://demo.quietlyscheming.com/ChartSampler/app.html
http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html

If you go here : http://finance.google.com/finance? 
q=INDEXDJX:.DJI,INDEXSP:.INX,INDEXNASDAQ:.IXIC

you can see that SUN, ticker JAVA is today at -80%  :-)

OK , it's flash base charting and doesn't run on iPhone today, but  
tomorrow who knows ?


http://blogs.pcworld.com/staffblog/archives/007842.html
http://www.appleinsider.com/articles/08/09/30/ 
adobe_flash_player_for_iphone_due_soon_if_apple_approves.html


If Apple approves 

HTH,
Stephane




Le 31 oct. 08 à 21:47, Julius Spencer a écrit :



Hi Randy,

I have used jFreechart in and Google Charts in woas. I found the  
Google Charts a little easier to get my head around but there is  
lots of flexibility in jFreechart. As far as I can tell both can do  
time based charts. If you go here you can see an example of Google  
charts in a woa. It's just a test woa hence the self signed  
certificate etc.


https://web.juliusspencer.co.nz/cgi-bin/WebObjects/HIS.woa

If you do a search typing in the number 1 for the Street Number,  
then select 5/1 Orakei Road from the resulting list below, you  
should see a chart.


Hope that helps. Feel free to let me know if you have any questions.

Cheers,
Julius.

I've looked at the google charting classes in Project Wonder, as  
well as the Google API.  As far as I can tell, Google charts have  
no innate ability to handle time-series data.  I need to create  
charts that can involve any date range.  Two questions:

1. Am I correct that GCharts do not support time series data?
2. What would you recommend using instead?

tia,
randy

___
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/th-dev% 
40onlinehome.de


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Fwd: upload via drag and drop

2008-10-11 Thread Stephane Guyot


I forward my response again :-)

Why some messages doesn't appears on the list ?

Flex ? AIR ? Prohibited words ?

Drag  Drop from filesystem to application ,  with AIR you can :  
http://www.adobe.com/devnet/air/



Stephane

Début du message réexpédié :


De : Stephane Guyot [EMAIL PROTECTED]
Date : 8 octobre 2008 21:52:27 HAEC
À : webobjects Development webobjects-dev@lists.apple.com
Cc : Gino Pacitti [EMAIL PROTECTED]
Objet : Rép : upload via drag and drop


Gino,

I don't know if you can do that with Swing or JavaFX ..., but with  
AIR you can : http://www.adobe.com/devnet/air/


Stephane

Le 8 oct. 08 à 21:22, Gino Pacitti a écrit :



Hi All

I have a client request for a drag and drop style upload of QT  
Movies via desktop to Browser window as part of a web page


Can this be done without any sort of Swing etc..

Any thoughts, links appreciated

Gino
___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Applet + WO

2008-09-21 Thread Stephane Guyot


Hi Shravan,

as far as I remember, You Bactrack too far occurs when you have a  
cachePageSize too small in your Application.

Default is 30, did you try to increase the size ?
You can try  100 ? 200 ...
Did you a limit for the upload ? How many files the user may upload  
in one click ?


Each time you upload a file with your component, a new entry is put  
in the cache with a new contextID, but it's the same instance,


 Only after all the photos are uploaded, then it invokes another  
action and then refreshes main page...


when you try  to refresh the main page, it's contextID is no more in  
the cache , and then backtrack too far :-(


For better solution, implement your  own caching management via  
session's api, like restorePageForContextID, savePage ...,

but the way to do that ,  is not clear in my mind anymore.

HTH,
Stephane


Le 21 sept. 08 à 06:40, shravan kumar a écrit :



Hello Group,

I have integrated a third party Applet tool called Image Uploader  
to our app. Integration was good and ImageUploader is also designed  
and functioning great.



This tool basically uploads files of different formats at ease.

Lets say you have selected 20 files and clicked on upload, app is  
just uploading 10 files and then I receive You Have Backtracked  
Too Far error.
This tool basically, submits each file you are uploading to the  
server one by one ( based on config ), i.e., it invokes the  
WOComponent action processing this upload 20 times... and during  
these invocations the applet does not refresh the main page where  
this applet is embedded. Only after all the photos are uploaded,  
then it invokes another action and then refreshes main page...


So, can any one suggest me, how to overcome this issue in best  
manner asap.


Thanks in advance.

Thank You,
Shravan



 ___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Applet + WO

2008-09-21 Thread Stephane Guyot


Shravan,

another way , if you don't use component , you avoid cache trouble.

Would it be difficult to extract the code ( used to receive for the  
uploaded file) in your component and put it in a DrectAction ?

With WOActionURL you can generate the url for the action for the Applet,
the Applet may upload files directly to a dedicated direction action,  
and then avoid to fill the cache ?
What did you have in your component that a direction action may needs  
and not have ?


HTH,
Stephane

PS : just an idea, but not sure a good idea ..




Le 21 sept. 08 à 20:52, shravan kumar a écrit :



Hello Stephane,

In our app, we have limit the page cache size to be 10. As a result  
not more than 10 files I was able to upload per click. I have tried  
increasing this size to 20, then I was able to upload not more than  
20 files per click.


However, I do not see this as option for solution, as in our app,  
we do not have any upload limit, i.e., no limit on how many number  
of files can be uploaded per click.


I imagine some vague solution of replacing contextID in the URL of  
the final request with the new one. But was not sure of how to  
implement this/ is this the solution?


Thank You,
Shravan Kumar. M
-


--- On Sun, 9/21/08, Stephane Guyot [EMAIL PROTECTED]  
wrote:



From: Stephane Guyot [EMAIL PROTECTED]
Subject: Re: Applet + WO
To: webobjects Development webobjects-dev@lists.apple.com
Cc: [EMAIL PROTECTED]
Date: Sunday, September 21, 2008, 8:33 PM
Hi Shravan,

as far as I remember, You Bactrack too far
occurs when you have a
cachePageSize too small in your Application.
Default is 30, did you try to increase the size ?
You can try  100 ? 200 ...
Did you a limit for the upload ? How many files the user
may upload
in one click ?

Each time you upload a file with your component, a new
entry is put
in the cache with a new contextID, but it's the same
instance,


 Only after all the photos are uploaded, then it

invokes another

action and then refreshes main page...


when you try  to refresh the main page, it's contextID
is no more in
the cache , and then backtrack too far :-(

For better solution, implement your  own caching management
via
session's api, like restorePageForContextID, savePage
...,
but the way to do that ,  is not clear in my mind anymore.

HTH,
Stephane


Le 21 sept. 08 à 06:40, shravan kumar a écrit :



Hello Group,

I have integrated a third party Applet tool called

Image Uploader

to our app. Integration was good and ImageUploader is

also designed

and functioning great.


This tool basically uploads files of different formats

at ease.


Lets say you have selected 20 files and clicked on

upload, app is

just uploading 10 files and then I receive You

Have Backtracked

Too Far error.
This tool basically, submits each file you are

uploading to the

server one by one ( based on config ), i.e., it

invokes the

WOComponent action processing this upload 20 times...

and during

these invocations the applet does not refresh the main

page where

this applet is embedded. Only after all the photos are

uploaded,

then it invokes another action and then refreshes main

page...


So, can any one suggest me, how to overcome this issue

in best

manner asap.

Thanks in advance.

Thank You,
Shravan



 ___
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/



stephane.guyot11%40wanadoo.fr

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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Identical requests make my csv component always returns the same content

2008-09-14 Thread Stephane Guyot


Hi Yung-Luen,

	have a look on the following method : disableClientCaching ---  
Class WOResponse
	http://developer.apple.com/documentation/DeveloperTools/Reference/ 
WO541Reference/com/webobjects/appserver/ 
WOResponse.html#disableClientCaching()


	You can override appendToResponse in your CSVReport page and invoke  
disableClientCaching,

something like :

public void appendToResponse(WOResponse aResponse, WOContext  
aContext) {
aResponse.setHeader(application/vnd.ms-excel, Content- 
Type);

super.appendToResponse(aResponse, aContext);
aResponse.disableClientCaching();
}

About HTTP headers : http://www.w3.org/Protocols/rfc2616/rfc2616- 
sec14.html


	If your trouble still persist , particularly with browser like IE,  
perhaps you could try to add a query string with time and milliseconds,
	on the client-side. But as usual , less you do with JavaScript,  
better you are ...


Did you know Yslow FireFox Add-ons ?
http://developer.yahoo.com/yslow/help/
https://addons.mozilla.org/en-US/firefox/addon/5369

HTH,
Stephane


Le 13 sept. 08 à 21:24, Yung-Luen Lan a écrit :



Hi folks,

I have a page with a list of data entry using ERXDisplayGroup and a
Download Report link which returns a csv-formatted detail of
selected entries.

The link bound to an action looked like:

public WOComponent generateReportFile() {
CSVReport n = pageWithName(CSVReport.class);
n.setDataEntries(selectedEntriesArray());
return n;
}

When user clicked a data entry in the list, I'll toggle it in
selectedEntriesArray using Ajax framework in Wonder.

When the first time user selects some entries and download the report
file, it's fine.

However, no matter how the user modify the selection set after the
first download, they can only get files with the same content as the
first downloaded one.

After investigate this problem, I find that the generateReportFile()
action were called only once at the first click of my link. Seems that
WO cached the component and return it without invoke my action because
those requests are identical. (I use Ajax so there's no whole page
refresh, I guess this is the reason why I change the selection set but
still got identical requests.)

Is there any way to avoid WO cache my component without invoke my  
action?


Regards,
yllan
 ___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Identical requests make my csv component always returns the same content

2008-09-14 Thread Stephane Guyot


Ok sorry,
I'm trying to help you but ...

If you put , just for test , setPageCacheSize(0) on WOApplication the  
problem disapears ?

See setPageFragmentCacheSize too.

Did you have a Session ?

If yes , overriding one of the methods savePage, savePageInPageCache  
or savePageInPageFragmentCache
to prevent to put in cache some of your pages based on their name may  
be what you are looking for ?
You can still rely on your own API on each component , like  
mayBeCached defaulting to true, and then overriding on per page basis  
when you don't want caching.


If you have no session, url of your page may be cache by the browser,  
then i would try to add dummy value in a query string.


HTH one more time,
Stephane

Le 14 sept. 08 à 09:55, Yung-Luen Lan a écrit :



On Sun, Sep 14, 2008 at 3:01 PM, Stephane Guyot
[EMAIL PROTECTED] wrote:


Hi Yung-Luen,
have a look on the following method : disableClientCaching --- Class
WOResponse
http://developer.apple.com/documentation/DeveloperTools/Reference/ 
WO541Reference/com/webobjects/appserver/ 
WOResponse.html#disableClientCaching()

You can override appendToResponse in your CSVReport page and invoke
disableClientCaching,
something like :

public void appendToResponse(WOResponse aResponse, WOContext  
aContext) {
aResponse.setHeader(application/vnd.ms-excel, Content- 
Type);

super.appendToResponse(aResponse, aContext);
aResponse.disableClientCaching();
}



Yes, I've already add this line to my class. However, my problem is
not a client side caching but a server side caching I believed.

There is a method that disable the server side caching on
WOApplication, but I hope there is some way to set it on specific
components.

Regards,
yllan



 ___
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 [EMAIL PROTECTED]

Re: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation... does not contain value for attribute named NeededByEOF0 with snapshot key: NeededByEOF0

2008-09-04 Thread Stephane Guyot


Hi Shravan,

i think your trouble is the consequence of Missing Fault Handler.
Are you using propagate primary key in your model for a relationship ?

You can Google Missing Fault Handler
Read that : http://developer.apple.com/documentation/WebObjects/ 
Reference/API5.2.4/com/webobjects/eoaccess/ 
EODatabaseContext.html#missingObjectGlobalIDs()
and try  implement the delegate method  
databaseContextFailedToFetchObject.


You can Google NeededByEOF0 

Read that : http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/ 
Using_EOF/Problems


HTH,

 Stephane


Le 4 sept. 08 à 13:05, shravan kumar a écrit :


Hello Group,

Can any one advise me what could be reason for this error and a  
resolution for the same asap:


rowDiffsForAttributes: snapshot in  
com.webobjects.eoaccess.EODatabaseOperation {_dbSnapshot = {clsGdID  
= com.webobjects.foundation.NSKeyValueCoding$Null; clsID = 9512;  
clsNme = Mat yt; clsNum = 608; clsRom =  
com.webobjects.foundation.NSKeyValueCoding$Null; clsSec = 1;  
distID = 192; empFName = MAR; empLName = BANET; empNum = 178;  
isActv = 0; schID = 234; }; _entity = EmpCls; _newRow = {clsGdID  
= com.webobjects.foundation.NSKeyValueCoding$Null; clsID = 9512;  
clsNme = Mat yt; clsNum = 608; clsRom =  
com.webobjects.foundation.NSKeyValueCoding$Null; clsSec = 1;  
distID = 192; empFName = MAR; empLName = BANET; empNum = 178;  
isActv = 1; schID = 234; }; _object = {values = {clsNum = 608;  
empNum = 178; clsNme = Mat yt; emps =  
com.webobjects.eocontrol._EOCheapCopyMutableArray 1cefde4  
(EOAccessArrayFaultHandler emps _EOIntegralKeyGlobalID[EmpCls  
(java.lang.Integer)862]); empLName = BANET; clsRom =  
com.webobjects.foundation.NSKeyValueCoding$Null; clsSec = 1;  
dist = Dist 1555185 (com.webobjects.eoaccess.EOAccessFaultHandler  
_EOIntegralKeyGlobalID[District (java.lang.Integer)192]); isActv  
= 1; empFName = MARION; sch = Sch 1c19919 _EOIntegralKeyGlobalID 
[Sch (java.lang.Integer)234]; grd = null; }; this = EmpCls  
191777e _EOIntegralKeyGlobalID[EmpCls (java.lang.Integer)8512562] 
; }; _adaptorOps = ({_qualifier = ((clsID = 9512) and (schID =  
234) and ( clsNme = 'Mat yt') and (clsNum = '608') and (clsSec =  
'1') and (clsRom = null) and (clsGdID = null) and (distID = 1682)  
and (empNum = '178') and (isActv = 0)); _adaptorOperator =  
EOAdaptorUpdateOperator; _entity = EmpCls; _changedValues =  
{(isActv = 1; }; }); _globalID = _EOIntegralKeyGlobalID[EmpCls  
(java.lang.Integer)8512562]; _databaseOperator =  
EODatabaseUpdateOperator; } does not contain value for attribute  
named NeededByEOF0 with snapshot key: NeededByEOF0

--
Thank You
Shravan Kumar. M
---

 ___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Invalidating objects asynchronously

2008-09-03 Thread Stephane Guyot


Dan,

interesting question and trouble ...

I have no clear answer but question that i hope may help you, see below.


Le 2 sept. 08 à 18:57, Dan Grec a écrit :


Hi everyone,

We're having an interesting problem in our apps, and I wanted to  
see if anyone else has solved it.


background:
We're not using page-based editing contexts. Everything (!) is in  
the session().defaultEditingContext().
I know, this is bad. We're working hard to fix this for our next  
release, but for the current release, we need to leave it how it is.


We are currently using our own ChangeNotification framework (based  
on the Wonder implementation from a couple of years ago) primarily  
because we deploy to J2EE application servers and want to use the  
internal JMS provider.  This implementation listens for  
objectsChangedInStore notifications from EOF, and then sends out a  
message over the JMS provider.  When the other applications receive  
the message, a running background thread invalidates any EOs with  
the global ID that was changed.


So, the problem.




When we access a relationship on an EO,

you take care of fault ?

and then Enumerate over the results,


how did you acquire the results, the collection ?

a change notification can come in from another instance and  
invalidate some of the objects we're currently Enumerating over.

Did you clone the collection before iterating ?
Modifying an Iterator while iterating it is not guaranteed to work,  
your trouble is not a Java Collection issue ?

The result is a NullPointerException.
Even when we deal with these with something like

if (item != null)
set.add(item.element());


item may not be null but item.element() may be.
What happens if another thread delete/add/refault  one of the item,  
EO of relationship in the same time, in another thread.
When reading, acquiring the results, you may have N eos in the  
collection, but when enumerating any of the EOs in the collection may  
change
and modify the collection you are iterating over ( deleted, added   
and refaulted ).


HTH,
Stephane



it's still possible (and it happens) that the change notification  
slips in between the two lines.


So, one solution is to make change notification asynchronous, so  
they only happen when we're not currently serving a request.
The basic gist would be to check in application.handleRequest and  
sleep the thread if we are currently dealing with change  
notifications.
Once all the notifications have been dealt with, we can go on with  
serving requests.
Change notifications would never be processed while we are serving  
a request.


I don't particularly like the above solution, but we need  
something, and I've got nothing better.
(hopefully we can remove it when we move to page based editing  
contexts)

Does anyone see any problems with the above idea?

Thanks,
-Dan
 ___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Invalidating objects asynchronously

2008-09-03 Thread Stephane Guyot


Tonny,

I totaly agree with you, simple question but the answer is not obvious.

Other people are trying to solve this issue.

http://www.jboss.org/file-access/default/members/jbosscache/freezone/ 
docs/2.2.0.GA/userguide_en/html_single/index.html#d0e2025


Invalidation :
http://www.jboss.org/file-access/default/members/jbosscache/freezone/ 
docs/2.2.0.GA/userguide_en/html_single/index.html#d0e2206


Stephane

Le 3 sept. 08 à 08:24, Tonny Staunsbrink a écrit :


Interesting problem, my solution to the problem is: don't.

Keeping multiple data stores in sync is a pain. It is in WO as is  
in in any other distributed environment - for example database  
clusters. The challenges are so numerous that i consider sharding a  
better solution for load balancing.


In the WO case, if we need fresh data we refresh them from the  
database or use optimistic locking when it becomes vital that state  
in the DB is the same as the state we operated on in the application.


Cheers
Tonny
On Wed, Sep 3, 2008 at 6:56 AM, Stephane Guyot  
[EMAIL PROTECTED] wrote:


Dan,

interesting question and trouble ...

I have no clear answer but question that i hope may help you, see  
below.



Le 2 sept. 08 à 18:57, Dan Grec a écrit :


Hi everyone,

We're having an interesting problem in our apps, and I wanted to  
see if anyone else has solved it.


background:
We're not using page-based editing contexts. Everything (!) is in  
the session().defaultEditingContext().
I know, this is bad. We're working hard to fix this for our next  
release, but for the current release, we need to leave it how it is.


We are currently using our own ChangeNotification framework (based  
on the Wonder implementation from a couple of years ago) primarily  
because we deploy to J2EE application servers and want to use the  
internal JMS provider.  This implementation listens for  
objectsChangedInStore notifications from EOF, and then sends out a  
message over the JMS provider.  When the other applications  
receive the message, a running background thread invalidates any  
EOs with the global ID that was changed.


So, the problem.




When we access a relationship on an EO,

you take care of fault ?


and then Enumerate over the results,


how did you acquire the results, the collection ?

a change notification can come in from another instance and  
invalidate some of the objects we're currently Enumerating over.

Did you clone the collection before iterating ?
Modifying an Iterator while iterating it is not guaranteed to work,  
your trouble is not a Java Collection issue ?

The result is a NullPointerException.
Even when we deal with these with something like

if (item != null)
set.add(item.element());


item may not be null but item.element() may be.
What happens if another thread delete/add/refault  one of the item,  
EO of relationship in the same time, in another thread.
When reading, acquiring the results, you may have N eos in the  
collection, but when enumerating any of the EOs in the collection  
may change
and modify the collection you are iterating over ( deleted, added   
and refaulted ).


HTH,
Stephane



it's still possible (and it happens) that the change notification  
slips in between the two lines.


So, one solution is to make change notification asynchronous, so  
they only happen when we're not currently serving a request.
The basic gist would be to check in application.handleRequest and  
sleep the thread if we are currently dealing with change  
notifications.
Once all the notifications have been dealt with, we can go on with  
serving requests.
Change notifications would never be processed while we are serving  
a request.


I don't particularly like the above solution, but we need  
something, and I've got nothing better.
(hopefully we can remove it when we move to page based editing  
contexts)

Does anyone see any problems with the above idea?

Thanks,
-Dan
 ___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mezz.dk% 
40gmail.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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Invalidating objects asynchronously + Terracotta + Groovy

2008-09-03 Thread Stephane Guyot


Hi list,

i'm a little bit in trouble. I post a mail at 10:16:01  and 5 hours  
later , nothing on the list ?


I decide to re-send it
Stephane


Tonny,

the question is so interesting 

http://www.terracotta.org/web/display/orgsite/What+Is+Terracotta

If anybody has experience with this product , technology ?

Imagine if one day WebObjects rely on this kind of technology.   :-)

Dreaming is not forbidden !

Did you know that in Groovy today , you can use the Objective-C  
Category, but this time in Java. ?


http://docs.codehaus.org/display/GROOVY/Groovy+Categories

Many years ago it  was a dream, ( and a nigthmare when switching  
from Objective-C to Java ).


It would be nice, if some day we would be able to modify java/ 
groovy code of a component
without the needs to recompile all the application before  
launching, you can do that with Groovy. ( like the in old webscript  
day :-) )


cheers,
Stephane




 ___
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 [EMAIL PROTECTED]

Re: takeFormValuesFromRequest problem

2008-05-14 Thread Stephane Guyot

Lachlan,

your trouble comes from the bias you create between the server state  
and the client state.
When you modify the UI via javascript, when you add the company name  
on the client side and show the company name, the server side doesn't  
know that there's a new value ?
There's no elementID in the tree of component on the server side for  
companyName and WebObjects doesn't know he should extract a form  
value for that unknown key.
The better thing thing to do is to extract value by hand and set it  
in your EO in takeValuesFromRequest ?
The same sort of trouble arise when you put an action in  
conditionnal, changing the condition may impact the action call,  
Chuck explanes that  very well in his book.
If you remove the condition, (just for test) under Compnay Name and  
show/hide the field in javascript everything works better ?


HTH,
Stephane



Le 14 mai 08 à 07:32, Lachlan Deck a écrit :


Hi Andrew,

On 14/05/2008, at 3:16 PM, Andrew Lindesay wrote:

I tend to keep the state of the toggle in the component controller  
rather than the EO


It already is :-) Don't let the form value names fool you.

and then take action on the state of the toggle in a  
takeValuesFromRequest(..) override.


In takeValuesFromRequest I'm simply clearing any previous errors  
and calling super. I've got various validateKey methods. Strangely  
the keys in question receive null when iscompany is ticked in the gui.



cheers.

got a login form that allows either a company or person to login.  
The form looks like so:


[ ] is company
Company Name: []
First Name: []
Last Name: []
Email: []
Password: []

company name is initially hidden. Javascript toggles the  
visibility of companyName vs first/lastName.


Okay - the problem:
when the form is submitted if iscompany is ticked, the company  
name is set to null. i.e., validateTakeValueForKey is given null  
- even though I can see that the value is there in the request's  
formValues.


How do we debug this again?


___
Andrew Lindesay
www.lindesay.co.nz



with regards,
--

Lachlan Deck

___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: NSSelectorT - a curiosity

2008-05-07 Thread Stephane Guyot

Michael,

did you try the type Class Void ? something like Void.Type ?

HTH,
Stephane


Le 7 mai 08 à 09:35, Michael Scott a écrit :


NSSelectorObject works fine.  But it is a bit wonky.

Perhaps Java should allow 'null' as a type argument.

Probably a bit much to ask just to make an old NextStep class more
consistent.


On 7/5/08 2:11 PM, Anjo Krank [EMAIL PROTECTED] wrote:


Try to cheat an use Object?

Am 07.05.2008 um 04:12 schrieb Michael Scott:


NSSelector has been generified (generifried?) so that the return
type of the method it calls must be specified as a type parameter.

So,
NSSelectorString selector = new
NSSelectorString(“testMethod”);

Can be used to call the following method which returns a String
(regardless on what class the method resides):

public String testMethod() {
return “testing, testing, 1, 2, 3 ...”;
}

But what if the method returns void?

public void testMethod2() {
// do something fab
}

What type argument should be used to instantiate NSSelectorT?

Or have I missed something fundamental?

Cheers
Michael Scott



___
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/krank% 
40logicunited.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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO(Re)petition

2007-10-03 Thread Stephane Guyot

Ian, David, Miguel  ...

I can't agree with you.

My last client, is looking for WO replacement because of lack of  
windows and linux support.
Ten years of WO development without roadmap, multi to mono platform  
support, 


Actually I'm just trying to convince my new client to use WO, we  
develops on Mac and windows, we are using FLEX, ( opensource,  
multiplatform ...),

but I can't them : now we just needs to drop server and buy Xserve :-)
I simply hate, J2EE , Spring, Struts, Hibernate  I want to  
continue with WO, but not at home in my job.


Stephane


PS : WebKit is open source and use by many companies, Nokia, Adobe  
for AIR, it's not a good idea ?
I know many developpers that wil be back on the WO side, if Apple  
opensource WO, but they are currently using uggly technology, just  
for eating.


Le 3 oct. 07 à 02:51, Ian Joyner a écrit :

I agree – calling for open source is not thinking different, it's  
thinking the same. This industry is too full of popular solutions  
that don't really address the real problem. I think that's what  
Steve means when he says think different, address the problem and  
the need. I don't think open source will solve WO's problems, that  
doesn't mean that I don't think it would be nice to be able to  
browse through the code, but evaluate what the problems are and  
then solve those problems. I think Pierre's group at Apple are  
doing that.


Ian

On 03/10/2007, at 7:13 AM, David LeBer wrote:



On 2-Oct-07, at 5:04 PM, Miguel Arroz wrote:


Hi!

  Think different: please present any valid arguments to sustain  
your request.


  Think different: please request what you want through the  
proper channels. People are trying to create a WO Community,  
being the communication between WO users and Apple a goal. If you  
want to help and to make your voice be heard, you should help  
building the WO Community, instead of flooding the mail-list.


  Think different: please THINK if open sourcing WO is what you  
really want. Because what I want is Apple to actively develop it,  
doing a good job that results in innovative features and QUALITY  
work, and yes, documented. How many Web frameworks do you know  
that are innovative, with a solid, very solid code base (with a  
few bugs, naturally), and well documented... AND OPEN SOURCE?  
Because I don't know any one.


  Think different: open source WO clones/copies/alternatives (use  
whatever pleases you) exist. Do you use them? No. Why? Because WO  
is still the best. Did being open source helped? I don't think so.


  Think different: if you REALLY need to look at the WO source,  
you know you can.


  Think different: again, stop flooding my mailbox. If you really  
want to make your point, put together some decent arguments, talk  
with the people who are working to build the WO Community, and  
use them to get in touch with Apple.


  I don't mean to be rude, but this is getting a little childish...


I was just about to click send on a message that said the same  
thing...


OK, not the same thing, Miguel said it better :-)

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


___
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/ian.joyner% 
40sportstec.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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WO(Re)petition

2007-10-03 Thread Stephane Guyot

Hi Miguel,

answer below

Le 3 oct. 07 à 12:42, Miguel Arroz a écrit :


Hi!

  I know people who develop on Windows today, no problems. I know  
people who develop on Linux, they way the only problem is that  
EOGenerator does not run, but a) EOGenerator is not even made by  
Apple, and 2) There is a Java replacement on Wonder, I think,  
although I'm not sure.


  Also, you don't need an xServe to deploy. People are using Linux,  
FreeBSD, Solaris, with no problems at all. It's Java. That's the  
point!


Yes I know but it's depend the kind of client. I have spend many  
years with a big one. The 5'th european inssurance company, and IBM  
is everywhere with WebSphere,
there 's a lot of lobbying inside to kill WO. In this kind of client,  
you simply can't  say them : the product is no more supported on any  
other platform than MacOS X servers,

it works, but not garanteed, and we haven't got the source.



  This being said, I think that if your client wants to abandon WO,  
the problem is not in WO, but in your client.
Not agree, the french WO market is so small, that every client  
leaving WO is a problem, It's a problem for the client but also for  
Apple, I think.
Apple may not officially support non-Mac platforms, but we know it  
works, and at least Apple offers official support for their  
platform. Look at the open source stuff. Do they offer support for  
anything at all? No.
Because they are opensource, if you choose an opensource framework,  
it's on your own risk.

If you can make it work, cool, if not, who cares.

  WebKit is a different story, but even WebKit only became anything  
serious after Apple closed-sourced it for a long time, and worked  
alone, using their own guidelines, orientation, talent and strategy  
to build a decent product. They only open sourced it after being  
good enough, and because legally they really had to.

Ok, but what did you mean ? WO is not actually clean enough ?
We can wait if needed.


  When you say I know many developpers that wil be back on the WO  
side, if Apple opensource WO, but they are currently using uggly  
technology, just for eating., what are the arguments they present?
I  just prefer a growing community , I think it's a good signal for a  
technology.
It's not enough to say oh, i don't use WO because it's not open- 
source..

I've never said something like that, but many clients , yes.
They must say WHY. Open-source originally was a good ideia for some  
kind of projects, but it has a lot of drawbacks,
yes you'are right again, but Apple is doing big bussiness,  I hope  
they can afford a team for that.
specially when you look at the quality of the products, because a  
lof of people work on it and because many times there's not a  
roadmap for the product. Unfortunately it has become a comercial  
buzzword (how ironic, isn't it?), and many people say they will  
only use open source stuff because it's an hype, they don't really  
know why. I don't call that thinking different, I don't even call  
that thinking.


  That's why I asked for argumentation to your petition. WHY do you  
want it to be open-sourced.

 Why ? to gain market share rather than loosing.
Did you ever try to run WO on AIX platform ?
I'm not directly speaking for myself, I'm just trying to do business  
with a WO(nderfull) technology.
Clients are more and more afraid, tools are deprecated, we loose  
mulitplatform support ... and last news :
Did you know that JavaClient is just supported on Leopard, but you  
can't anymore develop with JavaClient ?
Personally I don't care, I've choose FLEX and AIR, but some clients  
are totaly disappointed. ( Many years of work )
Opensource is simply a kind of security for client, even if it's an  
illusion, artefact,  it's more easy to say them don't be affraid, we  
have source we can try to run WO on AIX for example or whatever  
they wants.



What will we win
Most of fortune 500, 1000 would never choose a product not certified  
on any other platform than Mac servers.

I don't want stay in small business.
We will win many developers  and I think it's really important.

and loose with it. I'm waiting!



Stephane

  Yours

Miguel Arroz

On 2007/10/03, at 09:17, Stephane Guyot wrote:


Ian, David, Miguel  ...

I can't agree with you.

My last client, is looking for WO replacement because of lack of  
windows and linux support.
Ten years of WO development without roadmap, multi to mono  
platform support, 


Actually I'm just trying to convince my new client to use WO, we  
develops on Mac and windows, we are using FLEX, ( opensource,  
multiplatform ...),
but I can't them : now we just needs to drop server and buy  
Xserve :-)
I simply hate, J2EE , Spring, Struts, Hibernate  I want to  
continue with WO, but not at home in my job.


Stephane


PS : WebKit is open source and use by many companies, Nokia, Adobe  
for AIR, it's not a good idea ?
I know many developpers that wil be back on the WO side, if Apple

WO(Re)petition

2007-10-01 Thread Stephane Guyot


Think Different : Please Opensource WebObjects

Stephane ___
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 [EMAIL PROTECTED]

I have a dream :-)

2007-09-30 Thread Stephane Guyot


Hi list,

last night as FTO ( Fantomatic Technical Officer) , I directly report  
to Steve.


I just dispose of only 2 minutes to convince Steve that opensource  
WebObjects may have a big Hallo Effect for Apple.
The WO team agree with me and all WO developpers too, the challenge  
is big for the Community.
I take the lift, door of the office is open, today's rumor says that  
Steve is in good mood, go.


Fantomic : Hi Steve
Steve : Hi Fantomic

Fantomic : Well, the web is a mess , Apple can still come back in the  
war on the server side. J2EE is a nightmare, bad design, too much of  
JSR, most of J2EE projects fails.
WebObjects, is simple , very light , very efficient, Steve ,  
WebObjects is a bomb. Today the only drawback with WO is that, it's  
not opensource.
I think we need to decide under what kind of License we can  
opensource WO.  We need to avoid the cacophonic coding of most  
opensource project,
we just need to keep the hand of the design and future of the  
technology. Anycase, today the big challenge is no more on the server  
side, RIA are future of the net.


Steve : Fantomatic, you speaks about war and bomb, what did you have  
in mind, Iraqi ?
Look at WebKit. Adobe is using WebKit for AIR, they are simply  
laughing at us.


(I'm a little bit disappointed, I think Adobe is a big player on the  
RIA, perhaps buying Adobe would be the best thing we can do , but I  
can't say that to Steve.
Fucking words, as a frenchy guy, I just wants to avoid the Iraqi war  
subject, I remember the ONU speech of the french prime minister, but  
in the same time I'm feeling better,

Frenchy are not always saying stupid things )

Fantomatic : We needs to Think Different, WO was simply ten years  
ahead ot his time.



(Steve's iPhone beeps. 2 minutes it's very short.)

Steve : I will decide soon.
Fantomatic : Great, do the right choice.


I just came out, I saw the next iPhone on the desk, but it's under  
NDA :-)


Sincerly yours,
Fantomic

PS :
Suggested reading :  http://www.artima.com/weblogs/viewpost.jsp? 
thread=193593

Suggested hearing : The Third Bardo , I'm Five Years Ahead of My Time
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum? 
playlistId=261634131s=143442i=261634163


Probably my last request, my last post on the list :-)

Good luck to everybody,
Stephane ___
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 [EMAIL PROTECTED]

Re: Apple Please Update java Plot.framework / Think Different

2007-09-18 Thread Stephane Guyot


mike,

you can also Think Different :  http://examples.adobe.com/flex2/ 
inproduct/sdk/dashboard/dashboard.html


If you rigth click you have the source :-)

http://demo.quietlyscheming.com/ChartSampler/app.html

You cant still wait, rumors says that Apple may have something in  
pipe for RIA.


HTH,

Stephane



Le 19 sept. 07 à 04:20, Kieran Kelleher a écrit :


Would Project WOnder's ERPlot.framework be of use as a substitute?

On Sep 18, 2007, at 7:05 PM, mike deavila wrote:



Please release an updated version of the java Plot.framework or  
open source it. Please do not just drop it and make it dead!




___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


FLEX-WebObjects Integration

2006-12-22 Thread Stephane Guyot

Hi,

did someone have any tips, suggestions, experiences about Flex- 
WebObjects mixing ?
I'm not in J2EE configuration but in the old WebObjects multi- 
instance monitored configuration.

What's is the best way to do that without FDS ?
HTTPService , RemotObject ont the client-side ? Where should I put  
the remoting-config.xml ?


Thanks in advance,
Stephane
___
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: Obtain the name of a server in WO

2006-09-09 Thread Stephane Guyot

Gilles,

there is a non documented ( not yet public but perhaps in the future if  
Apple Open-souce WO :-) ) API on the WORequest  : public String  
_serverName()
WebObjects use it internally for the  isSecure bindings on the  
WOHyperlink



HTH,
Stephane


Le 9 sept. 06, à 05:27, Gilles MATHURIN a écrit :


Hello list,

After a few search in the WO documentations and experimentation, and  
owe to the people who send me clue and their way of doing,  i think i  
found a way to have the server name, yet i hope so.


I used the WOContext request() method. As u surely know (in fact i  
write this for the other newbie like me :-)) (WOContext context) is an  
argument of the constructor of ur WOComponent. So i wrote a few more  
line in it, to get what i want.


=== Example ===
At first u have this :

public MoviePage(WOContext context) {
super(context);
}
==

I added this :

 public MoviePage(WOContext context) {
super(context);
WORequest request = context.request();
String serverName = request.headerForKey(host);
		System.out.println(Server Name is :+serverName); // For  
verification

}

==

after going to the MoviePage when i check the console i obtain this :
Server Name is : g-five.local.

That's what i should obtain. Then when i use the ivar serverName in a  
method who built a static URL like :


String dynamicVideoUrl = http://+serverName+/folder/movie.mov;

the movie is displayed. Now i only hope that the server name is really  
the apache domain name (the static one). As the http server and the  
application server are on the same machine, it seems impossible to  
figure it out.


Maybe the more experienced WODeveloper could tell us ?

Regards.

GM.
___
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/ 
stephane.guyot11%40wanadoo.fr


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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com


OOM / java.lang.OutOfMemoryError

2006-03-08 Thread Stephane Guyot


Hi list,

We are  fighting against java.lang.OutOfMemoryError but the trouble 
doesn't comes directly from memory of the  WOApplication ,

I downsize the JVM with Xmx to 64 to produce more easily the exception.

On the portal page of our application if I click very quickly,
many, many  times on the same link, stressing the application without 
waiting the response,

I always get java.lang.OutOfMemoryError.
Working on Windows XP with IIS in development and still with WebObjects 
5.1.3,
the portal page is not very complex, a wrapper with WOComponentContent 
and now i've remove almost all the code HTML/WOD/JAVA for the test.

I'm totaly disappointed, adaptor bug ?
Any ideas are very very wellcome,
thanks in advance
Stephane


___
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: OOM / java.lang.OutOfMemoryError

2006-03-08 Thread Stephane Guyot
Chuck,

thanks again but i'm not sure of that. 
We usually work with only one EOF stack, but i wil check tomorrow morning.
Still searching an idea, i'm trying  to find the patch referenced in this thread  WebObjects 5.1 Deployment IIS Adaptor Problem
http://wodeveloper.com/omniLists/webobjects-dev/2002/October/msg00574.html
But we are using CGI adaptor :-(

Thanks,
Stephane

Le 8 mars 06, à 22:21, Chuck Hill a écrit :

Hi Stephane,

That might not be it.  When that was happening to me I only had to click a couple of times.  It sounds like you are doing more than that.  It is unlikely to be session creation, by themselves, sessions are pretty lightweight.  Is that link doing anything that might consume memory, like creating a new object store co-ordinator?

Chuck

On Mar 8, 2006, at 1:15 PM, Stephane Guyot wrote:

Thanks Randy,

but every created sessions are logged and it's not the case.
Searching on the different list , I've found that  :

http://wodeveloper.com/omniLists/webobjects-dev/2002/March/msg00544.html
It appears that the culprit was ZoneAlarm ...

I wil check if there any  firewall tomorow.
Thanks,
Stephane

Le 8 mars 06, à 21:53, Randy Wigginton a écrit :

Sounds like you are creating a lot of session objects.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Stephane Guyot
Sent: Wednesday, March 08, 2006 3:45 PM
To: webobjects-dev Apple
Subject: OOM / java.lang.OutOfMemoryError


Hi list,

We are  fighting against java.lang.OutOfMemoryError but the trouble
doesn't comes directly from memory of the  WOApplication ,
I downsize the JVM with Xmx to 64 to produce more easily the exception.

On the portal page of our application if I click very quickly,
many, many  times on the same link, stressing the application without
waiting the response,
I always get java.lang.OutOfMemoryError.
Working on Windows XP with IIS in development and still with WebObjects
5.1.3,
the portal page is not very complex, a wrapper with WOComponentContent
and now i've remove almost all the code HTML/WOD/JAVA for the test.
I'm totaly disappointed, adaptor bug ?
Any ideas are very very wellcome,
thanks in advance
Stephane


___
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/cawineguy%40gmail.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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]

-- 
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

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/stephane.guyot11%40wanadoo.fr

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 Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

The EOModeler Adavantage ? / Time to refactoring job ?/ WOF longevity/success becomes a nightmare :-)

2005-10-29 Thread Stephane Guyot

Hi list,

after almost 10 years of WebObjects/EOF , we starts with WOF1.0 and persistent, transient variables in WOComponents ... :-)

today we just have these statistics :

Number od Models :  .. 43
Number of entites :  578
Number of attributes :  ... .5265
Number of relationships : ..995
Number of named fetch specification : ...553

I hope my WOD statistics are goods (?)  :

countModels : WOString {
value = models.count;
}
sumEntities : WOString {
value [EMAIL PROTECTED];
}
sumAttributes  : WOString {
value [EMAIL PROTECTED]@sum.attributes.count;
}
sumRelationships  : WOString {
value [EMAIL PROTECTED]@sum.relationships.count;
}
sumFetchSpecificationNames  : WOString {
value [EMAIL PROTECTED]@sum.fetchSpecificationNames.count;
}

We have many applications but most of them doesn't use all the entities, and i'm currently looking for how to determine, to define a way to load only required models and entities. We have custom way to load all models and EOs in sharedEditingContext but it's not very fine grained, to do that we loads all entities and dynamically adjusts from properties files, it's perhaps very bad idea.
How you handle packaging of classes and models ?

For historical reasons we puts all the models in one subproj, because Project Builder/EOModeler doesn't like so much inter models relationships in differents projects. Does Xcode in 5.3 do a better jobs ? ( No more stupids , Clear Destination Entity, I will Find it , questions ? )

Perhaps it's time to write a custom EOModelGroup ?
In one models we have 137 entities, and 137 classes , but in fact it's just single table mapping, we only have one intelligent class, and 136 stupids classes, that only have special Type ( it's a kind of intelligence , but it's still lot of noise ).

In another models we have all the business logic of the hierachical Business Units,  but in fact we have dedicated WO instances restricted to specials Businness Units. and don't have restriction o each instance. What is the better solution, share th code, share the model and dynamically adjusts with restricting qualifiers at run-time ?


Is there a smart  way to handle such situations ?
995  relationships implied some complexity in the graph of objects (:-()), how do you handle such spaghetti situation ?
For the moment i'm just begining to investigate and do nothing except asking myself questions and tests... (EOClassDescriptionNeeded ?)
but any suggestions, experiences are wellcome.


Stephane


PS : OK, small is beautifull , but the reality becomes a nightmare :-)
EOModeler is very buggy but we are not with Hibernate and the by hand doing made .hbm.xml configuration files ;-) 






 ___
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