WANTED: Ruby/RubyCocoa/Objective-C developer

2007-03-01 Thread Christopher Rasch

I'm a programmer at Marketocracy in San Mateo, California.  We operate a
long term stock market simulation at our website, marketocracy.com.  (1)

Most of our website was written in WebObjects/Objective-C code.
Unfortunately, Apple stopped supporting the WO/Objective-C platform
several years ago.  So far, we've managed to keep the site going, but
we're eventually going to have to port the code to a supported
platform.  Most of the old code will probably be ported to WO/Java, but
we'd also like to develop new applications in Ruby On Rails.

Consequently, we're looking to hire developers who are skilled in Ruby,
Objective-C, and bridge tools such as RubyCocoa.  If any of you know of
someone who you think would be interested, would you let me know?

Thanks for any help!

Chris


(1)  We give anyone who joins our website $1 million in play money, with
which they can create their own virtual mutual fund.   Every month, we
rank the funds on our site.  We then use the holdings and trades of the
top-ranked funds to manage a real-money mutual fund, MOFQX.  Like most
mutual funds, we make money by charging a percentage of the assets under
management in the fund.  We also pay the top-ranked members on our site
a percentage of that fee.


___
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: WANTED: WebObjects 4.51/Objective-C tutor

2007-03-01 Thread Christopher Rasch

Chuck Hill wrote:

Hi Chris,

I don't know how many of us Obj-C WO folks are still around.  I can 
think maybe 20 names.  Very few of us are still using Obj-C, maybe half 
a dozen?  My company moved, albeit kicking and screaming, to Java 
several years ago.  This is probably the best place to find someone, but 
finding anyone, let alone someone local, might be a challenge.  You 
might want to get your company to have someone come in for a week and 
give you some intensive training.  As far as rates go, you are probably 
going to be paying top development dollar.  Anyone that has been around 
since the days of Obj-C is going to be a senior developer and not go 
cheaply I am afraid.


Chuck



Hi Chuck,

Thanks!  Yes, I think you're right.  We probably should have begun the 
transition to WO/Java a while back.  We're in the process now of hiring 
people to make the transition to WO/Java.  In the meantime, we need to 
maintain the current code base, and I'm hoping that I'll be able to 
learn enough to be able to contribute.


Chris
___
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: WANTED: WebObjects 4.51/Objective-C tutor

2007-03-01 Thread Chuck Hill

On Mar 1, 2007, at 6:11 PM, Pascal Robert wrote:


Le 07-03-01 à 20:37, Chuck Hill a écrit :


Hi Chris,

I don't know how many of us Obj-C WO folks are still around.  I  
can think maybe 20 names.  Very few of us are still using Obj-C,  
maybe half a dozen?


But those 20 people always go to the feedback forum at WWDC to ask  
Apple why they dropped it :-)


LOL.  Yes, that is how I know there are about 20.:-P



And Apple is always the same : we asked you to migrate years ago.


Good advice as it turns out.

Chuck

--

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

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





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

This email sent to archive@mail-archive.com


Re: WANTED: WebObjects 4.51/Objective-C tutor

2007-03-01 Thread Alan Ward


Some of us gave up asking that years ago and now use Java ;-)

Alan

On Mar 1, 2007, at 7:11 PM, Pascal Robert wrote:



Le 07-03-01 à 20:37, Chuck Hill a écrit :


Hi Chris,

I don't know how many of us Obj-C WO folks are still around.  I  
can think maybe 20 names.  Very few of us are still using Obj-C,  
maybe half a dozen?


But those 20 people always go to the feedback forum at WWDC to ask  
Apple why they dropped it :-)  And Apple is always the same : we  
asked you to migrate years ago.

___
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/award% 
40apple.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 archive@mail-archive.com


Re: WANTED: WebObjects 4.51/Objective-C tutor

2007-03-01 Thread Pascal Robert


Le 07-03-01 à 20:37, Chuck Hill a écrit :


Hi Chris,

I don't know how many of us Obj-C WO folks are still around.  I can  
think maybe 20 names.  Very few of us are still using Obj-C, maybe  
half a dozen?


But those 20 people always go to the feedback forum at WWDC to ask  
Apple why they dropped it :-)  And Apple is always the same : we  
asked you to migrate years ago.

___
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: WANTED: WebObjects 4.51/Objective-C tutor

2007-03-01 Thread Chuck Hill

Hi Chris,

I don't know how many of us Obj-C WO folks are still around.  I can  
think maybe 20 names.  Very few of us are still using Obj-C, maybe  
half a dozen?  My company moved, albeit kicking and screaming, to  
Java several years ago.  This is probably the best place to find  
someone, but finding anyone, let alone someone local, might be a  
challenge.  You might want to get your company to have someone come  
in for a week and give you some intensive training.  As far as rates  
go, you are probably going to be paying top development dollar.   
Anyone that has been around since the days of Obj-C is going to be a  
senior developer and not go cheaply I am afraid.


Chuck


On Mar 1, 2007, at 4:45 PM, Christopher Rasch wrote:


Hi,

My company has a large body of WebObjects Objective-C code (WO  
4.51) that has been hacked to run on Tiger.  I'd like to learn how  
to maintain and modify it, but I've never programmed in WebObjects  
before. Therefore, I'm looking for someone in the Bay Area (I'm in  
San Mateo) to provide some one on one tutoring (how to get things  
set up and running, best practices, tips and tricks).  Any  
suggestions for who I might contact for such training would be  
greatly appreciated.


Also, what would be a reasonable hourly fee to offer?  Good places  
to advertise for such training?


Thanks for any help.

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


This email sent to [EMAIL PROTECTED]



--

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

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





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

This email sent to archive@mail-archive.com


Frontbase error

2007-03-01 Thread Jeff Schmitz
Anyone ever see this when trying to start a Frontbase database?   
Looks like it's going to be one of those nights...



Exception:  EXC_BAD_ACCESS (0x0001)
Codes:  KERN_PROTECTION_FAILURE (0x0002) at 0x

Thread 0:
0   libSystem.B.dylib   0x9002449f semaphore_wait_trap + 7
1   FrontBase   0x001b6358 0x1000 + 1790808
2   FrontBase   0x0016bdaa 0x1000 + 1486250
3   FrontBase   0x001707e7 0x1000 + 1505255
4   FrontBase   0x00171767 0x1000 + 1509223
5   FrontBase   0x0012b55b 0x1000 + 1221979
6   FrontBase   0x000ed66e 0x1000 + 968302
7   FrontBase   0x000f0017 0x1000 + 978967
8   FrontBase   0x000f101e 0x1000 + 983070
9   FrontBase   0xa5db 0x1000 + 38363
10  FrontBase   0x17ae 0x1000 + 1966
11  FrontBase   0x16d5 0x1000 + 1749

Thread 1:
0   libSystem.B.dylib   0x9002449f semaphore_wait_trap + 7
1   FrontBase   0x0002d66c 0x1000 + 181868
2   FrontBase   0x00140082 0x1000 + 1306754
3   libSystem.B.dylib   0x90023d87 _pthread_body + 84

Thread 2:
0   libSystem.B.dylib   0x9001db4c recvfrom + 12
1   FrontBase   0x0013f4e1 0x1000 + 1303777
2   FrontBase   0x0013f757 0x1000 + 1304407
3   FrontBase   0x0002d2af 0x1000 + 180911
4   FrontBase   0x00140082 0x1000 + 1306754
5   libSystem.B.dylib   0x90023d87 _pthread_body + 84

Thread 3 Crashed:
0   FrontBase   0x001a0e79 0x1000 + 1703545
1   FrontBase   0x001b59e7 0x1000 + 1788391
2   FrontBase   0x00140082 0x1000 + 1306754
3   libSystem.B.dylib   0x90023d87 _pthread_body + 84

Thread 4:
0   libSystem.B.dylib   0x9002449f semaphore_wait_trap + 7
1   FrontBase   0x001b5d57 0x1000 + 1789271
2   FrontBase   0x00140082 0x1000 + 1306754
3   libSystem.B.dylib   0x90023d87 _pthread_body + 84

Thread 3 crashed with X86 Thread State (32-bit):
  eax: 0xebx: 0x001a0dfe ecx: 0x edx: 0x
  edi: 0x01108010esi: 0x ebp: 0xb0179e48 esp: 0xb0179dd0
   ss: 0x001fefl: 0x00010282 eip: 0x001a0e79  cs: 0x0017
   ds: 0x001f es: 0x001f  fs: 0x  gs: 0x0037

Binary Images Description:
0x1000 -   0x1f3fff FrontBase   /Library/FrontBase/bin/FrontBase
0x8fe0 - 0x8fe49fff dyld 46.9   /usr/lib/dyld
0x9000 - 0x9016 libSystem.B.dylib   /usr/lib/libSystem.B.dylib
0x901bf000 - 0x901c1fff libmathCommon.A.dylib 	/usr/lib/system/ 
libmathCommon.A.dylib

0x90bcf000 - 0x90bd6fff libgcc_s.1.dylib/usr/lib/libgcc_s.1.dylib
0x91154000 - 0x91162fff libz.1.dylib/usr/lib/libz.1.dylib



___
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


WANTED: WebObjects 4.51/Objective-C tutor

2007-03-01 Thread Christopher Rasch

Hi,

My company has a large body of WebObjects Objective-C code (WO 4.51) 
that has been hacked to run on Tiger.  I'd like to learn how to maintain 
and modify it, but I've never programmed in WebObjects before. 
Therefore, I'm looking for someone in the Bay Area (I'm in San Mateo) to 
provide some one on one tutoring (how to get things set up and running, 
best practices, tips and tricks).  Any suggestions for who I might 
contact for such training would be greatly appreciated.


Also, what would be a reasonable hourly fee to offer?  Good places to 
advertise for such training?


Thanks for any help.

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


