Embed a external command-line tool in bundle

2011-10-17 Thread Yung-Luen Lan
Hi,

I have some external command-line tools written by Objective-C that
needs to be invoked in my wo app.

Of course I could put them in somewhere like /usr/local/bin, etc.

But I want to embed these command-line tools inside my wo app bundle
so that people don't forget to copy the command-line tools when
install the wo app. However, getting path of NSBundle is deprecated
API. Which directory should I put these tools in and how do I get the
path when I want to call them?

The app is a woa bundle so don't have to take jar into account.

Any comment?

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

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


Re: Embed a external command-line tool in bundle

2011-10-17 Thread Johann Werner
Hi yllan,

I would put that into the 'Resources' directory and use

WOResourceManager.pathURLForResourceNamed(
command-line-tool-name, // name of your tool
null, // null if you put this into your app project
null); // null as you are not interested in localized resources

jw


Am 17.10.2011 um 09:31 schrieb Yung-Luen Lan:

 Hi,
 
 I have some external command-line tools written by Objective-C that
 needs to be invoked in my wo app.
 
 Of course I could put them in somewhere like /usr/local/bin, etc.
 
 But I want to embed these command-line tools inside my wo app bundle
 so that people don't forget to copy the command-line tools when
 install the wo app. However, getting path of NSBundle is deprecated
 API. Which directory should I put these tools in and how do I get the
 path when I want to call them?
 
 The app is a woa bundle so don't have to take jar into account.
 
 Any comment?
 
 Regards,
 yllan


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

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


Question about restrictedChoiceKey

2011-10-17 Thread Farrukh Ijaz
Hi,

I've a situation. I've three entities:

Country
CountryGroup
Customer

The Customer has toOne relationship with Country and Country has toMany 
relationship with CountryGroup. The customer doesn't know about CountryGroup at 
all. In the Customer query page, I want to present the user list of 
CountryGroup for which following rules:

LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: 
componentName = 'ERD2WQueryToManyRelationship'
LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: 
restrictedChoiceKey = 'object.availableCountryGroups'

The availableCountryGroups() returns NSArrayCountryGroup and is defined in 
Customer class.

It doesn't work as I guess in the query page, the object seems to be null.

What could be the possible solution. I don't want to define method in the 
session object so 'session.availableCountryGroups' is not desired.

Is there a way we can use FQCN instead of 'object' such as 
'com.xyz.entity.CountryGroup.availableCountryGroups' so this could work 
generically? or is there a way I can extend my own D2WContext class such as 
MyD2WContext and tell the application to use this and I can resolve FQCN 
prefixed methods.

Thanks for any suggestions in advance.

Farrukh

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

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


Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Paul Yu
Is TABLE a valid external type?

Paul
On Oct 17, 2011, at 5:00 AM, Raymond NANEON wrote:

 Hi,
 
 I added a returnValue attribute in my function declaration in my eomodel. I 
 declared external type of my attribute as Table and custom data as 
 NSMutableDictionnary. When I execute my function I get this error :
 
 eo3.png
 
 com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC 
 type for attribute '020_returnValue' when preparing output parameter for 
 stored procedure.
 Thanks for your help
 Envoyé depuis iCloud
 
 Le 17 oct 2011 à 01:00, Raymond NANEON rnan...@me.com a écrit :
 
 Hi All,
 
 I verified my function owner and all is fine but I have always the same 
 problem FUNCTION is not a procedure or is undefined.
 
 The Function :
 
 FUNCTION PROFIL_ETUDIANT(
 etuID in NUMBER -- id etudiant
 ) return TAB_ETUID PIPELINED;
 
 In eomodel :
 eo1.png
 
 eo2.png
 
 What The problem? It's because my function declaration in eoModel don't have 
 return attribute? 
 
 Thanks for your help
 Envoyé depuis iCloud
 
 Le 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit :
 
 Thanks Susanne,
 
 My entities, functions and procedures are prefixed with schema owner but I 
 go to verify again.
 
 Thanks
 Envoyé depuis iCloud
 
 Le 12 oct 2011 à 01:48, Susanne Schneider 
 susanne.schnei...@interactive-systems.de a écrit :
 
 Hi Raymond,
 
 I would gess this is more an Oracle than an WebObjects problem. Oracle 
 can be very picky regarding user rights if you are dealing with separate 
 user schemes for your EOModel. Maybe the function is defined by another 
 user than that used by WebObjects to execute it?
 
 You should check if the function owner is the user executing and, if 
 they are not equal, if the necessary execute rights have been given. 
 Furthermore if the function itself accesses tables from another user 
 than owner or executer, than you have another problem to solve :-)
 
 HTH,
 Susanne
 
 Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com:
  Send Webobjects-dev mailing list submissions to
  webobjects-dev@lists.apple.com
 
  To subscribe or unsubscribe via the World Wide Web, visit
  http://lists.apple.com/mailman/listinfo/webobjects-dev
  or, via email, send a message with subject or body 'help' to
  webobjects-dev-requ...@lists.apple.com
 
  You can reach the person managing the list at
  webobjects-dev-ow...@lists.apple.com
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Webobjects-dev digest...
 
 
  Today's Topics:
 
  1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
  procedure or is indefined ) (Rafal Szczepanski)
  2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)
  3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not
  a procedure or is indefined ) (Raymond NANEON)
  4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)
  5. Re: Compare old Server to the new mac mini Server (Tim Worman)
  6. Long time no write?and a problem with Unbound classpath
  container (Lon Varscsak)
 
 
  --
 
  Message: 1
  Date: Tue, 11 Oct 2011 11:13:58 +0200
  From: Rafal Szczepanskir.szczepan...@smartrecruiters.com
  Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
  procedure or is indefined )
  To: rnan...@me.com
  Cc: webobjects-dev@lists.apple.com
  Message-ID:001e01cc87f6$1d55f960$5801ec20$@com
  Content-Type: text/plain; charset=us-ascii
 
  Hi Raymond,
 
 
 
  I'm using Oracle functions and everything works smooth. Can you please
  provide more details about your configuration?
 
 
 
  Cheers,
 
  Rafal
 
 
 
 
 
  -- next part --
  An HTML attachment was scrubbed...
  URL: 
  http://lists.apple.com/pipermail/webobjects-dev/attachments/20111011/f8e7ed28/attachment.html
 
  --
 
  Message: 2
  Date: Tue, 11 Oct 2011 11:19:47 +0200
  From: ISHIMOTO Kenk...@ksroom.com
  Subject: Compare old Server to the new mac mini Server
  To: WebObjects List MailingWebobjects-dev@lists.apple.com
  Cc: wo...@webobjects.me
  Message-ID:877ba62f-0947-4cad-95c5-85bb67bf7...@ksroom.com
  Content-Type: text/plain; charset=us-ascii
 
  Hi,
 
  I have replaced one of my Server.
 
 
 
  The old Server was a mac mini 2GB intel core duo with FrontBase 4 and 
  Wonder-D2W Application.
 
  The Average Transaction Time was : 0.626s (3 Instances used)
 
  The new Server is a mac mini 8GB i7 with FrontBase 5 and the some 
  Wonder-D2W Application.
 
  The Average Transaction Time is : 0.036s (3 Instances used)
 
 
  about 17 Time faster.
 
 
 
  Thank you
 
  Ken Ishimoto
 
  
  K's ROOM
  
  [E-Mail]k...@ksroom.com
  [iChat:]ibase_...@mac.com
  [HP] http://www.ksroom.com/
  

