Re: Looking for strategy

2016-07-22 Thread Philippe Rabier
Hi Markus, I made a presentation http://www.slideshare.net/wocommunity/filtering-data-with-d2w It could help you as well. Our need was to manage a multi-tenants database so it was close of your description: a user belongs to a company and can see only the data linked to the company. Best,

Re: IllegalStateException: "...EOEditingContext has already been disposed"

2016-09-29 Thread Philippe Rabier
> On 29 sept. 2016, at 12:18, Paul Hoadley wrote: > When do you dispose of the EC? >>> >>> I don’t formally dispose of it. I just let it eventually fall out of scope >>> and get GC’d. Is that a bad idea? >> >> No but seems the right thing to do. I was just trying to understand how it >>

Re: Multi-tenant Postgres support with EOF ?

2016-11-28 Thread Philippe Rabier
Bonjour Josef, Maybe this WOWODC'13 presentation could be useful as well: http://www.slideshare.net/wocommunity/filtering-data-with-d2w Best, Philippe > On 25 Nov 2016, at 19:16, Vanek Josef >

#wondertip twitter

2011-10-16 Thread Philippe Rabier
Hi all, I've just started to write some tips on twitter relative to wonder. The goal is to share some simple stuffs (very simple cause there is only 140 characters). You can follow me (http://twitter.com/prabier) or if you don't want, just look up #wondertip. But it would be great if other WO

Re: CLOSE_WAIT when database is offline

2011-10-17 Thread Philippe Rabier
Alexander, do you open a database connection each time the web app receives an incoming request? Philippe Sent from my iPhone On 17 oct. 2011, at 14:54, Alexander Spohr wrote: > Hi list, > > we have a rather busy WO-service. Sometimes one of our multiple database > servers fails and CLOSE_W

Re: CLOSE_WAIT when database is offline

2011-10-17 Thread Philippe Rabier
)) http://www.webobjects.me/API/wo542/com/webobjects/appserver/WOAdaptor.html It's surely easier to fix the database issue but you know already that. Philippe On 17 oct. 2011, at 16:51, Alexander Spohr wrote: > > Am 17.10.2011 um 16:19 schrieb Philippe Rabier: > >> Alexander, do you o

Q about locked ec (again)

2011-10-17 Thread Philippe Rabier
The question is mainly for Kieran. In the framework COScheduler (job scheduling), I expose an abstract method newEditingContext() to let the developer create his own ec with autolock = false (see discussion in february 2010) like this: @Override public EOEditingContext newEditing

Re: setting properties ??

2011-10-24 Thread Philippe Rabier
Theodore, I'm afraid you use properties the wrong way. Personally, I never set properties in my own code, only read them (except for frameworks I wrote of course). Properties are used to initialize informations. By setting default values in your framework, you can change them in your applicati

Re: Component based email without a context

2011-10-30 Thread Philippe Rabier
Hi Ken, We use the following code to do what you want: … NSMutableDictionary headers = new NSMutableDictionary(); headers.setObjectForKey(new NSArray(language), "accept-language"); // WORequest will answer true when method request.isUsingWebServer() is called and so will use Host and Port heade

Q about ERModernLook and embedded lists

2011-11-04 Thread Philippe Rabier
Hi all, One week ago before knowing the list server outage, I sent the following email which was never sent. And the solution below. (if you want to read my question quickly go to the end) The email I sent: I have 2 entities: - Client (company) - Use

Re: How do I initialize an Entity attribute upon creation in D2W?

2011-11-05 Thread Philippe Rabier
ppe On 5 nov. 2011, at 17:49, James Cicenia wrote: > I do use ModernLook > > I am not quite certain how to get the attributes of the newly created entity. > > Thanks > James > > > > On Nov 5, 2011, at 11:39 AM, Philippe Rabier wrote: > >> Do you use M

Re: NullPointerException

2011-12-04 Thread Philippe Rabier
Hi Kevin You have to use a && operator when you test if your string is not null and length > 0. ;-) Bad copy/paste I guess. Your code is clean. Philippe Sent from my iPhone On 4 déc. 2011, at 09:01, Kevin Spake wrote: > Still working on the WebObjects, WOlips and Wonder tutorial, part 2

Re: Weird Behaviour...

2011-12-06 Thread Philippe Rabier
I can feel how uncomfortable you are. What makes me confused is to never see this bug before. It's hard to believe that nobody saw the errors if there are error. But on another side, I (and all the team) worked on many applications so following the explanation, I don't know why we don't see t