Server on MBP

2007-03-01 Thread Jeff Schmitz
Just saw this on the os/x server HW requirements.  Looks like I'm in  
for a quick run to the Apple store if my main server dies...
Xserve or Macintosh desktop computer with an Intel or PowerPC G5 or  
G4 processor

512MB of RAM
10GB of available disk space
Built-in FireWire
Jeff

On Mar 1, 2007, at 5:55 PM, Jeff Schmitz wrote:


Hello

I just installed Mac OS/X server 10.4 on my Macbook pro for use as  
a development/backup deployment platform, using the "Upgrade Client  
OS" option as they suggest.  However, now when I try to run the  
Server Admin program to setup my WebObjects wotaskd process, Server  
Admin says it can't connect to the server.  I tried using the  
computer name, and also localhost, but it still won't connect.   
Also, Server Admin connects to my main server that I have just fine.


So, as a work around, I tried adding the /System/Library/ 
LaunchDaemons/com.apple.wotaskd.plist file (which didn't exist btw)  
and setting the Disabled key to false as follows:



Disabled



But still no luck, it didn't start on reboot.  So, my question is,  
is there issues with running server 10.4 on a MBP?  And how can I  
get my wotaskd process to start on a reboot?  Should the plist file  
have any other options in it?  Any ideas?


Thanks,
Jeff
 ___
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/jeffandmonica% 
40mac.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 archive@mail-archive.com

Re: Refresh

2007-03-01 Thread Jeff Schmitz

Hello

I just installed Mac OS/X server 10.4 on my Macbook pro for use as a  
development/backup deployment platform, using the "Upgrade Client OS"  
option as they suggest.  However, now when I try to run the Server  
Admin program to setup my WebObjects wotaskd process, Server Admin  
says it can't connect to the server.  I tried using the computer  
name, and also localhost, but it still won't connect.  Also, Server  
Admin connects to my main server that I have just fine.


So, as a work around, I tried adding the /System/Library/ 
LaunchDaemons/com.apple.wotaskd.plist file (which didn't exist btw)  
and setting the Disabled key to false as follows:



Disabled



But still no luck, it didn't start on reboot.  So, my question is, is  
there issues with running server 10.4 on a MBP?  And how can I get my  
wotaskd process to start on a reboot?  Should the plist file have any  
other options in it?  Any ideas?


Thanks,
Jeff ___
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: saveChanges() not saving

2007-03-01 Thread Chuck Hill

Chuck: 47
EOF Glitches: 0

:-P

Glad to hear you found it so quickly.  Looks like someone owes you a  
beer!


Chuck


On Mar 1, 2007, at 12:29 PM, David Haggerty wrote:


Thanks... You were right I didn't dig far enough.  One of the other
programmers was setting values in the constructor of one of the parent
classes of EmailCommunicationRecipient.   I didn't go high enough  
up in

the hierachy.

I will refer to the commandments from now on when troublshooting an
issue like this.

Thanks so much for the guidance!
David

-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 2:57 PM
To: David Haggerty
Cc: Jerry W. Walker; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving

(a) Review the commandments

(b) The cause of the error may be far away (in terms of both time and
code) from the symptom you are seeing while saving.  Don't just focus
locally.

Chuck


On Mar 1, 2007, at 11:52 AM, David Haggerty wrote:


I over simplified the example...  I was trying to remove some of our
internal stuff and I left out the locking.

Same problem still occurs with the locking.

EOEditingContext ec = new EOEditingContext(); try {
   ec.lock();
   //   If I uncomment this, it saves properly.
   //   ec.committedSnapshotForObject(ecr);
   EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
   EOUtilities.faultWithPrimaryKeyValue(ec,
   "EmailCommunicationRecipient", new Integer(11312312));
   ecr.setDateSent(new NSTimestamp());
   ec.saveChanges();
} finally {
   ec.unlock();
}

Actually, in the original code I use our own EOEditingContext that
inherits from ERXEC.  Is it bad to rely on ERXEC doing the
autolocking?

-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 1:54 PM
To: Jerry W. Walker
Cc: David Haggerty; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving

No, I only had the regular size of stone tablet.  Four commandments
and I ran out of room.  Obviously, Moses shopped at Costco.

I supposed this could be considered a commandment, but it more falls
under locking.

Chuck



On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:


Hi, Chuck,

That's interesting. I went to the EOF commandments page and couldn't
find the commandment:

  * Don't do anything with a newly created Editing Context until
you've locked it and be sure to unlock it at the end of your use, or
at the end of your R-R cycle. (Don't worry about the WOSession's
defaultEditingContext since WOSession locks it for the entire
session.)

Didn't that use to be in there?

Regards,
Jerry

On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:


David,

In at least one place in your code you are abusing EOF.  This makes
EOF very cranky and, in return, it messes with your head.
Play nice and your problems will go away.  :-)

First, check very carefully that you are not violating one of the
EOF



Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
The_EOF_Commandments

Please don't respond that you are violating one of them and it is
just fine, because that is quite obviously not true.  I mention  
this



because this is often the first response of commandment violators.
Thou shalt not.  Really.  :-)

Next, enable NSLog.DebugGroupMultithreading and run through the  
app.



Look for exception traces in the log that indicate unlocked access.
Unlocked access is like playing Russian Roulette with one empty
chamber.  Fix them.


Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:


I have come across a rather strange problem.  Changes to an EO are
not saving properly.  In memory it shows that I have changed  
the EO



but when I look at the editingContext, it doesn't show it in
_unprocessedChanges.  It also doesn't save the change that I am
making.  I finally realized that if I call
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to
the object, it works fine.

Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp()); ec.saveChanges();

Strangely, if I do the following, the dateSent won't save but the
status will:

EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.committedSnapshotForObject(ecr);
addObjectToBothSidesOfRelationshipWithKey(aValue,
"toCurrentStatus");
ec.saveChanges();

The only thing special with EMailCommunicationRecipient is that it
is a single table inhertance in the model.

EMailCommunicationRecipient extends CommunicationRecipient which
extends AbstractCommunicationRecipient

RE: saveChanges() not saving

2007-03-01 Thread David Haggerty
Thanks... You were right I didn't dig far enough.  One of the other
programmers was setting values in the constructor of one of the parent
classes of EmailCommunicationRecipient.   I didn't go high enough up in
the hierachy. 

I will refer to the commandments from now on when troublshooting an
issue like this.

Thanks so much for the guidance!
David

-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 2:57 PM
To: David Haggerty
Cc: Jerry W. Walker; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving 

(a) Review the commandments

(b) The cause of the error may be far away (in terms of both time and
code) from the symptom you are seeing while saving.  Don't just focus
locally.

Chuck


On Mar 1, 2007, at 11:52 AM, David Haggerty wrote:

> I over simplified the example...  I was trying to remove some of our 
> internal stuff and I left out the locking.
>
> Same problem still occurs with the locking.
>
> EOEditingContext ec = new EOEditingContext(); try {
>ec.lock();
>//   If I uncomment this, it saves properly.
>//   ec.committedSnapshotForObject(ecr);
>EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
>EOUtilities.faultWithPrimaryKeyValue(ec,
>"EmailCommunicationRecipient", new Integer(11312312));
>ecr.setDateSent(new NSTimestamp());
>ec.saveChanges();
> } finally {
>ec.unlock();
> }
>
> Actually, in the original code I use our own EOEditingContext that 
> inherits from ERXEC.  Is it bad to rely on ERXEC doing the 
> autolocking?
>
> -Original Message-
> From: Chuck Hill [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 01, 2007 1:54 PM
> To: Jerry W. Walker
> Cc: David Haggerty; webobjects-dev@lists.apple.com
> Subject: Re: saveChanges() not saving
>
> No, I only had the regular size of stone tablet.  Four commandments 
> and I ran out of room.  Obviously, Moses shopped at Costco.
>
> I supposed this could be considered a commandment, but it more falls 
> under locking.
>
> Chuck
>
>
>
> On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:
>
>> Hi, Chuck,
>>
>> That's interesting. I went to the EOF commandments page and couldn't 
>> find the commandment:
>>
>>   * Don't do anything with a newly created Editing Context until 
>> you've locked it and be sure to unlock it at the end of your use, or 
>> at the end of your R-R cycle. (Don't worry about the WOSession's 
>> defaultEditingContext since WOSession locks it for the entire
>> session.)
>>
>> Didn't that use to be in there?
>>
>> Regards,
>> Jerry
>>
>> On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:
>>
>>> David,
>>>
>>> In at least one place in your code you are abusing EOF.  This makes 
>>> EOF very cranky and, in return, it messes with your head.
>>> Play nice and your problems will go away.  :-)
>>>
>>> First, check very carefully that you are not violating one of the 
>>> EOF
>
>>> Commandments:
>>> http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
>>> The_EOF_Commandments
>>>
>>> Please don't respond that you are violating one of them and it is 
>>> just fine, because that is quite obviously not true.  I mention this

>>> because this is often the first response of commandment violators.
>>> Thou shalt not.  Really.  :-)
>>>
>>> Next, enable NSLog.DebugGroupMultithreading and run through the app.
>
>>> Look for exception traces in the log that indicate unlocked access.
>>> Unlocked access is like playing Russian Roulette with one empty 
>>> chamber.  Fix them.
>>>
>>>
>>> Chuck
>>>
>>>
>>>
>>> On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:
>>>
 I have come across a rather strange problem.  Changes to an EO are 
 not saving properly.  In memory it shows that I have changed the EO

 but when I look at the editingContext, it doesn't show it in 
 _unprocessedChanges.  It also doesn't save the change that I am 
 making.  I finally realized that if I call 
 ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to 
 the object, it works fine.

 Here's an example of the code:

 EOEditingContext ec = new EOEditingContext();
 //   If I uncomment this, it saves properly.
 //   ec.committedSnapshotForObject(ecr);
 EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
 EOUtilities.faultWithPrimaryKeyValue(ec,
 "EmailCommunicationRecipient", new Integer(11312312)); 
 ecr.setDateSent(new NSTimestamp()); ec.saveChanges();

 Strangely, if I do the following, the dateSent won't save but the 
 status will:

 EOEditingContext ec = new EOEditingContext(); 
 EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
 EOUtilities.faultWithPrimaryKeyValue(ec,
 "EmailCommunicationRecipient", new Integer(11312312)); 
 ecr.setDateSent(new NSTimestamp()); 
 ec.committedSnapshotForObject(ecr);
 addObjectToBothSidesOfRelationshipWithKey(aValue,
 "toCurrentStatus");
 ec.saveChanges();