Rép : Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Raymond NANEON
Hi,I declare External Type ARRAY, OBJECT and so one and stuck on the same error :com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.I try all Oracle externalsTypes which are familiar to Table or Array.Envoyé depuis iCloudLe 17 oct 2011 à 03:10, Paul Yu p...@mac.com a écrit:Is TABLE a valid external type?PaulOn Oct 17, 2011, at 5:00 AM, Raymond NANEON wrote:Hi,I added a returnValue attribute in my function declaration in my eomodel. I declared external type of my attribute as Table and custom data as NSMutableDictionnary. When I execute my function I get this error :eo3.pngcom.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.Thanks for your helpEnvoyé depuis iCloudLe 17 oct 2011 à 01:00, Raymond NANEON rnan...@me.com a écrit:Hi All,I verified my function owner and all is fine but I have always the same problemFUNCTION is not a procedure or is undefined.The Function :FUNCTION PROFIL_ETUDIANT(etuID in NUMBER -- id etudiant) return TAB_ETUID PIPELINED;In eomodel :eo1.pngeo2.pngWhat The problem? It's because my function declaration in eoModel don't have return attribute? Thanks for your helpEnvoyé depuis iCloudLe 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit:Thanks Susanne,My entities, functions and procedures are prefixed with schema owner but I go to verify again.ThanksEnvoyé depuis iCloudLe 12 oct 2011 à 01:48, Susanne Schneider susanne.schnei...@interactive-systems.de a écrit:Hi Raymond,  I would gess this is more an Oracle than an WebObjects problem. Oracle  can be very picky regarding user rights if you are dealing with separate  user schemes for your EOModel. Maybe the function is defined by another  user than that used by WebObjects to execute it?  You should check if the function owner is the user executing and, if  they are not equal, if the necessary execute rights have been given.  Furthermore if the function itself accesses tables from another user  than owner or executer, than you have another problem to solve :-)  HTH, Susanne  Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com:  Send Webobjects-dev mailing list submissions to  webobjects-dev@lists.apple.com   To subscribe or unsubscribe via the World Wide Web, visit  http://lists.apple.com/mailman/listinfo/webobjects-dev  or, via email, send a message with subject or body 'help' to  webobjects-dev-requ...@lists.apple.com   You can reach the person managing the list at  webobjects-dev-ow...@lists.apple.com   When replying, please edit your Subject line so it is more specific  than "Re: Contents of Webobjects-dev digest..."Today's Topics:   1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is indefined ) (Rafal Szczepanski)  2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)  3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not  a procedure or is indefined ) (Raymond NANEON)  4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)  5. Re: Compare old Server to the new mac mini Server (Tim Worman)  6. Long time no write?and a problem with "Unbound classpath  container" (Lon Varscsak)--   Message: 1  Date: Tue, 11 Oct 2011 11:13:58 +0200  From: Rafal Szczepanskir.szczepan...@smartrecruiters.com  Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is indefined )  To: rnan...@me.com  Cc: webobjects-dev@lists.apple.com  Message-ID:001e01cc87f6$1d55f960$5801ec20$@com  Content-Type: text/plain; charset="us-ascii"   Hi Raymond, I'm using Oracle functions and everything works smooth. Can you please  provide more details about your configuration? Cheers,   Rafal   -- next part --  An HTML attachment was scrubbed...  URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20111011/f8e7ed28/attachment.html   --   Message: 2  Date: Tue, 11 Oct 2011 11:19:47 +0200  From: ISHIMOTO Kenk...@ksroom.com  Subject: Compare old Server to the new mac mini Server  To: WebObjects List MailingWebobjects-dev@lists.apple.com  Cc: wo...@webobjects.me  Message-ID:877ba62f-0947-4cad-95c5-85bb67bf7...@ksroom.com  Content-Type: text/plain; charset="us-ascii"   Hi,   I have replaced one of my Server. The old Server was a mac mini 2GB intel core duo with FrontBase 4 and Wonder-D2W Application.   The Average Transaction Time was : 0.626s (3 Instances used)   The new Server is a mac mini 8GB i7 with FrontBase 5 and the some Wonder-D2W Application.   The Average Transaction Time is : 0.036s (3 Instances used)about 17 Time faster. Thank you   Ken Ishimoto     K's ROOM    

Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Paul Yu
I would think you would need to somehow define every attribute of the returned 
attribute(s) from this procedure.

I would think that EOF knows that an Array will be coming back from your call, 
the issue is COLUMN is a column of the array, not the rows of the array.

Paul
On Oct 17, 2011, at 6:27 AM, Raymond NANEON wrote:

 Hi,
 
 I declare External Type ARRAY, OBJECT and so one and stuck on the same error 
 : com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC 
 type for attribute '020_returnValue' when preparing output parameter for 
 stored procedure.
 I try all Oracle externalsTypes which are familiar to Table or Array.
 Envoyé depuis iCloud
 
 Le 17 oct 2011 à 03:10, Paul Yu p...@mac.com a écrit :
 
 Is TABLE a valid external type?
 
 Paul
 On Oct 17, 2011, at 5:00 AM, Raymond NANEON wrote:
 
 Hi,
 
 I added a returnValue attribute in my function declaration in my eomodel. I 
 declared external type of my attribute as Table and custom data as 
 NSMutableDictionnary. When I execute my function I get this error :
 
 eo3.png
 
 com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC 
 type for attribute '020_returnValue' when preparing output parameter for 
 stored procedure.
 Thanks for your help
 Envoyé depuis iCloud
 
 Le 17 oct 2011 à 01:00, Raymond NANEON rnan...@me.com a écrit :
 
 Hi All,
 
 I verified my function owner and all is fine but I have always the same 
 problem FUNCTION is not a procedure or is undefined.
 
 The Function :
 
 FUNCTION PROFIL_ETUDIANT(
 etuID in NUMBER -- id etudiant
 ) return TAB_ETUID PIPELINED;
 
 In eomodel :
 eo1.png
 
 eo2.png
 
 What The problem? It's because my function declaration in eoModel don't 
 have return attribute? 
 
 Thanks for your help
 Envoyé depuis iCloud
 
 Le 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit :
 
 Thanks Susanne,
 
 My entities, functions and procedures are prefixed with schema owner but 
 I go to verify again.
 
 Thanks
 Envoyé depuis iCloud
 
 Le 12 oct 2011 à 01:48, Susanne Schneider 
 susanne.schnei...@interactive-systems.de a écrit :
 
 Hi Raymond,
 
 I would gess this is more an Oracle than an WebObjects problem. Oracle 
 can be very picky regarding user rights if you are dealing with separate 
 user schemes for your EOModel. Maybe the function is defined by another 
 user than that used by WebObjects to execute it?
 
 You should check if the function owner is the user executing and, if 
 they are not equal, if the necessary execute rights have been given. 
 Furthermore if the function itself accesses tables from another user 
 than owner or executer, than you have another problem to solve :-)
 
 HTH,
 Susanne
 
 Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com:
  Send Webobjects-dev mailing list submissions to
  webobjects-dev@lists.apple.com
 
  To subscribe or unsubscribe via the World Wide Web, visit
  http://lists.apple.com/mailman/listinfo/webobjects-dev
  or, via email, send a message with subject or body 'help' to
  webobjects-dev-requ...@lists.apple.com
 
  You can reach the person managing the list at
  webobjects-dev-ow...@lists.apple.com
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Webobjects-dev digest...
 
 
  Today's Topics:
 
  1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
  procedure or is indefined ) (Rafal Szczepanski)
  2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)
  3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not
  a procedure or is indefined ) (Raymond NANEON)
  4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)
  5. Re: Compare old Server to the new mac mini Server (Tim Worman)
  6. Long time no write?and a problem with Unbound classpath
  container (Lon Varscsak)
 
 
  --
 
  Message: 1
  Date: Tue, 11 Oct 2011 11:13:58 +0200
  From: Rafal Szczepanskir.szczepan...@smartrecruiters.com
  Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
  procedure or is indefined )
  To: rnan...@me.com
  Cc: webobjects-dev@lists.apple.com
  Message-ID:001e01cc87f6$1d55f960$5801ec20$@com
  Content-Type: text/plain; charset=us-ascii
 
  Hi Raymond,
 
 
 
  I'm using Oracle functions and everything works smooth. Can you please
  provide more details about your configuration?
 
 
 
  Cheers,
 
  Rafal
 
 
 
 
 
  -- next part --
  An HTML attachment was scrubbed...
  URL: 
  http://lists.apple.com/pipermail/webobjects-dev/attachments/20111011/f8e7ed28/attachment.html
 
  --
 
  Message: 2
  Date: Tue, 11 Oct 2011 11:19:47 +0200
  From: ISHIMOTO Kenk...@ksroom.com
  Subject: Compare old Server to the new mac mini Server
  To: WebObjects List MailingWebobjects-dev@lists.apple.com
  Cc: wo...@webobjects.me
  Message-ID:877ba62f-0947-4cad-95c5-85bb67bf7...@ksroom.com
  Content-Type: text/plain; 

Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Paul Yu
According to EOF Developer's guide hardcopy book that i have.

You must also define an argument for a stored procedure's return value and for 
each of its parameters.  Add arguments to a stored prcedure the same way you 
add attributes to an entity.  In fact, the arguments of a stored procedure are 
represented with EOAttribute objects.