Re: Weird Behaviour...

2011-12-06 Thread Philippe Rabier
Hi Chuck, I like your answer :-) Any insight that could explain why we see this bug so rarely? Philippe Sent from my iPhone On 6 déc. 2011, at 23:45, Chuck Hill wrote: > > On 2011-12-06, at 2:31 PM, Lachlan Deck wrote: > >> On 07/12/2011, at 9:23 AM, Philippe Rabier wrot

We need assistance for unit testings

2012-01-05 Thread Philippe Rabier
;a" bebook.com Best regards, Philippe Rabier ___ 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/mailm

Re: Properties, Frameworks and App

2012-01-11 Thread Philippe Rabier
Hi James, We did differently (maybe for this reason but I don't remember and it works from the beginning so you know…). We have a connection dic per framework: ERAttachment.URL=jdbc:mysql://databasehosting/ynp?capitalizeTypenames=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterE

Re: Stable releases of Wonder

2012-02-17 Thread Philippe Rabier
IMO, it would make sense only all commiters agree together on a stable release and if some of us could validate the version. But it won't happen, I guess. So it turns out that each company has to decide what is a stable release for their needs. That's we are doing at Sophiacom (but I know you kn

Re: Entirely independent EOF on Quartz Threads - How to do?

2012-02-17 Thread Philippe Rabier
Hi Paul, I can give you a complete framework I presented at the last WOWODC that allows Quartz integration in a Wonder app. Every class is documented, there is a package-info, … and it allows of course the execution of jobs in // There is also a UI (simple) to see the jobs running and the sche

Re: D2W inspect page with custom embedded list

2012-02-17 Thread Philippe Rabier
Hi David, I think I have a hack for you. The context is almost the same: I need to write a QueryDataSourceDelegate which filters EOs when a user click on the search button of an ERMODEditRelationshipPage page. The filter is based on the parent object who is unknown at this stage (or I didn't fi

Re: Relationship with EO_PK_TABLE

2012-02-19 Thread Philippe Rabier
There is no relationship with eo_pk_table. That's a table, not an EOEntity. What are you trying to do? Philippe On 17 févr. 2012, at 23:49, Xavi Garcia wrote: > > Hi all, > > I have some entity tables without relationship with eo_pk_table and > I need it to autoincrement the primary key id. S

Re: WebObjects 5.4.3 and JavaClient Apps

2012-02-24 Thread Philippe Rabier
Maybe you can try to post your problem on WOLF if you speak french. The list is very quiet now but I know some members who did a lot of JC. At Sophiacom, we use heavily but it was 6 or 7 years ago with WO 5.2.4. Now you can't use Interface Builder anymore so you have to code your UI and it's

Re: checkBox clickable from a Rule

2012-03-29 Thread Philippe Rabier
For a list, you write rules with task='edit' ? Or because you want a different behavior for the list, you do specific rules for the edit task? However, your first rule seems to be wrong. If (propertyKey = 'estimateApproved') is true, the rule will be fired whatever the value of task. The same f

Newbie question about on WOInject (so for Henrique)

2012-04-02 Thread Philippe Rabier
Hi Henrique, I prepare my brain to use WOInject. I have a specific case where I need your help. We have 2 frameworks: - web services - foundation which have no dependency with WO, EOF, … ("pure" java I could say). Foundation provides factories used by web services but they return objects impl

Re: Newbie question about on WOInject (so for Henrique)

2012-04-04 Thread Philippe Rabier
Thanks for your replies/feedback Henrique and James. Happy you are to have an average transaction of 10ms. I'm fighting against Mysql at this moment. But it's another problem ;-) Philippe Sent from my iPhone On 4 avr. 2012, at 09:17, "Brook, James" wrote: > > > Sent from my iPhone > >>>

Re: force D2W query pages to use "contains" operator

2012-04-25 Thread Philippe Rabier
Hi Tim, I don't know if you can specify the list of operators on a the query all page but on a "standard" query page you can. I'm on vacation so I don't remember the rule but I'll give you the rule in a couple of hours. Philippe Sent from my iPhone On 25 avr. 2012, at 09:07, Tim Worman w

Re: ERModernDirectToWeb and ERXEditingContextDelegate

2012-04-25 Thread Philippe Rabier
Hi Tim (again) I suspect you don't set your delegate correctly in your EC factory. It's quite easy to trace when your app is running. You can also use ERCStampedEnterpriseObject that handles the created and lastModified attributes for you. http://webobjects.mdimension.com/hudson/job/Wonder/ja

Re: Model dependencies

2012-04-25 Thread Philippe Rabier
Ho the good question. No answer sorry but very interesting by this answers. If someone can give more information about ERPartial, I'm interested too (Mike ?) Philippe On 25 avr. 2012, at 20:27, Ramsey Gurley wrote: > I'm just wondering what others are doing... > > I'd like to create framework

Re: Migrating from EOF to ????

2012-07-14 Thread Philippe Rabier
On 14 juil. 2012, at 03:49, John Huss wrote: > In general though there is nothing compelling enough for me to think about > rewriting existing code in Tapestry (or any framework). For new projects it > might be worth a look, but there are lot of frameworks out there and I would > put many in

Re: Periodic Tasks in WO

2012-08-01 Thread Philippe Rabier
To be honest, ERQuartzScheduler still has some issues. If a job is running, the app doesn't stop, all (future) jobs are removed but the app doesn't restart when the job is done… Need more investigation (see my next post). Philippe On 31 juil. 2012, at 16:03, Pascal Robert wrote: > > Le 2012-

Re: WOWODC 2013?

2012-10-18 Thread Philippe Rabier
A bit late: we have to continue the event. The last one was successful even if some of us were/was upset. Of course, I don't forget it depends on you. Regarding the sessions and the fact that you organize and create and present sessions, you can rely on us (Sophiacom). We will have new stuffs t

Re: WOWODC 2013: call for presenters

2012-10-21 Thread Philippe Rabier
Hi Pascal, Depending on the period, we will have some stuffs to show. However, the airfare and hotel are a big concern. Even if I understand that Jazz festival is great event, everything is more expensive and july/august is bad also (because it's more expensive and because our team can be in va

Newbie question about REST

2012-10-21 Thread Philippe Rabier
Hi all, If we do some fetches or updates manually in our controllers (in the createAction(), indexAction(), …) I suppose we have to manually lock the editingContext returned by the provided method edtingContext(). Is my assumption correct? Philippe __

Re: WOWODC 2013: call for presenters

2012-10-21 Thread Philippe Rabier
012-10-21, at 5:27 AM, Philippe Rabier wrote: > >> Hi Pascal, >> >> Depending on the period, we will have some stuffs to show. However, the >> airfare and hotel are a big concern. Even if I understand that Jazz festival >> is great event, everything is more expe

Re: Newbie question about REST

2012-10-21 Thread Philippe Rabier
Sorry. I read the ERXEORestDelegate code and I got my answer. We have to lock/unlock the ec manually. Philippe On 21 oct. 2012, at 14:47, Philippe Rabier wrote: > Hi all, > > If we do some fetches or updates manually in our controllers (in the > createAction(), indexAction(), …)

Re: WOWODC 2013: call for presenters

2012-10-21 Thread Philippe Rabier
with the Sophiacom team (Yoann and maybe someone >> else) to meet the community, for religious experience like "Au pied de >> Cochon", not for entertainments. >> >> Philippe >> >> On 21 oct. 2012, at 18:28, Chuck Hill wrote: >> >>> On 2

Re: Newbie question about REST

2012-10-22 Thread Philippe Rabier
RRest and I didn't see some auto-lock mechanisms. So where is the truth? Philippe On 21 oct. 2012, at 21:05, Philippe Rabier wrote: > Sorry. I read the ERXEORestDelegate code and I got my answer. We have to > lock/unlock the ec manually. > > Philippe > > On 21 oct. 201

Re: Newbie question about REST

2012-10-23 Thread Philippe Rabier
can't assume that the ec is always auto-locked? Philippe On 22 oct. 2012, at 17:03, Mike Schrag wrote: > if you run wonder with auto locking, you'll auto lock. if you don't, you need > to lock. same rules as normal WO. > > ms > > On Oct 22, 2012, at 11:00 AM

Re: Deploying for Java 1.6

2013-01-08 Thread Philippe Rabier
Hi Johnny, If you are using Mac OS X Server 10.5 (don't know if same behavior with Mac OS X client), the cause is that the launch script of wotaskd "uses" java 5 whatever the java settings you choose. There is some minor modification at the OS level. I try to retrieve that and I'll keep you po

Re: Deploying for Java 1.6 (solution)

2013-01-08 Thread Philippe Rabier
://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x Best, Philippe On 8 janv. 2013, at 10:16, Philippe Rabier wrote: > Hi Johnny, > > If you are using Mac OS X Server 10.5 (don't know if same behavior with Mac > OS X client), the cause is that the launch

Re: JavaFoundation opens in place of own Application

2013-01-20 Thread Philippe Rabier
t; > Regards, > > Ute > > Am 20.01.2013 um 11:40 schrieb Philippe Rabier: > >> First of all I don't have any solution to provide. So don't be too much >> disappointed ;-). >> >> We got this kind of error when we set up the Mac of a new WO deve

Re: JavaFoundation opens in place of own Application

2013-01-20 Thread Philippe Rabier
Thanks Ramsey. I think that's what we did: create a "pure" WO app because Antoine tries first to follow the official tutorial provided by Apple based on Eclipse. Philippe On 20 janv. 2013, at 13:51, Ramsey Gurley wrote: > I still see the session error in the run log. Are you sure you removed t

Re: Parallel structure EO modeling

2013-02-26 Thread Philippe Rabier
Hi Ken, Could you imagine an app for male and another one for female? If that case, you could create your model where table name have _male as suffix, use it as this in the WOApp for males and with a property file, change the table names dynamically with, by convention, _female as suffix in the

Re: [SOLVED]Rép : Re: checking device or platform

2013-05-26 Thread Philippe Rabier
On 23 mai 2013, at 00:45, Paul Hoadley wrote: > On 22/05/2013, at 11:51 PM, Raymond NANEON wrote: > >> Thanks to all, problem resolved. > > What was the issue? +1 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev maili

Re: Cannot find strings into WebObjects application files

2013-05-26 Thread Philippe Rabier
Hi Filippo, You have to be more specific about your problems. I didn't understand if it's a localization issue as Fabian and Theodore guess or if it's a question about framework dependencies and how you can access to a specific component… as you talk about several frameworks linked together in

Re: Cannot find strings into WebObjects application files

2013-05-26 Thread Philippe Rabier
Yep. Mee too. Filippo are you the author of the application or do you maintain it? Philippe On 26 mai 2013, at 19:17, Theodore Petrosky wrote: > Is this a d2w app? It certainly sounds like it. > > --- On Sun, 5/26/13, Filippo Laurìa wrote: > >> From: Filippo Laurìa >> Subject: Re: Cannot f

Re: malformed bundle version number in deployment with Java 1.6

2013-06-07 Thread Philippe Rabier
Yes I wanted to tell you and I was wondering if I didn't right something in the wiki. But as I was traveling from Paris to SF today, I was unable to answer you. Philippe Sent from my iPhone On 7 juin 2013, at 12:14, David Holt wrote: > A quick search on the list reveals: >

Re: WoMonitor "Failed to contact ..."

2013-08-02 Thread Philippe Rabier
Hi All, I resurrect this discussion again ;-) We had today the same symptom "Failed to contact..." which was persistent. We got this problem in the past but rarely. After googling "Failed to contact..." I found Kieran email. And we got the same result when executing the following command: iba

Re: WoMonitor "Failed to contact ..."

2013-08-03 Thread Philippe Rabier
>>at >> er.extensions.eof.ERXEnterpriseObjectCache.cache(ERXEnterpriseObjectCache.java:380) > > Do you have more than one EOF stack (Object Store Co-ordinator)? I have a > deadlock to investigate related to that. > > > Chuck > > > On 2013-08-02, at 7:49 AM, Philippe Ra

Fatal exception occurred: java.io.IOException when WO app is launched

2013-08-07 Thread Philippe Rabier
Hi all, Not a question. Just to feed Google because the email below saved my life. We are migrating You 'N Push from Mac OS X Server to Linux and one of our app failed to launch on Linux with the following log: Aug 07 10:29:55 YnpNOScheduler[2007] WARN NSLog - A fatal exception occurred: jav

Re: Application Login Page

2013-11-24 Thread Philippe Rabier
Hi Miguel, Sorry if it's a bit late but I can give you some piece of code. Not rocket science but maybe you won't lose time on this part. What we do: - reusable login panel + loginHelper - used in D2W and non D2W apps - of course no session until the user is authenticated - handle SSL in deploym

Re: Can someone please point me to sample ERQuartzScheduler code

2013-11-25 Thread Philippe Rabier
Hi Robert, Are you still interested by the example I used to demo ERQuartzScheduler the first time? I read your email this we and I adapted the code to ERQuartzScheduler instead of COScheduler (previous name). It's a simple example. Philippe On 17 sept. 2013, at 16:05, Theodore Petrosky wrot

Re: Which open source alternative to use to replace WebObjects 4.5.1/Objective-C codebase?

2013-12-02 Thread Philippe Rabier
Agree with Markus. I would be tempted by Andrus approach but that means you have to rewrite the applications entirely. We used in the past the Obj-C/java converter and it does a lot. We even transform Openstep applications to Java client and reused the Nib files !! You could take a couple of

A new article about Guava on wocommunity

2014-02-17 Thread Philippe Rabier
Hi the community, A brief email to let you know there is a new article about ERXEnterpriseObjectCache and Guava Cache. http://wiki.wocommunity.org/pages/viewpage.action?pageId=12943886 Enjoy. Philippe Rabier --- Web : http

Re: Flattened to-one relationship problems

2014-03-02 Thread Philippe Rabier
I don’t understand why you try to flatten a to-one relationship. You can flatten an attribute or a many2many relationship. Creating a many2many relationship is pretty straightforward: when you create a relationship between 2 entities, you choose to many on both sides, give a name to the join en

Re: Flattened to-one relationship problems

2014-03-06 Thread Philippe Rabier
f you took a set of to-one relationships that were > not class properties, you can flatten them. It would just be strange to > create the to-one relationships in that manner. > When I have a common path through some set of relationships, I usually > provide support for that in the class by cr

Re: Java 8

2014-03-26 Thread Philippe Rabier
A colleague installed Java 8 some months ago on his Mac for development purpose only. It worked great but as it wasn't the final version he reverted to Java 7 to have the same JVM as the rest of the team. Philippe - http://twitter.com/prabier Sent from my iPhone > On 26 M

Re: Mixing and matching prototypes

2014-04-17 Thread Philippe Rabier
I think there was a big lie at the last WOWODC: the first session was about how to write code clean in order to be read by a simple developer like David A. I trusted you but I'm not sure now you are what you said ;-) Philippe - http://twitter.com/prabier Sent from my iPhon

Re: Large response: Apache adaptor changing content-length header to Integer.MAX_VALUE

2014-05-19 Thread Philippe Rabier
Hi Hugi Would you consider using Apache FTP library in a WO app? I'm asking because we have also to deal with big files and preferred to use FTPS (FTP over SSL). The slides are on slideshare (look up WOCommunity). Bests, Philippe Rabier - http://twitter.com/prabier

Re: Which RIA

2014-05-21 Thread Philippe Rabier
We use it for a while without Montage Studio. Philippe Rabier - http://twitter.com/prabier Sent from my iPhone > On 21 May 2014, at 11:57, Frank Stock wrote: > > Hi All, > > I want to build new applications with a RIA framework. > I did some (very bas

Re: Which RIA

2014-05-21 Thread Philippe Rabier
. > > Frank > > > > Hi there, > > I think the real question is the backend technology - what are you using > here? WebServices - Hibernate? > Whats the data binding done with? > > You know www.vaadin.com? > > I now think its better than WO … > >

Re: Webobject project is not runing!

2014-07-07 Thread Philippe Rabier
I don't think so. I got something similar several years ago: it was unable to find the Application class. I was unable to fix it and I think I reinstalled everything on another computer I guess. Do you have a Mac? Can you try also to create a Wonder app? Philippe R

Re: The Good Path to D2W localization

2014-07-10 Thread Philippe Rabier
I agree with Fabian: I would add the key displayName like that: { name = ListUser; displayName = "ListUserKey"; action = "session.navController.listUserAction"; }, And in your Localizable.strings file, I put this: "Nav.ListUse

Re: EO*Qualifier implements equals() but not hashcode()

2014-07-19 Thread Philippe Rabier
That's very nasty … Philippe ;-) - http://twitter.com/prabier Sent from my iPhone On 19 juil. 2014, at 01:24, Chuck Hill wrote: > That is a favorite interview question. :-) > >> On Jul 18, 2014, at 4:00 PM, "Ramsey Gurley" wrote: >> >> Just a note. ERXArrayUtilities.dist

Re: D2W app date field is required ???

2014-07-22 Thread Philippe Rabier
If you have this kind of error, check your validateForSave method. Maybe do you just forget to call super.validateForSave()? There is nothing related to D2W or NSTimestamp attribute. And initializing your attribute with "now" is crap. If your users delete the value you will have fixed nothing.

Re: D2W app date field is required ???

2014-08-05 Thread Philippe Rabier
I would add to (almost) always call super.validateForSave() first. All your mandatory attributes are tested so you don’t need to write: if (myAttribute() != null) { // check some stuff } Your mandatory attributes can’t be null after super.validateForSave(). There are some rare circumstances wh

Re: angular and rest questions

2014-08-14 Thread Philippe Rabier
Hi Laurence, It's just by curiosity: what do you try to achieve with angular? Prepare some part of a page on the server side the send back to angular (a mix of data + HTML + javascript)? 1 member of our team gave it a try but didn't like it very much. And personally I don't know Angular. We

Re: ERRest with non-PK attribute

2014-09-26 Thread Philippe Rabier
It's very easy. You have to create a REST delegate which returns the value for the ID and fetches the object with the id contained in the route. Look at Pascal's slides on slideshare. One presentation ERRest in depth or something like that explains everything. Philippe - h

Re: URGENT help needed: app simply stopped working (sort of)

2014-09-29 Thread Philippe Rabier
Marcus, did you try to also deploy a very basic app? Can you disable any security like firewall ? What do you see in your apache logs? (You should see the requests and the http code) Philippe - http://twitter.com/prabier Sent from my iPhone > On 29 Sep 2014, at 22:59, Fabi

Re: ERRest skipping my NSDictionary

2014-10-10 Thread Philippe Rabier
he method which takes a key and a filter as parameters. Philippe Rabier - http://twitter.com/prabier Sent from my iPhone Philippe Rabier - http://twitter.com/prabier Sent from my iPhone > Anyone on this? > >> On 09/ott/2014, at 15:5

Re: ERRest skipping my NSDictionary

2014-10-11 Thread Philippe Rabier
omething wrong… but what’s the best way to move > dictionary attributes then? > > Thank you all in advance, > Riccardo > > On 10/ott/2014, at 23:59, Philippe Rabier wrote: > >> Hi Riccardo >> >> Did you think to create an alias and use it in your fil

Re: OT: The Beers of WOWODC

2015-05-02 Thread Philippe Rabier
Thanks for sharing, David. Even if I’m not unlucky as I’m in SF, I miss this WOWODC 2015. I like the real french man with the bier. Apparently, Chuck didn’t leave Vancouver this time… Philippe On 29 avr. 2015, at 04:52, David Avendasora wrote: > For those that were not able to make it to Ha

Re: WebObjects Caching Proxy

2015-05-12 Thread Philippe Rabier
Hi Vicky, I wrote an article 1 year ago on wocommunity: https://wiki.wocommunity.org/pages/viewpage.action?pageId=12943886 Maybe it can help you. Philippe http://www.youandpush.com On 7 mai 2015, at 14:20, Vicky Miller wrote: > Has anyone developed a WebObjects caching proxy solution? If so,

Re: Eclipse 4.5 (Mars) and wolips

2015-06-23 Thread Philippe Rabier
Of course you're not the only one to thank Wolfy for his work. Thank you. Philippe Rabier - http://twitter.com/prabier Sent from my iPhone > On 23 Jun 2015, at 20:20, Ramsey Gurley wrote: > > Thanks Wolfy > > I’m looking forward to some of the

Re: Joda LocalTime attribute in ERRest

2015-09-23 Thread Philippe Rabier
Hi Paul, You have to modify ERXRestUtils but I’m surprised it’s not already done. There are 2 methods: - convertValue to build the output - coerceValueToTypeNamed to convert input data For example, we wanted to support epoch format for NSTimestamp attributes so we modified a little bit ERXRestU

Re: velocity or.....for templates?

2015-10-10 Thread Philippe Rabier
Hi Tim, Rather than using ERXSimpleTemplateParser which is quite old, doesn’t handle repetitions, … I would take a look at Mustache - http://mustache.github.io I use this library for example: https://github.com/samskivert/jmustache Or WOComponent as said Samuel. But Mustache syntax is simple t

Re: Quick EOModel Column Locking ?

2016-03-19 Thread Philippe Rabier
Jeff, if you remove the lock, you have a risk to get a write-write conflict, aka a write replaced by another. It’s maybe not a big deal. I don’t know. Another solution, if you are sure your background db process is the only one to modify an attribute, is to use raw sql to update the column you w

Re: Quick EOModel Column Locking ?

2016-03-22 Thread Philippe Rabier
n wins will be fine. > > Would like to avoid SQL as there are a lot of fairly complicated computations > being performed so really want to stick with Java for that. > > Jeff > > > >> On Mar 18, 2016, at 1:02 PM, Philippe Rabier wrote: >> >> Jeff

Re: Sad news

2016-03-31 Thread Philippe Rabier
Chuck, why do you say that? François didn't drink. He just did kitesurfing with a friend… Philippe - http://twitter.com/prabier Sent from my iPhone > On 31 Mar 2016, at 21:07, Chuck Hill wrote: > > That is very sad news indeed. > > > If you drink, don’t drive. Please.

Re: How to avoid expensive fetches in database when setting to-one-relationship

2016-06-06 Thread Philippe Rabier
Hi Jeremy, I highly doubt that all toMany relationships are fetched without something that triggers the fetch. You can read this article if you want to optimize the requests: https://wiki.wocommunity.org/pages/viewpage.action?pageId=12943886

Re: WO server to connect to Apple's Push Notification Service for iOS

2011-02-16 Thread Philippe Rabier
Hi Andrew, We have developed, and still continue to develop, a notification platform (cross platform, multi application), online for almost one year. If I chime in, that because it's a service we provide to anyone who want to use it (in exchange of course of a monthly subscription fee ;-)). It'

Re: Memory control

2011-03-14 Thread Philippe Rabier
Don't forget you can also schedule your instances with WOMonitor. However, I know some "big" apps that are running several weeks without restart. So it's not a fatality… There is also JProfiler that is good tool (but not free). And there is an interesting WOWODC'08 video about Shark (I hope Sh

Re: Scheduled Actions

2011-03-31 Thread Philippe Rabier
I'm writing a framework that aims to offer the capability to schedule jobs. It's based on Quartz 2.0 - http://quartz-scheduler.org/ The goals are: - persistance is handled by EOF (Quartz offers a JDBC Job store but we use the RAMJobStore instead) - a simplified use of Quartz (only one trigger pe

Re: Scheduled Actions

2011-03-31 Thread Philippe Rabier
omplete? > > Regards, Kieran > > On Mar 31, 2011, at 5:19 AM, Philippe Rabier wrote: > >> I'm writing a framework that aims to offer the capability to schedule jobs. >> It's based on Quartz 2.0 - http://quartz-scheduler.org/ >> >> The goals are:

Re: Scheduled Actions

2011-03-31 Thread Philippe Rabier
On 31 mars 2011, at 14:06, Alexis Tual wrote: > Bonjour Philippe, Bonjour Alexis (did you recognize my accent? ;-)) > That's interesting, we've done something similar but very specific to our ERP > (several apps - one BDD) : > - modeling and persisting of scheduled actions with our own eomodel

Re: Concurrent Requests, Number of Instances & Scheduling

2011-04-05 Thread Philippe Rabier
I gonna give you some piece of code in a separate email. But you have to read the documentation a little bit. Philippe On 5 avr. 2011, at 03:19, Kevin Hinkson wrote: > > On 2011-04-04, at 9:13 PM, Mike Schrag wrote: > >> given that this is a service call from a cron job, there's really no re

Re: Session EC Exception

2011-04-21 Thread Philippe Rabier
EOF can't update a user because it's likely that the same user has been updated by another instance between the moment where the user has been fetched and the moment where is's saved. You should see that if you set EOAdaptorDebugEnabled to true (log4j.logger.er.transaction.adaptor.EOAdaptorDebug

Re: disposing of an EC

2011-07-20 Thread Philippe Rabier
Sorry Mike, I don't get you. Can you be more specific? Philippe On 20 juil. 2011, at 16:42, Mike Schrag wrote: >>> I am using an AjaxModalDialog when I create a new object for my app. The >>> content of the AMD is from a component. When this component is created, I >>> create an EC. >>> >>> s

Re: disposing of an EC

2011-07-21 Thread Philippe Rabier
es are made (see EditingContextDidSaveChangesNotification) and other > editing contexts listen for these. If you dispose of an ec as soon as you no > longer need it, NSNotificationCenter and the other ECs have less work to do. > > Chuck > > > On 2011-07-20, at 4:1

Re: WebObjects and servlets (Milton)

2011-08-03 Thread Philippe Rabier
Hi Jeremy, I didn't know Milton and I found the project interesting. I read this link: http://milton.ettrema.com/guide/non-servlet.html Why don't you include Milton that way? You could create a requestHandler and make a presentation at the next WOWODC. Philippe On 3 août 2011, at 09:04, Jérém

Re: D2W app and Excel and PDF generation example (also msg for David Holt)

2011-08-05 Thread Philippe Rabier
Hi Johan, (David, Q for you at then end) I have the same issue: I want to generate export list into an excel file but I didn't completely succeed because it took too much time to get it work (question of priority). But I'm not far. So if you are using ModernLook, I found informations: search

Re: D2W app and Excel and PDF generation example (also msg for David Holt)

2011-08-05 Thread Philippe Rabier
gt; over the place: > > 50 : *true* => controllerButtonComponentName = "ERXEmptyComponent" > [com.webobjects.directtoweb.Assignment] > 60 : pageConfiguration = 'ListMyBlogEntry' => controllerButtonComponentName = > "ERDControllerButton" [com.webobjects.directtoweb.Ass

Re: WebOjects Apache Adaptor for 16 Servers+

2011-08-26 Thread Philippe Rabier
Hi Stephan, Maybe one solution is to have 2 javaMonitor apps running in // by setting a different WOPort. Of course, you need also to configure the wotaskd instances accordingly. I do that but with web servers running on 2 different machines. I never try to have this configuration with only o

Re: WebOjects Apache Adaptor for 16 Servers+

2011-08-27 Thread Philippe Rabier
Stefan, you have to read the WO deployment guide wrote by Apple. If you don't have it google with this word: webobjects déployment guide pdf Philippe Sent from my iPhone On 26 août 2011, at 19:16, Chuck Hill wrote: > > On 2011-08-26, at 8:13 AM, Alexander Spohr wrote: > >> Our setup: >> >

Newbie question about ERRest

2011-09-02 Thread Philippe Rabier
Hi all, We are starting using ERRest in our team and I have a first question: The default way to get an object (in our case a Project) is : GET /ra/Project/id But suppose we have our own globalUID that is not the primary key or if we want to use something else (for example login for a user as w

Re: Newbie question about ERRest

2011-09-02 Thread Philippe Rabier
right? So by convention and I should say, "the default implementation", everything has been designed to get object based on their primary key, isn't it? Philippe On 2 sept. 2011, at 14:59, Pascal Robert wrote: > > Le 2011-09-02 à 08:49, Philippe Rabier a écrit : >

Re: Newbie question about ERRest

2011-09-02 Thread Philippe Rabier
Thanks Mike. I deduced that when I read the source code of your example. Philippe Sent from my iPhone On 2 sept. 2011, at 16:55, Mike Schrag wrote: >> So by convention and I should say, "the default implementation", everything >> has been designed to get object based on their primary key, i

Re: "Intro to ERRest" presentation?

2011-09-02 Thread Philippe Rabier
To be honest, the WOWODC'09 and '10 + the example are good enough to start and do some stuffs. Maybe some explanations on WOCommunity.org, something highly visible like: You want to use Rest with WO? Look at the videos x and y and use the sample code. We started to use ERRest yesterday so no p

Re: ModernLook fresh app, noobie question -- no add entity button?

2011-09-02 Thread Philippe Rabier
BTW, I tried to look at some video through iTunes (podcast) but it doesn't work 10 mn ago (this one : http://www.wocommunity.org/podcasts/wowodc/2010/GettingStartedWithWonder.mov ) If I remember correctly, iTunes doesn't host the videos. So it must have an issue somewhere. But it works on the

Feedback about issue with MySQL and get primary key

2011-09-04 Thread Philippe Rabier
Hi all, Not a question but a feedback if you have the same issue but I don't have explanation and I didn't look for any. Env: WO 5.4.3, java 6 on Mac OS X 10.6.7, Eclipse 3.4, Wonder a bit old (several months), MySQL v5.0.88 Context: DA where informations are checked, fetched then if everyth

Re: Feedback about issue with MySQL and get primary key

2011-09-05 Thread Philippe Rabier
ws > using this call, you need to generate the primary keys yourself. > > There is a better way to do this. See below. > > - ray > > On Sep 4, 2011, at 7:49 AM, Philippe Rabier wrote: > >> Hi all, >> >> Not a question but a feedback if you have the same

  1   2   >