>>>

Re: saveChanges() not saving

2007-03-01 Thread Ken Anderson

Agreed, especially if it happens every time

I've had this happen before, and sometimes it had to do with ending  
up with 2 copies of an object because one was created automatically  
for a mandatory to-one relationship.  Any chance of that here?


Ken

On Mar 1, 2007, at 3:23 PM, Chuck Hill wrote:

All that said, the symptoms sound more to me like violating one of  
the commandments.


Chuck


On Mar 1, 2007, at 12:16 PM, Mike Schrag wrote:

If you're using ERD2W, I think you can just let it do its thing,  
but if you're not, my happy place with autolocking is:


er.extensions.ERXApplication.useEditingContextUnlocker=true
er.extensions.ERXEC.defaultAutomaticLockUnlock=true
er.extensions.ERXEC.useSharedEditingContext=false
er.extensions.ERXEC.defaultCoalesceAutoLocks=true

useEditingContextUnlocker cleans up left-open locks at the end of  
the request


defaultAutomaticLockUnlock makes sure that every call is in a lock

useSharedEditingContext turns off SEC (which just prevents all  
sorts of odd issues if you're not using SEC)


defaultCoalesceAutoLocks is the slightly controversial, yet solves- 
all-the-worlds-problems-for-me feature ... with autolock/unlock  
you lose the higher level transaction semantic and you churn the  
lock for every call you make, potentially causing problems if  
you're in the middle of a multi-call process.   
defaultCoalesceAutoLocks will let the first lock hang open until  
the end of the request, where it will be closed by the editing  
context unlocker.  This essentially gives you a lock for the  
duration of the request.


ms

On Mar 1, 2007, at 2:52 PM, David Haggerty wrote:


I over simplified the example...  I was trying to remove some of our
internal stuff and I left out the locking.

Same problem still occurs with the locking.

EOEditingContext ec = new EOEditingContext();
try {
   ec.lock();
   //   If I uncomment this, it saves properly.
   //   ec.committedSnapshotForObject(ecr);
   EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
   EOUtilities.faultWithPrimaryKeyValue(ec,
   "EmailCommunicationRecipient", new Integer(11312312));
   ecr.setDateSent(new NSTimestamp());
   ec.saveChanges();
} finally {
   ec.unlock();
}

Actually, in the original code I use our own EOEditingContext that
inherits from ERXEC.  Is it bad to rely on ERXEC doing the  
autolocking?


-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 1:54 PM
To: Jerry W. Walker
Cc: David Haggerty; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving

No, I only had the regular size of stone tablet.  Four  
commandments and

I ran out of room.  Obviously, Moses shopped at Costco.

I supposed this could be considered a commandment, but it more falls
under locking.

Chuck



On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:


Hi, Chuck,

That's interesting. I went to the EOF commandments page and  
couldn't

find the commandment:

  * Don't do anything with a newly created Editing Context until
you've locked it and be sure to unlock it at the end of your  
use, or

at the end of your R-R cycle. (Don't worry about the WOSession's
defaultEditingContext since WOSession locks it for the entire
session.)

Didn't that use to be in there?

Regards,
Jerry

On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:


David,

In at least one place in your code you are abusing EOF.  This
makes EOF very cranky and, in return, it messes with your head.
Play nice and your problems will go away.  :-)

First, check very carefully that you are not violating one of  
the EOF



Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
The_EOF_Commandments

Please don't respond that you are violating one of them and it is
just fine, because that is quite obviously not true.  I mention  
this

because this is often the first response of commandment violators.
Thou shalt not.  Really.  :-)

Next, enable NSLog.DebugGroupMultithreading and run through the  
app.


Look for exception traces in the log that indicate unlocked  
access.

Unlocked access is like playing Russian Roulette with one empty
chamber.  Fix them.


Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:


I have come across a rather strange problem.  Changes to an EO
are not saving properly.  In memory it shows that I have changed
the EO but when I look at the editingContext, it doesn't show it
in _unprocessedChanges.  It also doesn't save the change that I
am making.  I finally realized that if I call
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to
the object, it works fine.

Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.saveChange

Re: saveChanges() not saving

2007-03-01 Thread Chuck Hill
All that said, the symptoms sound more to me like violating one of  
the commandments.


Chuck


On Mar 1, 2007, at 12:16 PM, Mike Schrag wrote:

If you're using ERD2W, I think you can just let it do its thing,  
but if you're not, my happy place with autolocking is:


er.extensions.ERXApplication.useEditingContextUnlocker=true
er.extensions.ERXEC.defaultAutomaticLockUnlock=true
er.extensions.ERXEC.useSharedEditingContext=false
er.extensions.ERXEC.defaultCoalesceAutoLocks=true

useEditingContextUnlocker cleans up left-open locks at the end of  
the request


defaultAutomaticLockUnlock makes sure that every call is in a lock

useSharedEditingContext turns off SEC (which just prevents all  
sorts of odd issues if you're not using SEC)


defaultCoalesceAutoLocks is the slightly controversial, yet solves- 
all-the-worlds-problems-for-me feature ... with autolock/unlock you  
lose the higher level transaction semantic and you churn the lock  
for every call you make, potentially causing problems if you're in  
the middle of a multi-call process.  defaultCoalesceAutoLocks will  
let the first lock hang open until the end of the request, where it  
will be closed by the editing context unlocker.  This essentially  
gives you a lock for the duration of the request.


ms

On Mar 1, 2007, at 2:52 PM, David Haggerty wrote:


I over simplified the example...  I was trying to remove some of our
internal stuff and I left out the locking.

Same problem still occurs with the locking.

EOEditingContext ec = new EOEditingContext();
try {
   ec.lock();
   //   If I uncomment this, it saves properly.
   //   ec.committedSnapshotForObject(ecr);
   EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
   EOUtilities.faultWithPrimaryKeyValue(ec,
   "EmailCommunicationRecipient", new Integer(11312312));
   ecr.setDateSent(new NSTimestamp());
   ec.saveChanges();
} finally {
   ec.unlock();
}

Actually, in the original code I use our own EOEditingContext that
inherits from ERXEC.  Is it bad to rely on ERXEC doing the  
autolocking?


-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 1:54 PM
To: Jerry W. Walker
Cc: David Haggerty; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving

No, I only had the regular size of stone tablet.  Four  
commandments and

I ran out of room.  Obviously, Moses shopped at Costco.

I supposed this could be considered a commandment, but it more falls
under locking.

Chuck



On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:


Hi, Chuck,

That's interesting. I went to the EOF commandments page and couldn't
find the commandment:

  * Don't do anything with a newly created Editing Context until
you've locked it and be sure to unlock it at the end of your use, or
at the end of your R-R cycle. (Don't worry about the WOSession's
defaultEditingContext since WOSession locks it for the entire
session.)

Didn't that use to be in there?

Regards,
Jerry

On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:


David,

In at least one place in your code you are abusing EOF.  This
makes EOF very cranky and, in return, it messes with your head.
Play nice and your problems will go away.  :-)

First, check very carefully that you are not violating one of  
the EOF



Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
The_EOF_Commandments

Please don't respond that you are violating one of them and it is
just fine, because that is quite obviously not true.  I mention  
this

because this is often the first response of commandment violators.
Thou shalt not.  Really.  :-)

Next, enable NSLog.DebugGroupMultithreading and run through the  
app.



Look for exception traces in the log that indicate unlocked access.
Unlocked access is like playing Russian Roulette with one empty
chamber.  Fix them.


Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:


I have come across a rather strange problem.  Changes to an EO
are not saving properly.  In memory it shows that I have changed
the EO but when I look at the editingContext, it doesn't show it
in _unprocessedChanges.  It also doesn't save the change that I
am making.  I finally realized that if I call
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to
the object, it works fine.

Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.saveChanges();

Strangely, if I do the following, the dateSent won't save but the
status will:

EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTim

Re: saveChanges() not saving

2007-03-01 Thread Mike Schrag
If you're using ERD2W, I think you can just let it do its thing, but  
if you're not, my happy place with autolocking is:


er.extensions.ERXApplication.useEditingContextUnlocker=true
er.extensions.ERXEC.defaultAutomaticLockUnlock=true
er.extensions.ERXEC.useSharedEditingContext=false
er.extensions.ERXEC.defaultCoalesceAutoLocks=true

useEditingContextUnlocker cleans up left-open locks at the end of the  
request


defaultAutomaticLockUnlock makes sure that every call is in a lock