Paul
On Oct 17, 2011, at 6:27 AM, Raymond NANEON wrote:

 Hi,
 
 I declare External Type ARRAY, OBJECT and so one and stuck on the same error 
 : com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC 
 type for attribute '020_returnValue' when preparing output parameter for 
 stored procedure.
 I try all Oracle externalsTypes which are familiar to Table or Array.
 Envoyé depuis iCloud
 
 Le 17 oct 2011 à 03:10, Paul Yu p...@mac.com a écrit :
 
 Is TABLE a valid external type?
 
 Paul
 On Oct 17, 2011, at 5:00 AM, Raymond NANEON wrote:
 
 Hi,
 
 I added a returnValue attribute in my function declaration in my eomodel. I 
 declared external type of my attribute as Table and custom data as 
 NSMutableDictionnary. When I execute my function I get this error :
 
 eo3.png
 
 com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC 
 type for attribute '020_returnValue' when preparing output parameter for 
 stored procedure.
 Thanks for your help
 Envoyé depuis iCloud
 
 Le 17 oct 2011 à 01:00, Raymond NANEON rnan...@me.com a écrit :
 
 Hi All,
 
 I verified my function owner and all is fine but I have always the same 
 problem FUNCTION is not a procedure or is undefined.
 
 The Function :
 
 FUNCTION PROFIL_ETUDIANT(
 etuID in NUMBER -- id etudiant
 ) return TAB_ETUID PIPELINED;
 
 In eomodel :
 eo1.png
 
 eo2.png
 
 What The problem? It's because my function declaration in eoModel don't 
 have return attribute? 
 
 Thanks for your help
 Envoyé depuis iCloud
 
 Le 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit :
 
 Thanks Susanne,
 
 My entities, functions and procedures are prefixed with schema owner but 
 I go to verify again.
 
 Thanks
 Envoyé depuis iCloud
 
 Le 12 oct 2011 à 01:48, Susanne Schneider 
 susanne.schnei...@interactive-systems.de a écrit :
 
 Hi Raymond,
 
 I would gess this is more an Oracle than an WebObjects problem. Oracle 
 can be very picky regarding user rights if you are dealing with separate 
 user schemes for your EOModel. Maybe the function is defined by another 
 user than that used by WebObjects to execute it?
 
 You should check if the function owner is the user executing and, if 
 they are not equal, if the necessary execute rights have been given. 
 Furthermore if the function itself accesses tables from another user 
 than owner or executer, than you have another problem to solve :-)
 
 HTH,
 Susanne
 
 Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com:
  Send Webobjects-dev mailing list submissions to
  webobjects-dev@lists.apple.com
 
  To subscribe or unsubscribe via the World Wide Web, visit
  http://lists.apple.com/mailman/listinfo/webobjects-dev
  or, via email, send a message with subject or body 'help' to
  webobjects-dev-requ...@lists.apple.com
 
  You can reach the person managing the list at
  webobjects-dev-ow...@lists.apple.com
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Webobjects-dev digest...
 
 
  Today's Topics:
 
  1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
  procedure or is indefined ) (Rafal Szczepanski)
  2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)
  3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not
  a procedure or is indefined ) (Raymond NANEON)
  4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)
  5. Re: Compare old Server to the new mac mini Server (Tim Worman)
  6. Long time no write?and a problem with Unbound classpath
  container (Lon Varscsak)
 
 
  --
 
  Message: 1
  Date: Tue, 11 Oct 2011 11:13:58 +0200
  From: Rafal Szczepanskir.szczepan...@smartrecruiters.com
  Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
  procedure or is indefined )
  To: rnan...@me.com
  Cc: webobjects-dev@lists.apple.com
  Message-ID:001e01cc87f6$1d55f960$5801ec20$@com
  Content-Type: text/plain; charset=us-ascii
 
  Hi Raymond,
 
 
 
  I'm using Oracle functions and everything works smooth. Can you please
  provide more details about your configuration?
 
 
 
  Cheers,
 
  Rafal
 
 
 
 
 
  -- next part --
  An HTML attachment was scrubbed...
  URL: 
  http://lists.apple.com/pipermail/webobjects-dev/attachments/20111011/f8e7ed28/attachment.html
 
  --
 
  Message: 2
  Date: Tue, 11 Oct 2011 11:19:47 +0200
  From: ISHIMOTO Kenk...@ksroom.com
  Subject: Compare old Server to the new mac mini Server
  To: WebObjects List MailingWebobjects-dev@lists.apple.com
  Cc: wo...@webobjects.me
  

Rép : Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Raymond NANEON
So how to declare column of the array as external Type?Envoyé depuis iCloudLe 17 oct 2011 à 03:33, Paul Yu p...@mac.com a écrit:I would think you would need to somehow define every attribute of the returned attribute(s) from this procedure.I would think that EOF knows that an Array will be coming back from your call, the issue is COLUMN is a column of the array, not the rows of the array.PaulOn Oct 17, 2011, at 6:27 AM, Raymond NANEON wrote:Hi,I declare External Type ARRAY, OBJECT and so one and stuck on the same error :com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.I try all Oracle externalsTypes which are familiar to Table or Array.Envoyé depuis iCloudLe 17 oct 2011 à 03:10, Paul Yu p...@mac.com a écrit:Is TABLE a valid external type?PaulOn Oct 17, 2011, at 5:00 AM, Raymond NANEON wrote:Hi,I added a returnValue attribute in my function declaration in my eomodel. I declared external type of my attribute as Table and custom data as NSMutableDictionnary. When I execute my function I get this error :eo3.pngcom.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.Thanks for your helpEnvoyé depuis iCloudLe 17 oct 2011 à 01:00, Raymond NANEON rnan...@me.com a écrit:Hi All,I verified my function owner and all is fine but I have always the same problemFUNCTION is not a procedure or is undefined.The Function :FUNCTION PROFIL_ETUDIANT(etuID in NUMBER -- id etudiant) return TAB_ETUID PIPELINED;In eomodel :eo1.pngeo2.pngWhat The problem? It's because my function declaration in eoModel don't have return attribute? Thanks for your helpEnvoyé depuis iCloudLe 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit:Thanks Susanne,My entities, functions and procedures are prefixed with schema owner but I go to verify again.ThanksEnvoyé depuis iCloudLe 12 oct 2011 à 01:48, Susanne Schneider susanne.schnei...@interactive-systems.de a écrit:Hi Raymond,  I would gess this is more an Oracle than an WebObjects problem. Oracle  can be very picky regarding user rights if you are dealing with separate  user schemes for your EOModel. Maybe the function is defined by another  user than that used by WebObjects to execute it?  You should check if the function owner is the user executing and, if  they are not equal, if the necessary execute rights have been given.  Furthermore if the function itself accesses tables from another user  than owner or executer, than you have another problem to solve :-)  HTH, Susanne  Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com:  Send Webobjects-dev mailing list submissions to  webobjects-dev@lists.apple.com   To subscribe or unsubscribe via the World Wide Web, visit  http://lists.apple.com/mailman/listinfo/webobjects-dev  or, via email, send a message with subject or body 'help' to  webobjects-dev-requ...@lists.apple.com   You can reach the person managing the list at  webobjects-dev-ow...@lists.apple.com   When replying, please edit your Subject line so it is more specific  than "Re: Contents of Webobjects-dev digest..."Today's Topics:   1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is indefined ) (Rafal Szczepanski)  2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)  3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not  a procedure or is indefined ) (Raymond NANEON)  4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)  5. Re: Compare old Server to the new mac mini Server (Tim Worman)  6. Long time no write?and a problem with "Unbound classpath  container" (Lon Varscsak)--   Message: 1  Date: Tue, 11 Oct 2011 11:13:58 +0200  From: Rafal Szczepanskir.szczepan...@smartrecruiters.com  Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is indefined )  To: rnan...@me.com  Cc: webobjects-dev@lists.apple.com  Message-ID:001e01cc87f6$1d55f960$5801ec20$@com  Content-Type: text/plain; charset="us-ascii"   Hi Raymond, I'm using Oracle functions and everything works smooth. Can you please  provide more details about your configuration? Cheers,   Rafal   -- next part --  An HTML attachment was scrubbed...  URL: http://lists.apple.com/pipermail/webobjects-dev/attachments/20111011/f8e7ed28/attachment.html   --   Message: 2  Date: Tue, 11 Oct 2011 11:19:47 +0200  From: ISHIMOTO Kenk...@ksroom.com  Subject: Compare old Server to the new mac mini Server  To: WebObjects List MailingWebobjects-dev@lists.apple.com  Cc: wo...@webobjects.me  Message-ID:877ba62f-0947-4cad-95c5-85bb67bf7...@ksroom.com  Content-Type: text/plain; charset="us-ascii"   Hi,   I have replaced one of my Server. The old Server was a mac mini 2GB intel core 