useSharedEditingContext turns off SEC (which just prevents all sorts  
of odd issues if you're not using SEC)


defaultCoalesceAutoLocks is the slightly controversial, yet solves- 
all-the-worlds-problems-for-me feature ... with autolock/unlock you  
lose the higher level transaction semantic and you churn the lock for  
every call you make, potentially causing problems if you're in the  
middle of a multi-call process.  defaultCoalesceAutoLocks will let  
the first lock hang open until the end of the request, where it will  
be closed by the editing context unlocker.  This essentially gives  
you a lock for the duration of the request.


ms

On Mar 1, 2007, at 2:52 PM, David Haggerty wrote:


I over simplified the example...  I was trying to remove some of our
internal stuff and I left out the locking.

Same problem still occurs with the locking.

EOEditingContext ec = new EOEditingContext();
try {
   ec.lock();
   //   If I uncomment this, it saves properly.
   //   ec.committedSnapshotForObject(ecr);
   EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
   EOUtilities.faultWithPrimaryKeyValue(ec,
   "EmailCommunicationRecipient", new Integer(11312312));
   ecr.setDateSent(new NSTimestamp());
   ec.saveChanges();
} finally {
   ec.unlock();
}

Actually, in the original code I use our own EOEditingContext that
inherits from ERXEC.  Is it bad to rely on ERXEC doing the  
autolocking?


-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 1:54 PM
To: Jerry W. Walker
Cc: David Haggerty; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving

No, I only had the regular size of stone tablet.  Four commandments  
and

I ran out of room.  Obviously, Moses shopped at Costco.

I supposed this could be considered a commandment, but it more falls
under locking.

Chuck



On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:


Hi, Chuck,

That's interesting. I went to the EOF commandments page and couldn't
find the commandment:

  * Don't do anything with a newly created Editing Context until
you've locked it and be sure to unlock it at the end of your use, or
at the end of your R-R cycle. (Don't worry about the WOSession's
defaultEditingContext since WOSession locks it for the entire
session.)

Didn't that use to be in there?

Regards,
Jerry

On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:


David,

In at least one place in your code you are abusing EOF.  This
makes EOF very cranky and, in return, it messes with your head.
Play nice and your problems will go away.  :-)

First, check very carefully that you are not violating one of the  
EOF



Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
The_EOF_Commandments

Please don't respond that you are violating one of them and it is
just fine, because that is quite obviously not true.  I mention this
because this is often the first response of commandment violators.
Thou shalt not.  Really.  :-)

Next, enable NSLog.DebugGroupMultithreading and run through the app.



Look for exception traces in the log that indicate unlocked access.
Unlocked access is like playing Russian Roulette with one empty
chamber.  Fix them.


Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:


I have come across a rather strange problem.  Changes to an EO
are not saving properly.  In memory it shows that I have changed
the EO but when I look at the editingContext, it doesn't show it
in _unprocessedChanges.  It also doesn't save the change that I
am making.  I finally realized that if I call
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to
the object, it works fine.

Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.saveChanges();

Strangely, if I do the following, the dateSent won't save but the
status will:

EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.committedSnapshotForObject(ecr);
addObjectToBothSidesOfRelationshipWithKey(aValue,
"toCurrentStatus");
ec.saveChanges();

The only thing 

Re: saveChanges() not saving

2007-03-01 Thread Guido Neitzer

On 01.03.2007, at 12:52, David Haggerty wrote:


Is it bad to rely on ERXEC doing the autolocking?


Not as far as I know, if you have the correct settings for  
autolocking in the Properties. ERXEC autolocking works for me since  
years.


cug


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

This email sent to archive@mail-archive.com


Re: saveChanges() not saving

2007-03-01 Thread Chuck Hill


On Mar 1, 2007, at 11:29 AM, Jerry W. Walker wrote:


According to Cecil B. DeMille, moses used TWO tablets.


That is just a movie.  Have you ever seen an accurate movie?


I guess web pages aren't as cheap as stone...  wait a minute...   
yes they are! You must be using that special deluxe stone quarried  
out of Queen Elizabeth Park.


And I have to smuggle them out in the dead of night.



C'mon, you're going to skimp on stones in the search for TRUTH?


What?  You sayin' I lack the stones?!!?

Chuck

Must be getting close to Friday, must be...





On Mar 1, 2007, at 1:54 PM, Chuck Hill wrote:

No, I only had the regular size of stone tablet.  Four  
commandments and I ran out of room.  Obviously, Moses shopped at  
Costco.


I supposed this could be considered a commandment, but it more  
falls under locking.





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


[EMAIL PROTECTED]
203 278-4085office






--

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

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





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

This email sent to archive@mail-archive.com


Re: saveChanges() not saving

2007-03-01 Thread Chuck Hill

(a) Review the commandments

(b) The cause of the error may be far away (in terms of both time and  
code) from the symptom you are seeing while saving.  Don't just focus  
locally.


Chuck


On Mar 1, 2007, at 11:52 AM, David Haggerty wrote:


I over simplified the example...  I was trying to remove some of our
internal stuff and I left out the locking.

Same problem still occurs with the locking.

EOEditingContext ec = new EOEditingContext();
try {
   ec.lock();
   //   If I uncomment this, it saves properly.
   //   ec.committedSnapshotForObject(ecr);
   EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
   EOUtilities.faultWithPrimaryKeyValue(ec,
   "EmailCommunicationRecipient", new Integer(11312312));
   ecr.setDateSent(new NSTimestamp());
   ec.saveChanges();
} finally {
   ec.unlock();
}

Actually, in the original code I use our own EOEditingContext that
inherits from ERXEC.  Is it bad to rely on ERXEC doing the  
autolocking?


-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 1:54 PM
To: Jerry W. Walker
Cc: David Haggerty; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving

No, I only had the regular size of stone tablet.  Four commandments  
and

I ran out of room.  Obviously, Moses shopped at Costco.

I supposed this could be considered a commandment, but it more falls
under locking.

Chuck



On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:


Hi, Chuck,

That's interesting. I went to the EOF commandments page and couldn't
find the commandment:

  * Don't do anything with a newly created Editing Context until
you've locked it and be sure to unlock it at the end of your use, or
at the end of your R-R cycle. (Don't worry about the WOSession's
defaultEditingContext since WOSession locks it for the entire
session.)

Didn't that use to be in there?

Regards,
Jerry

On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:


David,

In at least one place in your code you are abusing EOF.  This
makes EOF very cranky and, in return, it messes with your head.
Play nice and your problems will go away.  :-)

First, check very carefully that you are not violating one of the  
EOF



Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
The_EOF_Commandments

Please don't respond that you are violating one of them and it is
just fine, because that is quite obviously not true.  I mention this
because this is often the first response of commandment violators.
Thou shalt not.  Really.  :-)

Next, enable NSLog.DebugGroupMultithreading and run through the app.



Look for exception traces in the log that indicate unlocked access.
Unlocked access is like playing Russian Roulette with one empty
chamber.  Fix them.


Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:


I have come across a rather strange problem.  Changes to an EO
are not saving properly.  In memory it shows that I have changed
the EO but when I look at the editingContext, it doesn't show it
in _unprocessedChanges.  It also doesn't save the change that I
am making.  I finally realized that if I call
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to
the object, it works fine.

Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.saveChanges();

Strangely, if I do the following, the dateSent won't save but the
status will:

EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient)
EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.committedSnapshotForObject(ecr);
addObjectToBothSidesOfRelationshipWithKey(aValue,
"toCurrentStatus");
ec.saveChanges();

The only thing special with EMailCommunicationRecipient is that
it is a single table inhertance in the model.

EMailCommunicationRecipient extends CommunicationRecipient which
extends AbstractCommunicationRecipient.

Until I figure out what's going on, I was going to just add the
following (because I just don't know how many places this is
happening).  Will this add much overhead?:

public void awakeFromFetch(EOEditingContext ec){
super.awakeFromFetch(ec);
ec.committedSnapshotForObject(ecr);
}

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

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their
overall knowledge of WebOb

RE: saveChanges() not saving

2007-03-01 Thread David Haggerty
I over simplified the example...  I was trying to remove some of our
internal stuff and I left out the locking.

Same problem still occurs with the locking.

EOEditingContext ec = new EOEditingContext();
try {
   ec.lock();
   //   If I uncomment this, it saves properly.
   //   ec.committedSnapshotForObject(ecr);
   EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
   EOUtilities.faultWithPrimaryKeyValue(ec,  
   "EmailCommunicationRecipient", new Integer(11312312));
   ecr.setDateSent(new NSTimestamp());
   ec.saveChanges();
} finally {
   ec.unlock();
}

Actually, in the original code I use our own EOEditingContext that
inherits from ERXEC.  Is it bad to rely on ERXEC doing the autolocking?

-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 1:54 PM
To: Jerry W. Walker
Cc: David Haggerty; webobjects-dev@lists.apple.com
Subject: Re: saveChanges() not saving 

No, I only had the regular size of stone tablet.  Four commandments and
I ran out of room.  Obviously, Moses shopped at Costco.

I supposed this could be considered a commandment, but it more falls
under locking.

Chuck



On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:

> Hi, Chuck,
>
> That's interesting. I went to the EOF commandments page and couldn't 
> find the commandment:
>
>   * Don't do anything with a newly created Editing Context until 
> you've locked it and be sure to unlock it at the end of your use, or 
> at the end of your R-R cycle. (Don't worry about the WOSession's 
> defaultEditingContext since WOSession locks it for the entire
> session.)
>
> Didn't that use to be in there?
>
> Regards,
> Jerry
>
> On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:
>
>> David,
>>
>> In at least one place in your code you are abusing EOF.  This  
>> makes EOF very cranky and, in return, it messes with your head.   
>> Play nice and your problems will go away.  :-)
>>
>> First, check very carefully that you are not violating one of the EOF

>> Commandments:
>> http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
>> The_EOF_Commandments
>>
>> Please don't respond that you are violating one of them and it is 
>> just fine, because that is quite obviously not true.  I mention this 
>> because this is often the first response of commandment violators.  
>> Thou shalt not.  Really.  :-)
>>
>> Next, enable NSLog.DebugGroupMultithreading and run through the app.

>> Look for exception traces in the log that indicate unlocked access.  
>> Unlocked access is like playing Russian Roulette with one empty 
>> chamber.  Fix them.
>>
>>
>> Chuck
>>
>>
>>
>> On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:
>>
>>> I have come across a rather strange problem.  Changes to an EO  
>>> are not saving properly.  In memory it shows that I have changed  
>>> the EO but when I look at the editingContext, it doesn't show it  
>>> in _unprocessedChanges.  It also doesn't save the change that I  
>>> am making.  I finally realized that if I call  
>>> ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to  
>>> the object, it works fine.
>>>
>>> Here's an example of the code:
>>>
>>> EOEditingContext ec = new EOEditingContext();
>>> //   If I uncomment this, it saves properly.
>>> //   ec.committedSnapshotForObject(ecr);
>>> EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
>>> EOUtilities.faultWithPrimaryKeyValue(ec,  
>>> "EmailCommunicationRecipient", new Integer(11312312));
>>> ecr.setDateSent(new NSTimestamp());
>>> ec.saveChanges();
>>>
>>> Strangely, if I do the following, the dateSent won't save but the  
>>> status will:
>>>
>>> EOEditingContext ec = new EOEditingContext();
>>> EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
>>> EOUtilities.faultWithPrimaryKeyValue(ec,  
>>> "EmailCommunicationRecipient", new Integer(11312312));
>>> ecr.setDateSent(new NSTimestamp());
>>> ec.committedSnapshotForObject(ecr);
>>> addObjectToBothSidesOfRelationshipWithKey(aValue,  
>>> "toCurrentStatus");
>>> ec.saveChanges();
>>>
>>> The only thing special with EMailCommunicationRecipient is that  
>>> it is a single table inhertance in the model.
>>>
>>> EMailCommunicationRecipient extends CommunicationRecipient which  
>>> extends AbstractCommunicationRecipient.
>>>
>>> Until I figure out what's going on, I was going to just add the  
>>> following (because I just don't know how many places this is  
>>> happening).  Will this add much overhead?:
>>>
>>> public void awakeFromFetch(EOEditingContext ec){
>>> super.awakeFromFetch(ec);
>>> ec.committedSnapshotForObject(ecr);
>>> }
>>>
>>> Thanks,
>>> David
>>>  ___
>>> 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 [E

Re: saveChanges() not saving

2007-03-01 Thread Jerry W. Walker
According to Cecil B. DeMille, moses used TWO tablets. I guess web  
pages aren't as cheap as stone...  wait a minute...  yes they are!  
You must be using that special deluxe stone quarried out of Queen  
Elizabeth Park.


C'mon, you're going to skimp on stones in the search for TRUTH?

Regards,
Jerry

On Mar 1, 2007, at 1:54 PM, Chuck Hill wrote:

No, I only had the regular size of stone tablet.  Four commandments  
and I ran out of room.  Obviously, Moses shopped at Costco.


I supposed this could be considered a commandment, but it more  
falls under locking.





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


[EMAIL PROTECTED]
203 278-4085office



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

This email sent to archive@mail-archive.com


Re: Using CommuniGate Pro with Java/WO

2007-03-01 Thread Pascal Robert
This is strange, it seems that the line deliminator for the  
disclaimer of the list was added to the link :-/  Ok, so with a  
couple of returns, it should be fine :-)




http://community.os.ca/2007/03/01/using-communigate-pro-with-java-or- 
webobjects






Pascal,

When I click the link, it says 'Error 404 - Not Found'.

Ken

On Mar 1, 2007, at 1:59 PM, Pascal Robert wrote:


Small tidbit that I just wrote (with my very bad English) :

	http://community.os.ca/2007/03/01/using-communigate-pro-with-java- 
or-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/lists% 
40anderhome.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 archive@mail-archive.com


Re: Using CommuniGate Pro with Java/WO

2007-03-01 Thread Chuck Hill
Something adds a lot of  to the end of the  
URL.  Edit those off and you can read it.


Chuck

On Mar 1, 2007, at 11:01 AM, Ken Anderson wrote:


Pascal,

When I click the link, it says 'Error 404 - Not Found'.

Ken

On Mar 1, 2007, at 1:59 PM, Pascal Robert wrote:


Small tidbit that I just wrote (with my very bad English) :

	http://community.os.ca/2007/03/01/using-communigate-pro-with-java- 
or-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/lists% 
40anderhome.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]



--

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

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





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

This email sent to archive@mail-archive.com


Re: Using CommuniGate Pro with Java/WO

2007-03-01 Thread Ken Anderson

Pascal,

When I click the link, it says 'Error 404 - Not Found'.

Ken

On Mar 1, 2007, at 1:59 PM, Pascal Robert wrote:


Small tidbit that I just wrote (with my very bad English) :

	http://community.os.ca/2007/03/01/using-communigate-pro-with-java- 
or-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/lists% 
40anderhome.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 archive@mail-archive.com


Using CommuniGate Pro with Java/WO

2007-03-01 Thread Pascal Robert

Small tidbit that I just wrote (with my very bad English) :

	http://community.os.ca/2007/03/01/using-communigate-pro-with-java-or- 
webobjects

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

This email sent to archive@mail-archive.com


Re: saveChanges() not saving

2007-03-01 Thread Chuck Hill
No, I only had the regular size of stone tablet.  Four commandments  
and I ran out of room.  Obviously, Moses shopped at Costco.


I supposed this could be considered a commandment, but it more falls  
under locking.


Chuck



On Mar 1, 2007, at 10:50 AM, Jerry W. Walker wrote:


Hi, Chuck,

That's interesting. I went to the EOF commandments page and  
couldn't find the commandment:


  * Don't do anything with a newly created Editing Context until  
you've locked it and be sure to unlock it at the end of your use,  
or at the end of your R-R cycle. (Don't worry about the WOSession's  
defaultEditingContext since WOSession locks it for the entire  
session.)


Didn't that use to be in there?

Regards,
Jerry

On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:


David,

In at least one place in your code you are abusing EOF.  This  
makes EOF very cranky and, in return, it messes with your head.   
Play nice and your problems will go away.  :-)


First, check very carefully that you are not violating one of the  
EOF Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ 
The_EOF_Commandments


Please don't respond that you are violating one of them and it is  
just fine, because that is quite obviously not true.  I mention  
this because this is often the first response of commandment  
violators.  Thou shalt not.  Really.  :-)


Next, enable NSLog.DebugGroupMultithreading and run through the  
app.  Look for exception traces in the log that indicate unlocked  
access.  Unlocked access is like playing Russian Roulette with one  
empty chamber.  Fix them.



Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:

I have come across a rather strange problem.  Changes to an EO  
are not saving properly.  In memory it shows that I have changed  
the EO but when I look at the editingContext, it doesn't show it  
in _unprocessedChanges.  It also doesn't save the change that I  
am making.  I finally realized that if I call  
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to  
the object, it works fine.


Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
EOUtilities.faultWithPrimaryKeyValue(ec,  
"EmailCommunicationRecipient", new Integer(11312312));

ecr.setDateSent(new NSTimestamp());
ec.saveChanges();

Strangely, if I do the following, the dateSent won't save but the  
status will:


EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
EOUtilities.faultWithPrimaryKeyValue(ec,  
"EmailCommunicationRecipient", new Integer(11312312));

ecr.setDateSent(new NSTimestamp());
ec.committedSnapshotForObject(ecr);
addObjectToBothSidesOfRelationshipWithKey(aValue,  
"toCurrentStatus");

ec.saveChanges();

The only thing special with EMailCommunicationRecipient is that  
it is a single table inhertance in the model.


EMailCommunicationRecipient extends CommunicationRecipient which  
extends AbstractCommunicationRecipient.


Until I figure out what's going on, I was going to just add the  
following (because I just don't know how many places this is  
happening).  Will this add much overhead?:


public void awakeFromFetch(EOEditingContext ec){
super.awakeFromFetch(ec);
ec.committedSnapshotForObject(ecr);
}

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


This email sent to [EMAIL PROTECTED]


--

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

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





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


This email sent to [EMAIL PROTECTED]



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


[EMAIL PROTECTED]
203 278-4085office






--

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

Re: Flash and WebObjects

2007-03-01 Thread Josh Paul

Most definitely. It'll depend on your approach with Flash, meaning whether
you want the swf to communicate directly or if you want it to read from the
resulting HTML (_root and parameters). In the first instance, you'll likely
want WO to respond with XML and use Flash's LoadVars. In the second, you'd
want your resulting HTML to contain the parameters you're attempting to
pass. For reference, you might want to look at the QuickTime component I
wrote a while ago:

  http://www.overhyped.com/downloads/OQT.tgz

You can also use QuickTime and WO to do some fun stuff...here's a sample of
what I've been doing lately:

  http://www.aweli.com/lab/cereal.html

HTH,

joshpaul

Date: Thu, 1 Mar 2007 17:51:33 +0100


Hello,

I can play swf files within a wo page (via WOEmbeddedObject)but I
wonder if It is possible to create and give
parameters with WebObjects??

Thank you.

Bruno.
 ___
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: saveChanges() not saving

2007-03-01 Thread Jerry W. Walker

Hi, Chuck,

That's interesting. I went to the EOF commandments page and couldn't  
find the commandment:


  * Don't do anything with a newly created Editing Context until  
you've locked it and be sure to unlock it at the end of your use, or  
at the end of your R-R cycle. (Don't worry about the WOSession's  
defaultEditingContext since WOSession locks it for the entire session.)


Didn't that use to be in there?

Regards,
Jerry

On Mar 1, 2007, at 1:25 PM, Chuck Hill wrote:


David,

In at least one place in your code you are abusing EOF.  This makes  
EOF very cranky and, in return, it messes with your head.  Play  
nice and your problems will go away.  :-)


First, check very carefully that you are not violating one of the  
EOF Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ 
The_EOF_Commandments


Please don't respond that you are violating one of them and it is  
just fine, because that is quite obviously not true.  I mention  
this because this is often the first response of commandment  
violators.  Thou shalt not.  Really.  :-)