Rép : Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Raymond NANEON
Hi Paul,See my attached pictures in others posts. You will see I define the stored procedure and his arguments. My problem is on external type. I know it's a table or array. But in WO, the EOAttribute don't know it. The EOAttribute use basic type of Oracle and not complexes types like object, array ...When I use REF CURSOR as external type, EOAttribute want to convert my return value as Entity and I have another error :java.lang.ClassCastException : com.webobjects.eoaccess.EOStoredProcedure cannot be cast to com.webobjects.eoaccess.EOEntityThanksEnvoyé depuis iCloudLe 17 oct 2011 à 03:37, Paul Yu p...@mac.com a écrit:According to EOF Developer's guide hardcopy book that i have."You must also define an argument for a stored procedure's return value and for each of its parameters. Add arguments to a stored prcedure the same way you add attributes to an entity. In fact, the arguments of a stored procedure are represented with EOAttribute objects."PaulOn Oct 17, 2011, at 6:27 AM, Raymond NANEON wrote:Hi,I declare External Type ARRAY, OBJECT and so one and stuck on the same error :com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.I try all Oracle externalsTypes which are familiar to Table or Array.Envoyé depuis iCloudLe 17 oct 2011 à 03:10, Paul Yu p...@mac.com a écrit:Is TABLE a valid external type?PaulOn Oct 17, 2011, at 5:00 AM, Raymond NANEON wrote:Hi,I added a returnValue attribute in my function declaration in my eomodel. I declared external type of my attribute as Table and custom data as NSMutableDictionnary. When I execute my function I get this error :eo3.pngcom.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.Thanks for your helpEnvoyé depuis iCloudLe 17 oct 2011 à 01:00, Raymond NANEON rnan...@me.com a écrit:Hi All,I verified my function owner and all is fine but I have always the same problemFUNCTION is not a procedure or is undefined.The Function :FUNCTION PROFIL_ETUDIANT(etuID in NUMBER -- id etudiant) return TAB_ETUID PIPELINED;In eomodel :eo1.pngeo2.pngWhat The problem? It's because my function declaration in eoModel don't have return attribute? Thanks for your helpEnvoyé depuis iCloudLe 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit:Thanks Susanne,My entities, functions and procedures are prefixed with schema owner but I go to verify again.ThanksEnvoyé depuis iCloudLe 12 oct 2011 à 01:48, Susanne Schneider susanne.schnei...@interactive-systems.de a écrit:Hi Raymond,  I would gess this is more an Oracle than an WebObjects problem. Oracle  can be very picky regarding user rights if you are dealing with separate  user schemes for your EOModel. Maybe the function is defined by another  user than that used by WebObjects to execute it?  You should check if the function owner is the user executing and, if  they are not equal, if the necessary execute rights have been given.  Furthermore if the function itself accesses tables from another user  than owner or executer, than you have another problem to solve :-)  HTH, Susanne  Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com:  Send Webobjects-dev mailing list submissions to  webobjects-dev@lists.apple.com   To subscribe or unsubscribe via the World Wide Web, visit  http://lists.apple.com/mailman/listinfo/webobjects-dev  or, via email, send a message with subject or body 'help' to  webobjects-dev-requ...@lists.apple.com   You can reach the person managing the list at  webobjects-dev-ow...@lists.apple.com   When replying, please edit your Subject line so it is more specific  than "Re: Contents of Webobjects-dev digest..."Today's Topics:   1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is indefined ) (Rafal Szczepanski)  2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)  3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not  a procedure or is indefined ) (Raymond NANEON)  4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)  5. Re: Compare old Server to the new mac mini Server (Tim Worman)  6. Long time no write?and a problem with "Unbound classpath  container" (Lon Varscsak)--   Message: 1  Date: Tue, 11 Oct 2011 11:13:58 +0200  From: Rafal Szczepanskir.szczepan...@smartrecruiters.com  Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is indefined )  To: rnan...@me.com  Cc: webobjects-dev@lists.apple.com  Message-ID:001e01cc87f6$1d55f960$5801ec20$@com  Content-Type: text/plain; charset="us-ascii"   Hi Raymond, I'm using Oracle functions and everything works smooth. Can you please  provide more details about your configuration? Cheers,   Rafal   -- next part --  An HTML attachment was 

Re: Embed a external command-line tool in bundle

2011-10-17 Thread Yung-Luen Lan
Thanks. Now I have another build problem. If I move my command-line
tool (actually, it's a cocoa app bundle without UI) under Resources,
then the ant build process will move this file

MyWOApp.woa/Contents/Resources/MyTools.app/Contents/Resources/Info.plist

to

MyWOApp.woa/Contents/Resources/Info.plist

which leaves both my wo/cocoa apps in corrupt Info.plist state. I look
the build.xml without finding anything related to the Info.plist. Why
is that happen?

Regards,
yllan

On Mon, Oct 17, 2011 at 3:54 PM, Johann Werner j...@oyosys.de wrote:
 Hi yllan,

 I would put that into the 'Resources' directory and use

 WOResourceManager.pathURLForResourceNamed(
        command-line-tool-name, // name of your tool
        null, // null if you put this into your app project
        null); // null as you are not interested in localized resources

 jw


 Am 17.10.2011 um 09:31 schrieb Yung-Luen Lan:

 Hi,

 I have some external command-line tools written by Objective-C that
 needs to be invoked in my wo app.

 Of course I could put them in somewhere like /usr/local/bin, etc.

 But I want to embed these command-line tools inside my wo app bundle
 so that people don't forget to copy the command-line tools when
 install the wo app. However, getting path of NSBundle is deprecated
 API. Which directory should I put these tools in and how do I get the
 path when I want to call them?

 The app is a woa bundle so don't have to take jar into account.

 Any comment?

 Regards,
 yllan



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

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


Rép : Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Raymond NANEON
Here is the columns of return array (an pl/sql structure) :create or replaceTYPE OBJ_ETUDIANT AS OBJECT(/* TODO enter attribute and method declarations here */ID_ETU NUMBER(7),CIV_NOM VARCHAR2(77),NOM VARCHAR2(40),PRENOM VARCHAR2(30),DATE_NAIS VARCHAR2(10),COM_NAIS VARCHAR2(93),EMAIL VARCHAR2(100),BAC VARCHAR2(20),AN_BAC VARCHAR2(4),DER_DIPLOME VARCHAR2(100),ETAB_DER_DIPLOME VARCHAR2(30),CONSEILLER_ID NUMBER(7),CONSEILLER VARCHAR2(77),DER_INSCRIPTION VARCHAR2(50),DER_PERIODE VARCHAR2(4),ACT_FORMATION VARCHAR2(18));Define each row? Why define each row when we know the return value is a block of data?Envoyé depuis iCloudLe 17 oct 2011 à 03:53, Paul Yu p...@mac.com a écrit:What does the structure of the return array look like? The columns...Does it have an toMany relationship as one of the attributes? If no, then you need to define each of the columns and let EOF deal with the rows of the array.PaulOn Oct 17, 2011, at 6:45 AM, Raymond NANEON wrote:So how to declare column of the array as external Type?Envoyé depuis iCloudLe 17 oct 2011 à 03:33, Paul Yu p...@mac.com a écrit:I would think you would need to somehow define every attribute of the returned attribute(s) from this procedure.I would think that EOF knows that an Array will be coming back from your call, the issue is COLUMN is a column of the array, not the rows of the array.PaulOn Oct 17, 2011, at 6:27 AM, Raymond NANEON wrote:Hi,I declare External Type ARRAY, OBJECT and so one and stuck on the same error :com.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.I try all Oracle externalsTypes which are familiar to Table or Array.Envoyé depuis iCloudLe 17 oct 2011 à 03:10, Paul Yu p...@mac.com a écrit:Is TABLE a valid external type?PaulOn Oct 17, 2011, at 5:00 AM, Raymond NANEON wrote:Hi,I added a returnValue attribute in my function declaration in my eomodel. I declared external type of my attribute as Table and custom data as NSMutableDictionnary. When I execute my function I get this error :eo3.pngcom.webobjects.jdbcadaptor.JDBCAdaptorException : Unable to determine JDBC type for attribute '020_returnValue' when preparing output parameter for stored procedure.Thanks for your helpEnvoyé depuis iCloudLe 17 oct 2011 à 01:00, Raymond NANEON rnan...@me.com a écrit:Hi All,I verified my function owner and all is fine but I have always the same problemFUNCTION is not a procedure or is undefined.The Function :FUNCTION PROFIL_ETUDIANT(etuID in NUMBER -- id etudiant) return TAB_ETUID PIPELINED;In eomodel :eo1.pngeo2.pngWhat The problem? It's because my function declaration in eoModel don't have return attribute? Thanks for your helpEnvoyé depuis iCloudLe 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit:Thanks Susanne,My entities, functions and procedures are prefixed with schema owner but I go to verify again.ThanksEnvoyé depuis iCloudLe 12 oct 2011 à 01:48, Susanne Schneider susanne.schnei...@interactive-systems.de a écrit:Hi Raymond,  I would gess this is more an Oracle than an WebObjects problem. Oracle  can be very picky regarding user rights if you are dealing with separate  user schemes for your EOModel. Maybe the function is defined by another  user than that used by WebObjects to execute it?  You should check if the function owner is the user executing and, if  they are not equal, if the necessary execute rights have been given.  Furthermore if the function itself accesses tables from another user  than owner or executer, than you have another problem to solve :-)  HTH, Susanne  Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com:  Send Webobjects-dev mailing list submissions to  webobjects-dev@lists.apple.com   To subscribe or unsubscribe via the World Wide Web, visit  http://lists.apple.com/mailman/listinfo/webobjects-dev  or, via email, send a message with subject or body 'help' to  webobjects-dev-requ...@lists.apple.com   You can reach the person managing the list at  webobjects-dev-ow...@lists.apple.com   When replying, please edit your Subject line so it is more specific  than "Re: Contents of Webobjects-dev digest..."Today's Topics:   1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is indefined ) (Rafal Szczepanski)  2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)  3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not  a procedure or is indefined ) (Raymond NANEON)  4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)  5. Re: Compare old Server to the new mac mini Server (Tim Worman)  6. Long time no write?and a problem with "Unbound classpath  container" (Lon Varscsak)--   Message: 1  Date: Tue, 11 Oct 2011 11:13:58 +0200  From: Rafal Szczepanskir.szczepan...@smartrecruiters.com  Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a  procedure or is 

Re: Rép : Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Susanne Schneider

Hi Raymond,

alas I have not much experience with using PL/SQL function through an 
eomodel. We are using most of our PL/SQL functions through JDBC directly.


But the direction seems to be a very reasonable assumption. Oracle at 
least distinguishes between procedures (without return value) and 
functions (with return value). The error messages indicates that there 
is a confusion about the type. Maybe you can try to change the direction 
type, in/out seems to be a good start to test.


You can even get a return value in EOF from a procedure if the procedure 
itself assigns a value to a given parameter variable. I have to admit, 
that this _is_ very confusing.


Good luck!
Susanne

Am 17.10.2011 10:00, schrieb Raymond NANEON:

Hi All,

I verified my function owner and all is fine but I have always the same
problem FUNCTION is not a procedure or is undefined.

The Function :

FUNCTION PROFIL_ETUDIANT(
etuID in NUMBER -- id etudiant
) return TAB_ETUID PIPELINED;


In eomodel :

eo1.png
eo2.png


What The problem? It's because my function declaration in eoModel don't have 
return attribute?


Thanks for your help

Envoyé depuis iCloud


Le 13 oct 2011 à 00:33, Raymond NANEON rnan...@me.com a écrit :


Thanks Susanne,

My entities, functions and procedures are prefixed with schema owner
but I go to verify again.

Thanks
Envoyé depuis iCloud

Le 12 oct 2011 à 01:48, Susanne Schneider
susanne.schnei...@interactive-systems.de a écrit :


Hi Raymond,

I would gess this is more an Oracle than an WebObjects problem. Oracle
can be very picky regarding user rights if you are dealing with separate
user schemes for your EOModel. Maybe the function is defined by another
user than that used by WebObjects to execute it?

You should check if the function owner is the user executing and, if
they are not equal, if the necessary execute rights have been given.
Furthermore if the function itself accesses tables from another user
than owner or executer, than you have another problem to solve :-)

HTH,
Susanne

Am 11.10.2011 21:11, schrieb webobjects-dev-requ...@lists.apple.com
mailto:webobjects-dev-requ...@lists.apple.com:
 Send Webobjects-dev mailing list submissions to
 webobjects-dev@lists.apple.com mailto:webobjects-dev@lists.apple.com

 To subscribe or unsubscribe via the World Wide Web, visit
 http://lists.apple.com/mailman/listinfo/webobjects-dev
 or, via email, send a message with subject or body 'help' to
 webobjects-dev-requ...@lists.apple.com
mailto:webobjects-dev-requ...@lists.apple.com

 You can reach the person managing the list at
 webobjects-dev-ow...@lists.apple.com
mailto:webobjects-dev-ow...@lists.apple.com

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Webobjects-dev digest...


 Today's Topics:

 1. Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
 procedure or is indefined ) (Rafal Szczepanski)
 2. Compare old Server to the new mac mini Server (ISHIMOTO Ken)
 3. R?p?: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not
 a procedure or is indefined ) (Raymond NANEON)
 4. Re: Compare old Server to the new mac mini Server (Ramsey Gurley)
 5. Re: Compare old Server to the new mac mini Server (Tim Worman)
 6. Long time no write?and a problem with Unbound classpath
 container (Lon Varscsak)


 --

 Message: 1
 Date: Tue, 11 Oct 2011 11:13:58 +0200
 From: Rafal Szczepanskir.szczepan...@smartrecruiters.com
mailto:r.szczepan...@smartrecruiters.com
 Subject: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a
 procedure or is indefined )
 To: rnan...@me.com mailto:rnan...@me.com
 Cc: webobjects-dev@lists.apple.com
mailto:webobjects-dev@lists.apple.com
 Message-ID:001e01cc87f6$1d55f960$5801ec20$@com
 Content-Type: text/plain; charset=us-ascii

 Hi Raymond,



 I'm using Oracle functions and everything works smooth. Can you please
 provide more details about your configuration?



 Cheers,

 Rafal





 -- next part --
 An HTML attachment was scrubbed...
 URL:
http://lists.apple.com/pipermail/webobjects-dev/attachments/20111011/f8e7ed28/attachment.html

 --

 Message: 2
 Date: Tue, 11 Oct 2011 11:19:47 +0200
 From: ISHIMOTO Kenk...@ksroom.com mailto:k...@ksroom.com
 Subject: Compare old Server to the new mac mini Server
 To: WebObjects List MailingWebobjects-dev@lists.apple.com
mailto:Webobjects-dev@lists.apple.com
 Cc: wo...@webobjects.me mailto:wo...@webobjects.me
 Message-ID:877ba62f-0947-4cad-95c5-85bb67bf7...@ksroom.com
mailto:877ba62f-0947-4cad-95c5-85bb67bf7...@ksroom.com
 Content-Type: text/plain; charset=us-ascii

 Hi,

 I have replaced one of my Server.



 The old Server was a mac mini 2GB intel core duo with FrontBase 4
and Wonder-D2W Application.

 The Average Transaction Time was : 0.626s (3 Instances used)

 The new Server is a mac mini 8GB i7 with FrontBase 5 and the some
Wonder-D2W Application.

 The Average Transaction 

CLOSE_WAIT when database is offline

2011-10-17 Thread Alexander Spohr
Hi list,

we have a rather busy WO-service. Sometimes one of our multiple database 
servers fails and CLOSE_WAIT shows its ugly head and kills the performance.

What I think the problem is:
- WebServer asks AppServer for data
- AppServer tries to connect to db
- more requests come in
- AppServer tries to connect to db
- more requests come in
- AppServer tries to connect to db
- more requests come in
...
Then after a while the WebServers close their side of the connection but the 
app connection threads still wait in queue for the database. So the app never 
acknowledges the close and we slowly die.

Is this what happens?
Can we do something against it?
A delegate method perhaps, to throw an error if we can not connect to the db? 
(And of course retrying later to reconnect - after all the database will come 
online again)

Any pointers are welcome,

atze

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

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


Re: Embed a external command-line tool in bundle

2011-10-17 Thread Kieran Kelleher
Fiddling with the woproject/resources.*.patternset files is how the contents of 
the Resources dir is specified for the build logic. In the build.xml, you can 
see this is in target build.woapp and resources declaration.

So you can modify the the patternset files and/or directly modify the build xml 
at that declaration if pattern sets alone are not able to do what you want.

HTH, Kieran