Next, enable NSLog.DebugGroupMultithreading and run through the  
app.  Look for exception traces in the log that indicate unlocked  
access.  Unlocked access is like playing Russian Roulette with one  
empty chamber.  Fix them.



Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:

I have come across a rather strange problem.  Changes to an EO are  
not saving properly.  In memory it shows that I have changed the  
EO but when I look at the editingContext, it doesn't show it in  
_unprocessedChanges.  It also doesn't save the change that I am  
making.  I finally realized that if I call  
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to  
the object, it works fine.


Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
EOUtilities.faultWithPrimaryKeyValue(ec,  
"EmailCommunicationRecipient", new Integer(11312312));

ecr.setDateSent(new NSTimestamp());
ec.saveChanges();

Strangely, if I do the following, the dateSent won't save but the  
status will:


EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
EOUtilities.faultWithPrimaryKeyValue(ec,  
"EmailCommunicationRecipient", new Integer(11312312));

ecr.setDateSent(new NSTimestamp());
ec.committedSnapshotForObject(ecr);
addObjectToBothSidesOfRelationshipWithKey(aValue, "toCurrentStatus");
ec.saveChanges();

The only thing special with EMailCommunicationRecipient is that it  
is a single table inhertance in the model.


EMailCommunicationRecipient extends CommunicationRecipient which  
extends AbstractCommunicationRecipient.


Until I figure out what's going on, I was going to just add the  
following (because I just don't know how many places this is  
happening).  Will this add much overhead?:


public void awakeFromFetch(EOEditingContext ec){
super.awakeFromFetch(ec);
ec.committedSnapshotForObject(ecr);
}

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


This email sent to [EMAIL PROTECTED]


--

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

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





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


This email sent to [EMAIL PROTECTED]



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


[EMAIL PROTECTED]
203 278-4085office



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

This email sent to archive@mail-archive.com


Re: saveChanges() not saving

2007-03-01 Thread Chuck Hill

David,

In at least one place in your code you are abusing EOF.  This makes  
EOF very cranky and, in return, it messes with your head.  Play nice  
and your problems will go away.  :-)


First, check very carefully that you are not violating one of the EOF  
Commandments:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ 
The_EOF_Commandments


Please don't respond that you are violating one of them and it is  
just fine, because that is quite obviously not true.  I mention this  
because this is often the first response of commandment violators.   
Thou shalt not.  Really.  :-)


Next, enable NSLog.DebugGroupMultithreading and run through the app.   
Look for exception traces in the log that indicate unlocked access.   
Unlocked access is like playing Russian Roulette with one empty  
chamber.  Fix them.



Chuck



On Mar 1, 2007, at 9:40 AM, David Haggerty wrote:

I have come across a rather strange problem.  Changes to an EO are  
not saving properly.  In memory it shows that I have changed the EO  
but when I look at the editingContext, it doesn't show it in  
_unprocessedChanges.  It also doesn't save the change that I am  
making.  I finally realized that if I call  
ec.committedSnapshotForObject(ecr);  BEFORE I make any changes to  
the object, it works fine.


Here's an example of the code:

EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
EOUtilities.faultWithPrimaryKeyValue(ec,  
"EmailCommunicationRecipient", new Integer(11312312));

ecr.setDateSent(new NSTimestamp());
ec.saveChanges();

Strangely, if I do the following, the dateSent won't save but the  
status will:


EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr = (EmailCommunicationRecipient) 
EOUtilities.faultWithPrimaryKeyValue(ec,  
"EmailCommunicationRecipient", new Integer(11312312));

ecr.setDateSent(new NSTimestamp());
ec.committedSnapshotForObject(ecr);
addObjectToBothSidesOfRelationshipWithKey(aValue, "toCurrentStatus");
ec.saveChanges();

The only thing special with EMailCommunicationRecipient is that it  
is a single table inhertance in the model.


EMailCommunicationRecipient extends CommunicationRecipient which  
extends AbstractCommunicationRecipient.


Until I figure out what's going on, I was going to just add the  
following (because I just don't know how many places this is  
happening).  Will this add much overhead?:


public void awakeFromFetch(EOEditingContext ec){
super.awakeFromFetch(ec);
ec.committedSnapshotForObject(ecr);
}

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


This email sent to [EMAIL PROTECTED]


--

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

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





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

This email sent to archive@mail-archive.com


Re: Converting Apps From Xcode > Eclipse [Problems Solved]

2007-03-01 Thread Mike Schrag
If you're in a helping mood and have some free time, can you try  
again the first way and look inside your project's "build" folder and  
see if 1) the eomodel folder is there and 2) are the entity plists  
(et al) inside of it?  If it's broken, try then deleting the build  
folder entirely and have wolips do a clean build and see if that  
fixes it?


On Mar 1, 2007, at 12:10 PM, Fred Shurtleff wrote:


Hi All,

Just want to report that I solved my problem (could not find an  
Object Store for entities in a model that was copied from an Xcode  
app), and what the key issues are.


This is basic, but the key is to copy the model file (.eomodeld)  
into your Eclipse project folder FIRST and before any .java files  
(that reference their entities) are added. Then Import the project  
(or use Clean... if copied while project is already loaded), and  
open the model with Entity Modeler.


Now add the remaining .java, .wo, .api files, Run your WO app, and  
you're done.


I tried a number of times copying Xcode files en mass into Eclipse;  
saw there were errors(unresolved types pointing to entities); used  
Clean... that resolved the errors; but the app always failed  
because the model was not loaded (as reported by a  
EOModelGroup.defaultGroup() statement I put into main). So the  
lesson is make sure your model file is present/recognized in  
Eclipse before adding any external java files.


If this sounds oh so trivial, pardon me - I am an Eclipse/ 
WebObjects newbie.


Thanks all for your help!

Daniele Corti wrote:



2007/3/1, Chuck Hill <[EMAIL PROTECTED]  
>:



On Feb 28, 2007, at 4:15 PM, Fred Shurtleff wrote:

> Hi All,
>
> Does anyone have experience converting WebObject  
applications from

> Xcode to Eclipse, or any caveats in making this conversion?

Yes.  The only caveat I can think of is that you will kick  
yourself

for not having done it sooner.  :-P


> I have done a few conversions with varying degrees of  
success. The
> way I look at this is basically this involves copying the  
source

> files(.wo, .api, .java, and .eomodeld) in Xcode to an Eclipse
> project structure, then compile/run, and the app should just  
run.


Create an Eclipse project, copy in the source, adjust the  
contents of