On Oct 17, 2011, at 7:56 AM, Yung-Luen Lan wrote:

 Thanks. Now I have another build problem. If I move my command-line
 tool (actually, it's a cocoa app bundle without UI) under Resources,
 then the ant build process will move this file
 
 MyWOApp.woa/Contents/Resources/MyTools.app/Contents/Resources/Info.plist
 
 to
 
 MyWOApp.woa/Contents/Resources/Info.plist
 
 which leaves both my wo/cocoa apps in corrupt Info.plist state. I look
 the build.xml without finding anything related to the Info.plist. Why
 is that happen?
 
 Regards,
 yllan
 
 On Mon, Oct 17, 2011 at 3:54 PM, Johann Werner j...@oyosys.de wrote:
 Hi yllan,
 
 I would put that into the 'Resources' directory and use
 
 WOResourceManager.pathURLForResourceNamed(
command-line-tool-name, // name of your tool
null, // null if you put this into your app project
null); // null as you are not interested in localized resources
 
 jw
 
 
 Am 17.10.2011 um 09:31 schrieb Yung-Luen Lan:
 
 Hi,
 
 I have some external command-line tools written by Objective-C that
 needs to be invoked in my wo app.
 
 Of course I could put them in somewhere like /usr/local/bin, etc.
 
 But I want to embed these command-line tools inside my wo app bundle
 so that people don't forget to copy the command-line tools when
 install the wo app. However, getting path of NSBundle is deprecated
 API. Which directory should I put these tools in and how do I get the
 path when I want to call them?
 
 The app is a woa bundle so don't have to take jar into account.
 
 Any comment?
 
 Regards,
 yllan
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
 
 This email sent to kelleh...@gmail.com

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

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


Re: CLOSE_WAIT when database is offline

2011-10-17 Thread Philippe Rabier
Alexander, do you open a database connection each time the web app receives an 
incoming request?

Philippe

Sent from my iPhone

On 17 oct. 2011, at 14:54, Alexander Spohr a...@freeport.de wrote:

 Hi list,
 
 we have a rather busy WO-service. Sometimes one of our multiple database 
 servers fails and CLOSE_WAIT shows its ugly head and kills the performance.
 
 What I think the problem is:
 - WebServer asks AppServer for data
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 ...
 Then after a while the WebServers close their side of the connection but the 
 app connection threads still wait in queue for the database. So the app never 
 acknowledges the close and we slowly die.
 
 Is this what happens?
 Can we do something against it?
 A delegate method perhaps, to throw an error if we can not connect to the db? 
 (And of course retrying later to reconnect - after all the database will come 
 online again)
 
 Any pointers are welcome,
 
atze
 
 ___
 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/prabier%40me.com
 
 This email sent to prab...@me.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Framework Not Building In Hudson/Jenkins

2011-10-17 Thread Ted Archibald
Got it working now, thanks for the help.  After I placed the jars in the
Libraries directory proper, everything built fine.
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: CLOSE_WAIT when database is offline

2011-10-17 Thread Alexander Spohr

Am 17.10.2011 um 16:19 schrieb Philippe Rabier:

 Alexander, do you open a database connection each time the web app receives 
 an incoming request?

No. But the app tries to reconnect when the database goes down.

atze



 
 Philippe
 
 Sent from my iPhone
 
 On 17 oct. 2011, at 14:54, Alexander Spohr a...@freeport.de wrote:
 
 Hi list,
 
 we have a rather busy WO-service. Sometimes one of our multiple database 
 servers fails and CLOSE_WAIT shows its ugly head and kills the performance.
 
 What I think the problem is:
 - WebServer asks AppServer for data
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 ...
 Then after a while the WebServers close their side of the connection but the 
 app connection threads still wait in queue for the database. So the app 
 never acknowledges the close and we slowly die.
 
 Is this what happens?
 Can we do something against it?
 A delegate method perhaps, to throw an error if we can not connect to the 
 db? (And of course retrying later to reconnect - after all the database will 
 come online again)
 
 Any pointers are welcome,
 
   atze
 
 ___
 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/prabier%40me.com
 
 This email sent to prab...@me.com

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

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


Re: Question about restrictedChoiceKey

2011-10-17 Thread Ramsey Gurley

On Oct 17, 2011, at 3:02 AM, Farrukh Ijaz wrote:

 Hi,
 
 I've a situation. I've three entities:
 
 Country
 CountryGroup
 Customer
 
 The Customer has toOne relationship with Country and Country has toMany 
 relationship with CountryGroup. The customer doesn't know about CountryGroup 
 at all. In the Customer query page, I want to present the user list of 
 CountryGroup for which following rules:
 
 LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: 
 componentName = 'ERD2WQueryToManyRelationship'
 LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: 
 restrictedChoiceKey = 'object.availableCountryGroups'
 
 The availableCountryGroups() returns NSArrayCountryGroup and is defined in 
 Customer class.

How is the current user tied to a particular customer object that you want to 
use for restricted choices?

Ramsey

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

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


Re: CLOSE_WAIT when database is offline

2011-10-17 Thread Philippe Rabier
I didn't play with it for a long time but you have to use the databaseContext 
delegate 
see 
http://webobjects.mdimension.com/hudson/job/Wonder/javadoc/er/extensions/eof/ERXDatabaseContextDelegate.html

and implement your own policy (retry several times then gives up).

However, if the web app stop to reconnect, it must be handled at a higher level 
because the service should return an error. And then the apache adaptor must 
stop to send it new requests but I don't know how to do that 
(application.terminate()). Or play with the WOAdaptor 
(unregisterForEvents())   
http://www.webobjects.me/API/wo542/com/webobjects/appserver/WOAdaptor.html

It's surely easier to fix the database issue but you know already that.

Philippe

On 17 oct. 2011, at 16:51, Alexander Spohr wrote:

 
 Am 17.10.2011 um 16:19 schrieb Philippe Rabier:
 
 Alexander, do you open a database connection each time the web app receives 
 an incoming request?
 
 No. But the app tries to reconnect when the database goes down.
 
   atze
 
 
 
 
 Philippe
 
 Sent from my iPhone
 
 On 17 oct. 2011, at 14:54, Alexander Spohr a...@freeport.de wrote:
 
 Hi list,
 
 we have a rather busy WO-service. Sometimes one of our multiple database 
 servers fails and CLOSE_WAIT shows its ugly head and kills the performance.
 
 What I think the problem is:
 - WebServer asks AppServer for data
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 - AppServer tries to connect to db
 - more requests come in
 ...
 Then after a while the WebServers close their side of the connection but 
 the app connection threads still wait in queue for the database. So the app 
 never acknowledges the close and we slowly die.
 
 Is this what happens?
 Can we do something against it?
 A delegate method perhaps, to throw an error if we can not connect to the 
 db? (And of course retrying later to reconnect - after all the database 
 will come online again)
 
 Any pointers are welcome,
 
  atze
 
 ___
 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/prabier%40me.com
 
 This email sent to prab...@me.com
 

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

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


[MEETING] WO-NoVA TOMORROW 10/18/2011

2011-10-17 Thread Andrew Kinnie
Greetings all, 

This month's WO-NoVA meeting is scheduled for TOMORROW NIGHT at 6:30 at Mad Fox 
in Falls Church.  RSVP appreciated!

As indicated last week, we'll be having a relatively informal meeting where we 
can discuss whatever development related stuff we decide to, and open the 
floor/table to ask whatever questions you would like.

Hope to see you there!

Mad Fox
444 W Broad St
Falls Church, VA

http://maps.google.com/maps?client=safarioe=UTF-8ie=UTF8q=mad+fox+falls+churchfb=1gl=ushq=mad+foxhnear=0x89b64b6e7a4663ad:0x6e536688973d9759,Falls+Church,+VAcid=0,0,6900989822057196511ll=38.889697,-77.176917spn=0.01119,0.022638t=hz=16iwloc=A

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

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


Re: Embed a external command-line tool in bundle

2011-10-17 Thread Yung-Luen Lan
My Cocoa bundle is included in the FileSet specified by
woproject/resources.include.patternset.
The problem is how the woapplication task handle it.

According to wiki,
http://wiki.objectstyle.org/confluence/display/WOL/WOProject-Localization
Not localized resource should be copied to the resources directory
preserving subdirectories structure. But the following is my ant -v
output:

[woapplication] Resources/MyTool.app/Contents/Info.plist added as
Info.plist doesn't exist.
[woapplication] Resources/MyTool.app/Contents/MacOS/MyTool added as
MyTool.app/Contents/MacOS/MyTool doesn't exist.
[woapplication] Resources/MyTool.app/Contents/PkgInfo added as
MyTool.app/Contents/PkgInfo doesn't exist.
[woapplication] Resources/MyTool.app/Contents/Resources/MyTool.tif
added as MyTool.app/Contents/Resources/MyTool.tif doesn't exist.
[woapplication]
Resources/MyTool.app/Contents/Resources/en.lproj/InfoPlist.strings
added as en.lproj/InfoPlist.strings doesn't exist.

As you see, the directory structure of Info.plist was flatten. The
en.lproj inside the Cocoa app bundle was treated as a WO localized
resource, which is wrong behavior. I really can't find documents
specify the Info.plist behavior.

Regards,
yllan

On Mon, Oct 17, 2011 at 9:12 PM, Kieran Kelleher kelleh...@gmail.com wrote:
 Fiddling with the woproject/resources.*.patternset files is how the contents 
 of the Resources dir is specified for the build logic. In the build.xml, you 
 can see this is in target build.woapp and resources declaration.

 So you can modify the the patternset files and/or directly modify the build 
 xml at that declaration if pattern sets alone are not able to do what you 
 want.

 HTH, Kieran

 On Oct 17, 2011, at 7:56 AM, Yung-Luen Lan wrote:

 Thanks. Now I have another build problem. If I move my command-line
 tool (actually, it's a cocoa app bundle without UI) under Resources,
 then the ant build process will move this file

 MyWOApp.woa/Contents/Resources/MyTools.app/Contents/Resources/Info.plist

 to

 MyWOApp.woa/Contents/Resources/Info.plist

 which leaves both my wo/cocoa apps in corrupt Info.plist state. I look
 the build.xml without finding anything related to the Info.plist. Why
 is that happen?

 Regards,
 yllan

 On Mon, Oct 17, 2011 at 3:54 PM, Johann Werner j...@oyosys.de wrote:
 Hi yllan,

 I would put that into the 'Resources' directory and use

 WOResourceManager.pathURLForResourceNamed(
        command-line-tool-name, // name of your tool
        null, // null if you put this into your app project
        null); // null as you are not interested in localized resources

 jw


 Am 17.10.2011 um 09:31 schrieb Yung-Luen Lan:

 Hi,

 I have some external command-line tools written by Objective-C that
 needs to be invoked in my wo app.

 Of course I could put them in somewhere like /usr/local/bin, etc.

 But I want to embed these command-line tools inside my wo app bundle
 so that people don't forget to copy the command-line tools when
 install the wo app. However, getting path of NSBundle is deprecated
 API. Which directory should I put these tools in and how do I get the
 path when I want to call them?

 The app is a woa bundle so don't have to take jar into account.

 Any comment?

 Regards,
 yllan



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

 This email sent to kelleh...@gmail.com


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

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


Re: Embed a external command-line tool in bundle

2011-10-17 Thread Yung-Luen Lan
Found the handling code here:

https://github.com/wolips/wolips/blob/master/woproject-ant-tasks/src/java/org/objectstyle/woproject/ant/WOMapper.java

Need to figure out how to fix this with least effort.

Regards,
yllan

On Tue, Oct 18, 2011 at 12:12 AM, Yung-Luen Lan yungl...@gmail.com wrote:
 My Cocoa bundle is included in the FileSet specified by
 woproject/resources.include.patternset.
 The problem is how the woapplication task handle it.

 According to wiki,
 http://wiki.objectstyle.org/confluence/display/WOL/WOProject-Localization
 Not localized resource should be copied to the resources directory
 preserving subdirectories structure. But the following is my ant -v
 output:

 [woapplication] Resources/MyTool.app/Contents/Info.plist added as
 Info.plist doesn't exist.
 [woapplication] Resources/MyTool.app/Contents/MacOS/MyTool added as
 MyTool.app/Contents/MacOS/MyTool doesn't exist.
 [woapplication] Resources/MyTool.app/Contents/PkgInfo added as
 MyTool.app/Contents/PkgInfo doesn't exist.
 [woapplication] Resources/MyTool.app/Contents/Resources/MyTool.tif
 added as MyTool.app/Contents/Resources/MyTool.tif doesn't exist.
 [woapplication]
 Resources/MyTool.app/Contents/Resources/en.lproj/InfoPlist.strings
 added as en.lproj/InfoPlist.strings doesn't exist.

 As  you see, the directory structure of Info.plist was flatten. The
 en.lproj inside the Cocoa app bundle was treated as a WO localized
 resource, which is wrong behavior. I really can't find documents
 specify the Info.plist behavior.

 Regards,
 yllan

 On Mon, Oct 17, 2011 at 9:12 PM, Kieran Kelleher kelleh...@gmail.com wrote:
 Fiddling with the woproject/resources.*.patternset files is how the contents 
 of the Resources dir is specified for the build logic. In the build.xml, you 
 can see this is in target build.woapp and resources declaration.

 So you can modify the the patternset files and/or directly modify the build 
 xml at that declaration if pattern sets alone are not able to do what you 
 want.

 HTH, Kieran

 On Oct 17, 2011, at 7:56 AM, Yung-Luen Lan wrote:

 Thanks. Now I have another build problem. If I move my command-line
 tool (actually, it's a cocoa app bundle without UI) under Resources,
 then the ant build process will move this file

 MyWOApp.woa/Contents/Resources/MyTools.app/Contents/Resources/Info.plist

 to

 MyWOApp.woa/Contents/Resources/Info.plist

 which leaves both my wo/cocoa apps in corrupt Info.plist state. I look
 the build.xml without finding anything related to the Info.plist. Why
 is that happen?

 Regards,
 yllan

 On Mon, Oct 17, 2011 at 3:54 PM, Johann Werner j...@oyosys.de wrote:
 Hi yllan,

 I would put that into the 'Resources' directory and use

 WOResourceManager.pathURLForResourceNamed(
        command-line-tool-name, // name of your tool
        null, // null if you put this into your app project
        null); // null as you are not interested in localized resources

 jw


 Am 17.10.2011 um 09:31 schrieb Yung-Luen Lan:

 Hi,

 I have some external command-line tools written by Objective-C that
 needs to be invoked in my wo app.

 Of course I could put them in somewhere like /usr/local/bin, etc.

 But I want to embed these command-line tools inside my wo app bundle
 so that people don't forget to copy the command-line tools when
 install the wo app. However, getting path of NSBundle is deprecated
 API. Which directory should I put these tools in and how do I get the
 path when I want to call them?

 The app is a woa bundle so don't have to take jar into account.

 Any comment?

 Regards,
 yllan



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

 This email sent to kelleh...@gmail.com



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

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


Re: Question about restrictedChoiceKey

2011-10-17 Thread Farrukh Ijaz
Hi Ramsey,

The issue has been solved. The reason to hessitate using 'session.keyName' was 
my understanding to implement a getter for keyName inside Session class. But 
this has been solved using 'session.objectStore.keyName'.

Thanks,

Farrukh

On 2011-10-17, at 6:34 PM, Ramsey Gurley wrote:

 
 On Oct 17, 2011, at 3:02 AM, Farrukh Ijaz wrote:
 
 Hi,
 
 I've a situation. I've three entities:
 
 Country
 CountryGroup
 Customer
 
 The Customer has toOne relationship with Country and Country has toMany 
 relationship with CountryGroup. The customer doesn't know about CountryGroup 
 at all. In the Customer query page, I want to present the user list of 
 CountryGroup for which following rules:
 
 LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: 
 componentName = 'ERD2WQueryToManyRelationship'
 LHS: (propertyKey = 'toCountry.toCountryGroups' and task = 'query') RHS: 
 restrictedChoiceKey = 'object.availableCountryGroups'
 
 The availableCountryGroups() returns NSArrayCountryGroup and is defined in 
 Customer class.
 
 How is the current user tied to a particular customer object that you want to 
 use for restricted choices?
 
 Ramsey

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

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


Re: Embed a external command-line tool in bundle

2011-10-17 Thread Kieran Kelleher
Least effort fix might be to exclude your bundle from the woproject task 
(wopattern exclude) and add an ant task to simply copy the bundle to your dist 
Resources folder.

On Oct 17, 2011, at 12:49 PM, Yung-Luen Lan wrote:

 Found the handling code here:
 
 https://github.com/wolips/wolips/blob/master/woproject-ant-tasks/src/java/org/objectstyle/woproject/ant/WOMapper.java
 
 Need to figure out how to fix this with least effort.
 
 Regards,
 yllan
 
 On Tue, Oct 18, 2011 at 12:12 AM, Yung-Luen Lan yungl...@gmail.com wrote:
 My Cocoa bundle is included in the FileSet specified by
 woproject/resources.include.patternset.
 The problem is how the woapplication task handle it.
 
 According to wiki,
 http://wiki.objectstyle.org/confluence/display/WOL/WOProject-Localization
 Not localized resource should be copied to the resources directory
 preserving subdirectories structure. But the following is my ant -v
 output:
 
 [woapplication] Resources/MyTool.app/Contents/Info.plist added as
 Info.plist doesn't exist.
 [woapplication] Resources/MyTool.app/Contents/MacOS/MyTool added as
 MyTool.app/Contents/MacOS/MyTool doesn't exist.
 [woapplication] Resources/MyTool.app/Contents/PkgInfo added as
 MyTool.app/Contents/PkgInfo doesn't exist.
 [woapplication] Resources/MyTool.app/Contents/Resources/MyTool.tif
 added as MyTool.app/Contents/Resources/MyTool.tif doesn't exist.
 [woapplication]
 Resources/MyTool.app/Contents/Resources/en.lproj/InfoPlist.strings
 added as en.lproj/InfoPlist.strings doesn't exist.
 
 As  you see, the directory structure of Info.plist was flatten. The
 en.lproj inside the Cocoa app bundle was treated as a WO localized
 resource, which is wrong behavior. I really can't find documents
 specify the Info.plist behavior.
 
 Regards,
 yllan
 
 On Mon, Oct 17, 2011 at 9:12 PM, Kieran Kelleher kelleh...@gmail.com wrote:
 Fiddling with the woproject/resources.*.patternset files is how the 
 contents of the Resources dir is specified for the build logic. In the 
 build.xml, you can see this is in target build.woapp and resources 
 declaration.
 
 So you can modify the the patternset files and/or directly modify the build 
 xml at that declaration if pattern sets alone are not able to do what you 
 want.
 
 HTH, Kieran
 
 On Oct 17, 2011, at 7:56 AM, Yung-Luen Lan wrote:
 
 Thanks. Now I have another build problem. If I move my command-line
 tool (actually, it's a cocoa app bundle without UI) under Resources,
 then the ant build process will move this file
 
 MyWOApp.woa/Contents/Resources/MyTools.app/Contents/Resources/Info.plist
 
 to
 
 MyWOApp.woa/Contents/Resources/Info.plist
 
 which leaves both my wo/cocoa apps in corrupt Info.plist state. I look
 the build.xml without finding anything related to the Info.plist. Why
 is that happen?
 
 Regards,
 yllan
 
 On Mon, Oct 17, 2011 at 3:54 PM, Johann Werner j...@oyosys.de wrote:
 Hi yllan,
 
 I would put that into the 'Resources' directory and use
 
 WOResourceManager.pathURLForResourceNamed(
command-line-tool-name, // name of your tool
null, // null if you put this into your app project
null); // null as you are not interested in localized resources
 
 jw
 
 
 Am 17.10.2011 um 09:31 schrieb Yung-Luen Lan:
 
 Hi,
 
 I have some external command-line tools written by Objective-C that
 needs to be invoked in my wo app.
 
 Of course I could put them in somewhere like /usr/local/bin, etc.
 
 But I want to embed these command-line tools inside my wo app bundle
 so that people don't forget to copy the command-line tools when
 install the wo app. However, getting path of NSBundle is deprecated
 API. Which directory should I put these tools in and how do I get the
 path when I want to call them?
 
 The app is a woa bundle so don't have to take jar into account.
 
 Any comment?
 
 Regards,
 yllan
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
 
 This email sent to kelleh...@gmail.com
 
 
 

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

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


Rép : Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Kevin Ren
Hi, Raymond,
 
may be this is your typo. Your table type is OBJ_ETU instead of OBJ_ETUDIANT .
 
create or replace TYPE OBJ_ETUDIANT AS OBJECT 
 
TYPE TAB_ETUD IS TABLE OF OBJ_ETU;

FUNCTION PROFIL_ETUDIANT(
etuID in NUMBER
) return TAB_ETUD PIPELINED;
 
1, if i declare OBJECT and TABLE type, i use  return/out parameter type as 
CURSOR.
2, if I declare  RECORD and TABLE type, i use return type as PIPELINED table.
 
All these are in JEE application from JDBC, not WO app.
 
goo dluck,
 
Kevin



This e-mail message and attachments do not necessarily reflect the views of 
the New Zealand Ministry of Justice and may contain 
information that is confidential and may be subject to legal privilege. If you 
are not the intended recipient, you are hereby notified that you must not use, 
disseminate, distribute or copy this e-mail message or its attachments. If you 
received this message in error, please notify the Ministry of Justice 
by telephone (call collect: 00-64-4-918-8800) or return the 
original message to us by e-mail, and destroy any copies.
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 arch...@mail-archive.com


Re: Calling PL/SQL FUNCTION In WebObjects( FUNCTION is not a procedure or is undefined )

2011-10-17 Thread Raymond NANEON
Hi Kevin,

There are not a way to use function returned PIPELINE Table in WO ? It's not 
define in EOAttribute class which set the stored Procedure arguments?
So I go to use rawRowSql to execute my function in WO.

Thanks

Raymond NANEON
rnan...@me.com



Le 17 oct. 2011 à 22:21, Kevin Ren a écrit :

 Hi, Raymond,
  
 may be this is your typo. Your table type is OBJ_ETU instead of OBJ_ETUDIANT .
  
 create or replace TYPE OBJ_ETUDIANT AS OBJECT 
  
 TYPE TAB_ETUD IS TABLE OF OBJ_ETU;
 
 FUNCTION PROFIL_ETUDIANT(
 etuID in NUMBER
 ) return TAB_ETUD PIPELINED;
  
 1, if i declare OBJECT and TABLE type, i use  return/out parameter type as 
 CURSOR.
 2, if I declare  RECORD and TABLE type, i use return type as PIPELINED table.
  
 All these are in JEE application from JDBC, not WO app.
  
 goo dluck,
  
 Kevin
 
 
 This e-mail message and attachments do not necessarily reflect the views of 
 the New Zealand Ministry of Justice and may contain 
 information that is confidential and may be subject to legal privilege. If 
 you 
 are not the intended recipient, you are hereby notified that you must not 
 use, 
 disseminate, distribute or copy this e-mail message or its attachments. If 
 you 
 received this message in error, please notify the Ministry of Justice 
 by telephone (call collect: 00-64-4-918-8800) or return the 
 original message to us by e-mail, and destroy any copies.
 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/naneon.raymond%40neuf.fr
 
 This email sent to naneon.raym...@neuf.fr

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

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


Q about locked ec (again)

2011-10-17 Thread Philippe Rabier
The question is mainly for Kieran.

In the framework COScheduler (job scheduling), I expose an abstract method 
newEditingContext() to let the developer create his own ec with autolock = 
false (see discussion in february 2010) like this:
@Override
public EOEditingContext newEditingContext() 
{
return 
COEditingContextFactory.newManualLockingEditingContext(new 
EOObjectStoreCoordinator());
}

After seeing your presentation at the WOWODC'11, I was plenty of hope because I 
discover the class ERXTaskObjectStoreCoordinatorPool which is great. So I 
decided to remove this method to simplify the use of the framework and use the 
obs pool. However, I see the pb remains in the class ERXAbstractTask  when I 
read the javadoc:

 /**
 * strongYou must manually lock and unlock the editing context 
returned by
 * this method.strong It is not recommended that you depend on auto
 * locking in background threads.
 * 
 * Even though this method currently returns an auto-locking EC if
 * auto-locking is turned on for the app, a future update is planned 
that
 * will return a manually locking EC from this method even if 
auto-locking
 * is turned on for regular ECs used in normal request-response 
execution.
 * 
 * @return a new EOEditingContext.
 */
protected EOEditingContext newEditingContext()

IMH, we can't set this kind of setting at the application level because it's 
dangerous: we can mix background threads and UI in the same app.

Regarding the framework I'm working on, I see 2 options:
- set the abstract method newEditingContext() and let the user/developer create 
its own method like that:
EOObjectStoreCoordinator osc = 
ERXTaskObjectStoreCoordinatorPool.objectStoreCoordinator();
ERXEC ec = (ERXEC) 
MyECFactory.newManualLockingEditingContext(osc);

or provide a newEditingContext() method like you but I would add:
EOObjectStoreCoordinator osc = 
ERXTaskObjectStoreCoordinatorPool.objectStoreCoordinator();
ERXEC ec = (ERXEC) ERXEC.newEditingContext(osc);;
ec.setCoalesceAutoLocks(false);
ec.setUseAutoLock(false);

I don't like very much the 2 options even if the first one can guarantee a good 
working.

Sorry to be so long but do you have an update about the ticket below?

Philippe


On 19 févr. 2010, at 20:07, Kieran Kelleher wrote:

 http://issues.objectstyle.org/jira/browse/WONDER-478
 
 

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

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


ERAttachments, S3, and dynamic configurations

2011-10-17 Thread Matthew Ness
Hi all,

I'm using ERAttachments in a couple of my applications. Some are using the
configuration type {S3}.

For one of the applications using S3 I have a need to dynamically generate
and use a sub-set of the ERAttachment configuration set. I cannot use the
standard Properties approach, as the ERAttachments are not
grouped/configured by the standard EO-ERAttachment relationship but other
factors.

That is, for any specific EO-ERAttachment relationship, there may be
multiple configurations (defined by, say, ownership), and new
configurations may be added over the course of the running app. The major
(but not only) difference being the S3 bucket the ERAttachment will use.

I realise I can send a configuration name to ERS3AttachmentProcessor, but
that reads the bucket name from ERXProperties, rather than another type of
persistence (in my case, db).

I have in mind subclassing ERS3AttachmentProcessor, reading my
configuration data based on my criteria, and processing the ERAttachment
in that subclass based on that criteria. This seems to me a reasonable way
to go, but maybe I'm missing something.

Does this seem like a sound approach? Would you recommend an alternate
approach, or am I missing something? Has anyone done something similar?
Would it make more sense to not subclass, and assign my new class in
ERAttachmentProcessor.addAttachmentProcessorForType?

Likewise, I'd like to dynamically assign the linkLife of a generated URI
of an S3 ERAttachment.  On the face of it, it looks like I may need to
build a new [My]S3Attachment/[My]AttachmentProcessor stack. Or is there
another way to dynamically assign the linkLife each time an S3 URI is
generated in ERAttachment?

Lastly, this approach could allow the persistence of the acl value at
creation time, but this may be a discussion for another time :)

Thanks for any help,

Matt


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

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


Building framework branches with Hudson

2011-10-17 Thread Ramsey Gurley
Hi all,

I have a framework (2 actually) that is branched on CVS and I need to build the 
branch for one project while building the trunk for all the rest of the 
projects.  I'm wondering if there's an easy way to set this up? 

Thanks,

Ramsey

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

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


Re: Building framework branches with Hudson

2011-10-17 Thread David Avendasora
My old Hudson job templates allow you to specify a branch/revision for the 
Wonder frameworks out of Subversion, I'm not sure how CVS works (never had the 
pleasure) but if you take a look at them, they should give you an idea of how 
to modify the job. 

https://github.com/avendasora/WOJenkins

Basically, the frameworks get built into a Repository/branch/MyFmwk.framework 
structure, then the the Hudson job that builds the Application can specify 
which branch of the framework to use and then there are shell scripts that read 
that value and create a sym-link to the specific branch in the local frameworks 
directory for the job. (it uses symlinks for all the frameworks, including WO 
and WOnder (much faster builds that way).

It's hard to explain ... if you find me on skype (avendasora) or via IM 
(avendas...@mac.com) then I'd be happy give you an overview.

Dave


On Oct 18, 2011, at 7:39 AM, Ramsey Gurley wrote:

 Hi all,
 
 I have a framework (2 actually) that is branched on CVS and I need to build 
 the branch for one project while building the trunk for all the rest of the 
 projects.  I'm wondering if there's an easy way to set this up? 
 
 Thanks,
 
 Ramsey
 
 ___
 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/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.com
 
 

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

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


Re: EOF Boot Camp and WOWODC 2012

2011-10-17 Thread Ken Anderson
I can only make the July dates next year - so that's my vote!  I'll probably 
drag along someone from work to attend as well.

On Sep 20, 2011, at 3:26 PM, Pascal Robert wrote:

 Ok, so some news about WOWODC 2012. Like I said before, we want to do a Boot 
 Camp before WOWODC. That boot camp would be all about EOF, since without a 
 good EOF, including modeling, you will have problems using the rest of WO, 
 especially for ERRest and D2W. It might also include information about what 
 Wonder changes and add to EOF (ERXKey, localization, auto-locking, etc.).
 
 Before setting up everything, I need to know who wants to attend the EOF Boot 
 Camp. Possible dates are:
 
 - July 5-6-7
 - August 22-23-25
 - August 29-30-31
 
 Please note that the regular WOWODC would be 3 days, starting the last day 
 of the Boot Camp. So WOWODC would be one of those dates:
 
 - July 7-8-9
 - August 25-26-27
 - August 31-September 1-2
 
 People who attend the boot camp will also get access to WOWODC. The first day 
 of WOWODC will be for advanced sessions. So if you want to attend the boot 
 camp, reply to me directly and tell me which date(s) you prefer. If you would 
 like to present at WOWODC, reply to me with your preferred date(s) too.
 
 Thanks. ___
 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/kenlists%40anderhome.com
 
 This email sent to kenli...@anderhome.com

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

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