build.xml, woproject/* and it should just run.


> However I am finding that sometimes the model file is not
> recognized (in which case it reports > An 'object store' for  
the
> entity "User" could not be found. Verify that the entity is  
defined

> in an EOModel, and that the model is installed properly.). Also
> Eclipse will sometimes report an error >
> 'my_project_name.framework' not found.

Sounds like a refresh issue with the new Eclipse project.  Try
restarting Eclipse after copying in the resources.


Or simply select Project->Clean.. and the clean yor project! This  
problem is caused because when you make changes on your files  
(EOModel, Woo, Java), OUTSIDE eclipse ( i.e. with EOModeler)  
Eclipse doesn't see the changes, so you must rebuild the app, to  
make changes works!


> Am I misunderstanding something here about this conversion  
process?
> Or is there any documentation pertaining to importing/ 
converting

> Xcode apps to Eclipse?

Beyond the Tutorials you mean?

http://wiki.objectstyle.org/confluence/display/WOL/Tutorials

Chuck

--

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/ildenae% 
40gmail.com



This email sent to [EMAIL PROTECTED] 


--
Daniele Corti
AIM: S0CR4TE5
Messenger: [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/mschrag% 
40mdimension.com


This email sent to [EMAIL PROTECTED]



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

This email sent to archive@mail-archive.com


saveChanges() not saving

2007-03-01 Thread David Haggerty
I have come across a rather strange problem.  Changes to an EO are not
saving properly.  In memory it shows that I have changed the EO but when
I look at the editingContext, it doesn't show it in _unprocessedChanges.
It also doesn't save the change that I am making.  I finally realized
that if I call ec.committedSnapshotForObject(ecr);  BEFORE I make any
changes to the object, it works fine.  
 
Here's an example of the code:
 
EOEditingContext ec = new EOEditingContext();
//   If I uncomment this, it saves properly.
//   ec.committedSnapshotForObject(ecr);
EmailCommunicationRecipient ecr =
(EmailCommunicationRecipient)EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.saveChanges();
 
Strangely, if I do the following, the dateSent won't save but the status
will:
 
EOEditingContext ec = new EOEditingContext();
EmailCommunicationRecipient ecr =
(EmailCommunicationRecipient)EOUtilities.faultWithPrimaryKeyValue(ec,
"EmailCommunicationRecipient", new Integer(11312312));
ecr.setDateSent(new NSTimestamp());
ec.committedSnapshotForObject(ecr);
addObjectToBothSidesOfRelationshipWithKey(aValue, "toCurrentStatus");
ec.saveChanges();
 
The only thing special with EMailCommunicationRecipient is that it is a
single table inhertance in the model.
 
EMailCommunicationRecipient extends CommunicationRecipient which extends
AbstractCommunicationRecipient.
 
Until I figure out what's going on, I was going to just add the
following (because I just don't know how many places this is happening).
Will this add much overhead?:
 
public void awakeFromFetch(EOEditingContext ec){
super.awakeFromFetch(ec);
ec.committedSnapshotForObject(ecr);
}
 
Thanks,
David
 ___
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: Converting Apps From Xcode > Eclipse [Problems Solved]

2007-03-01 Thread Fred Shurtleff

Hi All,

Just want to report that I solved my problem (could not find an Object 
Store for entities in a model that was copied from an Xcode app), and 
what the key issues are.


This is basic, but the key is to copy the model file (.eomodeld) into 
your Eclipse project folder FIRST and before any .java files (that 
reference their entities) are added. Then Import the project (or use 
Clean... if copied while project is already loaded), and open the model 
with Entity Modeler.


Now add the remaining .java, .wo, .api files, Run your WO app, and 
you're done.


I tried a number of times copying Xcode files en mass into Eclipse; saw 
there were errors(unresolved types pointing to entities); used Clean... 
that resolved the errors; but the app always failed because the model 
was not loaded (as reported by a EOModelGroup.defaultGroup() statement I 
put into main). So the lesson is make sure your model file is 
present/recognized in Eclipse before adding any external java files.


If this sounds oh so trivial, pardon me - I am an Eclipse/WebObjects newbie.

Thanks all for your help!

Daniele Corti wrote:



2007/3/1, Chuck Hill <[EMAIL PROTECTED] 
>:



On Feb 28, 2007, at 4:15 PM, Fred Shurtleff wrote:

> Hi All,
>
> Does anyone have experience converting WebObject applications from
> Xcode to Eclipse, or any caveats in making this conversion?

Yes.  The only caveat I can think of is that you will kick yourself
for not having done it sooner.  :-P


> I have done a few conversions with varying degrees of success. The
> way I look at this is basically this involves copying the source
> files(.wo, .api, .java, and .eomodeld) in Xcode to an Eclipse
> project structure, then compile/run, and the app should just run.

Create an Eclipse project, copy in the source, adjust the contents of
build.xml, woproject/* and it should just run.


> However I am finding that sometimes the model file is not
> recognized (in which case it reports > An 'object store' for the
> entity "User" could not be found. Verify that the entity is defined
> in an EOModel, and that the model is installed properly.). Also
> Eclipse will sometimes report an error >
> 'my_project_name.framework' not found.

Sounds like a refresh issue with the new Eclipse project.  Try
restarting Eclipse after copying in the resources.


Or simply select Project->Clean.. and the clean yor project! This 
problem is caused because when you make changes on your files 
(EOModel, Woo, Java), OUTSIDE eclipse ( i.e. with EOModeler) Eclipse 
doesn't see the changes, so you must rebuild the app, to make changes 
works!


> Am I misunderstanding something here about this conversion process?
> Or is there any documentation pertaining to importing/converting
> Xcode apps to Eclipse?

Beyond the Tutorials you mean?

http://wiki.objectstyle.org/confluence/display/WOL/Tutorials

Chuck

--

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/ildenae%40gmail.com


This email sent to [EMAIL PROTECTED] 


--
Daniele Corti
AIM: S0CR4TE5
Messenger: [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


Flash and WebObjects

2007-03-01 Thread WIESEN Bruno

Hello,

I can play swf files within a wo page (via WOEmbeddedObject)but I  
wonder if It is possible to create and give

parameters with WebObjects??

Thank you.

Bruno.
___
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


[OT] My favorite Terminal.app tip

2007-03-01 Thread Timo Hoepfner
This blog post descibes how to configure Terminal.app to move the  
cursor word-by-word using option-arrow:


http://macromates.com/blog/archives/2006/01/07/word-movement-in- 
terminal/


Timo


___
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: Static in WO (was: Refresh)

2007-03-01 Thread Mike Schrag
This is sharing of verified class bytecode, as opposed to sharing of  
runtime state.


ms

On Mar 1, 2007, at 9:42 AM, netBrackets wrote:

This is another possible solution that I always meant to  
investigate, but haven't up to now...


http://www-128.ibm.com/developerworks/java/library/j-ibmjava4/



___
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: Static in WO (was: Refresh)

2007-03-01 Thread Mike Schrag
I would PERSONALLY recommend that you DON'T go to terracotta just to  
get a unique integer sequence :)


ms

On Mar 1, 2007, at 9:35 AM, Jean-François Veillette wrote:


I have never tried but, look at this demo, this look promising !

http://www.terracottatech.com/TC_container.html

- jfv

Le 07-03-01 à 00:55, Mike Schrag a écrit :

In Java, static variables are unique per-class-per-class-loader.   
That is, if you have the same class loaded in two separate class  
loaders, they will have independent static variables.  Likewise,  
obviously, if you run two JVM's, the static variables will not be  
shared.  WO instances each run in their own JVM's, completely  
unshared (well, as far as you're concerned at the level you're  
writing code).  You can NOT count on static variables sharing  
across instances.  You can only count on static variables being  
available in a SINGLE instance, and even then only in a SINGLE  
class loader (though it just so happens that your entire app is  
loaded in a single class loader, so that part isn't going to get  
you).  If you're counting on two instances of WO sharing a static  
variable, you better start preparing yourself now, because you're  
about to have your heart broken.  If you need unique IDs across  
instances, there are several techniques, but the least pain is to  
just use sequence generators from your database and let the  
database handle the concurrency and synchronization.


On Feb 28, 2007, at 9:32 PM, Florijan Stamenkovic wrote:


Hi Jerry,


Wow, this concept never really occurred to me. I indeed thought  
that static variables ARE shared across applications running in  
the same VM. I will have to test this, but supposing it is as you  
say it is, I am screwed, because:


I have some code that synchronizes on a statically declared  
variable in my SessionWorker class. SessionWorker is a class to  
which RMI calls on Session are forwarded to. I use this  
synchronization to generate unique numbers that are not keys in  
the tables I am generating them in. I can not make keys out of  
them due to their specific nature (it is guaranteed that the same  
table will contain records with the same values in these fields,  
although in another context they are unique). Thus the  
synchronization. I am aware that even if my original idea is OK,  
and this works across WOApp instances, it would only work on  
single machine deployment. This concept starts to melt down.


Any comments or suggestions? Do I have to switch to stored  
procedures to accomplish the above???


Singleton... I was so dumb to overlook that.

Many thanks for the info,

Florijan




Hi, Florijan,

The WOApplication class is a singleton for any WebObjects  
application. From the first paragraph of the JavaDoc on  
WOApplication:


 The primary role of the WOApplication class is to  
coordinate the

 handling of HTTP requests. Each application must have exactly
 one WOApplication object. The application object receives...

Honestly, I've never considered the possibility that a static  
variable declared for a class in one application is shared with  
any other application using that same class within the same Java  
Virtual Machine. I don't think this is true, and if it is, there  
are a few things about static variables that I will have to  
rethink before this bites me. Whether true or not, the variable  
wouldn't be shared between JVM's.


That's why Robert Walker was suggesting scheduling outside the  
application.


So...  has anyone any information on static variables in a class  
shared between separate applications on the JVM if two  
applications use that same class?


Regards,
Jerry


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


This email sent to [EMAIL PROTECTED]



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


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

Re: Static in WO (was: Refresh)

2007-03-01 Thread netBrackets
This is another possible solution that I always meant to investigate, but 
haven't up to now...

http://www-128.ibm.com/developerworks/java/library/j-ibmjava4/

 
On Thursday, March 01, 2007, at 08:35AM, "Jean-François Veillette" <[EMAIL 
PROTECTED]> wrote:
>I have never tried but, look at this demo, this look promising !
>

>- jfv
>
>Le 07-03-01 à 00:55, Mike Schrag a écrit :
>
>> In Java, static variables are unique per-class-per-class-loader.   
>> That is, if you have the same class loaded in two separate class  
>> loaders, they will have independent static variables.  Likewise,  
>> obviously, if you run two JVM's, the static variables will not be  
>> shared.  WO instances each run in their own JVM's, completely  
>> unshared (well, as far as you're concerned at the level you're  
>> writing code).  You can NOT count on static variables sharing  
>> across instances.  You can only count on static variables being  
>> available in a SINGLE instance, and even then only in a SINGLE  
>> class loader (though it just so happens that your entire app is  
>> loaded in a single class loader, so that part isn't going to get  
>> you).  If you're counting on two instances of WO sharing a static  
>> variable, you better start preparing yourself now, because you're  
>> about to have your heart broken.  If you need unique IDs across  
>> instances, there are several techniques, but the least pain is to  
>> just use sequence generators from your database and let the  
>> database handle the concurrency and synchronization.
>>
>> On Feb 28, 2007, at 9:32 PM, Florijan Stamenkovic wrote:
>>
>>> Hi Jerry,
>>>
>>>
>>> Wow, this concept never really occurred to me. I indeed thought  
>>> that static variables ARE shared across applications running in  
>>> the same VM. I will have to test this, but supposing it is as you  
>>> say it is, I am screwed, because:
>>>
>>> I have some code that synchronizes on a statically declared  
>>> variable in my SessionWorker class. SessionWorker is a class to  
>>> which RMI calls on Session are forwarded to. I use this  
>>> synchronization to generate unique numbers that are not keys in  
>>> the tables I am generating them in. I can not make keys out of  
>>> them due to their specific nature (it is guaranteed that the same  
>>> table will contain records with the same values in these fields,  
>>> although in another context they are unique). Thus the  
>>> synchronization. I am aware that even if my original idea is OK,  
>>> and this works across WOApp instances, it would only work on  
>>> single machine deployment. This concept starts to melt down.
>>>
>>> Any comments or suggestions? Do I have to switch to stored  
>>> procedures to accomplish the above???
>>>
>>> Singleton... I was so dumb to overlook that.
>>>
>>> Many thanks for the info,
>>>
>>> Florijan
>>>
>>>
>>>
 Hi, Florijan,

 The WOApplication class is a singleton for any WebObjects  
 application. From the first paragraph of the JavaDoc on  
 WOApplication:

  The primary role of the WOApplication class is to coordinate  
 the
  handling of HTTP requests. Each application must have exactly
  one WOApplication object. The application object receives...

 Honestly, I've never considered the possibility that a static  
 variable declared for a class in one application is shared with  
 any other application using that same class within the same Java  
 Virtual Machine. I don't think this is true, and if it is, there  
 are a few things about static variables that I will have to  
 rethink before this bites me. Whether true or not, the variable  
 wouldn't be shared between JVM's.

 That's why Robert Walker was suggesting scheduling outside the  
 application.

 So...  has anyone any information on static variables in a class  
 shared between separate applications on the JVM if two  
 applications use that same class?

 Regards,
 Jerry
>>>
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 
>>> 40mdimension.com
>>>
>>> This email sent to [EMAIL PROTECTED]
>>
>>
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/ 
>> jean_francois_veillette%40yahoo.ca
>>
>> 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

Re: Sending XML

2007-03-01 Thread Asa Hardcastle
I've heard great things about apache's httpclient, so it is probably  
a good choice.  However, if you want to stick with J2SE and you're  
using 1.5, you can use java.net.HttpURLConnection.  SSL is easy, and  
you'll be dealing with a stream.  This class finally allows reliable  
setting of the read and connect timeouts.


asa


On Mar 1, 2007, at 9:24 AM, Robert Walker wrote:

WOHTTPConnection should work fine for this, as long as you don't  
need SSL.  If you want a more flexible solution that does fully  
support SSL connections I would recommend the Apache HttpClient,  
which is what I use with great success.


You can find HttpClient here:
http://jakarta.apache.org/commons/httpclient/

On Mar 1, 2007, at 5:19 AM, WIESEN Bruno wrote:


Re Hello,

I used to implement SOAP in order to send and receive XML  
information to a server...But now I must use another type of  
sending

I have to send XML information to : http://:8080/xxx

What can you advise me?

I try with WOHTTPConnection and WORequest...Is it a good thing??

Thank you.
___
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/ 
robertwalker1%40mac.com


This email sent to [EMAIL PROTECTED]


--
Robert Walker
[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/a.talk% 
40zenn.net


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

Re: Static in WO (was: Refresh)

2007-03-01 Thread Jean-François Veillette

I have never tried but, look at this demo, this look promising !

http://www.terracottatech.com/TC_container.html

- jfv

Le 07-03-01 à 00:55, Mike Schrag a écrit :

In Java, static variables are unique per-class-per-class-loader.   
That is, if you have the same class loaded in two separate class  
loaders, they will have independent static variables.  Likewise,  
obviously, if you run two JVM's, the static variables will not be  
shared.  WO instances each run in their own JVM's, completely  
unshared (well, as far as you're concerned at the level you're  
writing code).  You can NOT count on static variables sharing  
across instances.  You can only count on static variables being  
available in a SINGLE instance, and even then only in a SINGLE  
class loader (though it just so happens that your entire app is  
loaded in a single class loader, so that part isn't going to get  
you).  If you're counting on two instances of WO sharing a static  
variable, you better start preparing yourself now, because you're  
about to have your heart broken.  If you need unique IDs across  
instances, there are several techniques, but the least pain is to  
just use sequence generators from your database and let the  
database handle the concurrency and synchronization.


On Feb 28, 2007, at 9:32 PM, Florijan Stamenkovic wrote:


Hi Jerry,


Wow, this concept never really occurred to me. I indeed thought  
that static variables ARE shared across applications running in  
the same VM. I will have to test this, but supposing it is as you  
say it is, I am screwed, because:


I have some code that synchronizes on a statically declared  
variable in my SessionWorker class. SessionWorker is a class to  
which RMI calls on Session are forwarded to. I use this  
synchronization to generate unique numbers that are not keys in  
the tables I am generating them in. I can not make keys out of  
them due to their specific nature (it is guaranteed that the same  
table will contain records with the same values in these fields,  
although in another context they are unique). Thus the  
synchronization. I am aware that even if my original idea is OK,  
and this works across WOApp instances, it would only work on  
single machine deployment. This concept starts to melt down.


Any comments or suggestions? Do I have to switch to stored  
procedures to accomplish the above???


Singleton... I was so dumb to overlook that.

Many thanks for the info,

Florijan




Hi, Florijan,

The WOApplication class is a singleton for any WebObjects  
application. From the first paragraph of the JavaDoc on  
WOApplication:


 The primary role of the WOApplication class is to coordinate  
the

 handling of HTTP requests. Each application must have exactly
 one WOApplication object. The application object receives...

Honestly, I've never considered the possibility that a static  
variable declared for a class in one application is shared with  
any other application using that same class within the same Java  
Virtual Machine. I don't think this is true, and if it is, there  
are a few things about static variables that I will have to  
rethink before this bites me. Whether true or not, the variable  
wouldn't be shared between JVM's.


That's why Robert Walker was suggesting scheduling outside the  
application.


So...  has anyone any information on static variables in a class  
shared between separate applications on the JVM if two  
applications use that same class?


Regards,
Jerry


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


This email sent to [EMAIL PROTECTED]



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


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

Re: Sending XML

2007-03-01 Thread Robert Walker
WOHTTPConnection should work fine for this, as long as you don't need  
SSL.  If you want a more flexible solution that does fully support  
SSL connections I would recommend the Apache HttpClient, which is  
what I use with great success.


You can find HttpClient here:
http://jakarta.apache.org/commons/httpclient/

On Mar 1, 2007, at 5:19 AM, WIESEN Bruno wrote:


Re Hello,

I used to implement SOAP in order to send and receive XML  
information to a server...But now I must use another type of  
sending

I have to send XML information to : http://:8080/xxx

What can you advise me?

I try with WOHTTPConnection and WORequest...Is it a good thing??

Thank you.
___
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/robertwalker1% 
40mac.com


This email sent to [EMAIL PROTECTED]


--
Robert Walker
[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

Re: Pagination in WO for a big resultset

2007-03-01 Thread Timo Hoepfner

Hi,

take a look at WODisplayGroup and WOBatchNavigationBar.

When obtaining the whole resultset in one step is to time or memory  
intensive, take a look into ERXBatchingDisplayGroup from Project  
Wonder. And while we're at it, ERXBatchNaviagtionBar in Wonder is  
also nicer that WOBatchNaviagtionBar.


Timo


Am 01.03.2007 um 12:25 schrieb Tanmoy Roy:


Hi All,

I have page where the resultset fetched from database will be quite
big and hence it will be very difficult to fit in a single page.

I am thinking of implementing a pagination when 10 rows will be shown
at a time. I can implement it using a temp. array which will store
first 10 and then upon click of the user it will show the next 10 and
so on but I feel there is a better way of doing it.

Any pointer will be of great help.

--
Thanks,
Tanmoy
___
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/archive%40mail-archive.com

This email sent to archive@mail-archive.com


Pagination in WO for a big resultset

2007-03-01 Thread Tanmoy Roy

Hi All,

I have page where the resultset fetched from database will be quite
big and hence it will be very difficult to fit in a single page.

I am thinking of implementing a pagination when 10 rows will be shown
at a time. I can implement it using a temp. array which will store
first 10 and then upon click of the user it will show the next 10 and
so on but I feel there is a better way of doing it.

Any pointer will be of great help.

--
Thanks,
Tanmoy
___
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: Sessions timeout

2007-03-01 Thread Daniele Corti

2007/3/1, WIESEN Bruno <[EMAIL PROTECTED]>:


Hello,

Is it possible to get the remaining time before a session times out??

Thank you.
___
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/ildenae%40gmail.com

This email sent to [EMAIL PROTECTED]



mmm your question is a bit strange: if you want to display the remaining
time will be of course the time out, because when you are using the session
and the time remaining will be the max. I think you can implement a
countdown javascript in the page, and setup it with the session().timeout()
so you can display the time remaning.

hope this help,

--
Daniele Corti
AIM: S0CR4TE5
Messenger: [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

Sending XML

2007-03-01 Thread WIESEN Bruno

Re Hello,

I used to implement SOAP in order to send and receive XML information  
to a server...But now I must use another type of sending

I have to send XML information to : http://:8080/xxx

What can you advise me?

I try with WOHTTPConnection and WORequest...Is it a good thing??

Thank you.
___
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


Sessions timeout

2007-03-01 Thread WIESEN Bruno

Hello,

Is it possible to get the remaining time before a session times out??

Thank you.
___
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: Converting Apps From Xcode > Eclipse

2007-03-01 Thread Daniele Corti

2007/3/1, Chuck Hill <[EMAIL PROTECTED]>:



On Feb 28, 2007, at 4:15 PM, Fred Shurtleff wrote:

> Hi All,
>
> Does anyone have experience converting WebObject applications from
> Xcode to Eclipse, or any caveats in making this conversion?

Yes.  The only caveat I can think of is that you will kick yourself
for not having done it sooner.  :-P


> I have done a few conversions with varying degrees of success. The
> way I look at this is basically this involves copying the source
> files(.wo, .api, .java, and .eomodeld) in Xcode to an Eclipse
> project structure, then compile/run, and the app should just run.

Create an Eclipse project, copy in the source, adjust the contents of
build.xml, woproject/* and it should just run.


> However I am finding that sometimes the model file is not
> recognized (in which case it reports > An 'object store' for the
> entity "User" could not be found. Verify that the entity is defined
> in an EOModel, and that the model is installed properly.). Also
> Eclipse will sometimes report an error >
> 'my_project_name.framework' not found.

Sounds like a refresh issue with the new Eclipse project.  Try
restarting Eclipse after copying in the resources.



Or simply select Project->Clean.. and the clean yor project! This problem is
caused because when you make changes on your files (EOModel, Woo, Java),
OUTSIDE eclipse (i.e. with EOModeler) Eclipse doesn't see the changes, so
you must rebuild the app, to make changes works!


Am I misunderstanding something here about this conversion process?
> Or is there any documentation pertaining to importing/converting
> Xcode apps to Eclipse?

Beyond the Tutorials you mean?

http://wiki.objectstyle.org/confluence/display/WOL/Tutorials

Chuck

--

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/ildenae%40gmail.com

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [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