[flexcoders] RAITest, Selenium, QuickTest, Silk?

2008-08-27 Thread Douglas McCarroll
Hi All,

My company is thinking of implementing automated functional testing for our
Flex-based application. Do any of you have experience with these products
that you'd care to share?

Or, if not, do you know of any insightful online articles, etc?

Thanks in advance!

Douglas


Re: [flexcoders] Re: How does AIR apps connect to database?

2008-08-10 Thread Douglas McCarroll
It sounds like you want to connect to a local DB. BlazeDS works fine to
connect to a remote DB but for a local DB the standard approach is the use
the SQLite DB that is built into the AIR runtime.

On 8/10/08, Joshua Jackson <[EMAIL PROTECTED]> wrote:
>
>   --- In flexcoders@yahoogroups.com ,
> "haykelbj" <[EMAIL PROTECTED]> wrote:
> >
> > If you are using remoting with Flex you should still be able to use it
> > with AIR.
>
> But you can not bundle a web servlet container with AIR apps. :(
>
> --
> Setting a new landmark.
> Blog: http://joshuajava.wordpress.com/
> Twitter: http://twitter.com/thejavafreak
>
> 
>


Re: [flexcoders] When not to use weak references?

2008-07-14 Thread Douglas McCarroll
http://www.joeberkovitz.com/blog/2007/06/20/moment-of-weakness-weak-event-listeners-can-be-dangerous/



On Mon, Jul 14, 2008 at 9:43 PM, Tim Rowe <[EMAIL PROTECTED]> wrote:

>Use strong references when you're adding an event listener to the same
> instance dispatching an event.  If it's an anonymous function, you need to
> use a strong reference.  Also, use strong references when you want speed –
> weak references are slower.
>
> Always use weak references when dealing with singletons (Cairngorm's event
> dispatcher is a singleton, hence, always use with Cairngorm), or objects
> that live the life of the application.  This includes timers waiting on call
> backs also.
>
>
>
> Not always true but if you have an object you intend to never have
> destroyed, but it may also be perfectly safe to use strong references.  Keep
> in mind though that using a weak reference on, say, an event listener where
> a strong one was required may result in things like that listener not
> getting called.
>
>
>
> I'm only new to Flex, but this is as I understand it, and no doubt I've
> missed a few things here and there.
>
>
>
> --Tim Rowe
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Boon Chew
> *Sent:* Tuesday, 15 July 2008 2:08 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] When not to use weak references?
>
>
>
> Hi all,
>
> I have read posts that preached the goodness of weak references for event
> listening, but have not read anything that suggests when you should use
> strong reference over the weak one, and  the down side to using weak
> references.
>
> Any ideas when being weak is not bad thing? :)
>
> - boon
>
>
>
> 
>


Re: [flexcoders] Flex combining Struts, Spring, Hibernate

2008-06-12 Thread Douglas McCarroll
http://www.brightworks.com/technology/adobe_flex/with_java.html

http://www.brightworks.com/technology/adobe_flex/blazeds.html

On Thu, Jun 12, 2008 at 5:52 AM, kamel <[EMAIL PROTECTED]> wrote:

>   Hi all,
> I have an application developed with Struts, Spring, Hibernate I want
> to integrate Flex and i'm a beginner in RIA programming. It is very
> urgent can anybody helps me.
> thanks
>
> 
>


Re: [flexcoders] eed simple CRUD application using Flex, Mysql and PHP

2008-05-22 Thread Douglas McCarroll
I'm not a PHP person, but some of the examples listed here may be helpful:

http://www.brightworks.com/technology/adobe_flex/with_php.html

On Thu, May 22, 2008 at 3:00 PM, andrej770 <[EMAIL PROTECTED]> wrote:

>   I am a newbie at Adobe Flex. I want to create a simple Address book
> in Flex using Mysql, and PHP. I want to be able to add, delete and
> update records from Datagrid and from a form. It has been hit and
> miss at finding a working solution; I've heard about amfphp, json,
> WebOrb, etc but haven't a clue on how to implement them with php,
> flex and Mysql; its all probably due to my newness. Links to
> solutions are fine. I prefer a coded example though if possible.
> The datagrid changes that are made should only update the Mysql
> database when I click an update button. It would be nice to pass the
> information from the datagrid to an array or object then to the
> database instead of directly. The information that is updated in the
> database should also only be the updated data and not the whole
> record.
>
> The database is as follows:
>
> DB: addresses
> table: contacts
> fields: fname, lname, addr1, addr2, city, st, zip, phone1, phone2,
> fax, emailaddr, memo
>
> Thanks
>
> 
>


Re: [flexcoders] Flex,PHP ,PHPAMF(OR WEBORB) and Cairngorm Demo links need

2008-05-12 Thread Douglas McCarroll
http://www.brightworks.com/technology/adobe_flex/cairngorm.html

http://www.brightworks.com/technology/adobe_flex/with_php.html

http://www.brightworks.com/technology/adobe_flex/code.html

Also, I invite you to attend the Boston Flex Application Incubator Group
online, most Monday evenings:

http://www.bfaig.org

Douglas

On Mon, May 12, 2008 at 12:18 AM, markflex2007 <[EMAIL PROTECTED]>
wrote:

>   I plan to develop a Flex,PHP and Cairngorm application.
>
> But I do not have a idea about that.Please help.Thanks
>
> Mark
>
> 
>


Re: [flexcoders] Vista and LiveCycle DS Express

2008-05-09 Thread Douglas McCarroll
a. I don't think that you're off-topic. A lot of people post LCDS questions
to this list.

b. I'm working with BlazeDS on Vista with no problems. No guarantee,
but BlazeDS and LCDS share so much tech that I'd be surprised if you have
problems...

On Fri, May 9, 2008 at 3:50 PM, ntman12001 <[EMAIL PROTECTED]> wrote:

>   I am sorry for the "off topic" but I have posted this question in the
> LiveCycle forum with no answer. I thought someone on this forum might
> know the answer to this question.
>
> I am wanting to develop with LiveCycle DS Express on Vista and am
> wondering if LCDS is compatible with Vista.
>
> Is anyone developing on Vista successfully?
>
> Thanks,
> Bob
>
> 
>


Re: [flexcoders] Java - Air communication via BlazeDS

2008-04-29 Thread Douglas McCarroll
I believe that BlazeDS is a Servlet and thus needs a Servlet container like
Tomcat, etc.

But it's open source, so you can look at the code yourself.



On Tue, Apr 29, 2008 at 2:52 PM, Dima Gutzeit <[EMAIL PROTECTED]> wrote:

>   Hi to all Flex fans,
>
> I have one question i need to explore.
>
> I have a Java desktop application. What I need is to communicate with it
> from AIR application.
>
> I know about the artemis project - not supported anymore and its rebirth
> in form of merapi which sources/binaries are not yet available and when
> they will it will private alpha (did not know there are versions like
> that :-) ).
>
> What if I will integrate a simple http server that is available in JDK,
> can I use the BlazeDS (or part of it) as the server side inside my Java
> application and communicate with it from my AIR application ? What I
> need is bidirectional communication between AIR and Java application,
> kind of message broker but without the burden of J2EE server or even
> Tomcat server, but only with the use of simple http server ?
>
> Can anyone help ?
>
> Regards,
> Dima Gutzeit.
> 
>


Re: [flexcoders] SOT: BlazeDS, J2EE, ColdFusion, JBoss

2008-04-25 Thread Douglas McCarroll
I'm not a CF person, but I can answer one part of this. While BlazeDS comes
with a "turnkey" Tomcat install, it is relatively simple to install BlazeDS
on an existing Tomcat install. I did this about a month ago - I don't
remember the details - I just read the instructions and it was painless.

On Fri, Apr 25, 2008 at 5:15 AM, Giles Roadnight <[EMAIL PROTECTED]>
wrote:

>   Hi All
>
> I am primarily a Flex developer but I have also worked with Coldfusion in
> the past and when building a non-Flex site this is the technology I use. I
> also use CFCs to communicate with Flex apps.
>
> Having got used the the OO nature of flex working with CFCs is pretty
> annoying. Java also seems the way that most people develop back ends for
> Flex. The upshot is that I want to learn Java. I've already read through
> Head First Java which was a very quick and easy way of learning the basics.
>
> I'm now onto Head First Servlets and JSP after which I'll move onto Head
> First EJB™.
>
> I am wondering what the best development / production environment for me
> will be.
>
> Am I correct in thinking that ColdFusion 8 (what I have installed on my
> production and development environment) is not a full spec J2EE server?
>
> I still want to keep CF8 as I think the CFML is quicker and easier to write
> basic dynamic pages than JSP so I want a full J2EE server with CF and I want
> BlazeDS so my Java code can use AMF3 to talk to Flex.
>
> What I think I need to do is Install JBoss and install CF on top of that
> then install BlazeDS. Is that correct? BlazeDS comes with tomcat so do I
> have 2 instances of tomcat running or does the JBoss tomcat just get
> overwritten?
>
> Any advice much appreciated.
>
> Thanks
>
> --
> Giles Roadnight
> http://giles.roadnight.name
> 
>


Re: [flexcoders] Re: Cairngorm ModelLocator array filter...

2008-04-22 Thread Douglas McCarroll
Hi Vivian,

> Is there any way I can draw a visual diagram from which
> I can visually see which event it tied with
> which command .. etc?

I'm guessing that you mean some way that is easier than using diagramming
software - perhaps an automated solution? I don't know of any.

What I do is to make extensive, and careful, use of file naming. For example
I have a DownloadServerDataEvent class and a DownloadServerDataCommand
class. Obviously, they work together. I use long descriptive names. If I had
more than one type of download from the server the names would be longer, so
that the purpose of each class was crystal clear. My personal approach is
"never sacrifice clarity for the sake of brevity when naming classes (or
variables or methods either)".

And, perhaps obviously, clearly organized packages help as well. For
example, a folder structure like this:

com
myDomain
components
thisComponent
thatComponent

I find that between these two approaches, I can keep things clear. But my
project is still fairly simple, so I wouldn't say that diagrams shouldn't
ever be needed.

BTW, with regards to your two (working and broken) versions - my standard
approach would be to make a copy of the broken version - then modify it by a
series of steps into the working version - testing at each step - and see
where it starts working. Then, if needed, you can break the "this fixed it"
step into substeps and repeat the process.

Douglas

On Tue, Apr 22, 2008 at 12:47 AM, Vivian Richard <[EMAIL PROTECTED]> wrote:

>
>
> Thanks for the email Douglas. The problem is "it works" :) here!!!
> Actually when
> you told me to send some code I wrote this small code mainly to show
> how
> I connected the filter. I was expecting this sample code will not work
> either.
> But it works as you have seen. So I guess my concept is right, I must
> have
> made some mistake in my main code and that was why it was not working.
> I will find that.
>
>By the way Douglas, I am having hard time to keep track of all these
> different
>event, command, component, factory modules. Is there any way I can
>draw a visual diagram from which I can visually see which event it tied
> with
>which command .. etc?
>
>Best regards,
>
>Viv
>
>
>
>
> On Mon, Apr 21, 2008 at 5:48 AM, Douglas McCarroll <
> [EMAIL PROTECTED]> wrote:
>
> >Vivian,
> >
> > I set this up as a project in Flex Builder, ran it, and it works. The
> > graph displays the appropriate subsets, and a breakpoint in the filter
> > function indicates that it is doing its job.
> >
> > What's the problem? :)
> >
> > Douglas
> >
> >   On Fri, Apr 18, 2008 at 10:27 AM, Vivian Richard <[EMAIL PROTECTED]>
> > wrote:
> >
> > >
> > >
> > >Sorry here is the code
> > >
> > >
> > >
> > >
> > > On Fri, Apr 18, 2008 at 6:25 AM, Vivian Richard <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > >
> > > >
> > > >   Hi Douglas,
> > > >
> > > >   thanks for your email. Since my code was very big, I tried to
> > > > write a very
> > > >   small application hoping that it will not work. But in this case
> > > > "unfortunately"
> > > >   it is working. :-))). So I guess I must have made some mistake
> > > > some where
> > > >   in my main application. I guess I need to go through that
> > > > algorithm and see
> > > >   if it was correct. I am attaching the example that I just wrote.
> > > > Please suggest
> > > >   if I need to make any changes the way I tied the filter function
> > > > with the
> > > >   ArrayCollection.
> > > >
> > > >   By the way, it is true that Cairngorm made writing enterprise
> > > > application very
> > > >   easy but there are just too many classes and I am really having
> > > > hard time
> > > >   to keep track of what is doing what I guess I need to use UML.
> > > > Any
> > > >   suggestion which one should I use also if it is possible can I see
> > > > an
> > > >   example of Cairngorm/flex UML diagram..
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Apr 18, 2008 at 3:17 AM, Douglas McCarroll <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > >> Any suggestions?
> > > >

Re: [flexcoders] Re: Cairngorm ModelLocator array filter...

2008-04-21 Thread Douglas McCarroll
Vivian,

I set this up as a project in Flex Builder, ran it, and it works. The graph
displays the appropriate subsets, and a breakpoint in the filter function
indicates that it is doing its job.

What's the problem? :)

Douglas

On Fri, Apr 18, 2008 at 10:27 AM, Vivian Richard <[EMAIL PROTECTED]> wrote:

>
>
>Sorry here is the code
>
>
>
>
> On Fri, Apr 18, 2008 at 6:25 AM, Vivian Richard <[EMAIL PROTECTED]>
> wrote:
>
> >
> >
> >   Hi Douglas,
> >
> >   thanks for your email. Since my code was very big, I tried to write a
> > very
> >   small application hoping that it will not work. But in this case
> > "unfortunately"
> >   it is working. :-))). So I guess I must have made some mistake some
> > where
> >   in my main application. I guess I need to go through that algorithm
> > and see
> >   if it was correct. I am attaching the example that I just wrote.
> > Please suggest
> >   if I need to make any changes the way I tied the filter function with
> > the
> >   ArrayCollection.
> >
> >   By the way, it is true that Cairngorm made writing enterprise
> > application very
> >   easy but there are just too many classes and I am really having hard
> > time
> >   to keep track of what is doing what I guess I need to use UML. Any
> >   suggestion which one should I use also if it is possible can I see an
> >   example of Cairngorm/flex UML diagram..
> >
> >
> >
> >
> >
> > On Fri, Apr 18, 2008 at 3:17 AM, Douglas McCarroll <
> > [EMAIL PROTECTED]> wrote:
> >
> > >> Any suggestions?
> > >
> > > Yes. Show us the code where you are trying to do this.  :)
> > >
> > >  On Thu, Apr 17, 2008 at 9:13 PM, Vivian Richard <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > > >
> > > >
> > > >
> > > >In my main application's creation complete event function I
> > > > assigned
> > > >one of my Modellocator's arraylist to its filter function. Then
> > > >the event that triggers the  filtering - that event's command
> > > > calls
> > > >arrayCollection.refresh()  function. Unfortunately I do not see
> > > > any
> > > >filtering taking place. Any suggestions?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Tue, Apr 15, 2008 at 12:36 PM, gabriel montagné <
> > > > [EMAIL PROTECTED]> wrote:
> > > >
> > > > >   sorry,
> > > > >
> > > > >
> > > > > On Tue, Apr 15, 2008 at 2:27 PM, gabriel montagné <
> > > > > [EMAIL PROTECTED] > wrote:
> > > > > > on a particular view, sorting an array
> > > > >
> > > > > ... on the view...
> > > > >
> > > > > > would make the most sense.
> > > > > --
> > > > > gabriel montagné láscaris comneno
> > > > > http://rojored.com
> > > > > t/506.8392.2040
> > > > >
> > > >
> > > >
> > >
> >
> 
>


Re: [flexcoders] Re: Cairngorm ModelLocator array filter...

2008-04-18 Thread Douglas McCarroll
> Any suggestions?

Yes. Show us the code where you are trying to do this.  :)

On Thu, Apr 17, 2008 at 9:13 PM, Vivian Richard <[EMAIL PROTECTED]> wrote:

>
>
>
>In my main application's creation complete event function I assigned
>one of my Modellocator's arraylist to its filter function. Then
>the event that triggers the  filtering - that event's command calls
>arrayCollection.refresh()  function. Unfortunately I do not see any
>filtering taking place. Any suggestions?
>
>
>
>
> On Tue, Apr 15, 2008 at 12:36 PM, gabriel montagné <
> [EMAIL PROTECTED]> wrote:
>
> >   sorry,
> >
> >
> > On Tue, Apr 15, 2008 at 2:27 PM, gabriel montagné <[EMAIL 
> > PROTECTED]>
> > wrote:
> > > on a particular view, sorting an array
> >
> > ... on the view...
> >
> > > would make the most sense.
> > --
> > gabriel montagné láscaris comneno
> > http://rojored.com
> > t/506.8392.2040
> >
>
> 
>


Re: [flexcoders] Seeking tutorial that connects Flex with various architecture

2008-04-13 Thread Douglas McCarroll
You might find some useful links on these pages...

http://www.brightworks.com/technology/adobe_flex/testing_debugging_agile_methods.html

http://www.brightworks.com/technology/adobe_flex/with_java.html

http://www.brightworks.com/technology/adobe_flex/cairngorm.html
Douglas


On Sat, Apr 12, 2008 at 9:21 PM, jeffreyr6915 <[EMAIL PROTECTED]> wrote:

>   I am looking for a step-by-step detailed tutorial that will show me
> how to connect the following technologies with my Flex Application
> (from installation to actual usage to understanding what each part
> does). My flex application needs to be able to save data from a
> datagrid in the database and retrieve it. All suggestions and examples
> are welcome.Thanks
>
> # Presentation Layer
>
> * Flex 3
>
> # Remoting and web messaging technology Layer
>
> * BlazeDS
>
> # Business Layer
>
> * Spring
>
> # Data Access (Object-Relational Mapping)
>
> * Hibernate
>
> # Data Storage
>
> * MySQL
>
> # Application Server
>
> * JBoss
>
> # Build
>
> * Ant or Maven
>
> 
>


Re: [flexcoders] What hosting compagny are you using for Flex + (Blaze || LCDS)

2008-04-13 Thread Douglas McCarroll
I'm going to be grappling with the same question soon, so I'd also love to
hear what people are using.

Here's an interesting article on using Amazon's EC2:

http://weblog.cahlan.com/2008/04/easy-setup-guide-for-blazeds-zero-to.html

Douglas

On Sun, Apr 13, 2008 at 2:49 PM, guillaumeracine <[EMAIL PROTECTED]>
wrote:

>   I just created a new Flex+BlazeDS app.
> I did not notice any memory problem during development because i was
> using -xms:1024.
>
> When i copied the my webapp in the tomcat dir of my host, i noticed an
> out of memory error after 15min...
>
> My actual host allow me only 160mo of heap space for tomcat.
>
> I searched the net a bit but did not find any Java hosting compagny
> that offers enought memory for a Flex app with BlazeDS or LCDS...
> (I read in Adobe docs that we must use at least 512mo of heap space
> for blazeDS or LCDS).
>
> What compagny are you using guys?
> I'm sure i'm not the only one seeking for a nice java host...
>
> Thank you.
>
> 
>


Re: [flexcoders] Integrating FlexUnit unit testing with Build Process

2008-04-05 Thread Douglas McCarroll
I wrote a post on this a couple of months ago...

http://www.brightworks.com/flex_ability/?p=57

On Fri, Apr 4, 2008 at 4:55 PM, Justin Bozonier <[EMAIL PROTECTED]>
wrote:

>   Hi everyone,
>
> I'm a first time poster looking for some information on what you guys
> do to integrate your unit tests from your Flex apps into a build process.
>
> I'm assuming everyone here uses FlexUnit... am I wrong on that?
>
> Justin Bozonier
>
> 
>


Re: [flexcoders] best way to update a display object's VO's x and y props?

2008-04-02 Thread Douglas McCarroll
Hi Rich,

I don't think that I have a great answer for you on this but I have a few
questions/thoughts.

It sounds as though you want the PageItem's position to initially be set
from the VO's x/y, then you want the VO's x/y to reflect the PageItem's x/y
as it is dragged.

Why don't you *not* have the x/y in the VO bindable? Instead, just have them
bound to the PageItem's x/y.

There are at least two possible objections to this:

a) "How will the PageItem's x/y initially get set to the VO's x/y?" Well,
you'd have to figure out some other mechanism.

b) "But part of the definition of a VO is that all properties are bindable!"
Well, rules are made to be broken.  :)

But I'm not sure that this is a good idea. Bi-directional binding doesn't
sound bad to me. You say it's inefficient, but is it impacting performance?
If not, I wouldn't worry about it.

Douglas

On undefined, Rich Rodecker <[EMAIL PROTECTED]> wrote:

>   Hello,
> I'm building a page layout-type app using cairngorm. I have an
> arraycollection of value objects in the model that stores the data for each
> item on the page.  Every item on the page is a custom component (a PageItem)
> that is bound to one of the VOs as a dataprovider.  The VO contains the
> entire state of the PageItem, x,y,rotation, content, etc).
>
> each PageItem is draggable.  When I drag the PageItem to a new position, i
> need to have the VO updated as well.  Currently I am just updating the vo
> from within the component when the mouse is released, but since it's bound,
> that triggers the property change event on the VO, which doesn't really do
> anything but is pretty inefficient.
>
> I feel like there's gotta be some way to just proxy the PageItem's values
> like x and y to the VO directly and I'm just missing it.
>
> In the past I have used Momentos to save and restore state, but I'm trying
> to achieve a greater separation of the view and the model, so that when I go
> to save the data, I just grab the collection of VO's from the model and save
> that, rather than query the view for it's state.
>
> Anyone have any pointers?
>
>
>
> 
>


Re: [flexcoders] Flex connection with Database

2008-04-02 Thread Douglas McCarroll
Hi Chitra,

You might want to check out this post:

http://www.bfaig.org/blog/?p=60

The Boston Flex Application Incubator Group is going to be creating several
different examples that access a MySQL database using different server-side
approaches. I posted an extremely simple example that uses BlazeDS and a
very basic DAO/JBDC approach.

Also, we meet online, so if you'd like to join us, show your code, and get
feedback, you can contact us at http://www.bfaig.org/contact.html.

Douglas

On Wed, Apr 2, 2008 at 6:09 AM, Chitra S.Pai <[EMAIL PROTECTED]>
wrote:

>Hi all,
>
> I am Chitra, a new member of this group.I am an engineering student. I
> worked a little on the Flex. I really enjoyed working on it.
>
> But when I treid to connect to database I found some difficulties. Hope
> many of you had tried it out. With my HTML and JSP experience I think this
> is a easy task.But I don't know much about it in Flex and how complex it is
> in.I tried Flex 3.0 and LCDS with Java code to access MySQL but I got some
> errors.Since I have less experience in Flex I don't know want went wrong
> when I tried the above.
>
> Can any one help me to know what are the steps I have to take so that I
> can connect Flex code to database.
>
> I hope there are many kindhearted persons who looke on this request.
>
>
> With Regards,
>
> Chitra
>
> 
>


Re: [flexcoders] errors in livedocs

2008-01-21 Thread Douglas McCarroll
Still down. Would it help move things along if we users begged and pleaded?
:) We need this...

Douglas

On Jan 18, 2008 2:07 AM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>   > Is it just me ?
>
> No, it isn't working for me either. I'm cc'ing some folks on the
> documentation team.
>
> Gordon Smith
> Adobe Flex SDK Team
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of [EMAIL PROTECTED]
> *Sent:* Thursday, January 17, 2008 10:59 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] errors in livedocs
>
>   Is it just me ?
>
> On this page
> http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html
>
> I put anything into the search box. It says
>
> The requested URL /cfusion/search/index.cfm was not found on this server.
>
> 
>


[flexcoders] Meeting Tonight :: LCDS :: Adobe Boston User Group

2007-12-12 Thread Douglas McCarroll
Topic:   LiveCycle Data Services
Presenter:   Ben Elmore (on video)
Date:Wednesday, December 12, 2007
Time:7:00 PM
Cost:Free
Where:   MIT's Stata Center, Room 124
 Map: http://tinyurl.com/2u36bt
 Note: The Stata Center's doors are generally locked at this
 hour. Your options for entering are: a) enter with someone who
 is entering with a key card; b) we'll try to have a volunteer
 at the main entrance closest to Vassar Street between
 6:45 & 6:55 PM.

Adobe's LiveCycle Data Services provide some of the most powerful
capabilities of the Adobe Flex platform. Here's how Ben Elmore summarizes
their capabilities:

 Middleware that provides connectivity from client to business logic
   - RPC Access via Binary Protocol
   - Messaging/Collaboration
   - Service Proxy
   - AJAX Bridge

We'll watch a video of Ben's presentation on LCDS at 360Flex, then open the
floor for discussion. If you've worked with LCDS and can share your
experience your presence would be most welcome. If you're curious, come and
learn from others.

See you there!


Re: [flexcoders] Re: Flex Remoting Options - Any Opinions?

2007-11-27 Thread Douglas McCarroll
Well, yes, but this approach will only take us so far... even with Moore's
law in action.

Does anyone have a significant app running on LCDS Express? How many
simultaneous users can it support? With what CPU?

Douglas

On Nov 27, 2007 9:00 AM, Tom Chiverton <[EMAIL PROTECTED]> wrote:

> On Monday 26 Nov 2007, Douglas McCarroll wrote:
> > This is obviously an important question. Going beyond one CPU takes us
> > from "free" to "lots of money". What will "free" handle? I've been
>
> My guess is that it works out cheaper to buy a faster single CPU than to
> upgrade the LCDS license.
>
> --
> Tom Chiverton
> Helping to administratively industrialize prospective networks
> on: http://thefalken.livejournal.com
>


Re: [flexcoders] Re: Flex Remoting Options - Any Opinions?

2007-11-26 Thread Douglas McCarroll
I'd like to repeat Steven's question. I'm really curious about this.
How many simultaneous connections can LCDS handle on one CPU? I
realize that this will vary a great deal, depending on the application
and the CPU, but it would be great to get a ballpark idea.

Anatole - you suggested, "I would try to see if you can scale
application in any other way - 4 core single CPU and removal all
business functionality to different servers".  Have you done this or
something similar on some of your projects? If so, how many
simultaneous users will these apps support?

And does anyone else have any experience with this?

This is obviously an important question. Going beyond one CPU takes us
from "free" to "lots of money". What will "free" handle? I've been
curious about this for quite a while and have yet to run across any
information on the subject.

Thanks in advance for any input!

Douglas McCarroll

On Nov 15, 2007 3:28 PM, Anatole Tartakovsky
<[EMAIL PROTECTED]> wrote:
>
>
>
>
> That part is not AMF specific - and Apache or Tomcat will have no issues of
> doing it - that is purely bandwidth issue.
>
> As far as AMF/RTMP streaming main issue is robustness. It is very easy to
> get any of the products to run on the reliable network. We do use OpenAMF
> and proprietary performance extensions on low cost/ non-critical projects.
> For high-end applications we extend LCDS stack to fix underlying TCP/IP
> problems(  financial clients, real-time messaging). We do not advertise low
> end product as it potentially might have reliability problems. Indeed, in
> order to provide even basic recoverability and batching on the top of
> openAmf  we had to write tons of code. Only with significant investment and
> "know how" you can get comparable performance and reliability
>
> Unless Adobe releases both ends of the protocol in the open source you would
> have inherient reliability issues. While we acquired significan "know how"
> in the last 2 years,  using native AMF and RTMP classes is a risky business
> as Adobe constantly changes framework and pieces of protocol.  The main
> effort of the testing should be around protocol performance and reliability
> ( like pulling the network wire).and it can be a while till AMF/RTMP will
> become standard - most likely only after release of the client/server code
> in open source.
>
> Sincerely,
> Anatole Tartakovsky
>
>
>
> On 11/15/07, Steve Hueners <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> > Is there anyway to judge what level of user connections a given server can
> handle without requiring specialized loadsharing strategies? In a non-audio
> or video environment what's it take to stream an AS3 based swfs to 3-5 dozen
> connections?
> >
> >
> >
> >
> > On 10/16/07, Anatole Tartakovsky < [EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > I would try to see if you can scale application in any other way - 4
> core single CPU and removal all business functionality to different servers
> is always an option. You might get even better scalablity by going RTMP
> route or provide pseudo-connectivity wrapper using non-blocking IO  via
> client - proxy - LCDS - Messaging - LCDS - proxy -client pish.
> > >
> > > Regards,
> > > Anatole
> > >
> > >
> > > On 10/16/07, Bruce Hopkins <[EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Yeah, I'm using HTTPService right now with E4X results. The for large
> data results, however, XML is not desirable.
> > > >
> > > > I'd prefer to use some framework that uses AMF3 in order to get more
> compact results.
> > > >
> > > > Bruce
> > > >
> > > >
> > > >
> > > > On 10/16/07, Jeff Schuenke <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > You can also just use HTTPService to do direct HTTP requests. I am
> > > > > using this for communications with a JAVA backend.
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "Bruce Hopkins" <[EMAIL PROTECTED]>
> > > > >
> > > > > wrote:
> > > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > All I want to do is have my Flex client to communicate with my
> Java
> > > > > backend.
> > > > > > Due to licensing restrictions, LCDS won't be an option for us. So
> > > > > far the
> > > > > > biggest contenders are:
> > > > > >
> > > > > > 1. Granite Data Services
> > > > > > 2. OpenAMF
> > > > > > 3. WebORB
> > > > > > 4. Red5
> > > > > >
> > > > > > Does anyone have any strong opinions, suggestions, or biases on
> > > > > either of
> > > > > > these solutions?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Bruce
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
> 


[flexcoders] Adobe Boston User Group :: Meeting Tomorrow :: Custom Component Development

2007-10-16 Thread Douglas McCarroll
Hi All,

This month we're trying an experiment: We're going to show a video of Doug
McCune's presentation at the 360 Conference, discuss it, and perhaps play
with component development in FlexBuilder a bit.

Details here: http://www.abug.us

We hope that you can join us!

Douglas


Re: [flexcoders] Ant + SWC

2007-10-15 Thread Douglas McCarroll
Check out Antennae:

http://code.google.com/p/antennae/

Douglas

On 10/12/07, Richard Rodseth <[EMAIL PROTECTED]> wrote:
>
>   A colleague is setting up Ant builds for our project, and hasn't found
> a (good) way to build a SWC without having to specify every class to
> include in the SWC. Any pointers to resources would be much
> appreciated.
>  
>


[flexcoders] Adobe Boston User Group :: Meeting Tomorrow :: Creating FOTOBlendr

2007-09-11 Thread Douglas McCarroll
Hi All,

Those of you who attended the AIR Tour in Boston got a chance to see Todd
Prekaski give a very quick five minute presentation on his AIR Derby
submission, FOTOBlendr. ABUG has decided to give him a bit more time
(actually, an hour or two) to talk about coding issues, etc.

Details here:

http://www.abug.us

See you there!

Douglas


Re: [flexcoders] FlexUnit asserError()?

2007-05-31 Thread Douglas McCarroll
Just posted on my blog about this:

http://www.brightworks.com/flex_ability/?p=39

Thanks again, Angus.


Douglas McCarroll wrote:
>
> Thanks, Angus!
>
> Angus Johnson wrote:
> >
> > Douglas,
> >
> > One way to test for failure:
> >
> > try
> > {
> > ... // code that should throw exception
> > fail('Exception was not thrown');
> > }
> > catch
> > {
> > // test exception type / message etc is what is expected
> > }
> >
> > hth
> > Angus
> >
> > On 31/05/07, *Douglas McCarroll*
> > <[EMAIL PROTECTED] 
> <mailto:org.yahoo_primary.001%40douglasmccarroll.com>
> > <mailto:[EMAIL PROTECTED] 
> <mailto:org.yahoo_primary.001%40douglasmccarroll.com>>> wrote:
> >
> > Hi All,
> >
> > I'd like to write FlexUnit tests that confirm that certain things
> > cause
> > my code to throw errors.
> >
> > assertError(), so to speak.
> >
> > I don't see any way to do this. Is there a way?
> >
> > Thanks in advance!
> >
> > Douglas
> >
> > -
> >
> > Douglas McCarroll
> > Flex Developer
> > http://www.brightworks.com <http://www.brightworks.com> 
> <http://www.brightworks.com <http://www.brightworks.com>>
> > 617.459.3840
> >
> > -
> >
> >
> >
>
>  



Re: [flexcoders] FlexUnit asserError()?

2007-05-30 Thread Douglas McCarroll
Thanks, Angus!


Angus Johnson wrote:
>
> Douglas,
>
> One way to test for failure:
>
> try
> {
>... // code that should throw exception
>fail('Exception was not thrown');
> }
> catch
> {
>// test exception type / message etc is what is expected
> }
>
> hth
> Angus
>
> On 31/05/07, *Douglas McCarroll* 
> <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi All,
>
> I'd like to write FlexUnit tests that confirm that certain things
> cause
> my code to throw errors.
>
> assertError(), so to speak.
>
> I don't see any way to do this. Is there a way?
>
> Thanks in advance!
>
> Douglas
>
> -
>
> Douglas McCarroll
> Flex Developer
> http://www.brightworks.com <http://www.brightworks.com>
> 617.459.3840
>
> -
>
>
>  



[flexcoders] FlexUnit asserError()?

2007-05-30 Thread Douglas McCarroll
Hi All,

I'd like to write FlexUnit tests that confirm that certain things cause 
my code to throw errors.

assertError(), so to speak.

I don't see any way to do this. Is there a way?

Thanks in advance!


Douglas


-----

Douglas McCarroll
Flex Developer
http://www.brightworks.com
617.459.3840

-



Re: {Disarmed} [flexcoders] Just getting started, hitting walls...

2007-05-30 Thread Douglas McCarroll
 > May need to look at Cairngorm for a unified approach for large 
applications

Yes. A couple of resources:

http://cairngormdocs.org/

http://www.brightworks.com/technology/adobe_flex/cairngorm.html

Also, I like Joe Berkovitz's ideas on architecture:

http://www.adobe.com/devnet/flex/articles/blueprint.html

HTH,

Douglas



Jurgen Beck wrote:
>
> Welcome to the community, Dave, good to have you!
>
> Essentially, the key to what you are trying to do is split up your 
> application into individual modules. It's a bit difficult to give you 
> a link to a single source that will step you through the process, 
> because there are a number of items you'll have to look into. Someone 
> may have a few bits and pieces of write-ups, but essentially you will 
> need to look for the following:
>
> - Working with modules in Flex
> - May need to look at Cairngorm for a unified approach for large 
> applications
>
> Working with modules will allow you to essentially create smaller 
> portions of your application that you can reuse (if needed), but will 
> keep your code in your main application concise. Look at the 
> documentation for information on modules in Flex.
>
> Jurgen
>
> Dave @ VitalPodcasts.com wrote:
>
>> Hello Flex Community,
>> I am a very experienced CF developer, and I want to get into Flex.
>> Perhaps it makes more sense to coem from Flash, however Adobe is
>> letting CF jobs disappear everywhere, so its time to upgrade my skill
>> set.
>>
>> here is the issues I am running into.
>>
>> Client Side Application:
>> Of course this is completely different than the Web where we have
>> sessions, Im used to the web, need to rethink to my old way of
>> thinking. But here is my issue, I want to make LARGE applications,
>> with many screens, and lots of functionality. How do I make an app
>> that has multiple screen, I really do not feel like having 100's of
>> objects on my MXML file waiting for visible = true to be set.
>>
>> Where is a decent walk through on how to develop a major app, not a
>> resturant finder, an actual full blown application. I want to create
>> other screens, with their own functions, maybe some modules...
>>
>> How do I make code, or set up my project so its not some huge mess of
>> code on one of few files?
>>
>  



Re: [flexcoders] Embedding Verdana font & "may shadow" error

2007-05-22 Thread Douglas McCarroll
Jon and Dan,

Thanks much. Very helpful.

So when the warning says "fontName" it really means "fontFamily", at 
least in this case. (Snort!)

So I changed my fontFamily in the CSS to VerdanaEmbed, as Jon suggested, 
and set my components fontFamily to VerdanaEmbed, and it works, except 
for one more minor detail. One of the components I'm rotating is a Panel 
and it seems to want a bold font. So I need to embed both normal and 
bold weights. My CSS now looks like this:

@font-face {
src: local( "Verdana" );
fontFamily: VerdanaEmbed;
}   

@font-face {
src: local( "Verdana" );
fontWeight: bold;
fontFamily: VerdanaEmbed;
}

And it works.  :)  Thanks!

Douglas




Jon Bradley wrote:
 >
 > First thought is to rename your 'family' to something else:
 > @font-face {
 > src: local("Verdana") ;
 > fontFamily: VerdanaEmbed;
 >
 > Is that what you mean? The "fontName" part is when you embed a font 
through SWF font embedding:
 >


Daniel Freiman wrote:
 >
 > I got this warning a long time ago.  Basically, it does want you to 
pick an alias for the fontFamily property so it doesn't get confused.  
(livedocs: http://livedocs.adobe.com/flex/201/html/fonts_070_04.html) 
 >
 > There's a reason this is a warning and not an error.  Your program 
will work, but it may start to cause problems if you do some advanced 
things such as call methods of the Font class. Additionally, there may 
be some components that automatically chose whether or not to use 
embeded fonts and you may have to manually set these components to use 
embeded fonts (usually there's a style and in TextFields there is a 
property).  So this is one of those, "proceed at your own risk" times.  
Just know that it is a bad and unsafe practice.
 >
 > Dan Freiman
 > nondocs






>
> On May 22, 2007, at 4:26 PM, Douglas McCarroll wrote:
>
>> "the embedded font 'Verdana' may shadow a device font of the same name.
>> Use fontName to alias the font to a different name"
>>
>> It seems that the compiler is concerned that I'll be colliding with the
>> device font version of Verdana that will be in many (all?) of my users'
>> computers.
>>
>> I'd like my app to ignore the device font and use the embedded font.
>>
>> I've searched the net fairly thoroughly but have found no guidance on
>> how to follow the rather cryptic suggestion in the second sentence of
>> the warning.
>
>
>
>  



[flexcoders] Embedding Verdana font & "may shadow" error

2007-05-22 Thread Douglas McCarroll
Hi All,

I'm trying to embed Verdana. I'm doing this because it seems to be the 
default font for UIComponents and I'd like to be able to rotate some 
components without their text disappearing.

When I add this to my CSS style sheet...:

@font-face {
src: local( "Verdana" );
fontFamily: Verdana;
}   

...it works, at least on some components, but I get a warning that says:

"the embedded font 'Verdana' may shadow a device font of the same name.  
Use fontName to alias the font to a different name"

It seems that the compiler is concerned that I'll be colliding with the 
device font version of Verdana that will be in many (all?) of my users' 
computers.

I'd like my app to ignore the device font and use the embedded font.

I've searched the net fairly thoroughly but have found no guidance on 
how to follow the rather cryptic suggestion in the second sentence of 
the warning.

Any ideas?

Thanks in advance!


Douglas


-----

Douglas McCarroll
Flex Developer
http://www.brightworks.com
617.459.3840

-





Re: [flexcoders] Can any one explain Cairngorm architecture

2007-05-16 Thread Douglas McCarroll
Hi Praveen,

I've gathered the best resources I've found here:

http://www.brightworks.com/technology/adobe_flex/cairngorm.html

Another good resource:

http://cairngormdocs.org/

Especially our blog's 'Cairngorm Code Examples" category:

http://cairngormdocs.org/blog/?cat=6

Best way to learn is to dive into the examples, study the code, and 
study the articles, perhaps starting with Steven Webster's six-part series.

HTH,

Douglas



Praveen Saxena wrote:
>
> Hi,
> I am new to Flex can any one explain me The Cairngorm architecture,
> and provide me the very simple example which implement the Cairngorm.
> and also some study materials.
> -Regards,
> Praveen
>
>  



Re: [flexcoders] Flex FDS security

2007-05-08 Thread Douglas McCarroll
Jeremy,

I'm not at all sure that these address FDS, but they may be of some use:

http://store1.adobe.com/products/flex/whitepapers/pdfs/flashsecurity.pdf#search=%22Adobe%20Flash%20Security%20and%20Adobe%20Enterprise%20Solutions%20pdf%22

http://www.adobe.com/devnet/flex/articles/flex_security_wp/flex_security_wp.html

Douglas




cardinalflexjeremy wrote:
>
> I am working on an enterprise public facing application and we are
> going to be using flex with FDS.
>
> Anyone know of any good documentation on securing flex from the
> frontend, and anything having to do with Flex FDS security protocol,
> or flex security methodologies or anything of that sort?
>
> Basically in short, the best practice to make flex and FDS
> communication secure.
>
> Jeremy
>
>  




[flexcoders] Does FDS run on Vista?

2007-05-02 Thread Douglas McCarroll
Hi All,

I'm thinking of installing Apache, Tomcat and FDS on my Vista laptop.

I currently have the Home Premium version, but can upgrade to Ultimate.

I assume that Apache and Tomcat will work fine. Have you successfully 
installed FDS on Vista?

Which version of Vista?

With Tomcat or JRun?

Thanks,


Douglas


-----

Douglas McCarroll
Flex Developer
http://www.brightworks.com
617.459.3840

-


Re: [flexcoders] Cairngorm and compile time generated errors

2007-03-28 Thread Douglas McCarroll
If I recall correctly, this is because you are using the SWC for your 
Cairngorm code. Point your project at some Cairngorm source code, and 
give it a try.

Douglas


bparvizi1 wrote:
>
> I'm using Cairngorm in Flex Builder Eclipse. However, in my .as and
> mxml files the compile time error checking in the problems panel does
> not work. Compile time errors fall silent. I made sure to have
> the "Build Automatically" checked as well, so I know I am compiling
> it. I have to run the app to see the errors. The little red x does
> not show up next to the code line number. Code hinting works fine.
> Does anyone know how to fix this?
> Thanks.
>
>  



Re: [flexcoders] about :New Project: FlexCRUD -- Create Update Delete for Flex/amfphp/cairngorm

2007-03-14 Thread Douglas McCarroll
http://www.crowefun.com/flexcrud/doku.php


Yiðit Boyar wrote:
> hi;
> when i saw your [EMAIL PROTECTED] about your project; i saved it in case 
> i need... and now i need to try it
> but the link does not work.
> is there any other link that i can download your project ?
> thanks...
>
> - Original Message 
> From: Mike Crowe <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Saturday, February 24, 2007 9:15:19 AM
> Subject: [flexcoders] New Project: FlexCRUD -- Create Update Delete 
> for Flex/amfphp/cairngorm
>
> Hi folks,
>
> I'm in the process of releasing my system generation utility via
> riaforge. Essentially, I'm using about 15 templates to generate >
> 100 files.
>
> >From a 1' perspective, I have created a generic template based
> system that generates:
>
> * Cairngorm commands: Get, GetAll, Save, Delete
> * Cairngorm events: GetSuccess, GetFailure, etc.
> * Cairngorm control file
> * amfphp Remote Delegate
> * amfphp ViewObject for both Actionscript and PHP
> * amfphp Service dispatcher
> * amfphp DTO file to save ViewObject to database
> * Unit test structures for testing both PHP->Database and Flex-
> >PHP->Database operations for all tables.
> * etc.
>
> I based the database on PHP Doctrine, which handles all my database
> interaction in a very clean manner.
>
> Here's the help I need. To me, I think this will be very helpful to
> somebody *starting* a new project. It will generate all the core
> tables, events, commands, and directories for a basic system.
> However, I need some review from the Flex community to tell me if
> I'm way off base on this. If it isn't useful, please be honest and
> provide that feedback.
>
> Here's the initial wiki documenting the core. I'll shoot to release
> the full code tomorrow:
>
> http://www.your- solutions. us/doku.php/ start 
> 
>
> TIA
> Mike
>
>
>
> 
> The fish are biting.
> Get more visitors 
> 
>  
> on your site using Yahoo! Search Marketing. 
> 
>  
>
>  



Re: [flexcoders] [FDS2+Spring/Hibernate] VOs reaching the backend with id=0 ("unsaved-value" problem)

2007-01-19 Thread Douglas McCarroll
Well, it doesn't seem as though there's a great deal of actual use of 
the FDMS/Hibernate option...

I'm struggling with trying to learn it, but there seem to be some bugs...

Hey flexcoders, is it possible that no one has attempted to create new 
entities using FDMS/Hibernate?

Douglas




Carlos Rovira wrote:
>
> Thanks Douglas,
>
> Thanks for the response.
>
> In that case, how people deal with the fact that hibernate expect IDs 
> with null value instead of 0?
> Or maybe I'm missing something?
>
>
>
>
> On 1/19/07, *Douglas McCarroll* 
> <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi Carlos,
>
> I can't be of much help but I can tell you...
>
> > Or maybe there's a way in FDS2 to configure default value to null?
>
> ... that you can probably forget this option. FDS converts null
> values
> to zero when it converts AS objects to Java objects, and the only
> workaround is to have code on the java side that converts zeros
> back to
> nulls. There are discussions about why this is the case in the
> archive
> if you want to do some searching...
>
> Douglas
>
> -
>
> Douglas McCarroll
>
> CairngormDocs.org Webmaster
> http://www.CairngormDocs.org <http://www.CairngormDocs.org>
>
> Flex Developer
> http://www.brightworks.com <http://www.brightworks.com>
> 617.459.3840
>
> -
>
>
>
> Carlos Rovira wrote:
> >
> > Hi,
> >
> > I'm switching from Toplink to Hibernate using JPA/EJB3 and
> Annotations.
> > I'm facing a problem with this change due to the fact that when I
> try
> > to persist new entities Hibernate throws a
> > "PersistenceObjectException: Detached entity passed to persist".
> > Hibernate expects new entities with ID = NULL and my new entities
> > reach the hibernate layer with ID = 0.
> >
> > If I were using hibernate xml config files (hbm.xml) I could use
> > "unsaved-value = 0" (for each entity), but I'm using Annotations and
> > there's no "unsaved-value" annotation to use.
> >
> > So, anyone reach this problem? How could I change the default
> > configuration in Hibernate so new entities with ID = 0 will be
> > considered as the default.
> >
> > Or maybe there's a way in FDS2 to configure default value to null?
> >
> > Thanks for any light on this :)
> >
> > C.
> >
> >
> >
> >
> > --
> > ::| Carlos Rovira
> > ::| http://www.carlosrovira.com <http://www.carlosrovira.com> <
> http://www.carlosrovira.com <http://www.carlosrovira.com>>
> > ::| http://www.madeinflex.com <http://www.madeinflex.com> <
> http://www.madeinflex.com <http://www.madeinflex.com>>
> >
> >
>
>
>
>
> -- 
> ::| Carlos Rovira
> ::| http://www.carlosrovira.com <http://www.carlosrovira.com>
> ::| http://www.madeinflex.com <http://www.madeinflex.com>
>  



Re: [flexcoders] [FDS2+Spring/Hibernate] VOs reaching the backend with id=0 ("unsaved-value" problem)

2007-01-19 Thread Douglas McCarroll
Hi Carlos,

I can't be of much help but I can tell you...

 > Or maybe there's a way in FDS2 to configure default value to null?

... that you can probably forget this option. FDS converts null values 
to zero when it converts AS objects to Java objects, and the only 
workaround is to have code on the java side that converts zeros back to 
nulls. There are discussions about why this is the case in the archive 
if you want to do some searching...


Douglas


---------

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-





Carlos Rovira wrote:
>
> Hi,
>
> I'm switching from Toplink to Hibernate using JPA/EJB3 and Annotations.
> I'm facing a problem with this change due to the fact that when I try 
> to persist new entities Hibernate throws a 
> "PersistenceObjectException: Detached entity passed to persist". 
> Hibernate expects new entities with ID = NULL and my new entities 
> reach the hibernate layer with ID = 0.
>
> If I were using hibernate xml config files (hbm.xml) I could use 
> "unsaved-value = 0" (for each entity), but I'm using Annotations and 
> there's no "unsaved-value" annotation to use.
>
> So, anyone reach this problem? How could I change the default 
> configuration in Hibernate so new entities with ID = 0 will be 
> considered as the default.
>
> Or maybe there's a way in FDS2 to configure default value to null?
>
> Thanks for any light on this :)
>
> C.
>
>
>
>
> -- 
> ::| Carlos Rovira
> ::| http://www.carlosrovira.com <http://www.carlosrovira.com>
> ::| http://www.madeinflex.com <http://www.madeinflex.com>
>
>  



Re: [flexcoders] FDS: DataService.getItem, AsyncToken and IResponder

2006-12-24 Thread Douglas McCarroll
Hi James,

I think that this thread addresses your problem. Also contains my 
thoughts on a workaround:

http://tech.groups.yahoo.com/group/cairngorm-documentation/message/113


Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-




James Sharier Jr. wrote:
>
> Hi,
>
> Here is my call to getItem:
>
> var token : AsyncToken = getDataService().getItem( identity );
> token.addResponder( responder_ );
>
>
> Here is my result event handler:
>
> public function result( data : Object ) : void
> {
>   var event : ResultEvent = ResultEvent( data );
>   modelLocator_.companyFilterList = CompanyFilterList (
> event.message.body[0] );
>   // modelLocator.companyFilterList = CompanyFilterList(
> event.result );
> }
>
>
> event.result is null
> event.message.body[0] contains the object I'm expecting.
>
> I expected event.result to contain my object. Any ideas as to what I'm 
> doing wrong?
>
> TIA
>  



Re: [flexcoders] hibernate + many-to-many + inserting records

2006-12-20 Thread Douglas McCarroll
Hi,

I'm still struggling with a many-to-many example that I'm creating, but 
seeing what I've done so far may be helpful to you. My .java and 
.hbm.xml files were auto-created using HibernateTools (with a few 
tweaks) and contain files for the middle table. While I don't know 
Hibernate very well, I assume that HibernateTools knows what it is 
doing, so I assume that this code is correct.  (?)

You can find the entire zipped project here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/Bw_005.zip

And here's the thread on the problems I'm having with it:

http://tech.groups.yahoo.com/group/flexcoders/message/58833

Also, this blog post by Victor Rubba may be helpful:

http://viconflex.blogspot.com/2006/12/many-to-many-using-fds-hibernate.html

Finally, my "Flex with Java" page might be of some interest:

http://www.brightworks.com/technology/adobe_flex/with_java.html

Good luck! When you find a solution, please consider blogging about it.  :-)


Douglas


---------

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-








michalzak81 wrote:
>
> At this point, I have hibernate working with a many-to-many relationship
> Here is what I have
>
> User Table <- one-to-many -> user_roles Table <- many-to-one -> roles
> table
>
> The retrieval of the records works fine. I can also modify and insert
> the records with no hassle.
>
> But my problems come when I need to insert a relationship ( a record
> into the user_roles table ). The Hibernate generated code only has
> classes for the other 2 tables, it manages the middle table on its own.
>
> Could someone please point me into the right direction as to how that
> should be done.
>
>  



RE: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-13 Thread Douglas McCarroll
Hi Jeff,

 > I could not follow the code.txt
 > link in your post

I wonder why that wouldn't work for you. Let's try again. I've posted 
the file again with a different name:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code_2.txt

Can you see this one?

 > I suspect that you are still missing the intermediate
 > destination in the FDMS configuration. I apologize
 > if I wasn’t clear

No, I think that you were clear, and believe that I've implemented the 
intermediate filmActors destination as suggested. Let me know how it looks.

I'd also be happy to give you the whole app so that you can run it if 
you'd like.

Thanks,

Douglas




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Cairngorm: Event to Command Decision Making (Cairngorm Store 2.0)

2006-12-09 Thread Douglas McCarroll
 > wouldn't binding the component to a selectedStates
 > property on the model cause all instances of the component to reflect
 > one of it's sibling's data??

Yes.  :-)

I assumed that you had only one dropdown and that you wanted 
selectedStates to be reflected throughout your app.

In this case I'd probably move towards storing this data and logic in my 
view. There are probably lots of different ways you could do this but if 
you have things set up so that three instances of a specific component 
each contain a dropdown / dragToArea pair, that component would be a 
logical place to put your lists and your logic...

Other thoughts, anyone?


Douglas


---------

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-


lostinrecursion wrote:
>
> Douglas,
>
> Thanks for your concise and clear reply. Much appreciated. One thing
> is a little confusing though.
>
> >From your post:
> > If you want to follow this approach in your app you might do something
> > like the following: Create an object on the model that keeps track of
> > selectedStates list and also maintains a displayStatesUS list in
> > addition to your STATES_US constant. Every time the user drags a state
> > have a command call a method on this object, which updates these two
> > properties. Bind your dropdown to displayStatesUS.
>
> That really wouldn't be effective though. Since the component in
> question is used in various places across the application (For
> example, in one instance it is on the same view in 3 places for
> different fields), wouldn't binding the component to a selectedStates
> property on the model cause all instances of the component to reflect
> one of it's sibling's data??
>
> Thanks so much. While I'm not new to Flash/Flex, etc, I am very new to
> the proper development of things. ;)
>
>  



Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-09 Thread Douglas McCarroll
PS. Be careful. I just checked the links in this post and the code page 
was retrieved from my cache. The new version does *not* have and error 
message at the top. Hit refresh if it does.  :-)

Douglas


Douglas McCarroll wrote:
> Douglas McCarroll wrote:
>   
>> Thanks. I'll let you know how it goes.
>> 
>
> Still stuck.  :-)
>
> Same "Page request made for item with id = '{filmId=null}'" error.  
>
> I believe that I've implemented Jeff's suggestions.
>
> I've refreshed this code listing so that it reflects my current code:
>
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt
>
> Here's my current logging output:
>
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/debug_log_02.txt
>
> Here's a nice variable view showing what HibernateAssembler.fill() returns:
>
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/actor_destination_fill_result_at_app_startup.jpg
>
> The comments and questions that follow are addressed to Jeff Vroom in 
> particular, but all are welcome to contribute...
>
> 1. Jeff explained a while back in this thread that FDMS and Hibernate 
> currently don't do lazy loading in the same way - 
> http://tech.groups.yahoo.com/group/flexcoders/message/57339 - I assume 
> that this explains why fill() is returning so much data on Films in what 
> is supposed to be a lazy fill() of Actors.
>
> 2. In any case, both the fill() results and the logging output - which I 
> believe shows the data being sent over the wire - show the associated 
> films as having a filmId of zero (in Java) or null (passed over the wire).
>
> 3. Jeff said that I should set the association properties for my 
> filmActors destination as one-to-one. I'm guessing that this should be 
> many-to-one, but am not sure. I've tried both it doesn't help my current 
> problem, but I'd love a definitive answer on which this should be. 
> Victor Rubba sent me some code that uses many-to-one for an intermediate 
> object (albeit one with numeric ID, rather than complex object ID like 
> mine). This is working code so it seems to support my guess.
>
> 4. I'm wondering what general approach I should take to resolving this. 
> Here are my options:
>
> a. I can continue to post code and logs and hope that Jeff (or 
> someone else) spots my error or identifies a bug in FDMS.
>
> b. I can dig in with the debugger. I'm already looking at 
> HibernateAssembler.java (thanks, Adobe, for making source public!). Now 
> it occurs to me that Hibernate itself is open source. Should I be 
> digging into that and trying to figure out why it's giving me Film 
> instances without ID values? This could be dangerous - I might learn 
> more Java! :-) Seriously, what's the likelihood that I could help to 
> resolve this problem by doing this, given that I have more time to put 
> into this than Jeff does?
>
> c. I could re-zip the whole project and repost it if anyone else 
> would like to play with it.
>
> d. Other suggestions?
>
> e. All of the above?  :-)
>
> 5. Jeff said, "I think the hibernate assembler is missing an error test 
> for .  I’ll fix that right away as that would have saved you a lot 
> of time."
> Can I get a copy of the fixed code?
>
> Finally, thanks to Jeff and to all for all your input so far.
>
> Douglas
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>
>
>
>
>   



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-09 Thread Douglas McCarroll
Douglas McCarroll wrote:
> Thanks. I'll let you know how it goes.

Still stuck.  :-)

Same "Page request made for item with id = '{filmId=null}'" error.  

I believe that I've implemented Jeff's suggestions.

I've refreshed this code listing so that it reflects my current code:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt

Here's my current logging output:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/debug_log_02.txt

Here's a nice variable view showing what HibernateAssembler.fill() returns:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/actor_destination_fill_result_at_app_startup.jpg

The comments and questions that follow are addressed to Jeff Vroom in 
particular, but all are welcome to contribute...

1. Jeff explained a while back in this thread that FDMS and Hibernate 
currently don't do lazy loading in the same way - 
http://tech.groups.yahoo.com/group/flexcoders/message/57339 - I assume 
that this explains why fill() is returning so much data on Films in what 
is supposed to be a lazy fill() of Actors.

2. In any case, both the fill() results and the logging output - which I 
believe shows the data being sent over the wire - show the associated 
films as having a filmId of zero (in Java) or null (passed over the wire).

3. Jeff said that I should set the association properties for my 
filmActors destination as one-to-one. I'm guessing that this should be 
many-to-one, but am not sure. I've tried both it doesn't help my current 
problem, but I'd love a definitive answer on which this should be. 
Victor Rubba sent me some code that uses many-to-one for an intermediate 
object (albeit one with numeric ID, rather than complex object ID like 
mine). This is working code so it seems to support my guess.

4. I'm wondering what general approach I should take to resolving this. 
Here are my options:

a. I can continue to post code and logs and hope that Jeff (or 
someone else) spots my error or identifies a bug in FDMS.

b. I can dig in with the debugger. I'm already looking at 
HibernateAssembler.java (thanks, Adobe, for making source public!). Now 
it occurs to me that Hibernate itself is open source. Should I be 
digging into that and trying to figure out why it's giving me Film 
instances without ID values? This could be dangerous - I might learn 
more Java! :-) Seriously, what's the likelihood that I could help to 
resolve this problem by doing this, given that I have more time to put 
into this than Jeff does?

c. I could re-zip the whole project and repost it if anyone else 
would like to play with it.

d. Other suggestions?

e. All of the above?  :-)

5. Jeff said, "I think the hibernate assembler is missing an error test 
for .  I’ll fix that right away as that would have saved you a lot 
of time."
Can I get a copy of the fixed code?

Finally, thanks to Jeff and to all for all your input so far.

Douglas














--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Cairngorm: Event to Command Decision Making (Cairngorm Store 2.0)

2006-12-08 Thread Douglas McCarroll
Hi Kenny,

1.

NewScreenEvent - Hmm... This isn't a CairngormEvent - rather it extends 
flash.events.Event. It is used only in Checkout.mxml and its 
subcomponents. It makes sense to me to keep this within this part of the 
view as nothing else 'needs to know'. If something else did need to know 
I'd use a CairngormEvent/Command, change a property on the model, and 
let binding take care of updating the part of the view that needed to know.

UpdateShippingCostEvent - I think that this may simply be a feature that 
has (intentionally?) been left unimplemented. I have the vague 
impression that I read something about this somewhere but Google doesn't 
find it anywhere...

2.

There's been an interesting thread on this list lately entitled 
"Cairngorm’s Anaemic Domain Model". Have you seen it?

http://tech.groups.yahoo.com/group/flexcoders/message/57803

It talks about how much logic to put on the model...

 > aren't we coupling the business logic to the view a little too tight?

There's a lot of flexibility in Cairngorm to do things in different ways 
but much of what I'm seeing (in examples like CairngormStore, articles, 
and posts on this list) points to an approach where we keep the view 
fairly dumb and put client-side business logic on the model. That said, 
I can see how you'd think that one would keep sorting and filtering on 
the view. It certainly doesn't appear that anything else needs to know 
about how this view is sorted and filtered. I suspect that the store's 
authors simply concluded that its sorting and filtering logic were 
complex enough that they decided to put it in an object (Comparator) on 
the model.

If you want to follow this approach in your app you might do something 
like the following: Create an object on the model that keeps track of 
selectedStates list and also maintains a displayStatesUS list in 
addition to your STATES_US constant. Every time the user drags a state 
have a command call a method on this object, which updates these two 
properties. Bind your dropdown to displayStatesUS.

My 2c - I'm fairly new to Cairngorm... :-)

Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-





lostinrecursion wrote:
>
> Hi all,
>
> I just had the pleasure of stepping through the Cairngorm Store (v2.0)
> and checking it out. (I2, Great Work)
>
> I have two event questions regarding the store.
>
> 1. I notice that there are two events (UpdateShippingCostEvent and
> NewScreenEvent) which do not map to a command in the Controller. What
> is the motivation behind that? Meaning, is there a specific reason why
> one would choose to have some events not handled by a command in a
> Cairngorm app?
>
> 2. The other is separation of logic from presentation. There are two
> events mapped to Commands in the controller (FilterProductsEvent and
> SortProductsEvent) which are nothing more than view manipulation of
> the data. By putting these in a command, aren't we coupling the
> business logic to the view a little too tight?
>
> 2. (Explained) I ask number two because I have a Component in my
> application that is a List with the US States in it. Users can drag
> the states from the List and drop them in a grid, where I have setup
> additional data entry capabilities. The state List dataProvider is a
> "copy" of a model variable called STATES_US. The List is re-sorted and
> filtered as states are pulled from it. (Essentially to prevent the
> user from adding the same state twice)
>
> Following the logic of the Cairngorm Store, I would need to map an
> event to a command and bounce it to the model. But in this case,
> that's not possible since it is a component property we are sorting.
>
> Thanks for any insight you can offer.
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Cairngorm Newbie Question - Please set me straight

2006-12-06 Thread Douglas McCarroll
 > I have a BusinessDelegate for each as well with a method for each 
method on the CFC.

On second thought that sounds better than what I suggested.  :-)

Douglas

Steve House wrote:
>
> I do have a service for each CFC.
> I have a BusinessDelegate for each as well with a method for each 
> method on the CFC.
>
> Ex:
> public class EmployeeDelegate
> {
> public function EmployeeDelegate( responder : Responder )
> {   
> this.service = 
> ServiceLocator.getInstance().getRemoteObject("employeeService");
> this.responder = responder;
> }
>
>
> public function readEmployeeByUsername(sUsername:String) : void
> {   
> var call : Object = service.readEmployeeByUsername(sUsername);
> call.resultHandler = responder.onResult;
> call.faultHandler = responder.onFault;   
> }
> private var responder : Responder;
> private var service : Object;
> }
>   
>
> On 12/6/06, *Douglas McCarroll* < 
> [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> If I understand correctly (newbie speaking) you'd have:
>
> - A service specified on ServiceLocator for each of your CFCs
>
> - A BusinessDelegate for each method that you'll be calling
>
> Steve House wrote:
> >
> > Hank,
> >
> > Thanks for your reply. I am not sure I am explaining this correctly
> > but let me try adding these details and see if this helps. My
> backend
> > is ColdFusion and I have created Flex remote objects to several CFCs
> > that each correspond to a separate business object (not necessarily
> > one table). For example, I have an employeeGateway.cfc who's methods
> > all pertain to employees (e.g. readEmployeeById(),
> > readEmployeeByUsername(), addEmployeePermission()). From what I
> > understand I have to set up a remote object connection to each CFC
> > that I want to talk to. Although I could create a single CFC to
> group
> > together lookup table queries I prefer to keep them in their
> distinct
> > CFCs to allow for future methods related to those objects.
> >
> > Does this clear things up at all or am I still way off? Thanks again
> > for your help!
> >
> > Steve
> >
> > On 12/5/06, *hank williams* < [EMAIL PROTECTED]
> <mailto:hank777%40gmail.com>
> > <mailto:[EMAIL PROTECTED] <mailto:hank777%40gmail.com>>> wrote:
> >
> > Steve,
> >
> > You definitely shoud not have a business delegate for every lookup
> > table. I dont really understand the detail of what you explained in
> > your email, but communications between a client and a server should
> > never be as granular as mapping just directly to a table. Think of
> > communications with a server as asking high level questions like,
> "who
> > are my top spending customers this month". This might require access
> > to several tables. This calculation work should be done on the server
> > and the results should then be delivered from the server to the
> > client. The client should generally not be taking the results of
> > several table searches and intersecting, joining, merging or anything
> > of the sort. That is really server side work.
> >
> > Regards,
> > Hank
> >
> >
> >
> > On 12/5/06, stevehousefl <[EMAIL PROTECTED]
> <mailto:cyberdust%40gmail.com>
>
> > <mailto:cyberdust% <mailto:cyberdust%25> 40gmail.com
> <http://40gmail.com>>> wrote:
> > > Douglas (and all),
> > >
> > > Since they are not dependent on each other, I went with just
> having a
> > > single command fire 6 new events. I will look into the MacroCommand
> > > though.
> > >
> > > As far as the 6 different datasources, it is not. Perhaps this is
> > > incorrect, but I have a business delegate for each lookup table
> and a
> > > service (remote object) for each Coldfusion component that I am
> > > talking to.
> > >
> > > For example:
> > >
> > > My EVENT_LOAD_CONTROL_PANEL executes the
> LoadControlPanelDataCommand
> > > The LoadControlPanelDataCommand fires the EVENT_READ_ALL_QUEUES
> > (and 5
> > > other event

Re: [flexcoders] Re: Cairngorm Newbie Question - Please set me straight

2006-12-06 Thread Douglas McCarroll
If I understand correctly (newbie speaking) you'd have:

- A service specified on ServiceLocator for each of your CFCs

- A BusinessDelegate for each method that you'll be calling




Steve House wrote:
>
> Hank,
>
> Thanks for your reply.  I am not sure I am explaining this correctly 
> but let me try adding these details and see if this helps.  My backend 
> is ColdFusion and I have created Flex remote objects to several CFCs 
> that each correspond to a separate business object (not necessarily 
> one table).  For example, I have an employeeGateway.cfc who's methods 
> all pertain to employees (e.g. readEmployeeById(), 
> readEmployeeByUsername(), addEmployeePermission()).  From what I 
> understand I have to set up a remote object connection to each CFC 
> that I want to talk to.  Although I could create a single CFC to group 
> together lookup table queries I prefer to keep them in their distinct 
> CFCs to allow for future methods related to those objects.
>
> Does this clear things up at all or am I still way off?  Thanks again 
> for your help!
>
> Steve
>
> On 12/5/06, *hank williams* < [EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Steve,
>
> You definitely shoud not have a business delegate for every lookup
> table. I dont really understand the detail of what you explained in
> your email, but communications between a client and a server should
> never be as granular as mapping just directly to a table. Think of
> communications with a server as asking high level questions like, "who
> are my top spending customers this month". This might require access
> to several tables. This calculation work should be done on the server
> and the results should then be delivered from the server to the
> client. The client should generally not be taking the results of
> several table searches and intersecting, joining, merging or anything
> of the sort. That is really server side work.
>
> Regards,
> Hank
>
>
>
> On 12/5/06, stevehousefl <[EMAIL PROTECTED]
> <mailto:cyberdust%40gmail.com>> wrote:
> > Douglas (and all),
> >
> > Since they are not dependent on each other, I went with just having a
> > single command fire 6 new events. I will look into the MacroCommand
> > though.
> >
> > As far as the 6 different datasources, it is not. Perhaps this is
> > incorrect, but I have a business delegate for each lookup table and a
> > service (remote object) for each Coldfusion component that I am
> > talking to.
> >
> > For example:
> >
> > My EVENT_LOAD_CONTROL_PANEL executes the LoadControlPanelDataCommand
> > The LoadControlPanelDataCommand fires the EVENT_READ_ALL_QUEUES
> (and 5
> > other events)
> > The EVENT_READ_ALL_QUEUES executes the ReadAllQueuesCommand
> > The ReadAllQueuesCommand creates a QueueDelegate and executes
> > QueueDelegate.readAllQueues()
> > The QueueDelegate creates an instance of the ServiceLocator and
> > executes .getRemoteObject("queueService")
> > The queueService is configures in Services.mxml as
> >
> >  > id="queueService"
> > destination="ColdFusion"
> > source="CF.queueHandler"
> > showBusyCursor="true"
> > result="event.token.resultHandler( event );"
> > fault="event.token.faultHandler( event );"/>
> >
> > Does this make sense
> >
> > Thanks,
> >
> > Steve
> >
> >
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>, Douglas McCarroll
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Steve,
> > >
> > > I'm going to take a stab at this as I've been studying the Command
> > > pattern (as defined in GoF) and Cairngorm lately. In fact I'll be
> > > presenting on the subject here in Boston tomorrow evening, so
> this is
> > > right up my alley. (www.bfpug.us <http://www.bfpug.us>) :-)
> > >
> > > > how do you handle 6 different results since there is only 1
> > > > onResult function.
> > >
> > > I think that the answer here is "you don't". :-)
> > >
> > > Cairngorm has a SequenceCommand which has:
> > >
> > > public var nextEvent : CairngormEvent;
> > >
&

Re: [flexcoders] Re: Cairngorm's Anaemic Domain Model

2006-12-05 Thread Douglas McCarroll
What's "OP"?

 > Cairngorm doesn't allow the model to talk to the backend.

Huh?

But yes, the hibernate adapter model also looks very attractive to me. 
There are some questions about how to implement Flex Data Management 
Services in Cairngorm - IResponder doesn't include a conflict() method. 
I know that Adobe consulting has implemented FDMS - search Flexcoders 
for "cairngorm" + "fdms" - if I recall they hadn't finalized how they 
deal with this a few months ago...

ServiceLocator includes DataServices in Cairngorm 2.1, but it still 
isn't clear (at least to me) whether there's a standard way to pass in a 
conflict() method.

Have you found your way to clarity on this, Adobe?  :-)

Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-



Ralf Bokelberg wrote:
>
> Yes Bjorn
>
> As i understand the OP, the problem is, that in a normal Cairngorm 
> application the rich model sits on the server. What we see on the 
> client is only the part of the model, which is needed to drive the ui. 
> Now if you want to move the rich server model to the client, you have 
> to manage the fine grained interface between the model and your 
> persistence layer on the backend. This can't be handled by Cairngorm, 
> because Cairngorm doesn't allow the model to talk to the backend.
>
> So yes, using the FDS Hibernate adapter for example probably makes up 
> a good prototype of OPs problem: A client, which talks to backend via 
> the hibernate adapter. This means, we have all the business logic on 
> the client and the backend is just persistance.
>
> Cheers,
> Ralf.
>
> On 12/6/06, *Bjorn Schultheiss* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hey Ralf,
>
>
> For the rich-model implementation would this benefit from FDS, or
> some other data-sync framework?
>
> Regards,
> Bjorn
>
> On 06/12/2006, at 10:31 AM, Ralf Bokelberg wrote:
>
>> Though Cairngorm doesn't prevent you from creating rich models, i
>> think it fits better for this kind of crud application with a
>> rather flat model. In fact the model is  little more than a cache
>> of serverside objects. User gesture, update cached objects,
>> update view.
>> If i was to implement a rich model, i would let the model handle
>> the backend directly and make the controller a real
>> frontcontroller, which maps usergestures to model method calls.
>> You could still use cairngorm framework, it's just a slight shift
>> of responsibilities.
>> Cheers,
>> Ralf.
>>
>> On 12/5/06, *Lachlan Cotter* < [EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]> > wrote:
>>
>>
>> Thanks Alex,
>>
>> One thing I'm looking for is validation that there is a need
>> in some applications to construct an object graph of sorts to
>> describe the model beyond an array of records to be CRUDed. 
>> Surely I'm not alone here?
>>
>> If that's the case, is there a best practice for going from
>> value objects delivered from a service, to first class,
>> intelligent model citizens in the domain? One thing I've
>> found confusing about the Cairngorm approach is that models
>> and value objects seem to be synonymous.
>>
>> You thoughts?
>>
>> Cheers,
>> Lach
>>
>>
>> On 05/12/2006, at 11:13 PM, Alex Uhlmann wrote:
>>
>>> there many ways to use Cairngorm. I agree with you
>>> completly, it's of vital importance to refactor the
>>> right functionality from both, views and commands into model
>>> objects that mean something to your use case. Then, this
>>> functionality can also be easier unit tested. …
>>
>>> However how your model is going to look like depends on your
>>> specific needs. Cairngorm doesn't tell you how to design
>>> your custom model or your custom view. It's the
>>> infractucture around that.
>>>  
>>> My blog entries around that, which Douglas pointed out, have
>>> the indent to show one possible route to go towards this
>>> direction. Nevertheless, it's difficult to show that in
>>> examples

Re: [flexcoders] Cairngorm Newbie Question - Please set me straight

2006-12-05 Thread Douglas McCarroll
Hi Steve,

I'm going to take a stab at this as I've been studying the Command 
pattern (as defined in GoF) and Cairngorm lately. In fact I'll be 
presenting on the subject here in Boston tomorrow evening, so this is 
right up my alley. (www.bfpug.us)  :-)

 > how do you handle 6 different results since there is only 1
 > onResult function.

I think that the answer here is "you don't".  :-)

Cairngorm has a SequenceCommand which has:

public var nextEvent : CairngormEvent;

You can then call its executeNextCommand() from your result() method 
which launches that event.

This will work well enough if you need results from command_1 before you 
make the service call in command_2, which you need before command_3, etc.

On the other hand, if that's not the case, what to do?

The Gang Of Four chapter on the Command pattern describes a MacroCommand 
that executes a number of (Simple)Commands. As described it seems to 
simply fire them off, one after another. Wouldn't be hard to roll your 
own, extending ICommand, with an array property, and passing in Command 
objects.

I could even see creating an MacroEvent class that kept track of whether 
its Commands had finished and that then did something when all were 
finished.

Other Cairngorm programmers, wiser than I, will probably ask you wise 
questions about why you wish to pull data from six different data 
sources...  :-)


Douglas


---------

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-






stevehousefl wrote:
>
> I have a command that I would like to have pull lookup data from 6
> different BusinessDelegates. Should that one command call all 6
> delegates or should it fire 6 new events that call 6 new commands?
>
> If the one command should call all 6 delegates in its execute
> function, how do you handle 6 different results since there is only 1
> onResult function.
>
> I am using Cairngorm 2.1.
>
> Thanks in advance,
>
> Steve
>
>  



Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-04 Thread Douglas McCarroll
Thanks. I'll let you know how it goes.


Jeff Vroom wrote:
>
> Ø Do I need a fourth destination for the FilmActorID class?
>
> Nope, that instance is managed by the FilmActor destination. It does 
> not have its own “id” so it can’t be in a separate destination.
>
> Jeff
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-12-04 Thread Douglas McCarroll
properties both 
> for “film” and “actor” which refer to the destinations 
> “film.hibernate” and “actor.hibernate”. One more thing is that because 
> you are using a “complex” object type as an identity property, your 
> FilmActor.as class will need a function like:
>
> public function toString():String
>
> {
>
> return actorId + “:” + filmId
>
> }
>
> This is a requirement for complex object identity properties in FDMS 
> (due to the fact that there is no Hashtable like class in ActionScript 
> which uses equals/hashCode methods, we use a string key generated from 
> the toString values of all identity properties to keep track of 
> instances on the client).
>
> I think the hibernate assembler is missing an error test for the case 
> where the type of the referenced entity does not match the 
> destination’s entity type. I’ll fix that right away as that would have 
> saved you a lot of time. Instead, it is looking for a “filmId” 
> property on the FilmActor type and is getting back null (it should 
> also print an error instead here).
>
> One other thing I’ll mention as an aside is that you could potentially 
> implement the Film/Actors relationship without an intermediate 
> FilmActors class – both hibernate and FDMS will support that and since 
> you do not have any additional properties in the mapping table, it is 
> pretty common to avoid an extra type.
>
> You are right though that this fix will not greatly improve the 
> performance. We are still going to need to do a query for each actor 
> to retrieve the filmActors properties. It will be a little faster than 
> today because it won’t need to join in the Film table because of the 
> intermediate mapping object.
>
> Jeff
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Douglas McCarroll
> *Sent:* Thursday, November 30, 2006 5:39 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] many-to-many managed association in 
> Hibernate destination
>
> Hi Jeff,
>
> A couple more thoughts...
>
> It's worth noting that I don't get the error when I use the hierarchical
> values approach without lazy loading, and get my films info from my
> actor objects.
>
> > Thanks for this info. The performance problem is most likely due to the
> > fact that FDMS is fetching the list of films for each actor... this is
> > the lazy loading issue we have currently that I mentioned in a previous
> > post. If we were to follow the hibernate model more closely, we'd send
> > "actor" instances to the client without having populated the list of
> > films for each actor at all. The first "get" call made on the films
> > property for a given actor would then go back to the server and fetch
> > them. As it is now, we'll do one query to retrieve the list of actors,
> > then a query for each actor to get its list of films. For a large DB,
> > this is a lot of queries to do.
>
> > This is a pretty high priority feature request. For now, the workaround
> > would be to modify your domain model so there is an intermediate object
> > but that is awkward when you are generating everything from the simple
> > schema.
>
> I'm not sure that I understand this. I believe that I have "an
> intermediate object" - filmActor.java and filmActor.as.
>
> Are you suggesting that I use that object - or rather those objects - as
> a way of finding out what filmIds are related to an actorId? I.e. that I
> load them from their own destination? I'm tired so if this isn't clear,
> don't worry about it. :-)
>
> Do I understand correctly that until we get the fix lazy loading isn't
> necessarily going to solve any performance problems?
>
> Douglas
>
> Jeff Vroom wrote:
> >
> > Thanks for this info. The performance problem is most likely due to the
> > fact that FDMS is fetching the list of films for each actor... this is
> > the lazy loading issue we have currently that I mentioned in a previous
> > post. If we were to follow the hibernate model more closely, we'd send
> > "actor" instances to the client without having populated the list of
> > films for each actor at all. The first "get" call made on the films
> > property for a given actor would then go back to the server and fetch
> > them. As it is now, we'll do one query to retrieve the list of actors,
> > then a query for each actor to get its list of films. For a large DB,
> > this is a lot of queries to do.
> >
> > This is a pretty high priority feature req

Re: [flexcoders] FDS number NaN

2006-12-02 Thread Douglas McCarroll
Okay. So this is normal FDS behavior, as explained in the docs. The 
question becomes "How can we deal with this limitation of FDS?"

I don't know an answer but perhaps others on the list do.

Has anyone else wished that they could pass NaN or null into Java? How 
did you deal with this FDS limitation?

And perhaps Adobe could comment on whether there's any chance that this 
behavior will change in the future.

Douglas



Jeff Krueger wrote:
> This is correct.  My Number in my as class isn't really null it is 
> NaN.  But I believe that to be the actionscript equivalent to null for 
> a number.  And yes when I pass that to java function that function 
> recieves the class with a 0 for the Long instead of null. 
>  
> Here is the output from the console of the app server.  Notice the 
> variable XPos, YPos and deployed.  See how what I send in is NaN (or 
> null)  and it is converted to a 0.
>  
> [Flex] Deserializing AMF/HTTP request
> Version: 3
>   (Message #0 targetURI=null, responseURI=/2)
> (Array #0)
>   [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
> operation = "findStoryByExample"
> source = null
> body = (Array #1)
>   [0] = "2"
>   [1] = (Typed Object #2 'com.routeto1.flex.media.vo.StoryVO')
> headline = "c"
> XPos = NaN
> validToDate = null
> pageDef = null
> deployedPath = ""
> validFromDate = null
> subHeadline = ""
> storyGraphic = null
> YPos = NaN
> keywords = ""
> body = ""
> source = ""
> bylineOccupation = ""
> publishedDate = null
> otherReferences = ""
> referenceId = ""
> deployed = NaN
> byline = ""
> pk = ""
> updatedByUser = null
> selected = false
> dateUpdated = null
> copyForSearch = false
> createdByUser = null
> createdByUserName = ""
> dateCreated = null
> clientId = null
> timeToLive = 0
> messageId = "A5C134A1-DC44-4514-6B85-43FE21B96CB1"
> headers = (Object #3)
>   DSEndpoint = "my-amf"
> destination = "mediaDelegate"
> timestamp = 0
> [Flex] Adapter 'java-object' called 
> 'com.routeto1.flex.media.MediaDelegate.findS
> toryByExample(java.util.Arrays$ArrayList (Collection size:2)
>   [0] = 2
>   [1] = com.routeto1.flex.media.vo.StoryVO
> YPos = 0
> dateUpdated = null
> XPos = 0
> byline =
> publishedDate = null
> dateCreated = null
> pageDef = null
> copyForSearch = true
> validFromDate = null
> validToDate = null
> deployedPath =
> createdByUser = null
> bylineOccupation =
> body =
> headline = c
> keywords =
> subHeadline =
> deployed = 0
> referenceId =
> pk =
> updatedByUser = null
> otherReferences =
> storyGraphic = null
> createdByUserName =
> source =
> )'
>  
> Thanks
>  
> Jeff
>
>
> */Douglas McCarroll <[EMAIL PROTECTED]>/* wrote:
>
> Jeff,
>
> Let me get this clear. If I understand correctly you're passing an AS
> number hoping that it will convert to a Java Long. But your number is
> set to null, and you'd like it to convert to null on the Java type.
>
> Is this correct?
>
> Douglas
>
> Jeff Krueger wrote:
> > Thanks. I am not using a primitive, I am using Long. I wonder what
> > it does for those.
> >
> > Jeff
> >
> >
> > */Douglas McCarroll <[EMAIL PROTECTED]
> <mailto:org.yahoo_primary.001%40douglasmccarroll.com>>/* wrote:
> >
> > Jeff,
> >
> > I'm not sure that this will help you find a solution, but it
> confirms
> > that this is a known issue:
> >
> >
> 
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
> 
> <http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html>
> >
> 
> <http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
> 
> <http://livedocs.m

Re: [flexcoders] Cairngorm’s Anaemic Doma in Model

2006-12-02 Thread Douglas McCarroll
 > In most cases the 'model' isn't much more than
 > a collection of dumb value objects without complex relationships.

Lach,

Have you seen Alex Uhlmann’s Dashboard Example - “How Business Logic Can 
Manage Views”?

You'll find links here:

http://cairngormdocs.org/blog/?p=20

I'm not sure that it addresses the main thrust of your concern, but it 
does talk about using more than "a collections of dumb value objects"...


Douglas


---------

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-



Ralf Bokelberg wrote:
>
> Good point. Lately we started to put more complex objects into the
> model locator. But as soon as you do this, you want to call their
> methods from the view directly and also encapsulate some of the
> cairngorm event dispatching in there. It doesn't really feel
> cairngorm. Therefore i'm also interested in other solutions.
>
> Cheers,
> Ralf.
>
> On 12/2/06, Lachlan Cotter <[EMAIL PROTECTED] 
> <mailto:lachlan.cotter%40couchdesign.com.au>> wrote:
> > Something that troubles me about the Cairngorm architecture is the
> > apparent lack of any proper domain model. Although it is argued that
> > the domain model actually exists on the server and that the Flex
> > client is essentially a view, I have always found it necessary to
> > construct some kind of object graph of the domain on the client as well.
> >
> > I have two concerns regarding this.
> >
> > First, I have never seen examples or discussion of Cairngorm that
> > deals with this issue. In most cases the 'model' isn't much more than
> > a collection of dumb value objects without complex relationships.
> >
> > Second, and more importantly, pretty much all the logic of Cairngorm
> > apps seems to reside in the Command and Delegate classes with not
> > much to speak about in the actual model. It seems to be the Commands
> > that end up manipulating the application data directly, and I'm a
> > little uncomfortable with this.
> >
> > I think Cairngorm's a good method for managing code and iterative
> > development, but I'm not sure about how well it does encapsulation
> > and MVC.
> >
> > Anyone care to discuss?
> >
> > Cheers,
> > Lach
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
> <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>
> > Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> <http://www.mail-archive.com/flexcoders%40yahoogroups.com>
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED] 
> <mailto:ralf.bokelberg%40gmail.com>>
> Flex & Flash Consultant based in Cologne/Germany
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] FDS number NaN

2006-12-01 Thread Douglas McCarroll
Jeff,

Let me get this clear. If I understand correctly you're passing an AS 
number hoping that it will convert to a Java Long. But your number is 
set to null, and you'd like it to convert to null on the Java type.

Is this correct?

Douglas


Jeff Krueger wrote:
> Thanks.  I am not using a primitive, I am using Long.  I wonder what 
> it does for those.
>  
> Jeff
>
>
> */Douglas McCarroll <[EMAIL PROTECTED]>/* wrote:
>
> Jeff,
>
> I'm not sure that this will help you find a solution, but it confirms
> that this is a known issue:
>
> 
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
> 
> <http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html>
>
> "Primitive values cannot be set to null in Java. When passing Boolean
> and Number values from the client to a Java object, Flex
> interprets null
> values as the default for primitive types; for example, 0 for double,
> float, long, int, short, byte, \u for char, and false for
> Boolean.
> Only primitive Java types get default values."
>
> Douglas
>
> -
>
> Douglas McCarroll
>
> CairngormDocs.org Webmaster
> http://www.CairngormDocs.org <http://www.cairngormdocs.org/>
>
> Flex Developer
> http://www.brightworks.com <http://www.brightworks.com/>
> 617.459.3840
>
> -
>
> Jeff Krueger wrote:
> > All,
> >
> > I am finding that when I pass a actionscript class to a remote
> > java object and a number variable type in the actionscript class is
> > set to NaN (Null), that the java class gets set to a 0, instead
> of a
> > null. Is there something I am missing or something I need to set
> the
> > number to so it will be null in my java class?
> >
> > Thanks
> >
> > Jeff
> >
> >
> > --
> > Access over 1 million songs - Yahoo! Music Unlimited.
> >
> 
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/
> 
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/>>
>
> >
> >
>
>
> 
> Want to start your own business? Learn how on Yahoo! Small Business. 
> <http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index> 
>
>  



Re: [flexcoders] FDS number NaN

2006-12-01 Thread Douglas McCarroll
Jeff,

I'm not sure that this will help you find a solution, but it confirms 
that this is a known issue:

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html

"Primitive values cannot be set to null in Java. When passing Boolean 
and Number values from the client to a Java object, Flex interprets null 
values as the default for primitive types; for example, 0 for double, 
float, long, int, short, byte, \u for char, and false for Boolean. 
Only primitive Java types get default values."


Douglas


-----

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-


Jeff Krueger wrote:
> All,
>  
> I am finding that when I pass a actionscript class to a remote 
> java object and a number variable type in the actionscript class is 
> set to NaN (Null), that the java class gets set to a 0, instead of a 
> null.  Is there something I am missing or something I need to set the 
> number to so it will be null in my java class?
>  
> Thanks
>  
> Jeff
>  
>
> 
> Access over 1 million songs - Yahoo! Music Unlimited. 
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/>
>  
>
>  



Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-11-30 Thread Douglas McCarroll
Hi Jeff,

A couple more thoughts...

It's worth noting that I don't get the error when I use the hierarchical 
values approach without lazy loading, and get my films info from my 
actor objects.

 > Thanks for this info. The performance problem is most likely due to the
 > fact that FDMS is fetching the list of films for each actor... this is
 > the lazy loading issue we have currently that I mentioned in a previous
 > post. If we were to follow the hibernate model more closely, we'd send
 > "actor" instances to the client without having populated the list of
 > films for each actor at all. The first "get" call made on the films
 > property for a given actor would then go back to the server and fetch
 > them. As it is now, we'll do one query to retrieve the list of actors,
 > then a query for each actor to get its list of films. For a large DB,
 > this is a lot of queries to do.

 > This is a pretty high priority feature request. For now, the workaround
 > would be to modify your domain model so there is an intermediate object
 > but that is awkward when you are generating everything from the simple
 > schema.

I'm not sure that I understand this. I believe that I have "an 
intermediate object" - filmActor.java and filmActor.as.

Are you suggesting that I use that object - or rather those objects - as 
a way of finding out what filmIds are related to an actorId? I.e. that I 
load them from their own destination? I'm tired so if this isn't clear, 
don't worry about it. :-)

Do I understand correctly that until we get the fix lazy loading isn't 
necessarily going to solve any performance problems?

Douglas




Jeff Vroom wrote:
>
> Thanks for this info. The performance problem is most likely due to the
> fact that FDMS is fetching the list of films for each actor... this is
> the lazy loading issue we have currently that I mentioned in a previous
> post. If we were to follow the hibernate model more closely, we'd send
> "actor" instances to the client without having populated the list of
> films for each actor at all. The first "get" call made on the films
> property for a given actor would then go back to the server and fetch
> them. As it is now, we'll do one query to retrieve the list of actors,
> then a query for each actor to get its list of films. For a large DB,
> this is a lot of queries to do.
>
> This is a pretty high priority feature request. For now, the workaround
> would be to modify your domain model so there is an intermediate object
> but that is awkward when you are generating everything from the simple
> schema.
>
> As to why it is not working, from the output, the "filmId" of each Film
> object is getting sent to the client as a "null" value. I am not sure
> why... I can't tell if it is retrieving the values from the database as
> null or if FDMS is just not getting the values from the objects
> properly. It could have something to do with the "short" data type - I
> do not think we've tried id properties as short values so maybe
> something is getting messed up because of that? It might be worth
> changing that to an int if that is an easy test to run.
>
> I will try to get a chance to look at this more tomorrow.
>
> Jeff
>
> -Original Message-
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com>] On
> Behalf Of Douglas McCarroll
> Sent: Wednesday, November 29, 2006 11:26 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> Subject: Re: [flexcoders] many-to-many managed association in Hibernate
> destination
>
> Jeff Vroom wrote:
>
> > 4) If you turn on debug logging in the server for
> > the "Endpoint.*" logging category, you'll see the
> > object graph which is sent to the client after
> > your fill. I am curious if the time is being
> > spent loading the data from the database or
> > sending data to the client, or a combination of
> > both.
>
> Okay, I've figured out how to do this part. Results here:
>
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_asso 
> <http://www.brightworks.com/technology/tech_questions/hibernate_lazy_asso>
> ciations/debug_log_01.txt
>
> > If you can also turn on debug logging of the SQL
> > that hibernate is using that would help figure out
> > if we are just fetching too many objects or what.
>
> It looks as though I do this by adding a line to
> HibernateManager.java...
>
> public void createSessionFactory(Configuration hibernateConfig,
> boolean useTran

Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-11-30 Thread Douglas McCarroll
Hi Jeff,

 > As to why it is not working, from the output, the "filmId" of each Film
 > object is getting sent to the client as a "null" value. I am not sure
 > why... I can't tell if it is retrieving the values from the database as
 > null or if FDMS is just not getting the values from the objects
 > properly.

filmId isn't getting set when instances of Film.java are created. I put 
some dummy code in the default constructor so that I could set a 
breakpoint there and that's the constructor that is being used. It sets 
no properties. The other constructors aren't called at any point, nor is 
setFilmId(). Does this help?


 > It could have something to do with the "short" data type - I
 > do not think we've tried id properties as short values so maybe
 > something is getting messed up because of that? It might be worth
 > changing that to an int if that is an easy test to run.

Tried it, didn't help. At least I assume that I've done what you're 
suggesting - I changed all instances of "short" or "java.lang.Short" to 
"int"... in my domain classes and the hbm.xml mapping files. Compiled 
fine, but I got the same error.

Douglas

Jeff Vroom wrote:
>
> Thanks for this info. The performance problem is most likely due to the
> fact that FDMS is fetching the list of films for each actor... this is
> the lazy loading issue we have currently that I mentioned in a previous
> post. If we were to follow the hibernate model more closely, we'd send
> "actor" instances to the client without having populated the list of
> films for each actor at all. The first "get" call made on the films
> property for a given actor would then go back to the server and fetch
> them. As it is now, we'll do one query to retrieve the list of actors,
> then a query for each actor to get its list of films. For a large DB,
> this is a lot of queries to do.
>
> This is a pretty high priority feature request. For now, the workaround
> would be to modify your domain model so there is an intermediate object
> but that is awkward when you are generating everything from the simple
> schema.
>
> As to why it is not working, from the output, the "filmId" of each Film
> object is getting sent to the client as a "null" value. I am not sure
> why... I can't tell if it is retrieving the values from the database as
> null or if FDMS is just not getting the values from the objects
> properly. It could have something to do with the "short" data type - I
> do not think we've tried id properties as short values so maybe
> something is getting messed up because of that? It might be worth
> changing that to an int if that is an easy test to run.
>
> I will try to get a chance to look at this more tomorrow.
>
> Jeff
>
> -Original Message-
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com>] On
> Behalf Of Douglas McCarroll
> Sent: Wednesday, November 29, 2006 11:26 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> Subject: Re: [flexcoders] many-to-many managed association in Hibernate
> destination
>
> Jeff Vroom wrote:
>
> > 4) If you turn on debug logging in the server for
> > the "Endpoint.*" logging category, you'll see the
> > object graph which is sent to the client after
> > your fill. I am curious if the time is being
> > spent loading the data from the database or
> > sending data to the client, or a combination of
> > both.
>
> Okay, I've figured out how to do this part. Results here:
>
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_asso 
> <http://www.brightworks.com/technology/tech_questions/hibernate_lazy_asso>
> ciations/debug_log_01.txt
>
> > If you can also turn on debug logging of the SQL
> > that hibernate is using that would help figure out
> > if we are just fetching too many objects or what.
>
> It looks as though I do this by adding a line to
> HibernateManager.java...
>
> public void createSessionFactory(Configuration hibernateConfig,
> boolean useTransactions) throws ExceptionInInitializerError
> {
> try
> {
>
> New Line -> hibernateConfig.setProperty("hibernate.show_sql", "true")
>
> sessionFactory = hibernateConfig.buildSessionFactory();
>
> Yes?
>
> BTW, in case someone finds this someday with Google, here are some
> resources:
>
> FDS Logging:
>
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/ww 
> <http://livedocs.macrome

Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-11-29 Thread Douglas McCarroll
Jeff Vroom wrote:

 > 4) If you turn on debug logging in the server for
 > the “Endpoint.*” logging category, you’ll see the
 > object graph which is sent to the client after
 > your fill. I am curious if the time is being
 > spent loading the data from the database or
 > sending data to the client, or a combination of
 > both.

Okay, I've figured out how to do this part. Results here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/debug_log_01.txt


 > If you can also turn on debug logging of the SQL
 > that hibernate is using that would help figure out
 > if we are just fetching too many objects or what.

It looks as though I do this by adding a line to HibernateManager.java...


public void createSessionFactory(Configuration hibernateConfig,
boolean useTransactions) throws ExceptionInInitializerError
{
try
{

New Line -> hibernateConfig.setProperty("hibernate.show_sql", "true")

sessionFactory = hibernateConfig.buildSessionFactory();


Yes?






BTW, in case someone finds this someday with Google, here are some 
resources:


FDS Logging:

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1112.html

http://weblogs.macromedia.com/dharfleet/archives/2006/08/debugging_flex.cfm

http://tech.groups.yahoo.com/group/flexcoders/message/56192


Hibernate Logging:

http://www.javalobby.org/java/forums/t44119.html










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Cairngorm ServiceLocater Problem

2006-11-29 Thread Douglas McCarroll
Capho,

ServiceLocator is an implementation of the Singleton pattern which, in a 
nutshell, means that only one instance of the class should be created. 
Your code is somehow breaking this rule.

Set a breakpoint in ServiceLocator.new() and 
ServiceLocator.getInstance() and run your app in debug mode. You should 
be able to find out where/when your code is attempting to create instances.

Hope this helps,


Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-



sinacapho wrote:
>
> Dear all,
>
> I am new to Cairngorm and for now i am writing a program using
> flex and i have decided to use Cairngorm. I have created subsection for
> each cairngorm state (business,Commands,Event). I have created sub
> folder in business for handling different service . But when i run the
> application . It prompt and say that "The ServiceLocater can only
> instantied once ". What i can do? is that i need to put all the service
> in the business folder ?
>
> thx
>
> capho
>
>  



Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-11-28 Thread Douglas McCarroll
Hi Jeff,

Thanks for your response!

I'm going to take a while to absorb (1) and (2) but here's a quick 
response for (3) and (4).

(3)

>  It looks to me like you are seeing the same objects
>  over and over again rather than seeing a huge tree

Yes, absolutely. I'd noticed that that was the case.

And I assume that the fact that they are the same objects referenced 
over and over limits the damage.

Instead of huge numbers of objects we just have huge numbers of 
references? Or maybe we don't - I guess that we're just seeing the same 
references over and over again too.

But something is slowing the app down big-time. I've pared the number of 
records in the DB down to hundreds per table so that it loads in a few 
seconds, but with thousands of records and non-lazy 
hierarchical-data-approach it was taking over 30 seconds to load...


(4)

Can you give me a few details on how to turn on these two types of 
debugging?

Even just file names would help - then I can Google/research the details 
- and ask again if I get stuck. :-)



Thanks,

Douglas




Jeff Vroom wrote:
>
> Sorry for not chiming in sooner – I was on vacation the last couple of 
> days.
>
> I’m afraid I haven’t had a chance to look at the code you posted but I 
> have a few comments that will hopefully help.
>
> 1) The HibernateAssembler does have some logic to deal with 
> hibernate’s generated proxy classes when you are using FDMS with 
> hibernate. This involves two parts: 1) pre-fetching any lazily loaded 
> data that we will need to serialize to the client and 2) unwrapping 
> the proxied classes so that the class names are properly mapped if you 
> are using strongly typed AS classes to map to your hibernate domain 
> model classes. We need to do 1) so that hibernate has loaded all of 
> the object’s state that the client requires while the transaction is 
> still open. This also allows us to unwrap the proxies during 
> deserialization since we know all of the state we need will have been 
> fetched in the wrapped implementation instance. There is a performance 
> issue with the code that implements 1) in that currently hibernate’s 
> lazy loading and FDMS’s lazy loading are a little different for 
> multi-valued properties and this could be contributing to your 
> performance problem. Basically, we FDMS needs to prefetch the value of 
> the multi-valued association property even when the property is marked 
> with lazy=”true” in your FDMS configuration. This is because FDMS 
> wants to send the ids of the referenced objects down with the state of 
> the parent object… hibernate initially does not fetch any values in 
> the multi-valued association property and when you first retrieve the 
> collection it gets all of the data in the collection. We have an open 
> enhancement request to support a model for FDMS which matches 
> hibernate’s to make this more efficient.
>
> 2) We should support bi-directional references in your object graph 
> though it is a good practice to ensure all “back ptrs” are marked with 
> lazy=”true” in the FDMS configuration.
>
> 3) In the flex-builder variables view you sent in the screen-shot, 
> keep in mind that flexbuilder is not good at letting you know when you 
> have hit a recursive ptr in the variables view. It looks to me like 
> you are seeing the same objects over and over again rather than seeing 
> a huge tree that is being sent to the client (you can match up the 
> addresses flexbuilder displays for each object to detect this yourself).
>
> 4) If you turn on debug logging in the server for the “Endpoint.*” 
> logging category, you’ll see the object graph which is sent to the 
> client after your fill. I am curious if the time is being spent 
> loading the data from the database or sending data to the client, or a 
> combination of both. If you can also turn on debug logging of the SQL 
> that hibernate is using that would help figure out if we are just 
> fetching too many objects or what.
>
> I’ll hopefully get a chance to look into the test case in more detail 
> later. Regards,
>
> Jeff
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Douglas McCarroll
> *Sent:* Tuesday, November 28, 2006 3:19 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] many-to-many managed association in 
> Hibernate destination
>
> Hi Richard,
>
> > I was under the impression that you have to use DTOs, rather
> > than mapping your client classes to your domain objects.
>
> I Google "flex hibernate lazy" and I find this:
>
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Part

Re: [flexcoders] many-to-many managed association in Hibernate destination

2006-11-28 Thread Douglas McCarroll
Hi Richard,

 > I was under the impression that you have to use DTOs, rather
 > than mapping your client classes to your domain objects.

I Google "flex hibernate lazy" and I find this:

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1201.html

It includes config code that looks like this:




flex.data.assemblers.HibernateAssembler
application


 
   




This looks like they're mapping directly to a domain object, yes?

Douglas


Richard Rodseth wrote:
>
> I'm not currently using Flex, but I don't believe it's possible to map 
> ActionScript classes to lazily-loaded Hibernate classes because of all 
> the hibernate proxy stuff. I was under the impression that you have to 
> use DTOs, rather than mapping your client classes to your domain 
> objects. Am I wrong?
>
> - Richard
>
> On 11/28/06, *Douglas McCarroll* 
> <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi All,
>
> This is essentially a repost of my "How to implement Lazy Hibernate?"
> question.
>
> I'm still completely stuck. Here's the error message I'm getting:
>
> [RPC Fault faultString="Page request made for item with id =
> '{filmId=null}'. The item was not in the cache and the adapter's get
> method failed to return the item for destination = film.hibernate
> that
> is expected to be in the requested page."
> faultCode="Server.Processing"
> faultDetail="null"]
>
> Here's the big picture:
>
> I'm attempting to create a Cairngorm/FDMS/Hibernate/MySQL example
> program.
>
> I have three tables. 'actor' and 'film' have a many-to-many
> relationship
> so they're connected by a link table 'film_actor'.
>
> I've used HibernateTools to create .java and .hbm.xml classes by
> reverse
> engineering the DB. I assume the HibernateTools knows what it is
> doing
> so I'm assuming that the generated code is correct.
>
> And I've successfully implemented .as classes and
> data-management-config.xml and displayed data. I can click on an
> actor
> and display the films that s/he's in. This all works through a single
> destination that uses my Actor.java class. This uses the
> 'hierarchical
> values' approach to managing hierarchical collections, i.e. just
> using
> the 'actor' destination.
>
> This approach is problematic because there are circular references
> between Actor and Film objects. It seems to me that the obvious
> solution
> is lazy loading. I don't see anything in the docs explaining how
> to do
> this with the hierarchical values approach, so I'm attempting to
> use a
> 'lazy' managed associations approach. But I get the above error.
>
> Someone who knows FDMS might be able to look at my code and fairly
> easily point me in the right direction.
>
> I've zipped up the entire project - plus a .sql file you can use to
> create my MySQL DB - and put them up for download:
>
> 
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/Bw_005.zip
> 
> <http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/Bw_005.zip>
>
> Or, you can just look at the code here:
>
> 
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt
> 
> <http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt>
>
> The DB's schema is here:
>
> 
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/index.html
> 
> <http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/index.html>
>
> And here's a lovely variables view of the circular references I'm
> trying
> to avoid :-) :
>
> 
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/deeply_nested_actors_and_films.jpg
> 
> <http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/deeply_nested_actors_and_films.jpg>
>
> Help?
>
> Douglas
>
>
>  



[flexcoders] many-to-many managed association in Hibernate destination

2006-11-28 Thread Douglas McCarroll
Hi All,

This is essentially a repost of my "How to implement Lazy Hibernate?" 
question.

I'm still completely stuck. Here's the error message I'm getting:

[RPC Fault faultString="Page request made for item with id = 
'{filmId=null}'.  The item was not in the cache and the adapter's get 
method failed to return the item for destination = film.hibernate that 
is expected to be in the requested page." faultCode="Server.Processing" 
faultDetail="null"]

Here's the big picture:

I'm attempting to create a Cairngorm/FDMS/Hibernate/MySQL example program.

I have three tables. 'actor' and 'film' have a many-to-many relationship 
so they're connected by a link table 'film_actor'.

I've used HibernateTools to create .java and .hbm.xml classes by reverse 
engineering the DB. I assume the HibernateTools knows what it is doing 
so I'm assuming that the generated code is correct.

And I've successfully implemented .as classes and 
data-management-config.xml and displayed data. I can click on an actor 
and display the films that s/he's in. This all works through a single 
destination that uses my Actor.java class. This uses the 'hierarchical 
values' approach to managing hierarchical collections, i.e. just using 
the 'actor' destination.

This approach is problematic because there are circular references 
between Actor and Film objects. It seems to me that the obvious solution 
is lazy loading. I don't see anything in the docs explaining how to do 
this with the hierarchical values approach, so I'm attempting to use a 
'lazy' managed associations approach. But I get the above error.

Someone who knows FDMS might be able to look at my code and fairly 
easily point me in the right direction.

I've zipped up the entire project - plus a .sql file you can use to 
create my MySQL DB - and put them up for download:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/Bw_005.zip

Or, you can just look at the code here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt

The DB's schema is here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/index.html

And here's a lovely variables view of the circular references I'm trying 
to avoid  :-)  :

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/deeply_nested_actors_and_films.jpg

Help?

Douglas


Re: [flexcoders] FDS and AMFPHP

2006-11-28 Thread Douglas McCarroll
Philippe,

I don't use PHP but have been collecting interesting links in case I 
start.  :-)

I suspect that one or more of them will help:

http://www.brightworks.com/technology/adobe_flex/with_php.html


Douglas


-----

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-



Philippe wrote:
>
> Hi,
>
> Is it possible to use Flex Data Services 2 with AMFPHP ?
>
> And do someone know examples and/or tutorials ?
>
> (I m ok with AMFPHP but completely new with FDS)
>
> Thanks
> Phil
>
>  



Re: [flexcoders] How to implement Lazy Hibernate?

2006-11-26 Thread Douglas McCarroll
Hi Kelly,

 > Maybe if you eliminated the one-to-many relationships on Film and Actor.

 > Then you would have a separate collection of FilmActors that you 
could query by film or actor.

 > It would eliminate the circular reference but I am not sure it’s the 
best solution or what you had in mind.

Yes, I've had similar thoughts but like you I'm not sure it's the best 
solution. I've been inclined to think that HibernateTools probably knows 
what it's doing and that I should be able to use the structure that it 
has created. But I'm also not sure that this is a safe assumption. :-)

 > Let me know what you end up doing, I am curious.

Will do. :-)

Douglas


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] How to implement Lazy Hibernate?

2006-11-26 Thread Douglas McCarroll
Hi Kelly,

 > Most of the time you need additional information stored in the "link 
table"

It looks to me as though I have a link table - film_actor.

I'm assuming that as my .java and .hbm.xml classes are generated by 
HibernateTools from the DB, they are correct.

I'm guessing that they work fine absent FDMS, despite their circular 
references, due to the fact that Hibernate has lazy loading turned on by 
default.

And that the problem enters in because FDMS has lazy loading turned off 
by default.

Therefore, the solution would be to turn lazy loading off in my 
data-services-config.xml file.

Problem is, I get an error when I do this.

I've gotten some input from another person - may be a simple matter of 
handling the error in try-catch block - and I'll report back to the list 
on what I figure out...

Thanks for your input!

Douglas




Kelly wrote:
>
> From Hibernate Best Practices:
>
> *Don't use exotic association mappings.*
>
> Good usecases for a real many-to-many associations are rare. Most of 
> the time you need additional information stored in the "link table". 
> In this case, it is much better to use two one-to-many associations to 
> an intermediate link class. In fact, we think that most associations 
> are one-to-many and many-to-one, you should be careful when using any 
> other association style and ask yourself if it is really neccessary.
>
> http://www.hibernate.org/hib_docs/v3/reference/en/html/best-practices.html 
> <http://www.hibernate.org/hib_docs/v3/reference/en/html/best-practices.html>
>
> I think FDS has a hibernate adaptor but that isn’t going to solve your 
> circular reference.
>
> --Kelly
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Carlos Rovira
> *Sent:* Sunday, November 26, 2006 12:49 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] How to implement Lazy Hibernate?
>
> Hi,
>
> I'm currently searching for info about this topic. Could someone 
> provide some links about how FDS and Hibernate work thogether in this 
> issue?
>
> Thanks.
>
> C.
>
>
>
> On 11/26/06, *Kelly* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> Lazy Loading probably isn't going to help you.
>
> You probably want to consider doing an intermediate class between any 
> many-to-many associations in hibernate so you have two many-to-one 
> associations instead.
>
> --Kelly
>
> ----
>
> *From:* [EMAIL PROTECTED] ups.com <http://ups.com> 
> [mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ups.com 
> <http://ups.com>] *On Behalf Of *Douglas McCarroll
> *Sent:* Saturday, November 25, 2006 3:32 PM
> *To:* flexcoders@yahoogroups.com <http://ups.com>
> *Subject:* [flexcoders] How to implement Lazy Hibernate?
>
> Hi All,
>
> I'm attempting to create a Cairngorm/FDMS/Hibernate/MySQL example
> program which I'll publish to the community once completed. I used the
> MySQL Sakila sample DB (pared down to 3 tables - Film, Actor & FilmActor
> - at present) and used HibernateTools to reverse engineer the requisite
> Java and Hibernate files. So far, so good. I've even managed to
> successfully write corresponding .as files and implement the beginnings
> of a Cairngorm front end.
>
> And it works. Kind of.
>
> The problem is that the persistence layer takes forever to load, even
> though the 3 tables only have hundreds or thousands of records each.
> I've temporarily pared them down considerably (to 100, 100 & 500
> records) and the program now loads quickly enough that I can continue
> development work, but the performance issue needs to be addressed.
>
> It's fairly easy to see what the problem is. Here's a picture of the
> variable window that depicts the situation in all its glory:
>
> http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/deeply_nested_actors_and_films.jpg
>  
> <http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/deeply_nested_actors_and_films.jpg>
>
> Beautiful, isn't it?? :-)
>
> In other words, every actor references all films that the actor is in...
>
> And each of these films references all actors in the film...
>
> And each of these actors references all films that the actor is in...
>
> And each of these films references all actors in the film...
>
> Etc, etc, etc, etc, etc.
>
> I wonder how many levels deep this goes? The program doesn't hang so I
> assume that Flex puts a

Re: [flexcoders] How to implement Lazy Hibernate?

2006-11-26 Thread Douglas McCarroll
Hi Kelly,

 > Lazy Loading probably isn't going to help you.
 >
 > You probably want to consider doing an intermediate
 > class between any many-to-many associations in
 > hibernate so you have two many-to-one associations
 > instead.

Thanks for your response Kelly, but I think that I already have an 
intermediate class, implemented on both client (.as) and server (.java)

The FilmActor table has many-to-one relationships with both Film & Actor 
tables.

FilmActor.java & FilmActorVO.as are the intermediate classes that map to 
this table.

I'm guessing that you got the impression that I have no intermediate 
class from my explanation, right below the first link, which I 
oversimplified.

Here's a revised version:


Hi All,

I'm attempting to create a Cairngorm/FDMS/Hibernate/MySQL example 
program which I'll publish to the community once completed. I used the 
MySQL Sakila sample DB (pared down to 3 tables - Film, Actor & FilmActor 
- at present) and used HibernateTools to reverse engineer the requisite 
Java and Hibernate files. So far, so good. I've even managed to 
successfully write corresponding .as files and implement the beginnings 
of a Cairngorm front end.

And it works. Kind of.

The problem is that the persistence layer takes forever to load, even 
though the 3 tables only have hundreds or thousands of records each. 
I've temporarily pared them down considerably (to 100, 100 & 500 
records) and the program now loads quickly enough that I can continue 
development work, but the performance issue needs to be addressed.

It's fairly easy to see what the problem is. Here's a picture of the 
variable window that depicts the situation in all its glory:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/deeply_nested_actors_and_films.jpg
 


Beautiful, isn't it??   :-)

There's a reference chain that goes like this on the client side:


ActorVO references...

A FilmActors ArrayCollection which contains...

ObjectProxy instances (translations of FilmActor.java) which reference...

Both ActorVO & FilmVO instances which both reference...

A FilmActors ArrayCollection which contains...

ObjectProxy instances (translations of FilmActor.java) which reference...

Both ActorVO & FilmVO instances which both reference...

Etc, etc, etc, etc, etc.


I wonder how many levels deep this goes? The program doesn't hang so I 
assume that Flex puts a stop to it at some point...

Anyway, I'm assuming that the solution is to implement lazy 
associations. My understanding is that Hibernate does lazy associations 
by default, so once I set up my destinations properly all will be well. 
But despite several attempts, I keep getting error messages.

Could one of the Hibernate gurus that inhabits this list point me in the 
correct direction?

The DB's schema is outlined here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/index.html
 


And all relevant code, plus my latest error message, is here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt
 


I assume that my problem is in data-management-config.xml, but I'm new 
to all of this and could be doing other things wrong as well.

TIA!


Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-










[flexcoders] How to implement Lazy Hibernate?

2006-11-25 Thread Douglas McCarroll
Hi All,

I'm attempting to create a Cairngorm/FDMS/Hibernate/MySQL example 
program which I'll publish to the community once completed. I used the 
MySQL Sakila sample DB (pared down to 3 tables - Film, Actor & FilmActor 
- at present) and used HibernateTools to reverse engineer the requisite 
Java and Hibernate files. So far, so good. I've even managed to 
successfully write corresponding .as files and implement the beginnings 
of a Cairngorm front end.

And it works. Kind of.

The problem is that the persistence layer takes forever to load, even 
though the 3 tables only have hundreds or thousands of records each. 
I've temporarily pared them down considerably (to 100, 100 & 500 
records) and the program now loads quickly enough that I can continue 
development work, but the performance issue needs to be addressed.

It's fairly easy to see what the problem is. Here's a picture of the 
variable window that depicts the situation in all its glory:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/deeply_nested_actors_and_films.jpg

Beautiful, isn't it??   :-)

In other words, every actor references all films that the actor is in...

And each of these films references all actors in the film...

And each of these actors references all films that the actor is in...

And each of these films references all actors in the film...

Etc, etc, etc, etc, etc.

I wonder how many levels deep this goes? The program doesn't hang so I 
assume that Flex puts a stop to it at some point...

Anyway, I'm assuming that the solution is to implement lazy 
associations. My understanding is that Hibernate does lazy associations 
by default, so once I set up my destinations properly all will be well. 
But despite several attempts, I keep getting error messages.

Could one of the Hibernate gurus that inhabits this list point me in the 
correct direction?

The DB's schema is outlined here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/index.html

And all relevant code, plus my latest error message, is here:

http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt

I assume that my problem is in data-management-config.xml, but I'm new 
to all of this and could be doing other things wrong as well.

TIA!


Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-





Re: [flexcoders] Can't debug in Data Services project

2006-11-09 Thread Douglas McCarroll
I'm also interested in this question. James Ward's post on debugging 
Java & Flex...

http://www.cayambe.com/wordpress/?p=47

... assumes that the reader is using JRun.

I've posted a comment begging him to include instructions for Tomcat 
users but realize that he may have other priorities.

So I'm running both JRun (so I can debug) and Tomcat (so I can test on 
Tomcat).

Allen asks:

 > Has anybody successfully been able to debug a Data Services project 
that is deployed on Tomcat using the Eclipse Web Tools Platform?

I'd add this question:

Has anybody successfully been able to debug a Data Services project that 
is deployed on Tomcat?

If so, would you be willing to share the details of how you made this work?

And, if it's not asking too much, as you write, assume that the reader 
is a relative Eclipse & Java newbie?

:-?

Douglas



Allen Riddle wrote:
>
> Yes, it is in Debug mode. Flexbuilder blows up when it hits my 
> breakpoint. Has anybody successfully been able to debug a Data 
> Services project that is deployed on Tomcat using the Eclipse Web 
> Tools Platform?
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Peter Farland
> *Sent:* Thursday, November 09, 2006 10:23 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] Can't debug in Data Services project
>
> Did you add a URL query parameter ?debug=true to the URL of the mxml 
> file on the server?
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Allen Riddle
> *Sent:* Thursday, November 09, 2006 10:20 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Can't debug in Data Services project
>
> I posted this yesterday and didn’t get any responses. It’s a big 
> issue, so I’m posting again. I am unable to debug my data services 
> project. Whenever I have the compilation set to run on the client, I 
> can debug. But if I set the server up to compile the project, 
> Flexbuilder gives me an error saying the file I’m trying to debug is 
> not in the project. Is it possible to debug a data services project 
> that is compiling on the server? I’m using the Eclipse Web Tools 
> Platform to run the web app.
>
> **Allen Riddle**
>
> Sofware Development
>
> x3217
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] mx.rpc.remoting.mxml.RemoteObject source code?

2006-11-08 Thread Douglas McCarroll
Hi All,

Does anyone know if the source code for 
mx.rpc.remoting.mxml.RemoteObject is available?

And if so, where to find it?

Doesn't seem to be in \Flex SDK 2\frameworks\mx\.

TIA!

Douglas McCarroll


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Re: cairngorm: calling a function in a view

2006-11-08 Thread Douglas McCarroll
Hi Jamie,

I'm a Cairngorm newbie, but it looks to me as though this is simply a 
case of trying to cobble preexisting code (your SWC) into a framework 
that it wasn't designed for. In such a case your current fix, though a 
kludge, may be a reasonable solution, even if not really 
Cairngorm-compliant.

Your only other option may be to completely rework your SWC so it fits 
into the framework. But this may not be possible. So much of the 
Cairngorm model consists of using data binding from model to view, and 
I'm having trouble imagining how one could implement binding from model 
to SWC. But now I'm moving into an area where I'm pretty ignorant, so 
I'll shut up.  :-)

In any case, if you do find a Cairngorm-compliant approach, please do 
post it. Then we'll all learn. :-)

Thanks,

Douglas



Jamie O wrote:
>
> My view has a SWC component within it, so parsing the XML in the
> command or anywhere within the program is not an option. I pass the
> XML to the component and call it's parseXML method() to have it
> update. I did manage to find another thread much earlier in this
> discussion that - although not recommended from an encapsulating code
> best practices point of view - temporarily resolves my issue. In my
> command I execute the views component method directly:
>
> Application.application.viewstackNameHere.getChildByName("viewNameHere").ComponentID.ParseXML();
>
> Later on, I'll get some consulting time with someone smarter in the
> ways of cairngorm and Flex than myself to help re-factor the code and
> post the 'proper' method to this. From what I've read it is an issue
> for a number of others.
>
> Thanks,
> Jamie
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Simple CairngormStore Question

2006-11-06 Thread Douglas McCarroll
Hi All,

In the CairngormStore example's ProductsAndCheckoutViewStack.mxml file, 
it's obvious that it is its bodyViewToShow() method that switches the 
displayed view.

But how is bodyViewToShow() called?

I can't find any method that it is called from. I've also tried placing 
breakpoints in it, then switching views while running in debug mode. 
Nothing happens - the debugger doesn't get activated.

Anyone care to explain this?

TIA!

Douglas


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] FDS-Hibernate Error: Error instantiating ... 'flex.data.assemblers.HibernateAssembler'

2006-11-02 Thread Douglas McCarroll
Thanks, Jeff!

That clarified it. I've fixed that error and am moving onto others.  :-)

I'll be back in touch if I can't resolve them myself.

My problem was that I wasn't familiar enough with the log files, and the 
order in which I should read them.  :-)

Douglas



Jeff Vroom wrote:
>
> Hi Douglas
>
> The HibernateAssembler source is in
> .../fds2/resources/ samples/assemblers/flex-messaging-dist-src.zip so you
> can see what is going on.
>
> In this case, I think the problem is that hibernate can't find your
> "entity class" - this is the part of the huge stack trace which is
> important:
>
> Caused by: java.lang.ClassNotF oundException:
> com.brightworks.apps.sakila_java.ActorInfoId
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .java:1355)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
> .java:1201)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
> at
> org.hibernate.mapping.Component.getComponentClass(Component.java:102)
> ... 51 more
>
> Jeff
>
> -Original Message-
> From: Douglas McCarroll
> [mailto:[EMAIL PROTECTED] 
> <mailto:org.yahoo_primary.001%40douglasmccarroll.com>]
> Sent: Thursday, November 02, 2006 2:53 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>; 
> Jeff Vroom
> Subject: Re: [flexcoders] FDS-Hibernate Error: Error instantiating ...
> 'flex.data.assemble rs.HibernateAssembler'
>
> Hi Jeff,
>
> Thanks for your response. I'm sending this to both you and the list, as
> it may be helpful to get this thread into the archive...
>
> > Do you have the JOTM configured as part of tomcat?
> > FDMS requires a JTA based transaction manager.
>
> I have the JOTM .jars installed but didn't have the JOTM XML file for my
>
> app in tomcat-root/ conf/Catalina/localhost.
>
> But I don't think that that's the problem. Here's why (2 reasons):
> 1. When I try to do something like this I typically try to approach it
> in baby steps. In this case I first got a slightly modified version of
> Marcel Boucher's Hibernate example to work. It works. (Yay!) But I also
> didn't create a JOTM XML file for that project.
> 2. Just to be sure, I just created that file for my project and
> restarted Tomcat. Still doesn't work. :-(
>
> > Are you getting any other stack traces logged?
> > That stack trace is a chained exception... the
> > "root cause" is what we need to more fully
> > diagnose this case.
>
> I've posted the entire log file at:
>
> http://www.brightworks.com/localhost.2006-11-02.log 
> <http://www.brightworks.com/localhost.2006-11-02.log>
>
> It's much more readable online than than it is when pasted into an
> email. Obviously, there are other log files but this is the only one
> that indicates a problem.
>
> > We do ship the source to the hibernate assembler
> > so if necessary you could use that to help debug
> > the problem.
>
> Where would I find that? I've explored the WEB-INF folder of my project
> and it doesn't seem to be there...
>
> Finally, let me tell you a bit about what I'm doing. An overview may
> help you to help me. My goal is to create a sample
> Cairngorm/FDMS/ Hibernate app. This will help me learn, demonstrate my
> competency to future clients/employers, and hopefully help others. I've
> started with the MySQL sample Sakila database and used HibernateTools to
>
> auto-generate the Java and Hibernate files. Now I'm trying to graft the
> client-side code, and server side configs, from the Boucher example that
>
> I already have working onto it. He uses an "employee" table. Sakila is a
>
> DVD rental store DB and has an "actor" table that is quite similar. It
> should be fairly easy (or at least doable :-) to display data from this
> one table. Once I get that working I can renovate the client side into a
>
> Cairngorm architecture and start using other tables. Yum. :-)
>
> Thanks,
>
> Douglas
>
> h
>
> Jeff Vroom wrote:
> >
> > Do you have the JOTM configured as part of tomcat? FDMS requires a JTA
>
> > based transaction manager. See the Tomcat install instructions on this
>
> > page:
> >
> > http://www.adobe.com/support/documentation/en/flex/2/install.html 
> <http://www.adobe.com/support/documentation/en/flex/2/install.html>
> > <http://www.adobe.

Re: [flexcoders] FDS-Hibernate Error: Error instantiating ... 'flex.data.assemblers.HibernateAssembler'

2006-11-02 Thread Douglas McCarroll
Hi Jeff,


Thanks for your response. I'm sending this to both you and the list, as 
it may be helpful to get this thread into the archive...


 > Do you have the JOTM configured as part of tomcat?
 > FDMS requires a JTA based transaction manager.

I have the JOTM .jars installed but didn't have the JOTM XML file for my 
app in tomcat-root/conf/Catalina/localhost.

But I don't think that that's the problem. Here's why (2 reasons):
1. When I try to do something like this I typically try to approach it 
in baby steps. In this case I first got a slightly modified version of 
Marcel Boucher's Hibernate example to work. It works. (Yay!) But I also 
didn't create a JOTM XML file for that project.
2. Just to be sure, I just created that file for my project and 
restarted Tomcat. Still doesn't work. :-(


 > Are you getting any other stack traces logged?
 > That stack trace is a chained exception… the
 > “root cause” is what we need to more fully
 > diagnose this case.

I've posted the entire log file at:

http://www.brightworks.com/localhost.2006-11-02.log

It's much more readable online than than it is when pasted into an 
email. Obviously, there are other log files but this is the only one 
that indicates a problem.


 > We do ship the source to the hibernate assembler
 > so if necessary you could use that to help debug
 > the problem.

Where would I find that? I've explored the WEB-INF folder of my project 
and it doesn't seem to be there...


Finally, let me tell you a bit about what I'm doing. An overview may 
help you to help me. My goal is to create a sample 
Cairngorm/FDMS/Hibernate app. This will help me learn, demonstrate my 
competency to future clients/employers, and hopefully help others. I've 
started with the MySQL sample Sakila database and used HibernateTools to 
auto-generate the Java and Hibernate files. Now I'm trying to graft the 
client-side code, and server side configs, from the Boucher example that 
I already have working onto it. He uses an "employee" table. Sakila is a 
DVD rental store DB and has an "actor" table that is quite similar. It 
should be fairly easy (or at least doable :-) to display data from this 
one table. Once I get that working I can renovate the client side into a 
Cairngorm architecture and start using other tables. Yum. :-)

Thanks,

Douglas




Jeff Vroom wrote:
>
> Do you have the JOTM configured as part of tomcat? FDMS requires a JTA 
> based transaction manager. See the Tomcat install instructions on this 
> page:
>
> http://www.adobe.com/support/documentation/en/flex/2/install.html 
> <http://www.adobe.com/support/documentation/en/flex/2/install.html>
>
> It looks like there is an exception occurring when the hibernate 
> assembler is being initialized. One possibility is that JOTM is 
> missing, but it could be also be a hibernate specific problem . Are 
> you getting any other stack traces logged? That stack trace is a 
> chained exception… the “root cause” is what we need to more fully 
> diagnose this case. I checked on jrun and I am getting all of the 
> exceptions logged but this could be dependent on some jrun specific 
> code logs all of the stack traces when a servlet throws an exception 
> during startup.
>
> We do ship the source to the hibernate assembler so if necessary you 
> could use that to help debug the problem.
>
> Jeff
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Douglas McCarroll
> *Sent:* Wednesday, November 01, 2006 1:39 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] FDS-Hibernate Error: Error instantiating ... 
> 'flex.data.assemblers.HibernateAssembler'
>
> Hi All,
>
> Here's a more complete error message (from Tomcat's localhost log file):
>

>
>
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Re: Cairngorm 2 with Data Management

2006-11-02 Thread Douglas McCarroll
Laidezmon,

I'm working on the same thing but am not much (any?) further along than 
you are.

But hope to be making progress in the coming days and weeks!

I'm taking the approach of getting the server-side connection set up 
first. I'm using Data Management Services and Hibernate. I've downloaded 
the MySQL Sakila sample database, and used HibernateTools in Eclipse to 
generate a bunch of Java files, Hibernate mapping files, and the 
Hibernate config file. Now I'm trying to adapt Marcel Boucher's 
Flex/Hibernate example to connect to one table in it. I haven't 
succeeded yet, but hope to do so soon. Once I do I'd be happy to zip up 
the entire webApp and send it to you. Note that the client side isn't 
Cairngorm-based yet - that will be my next step - to renovate the client 
to a Cairngorm architecture...

Douglas




laidezmon wrote:
>
> Anyone? Anyone at all?
>
> --- In flexcoders@yahoogroups.com 
> , "laidezmon" <[EMAIL PROTECTED] ..> 
> wrote:
> >
> > Are there any examples out there on using Cairngorm and cairngorm
> > events with the MVC and such, and using Data Manager. I heard at max,
> > that using Cairngorm with DMS is possible, but there dont seem to be
> > any examples of its use out there.
> >
> > The reason I ask is because I understand with pointing grids and such
> > at the model, as the dataprovider, how that works, and I understand
> > calling an event which calls the data service indirectly, but where
> > would the model come into play logically, when DMS is handling so much
> > of the work directly from the grid?
> >
> > So any help would be appreciated.
> >
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] FDS-Hibernate Error: Error instantiating ... 'flex.data.assemblers.HibernateAssembler'

2006-11-01 Thread Douglas McCarroll
Hi All,

Here's a more complete error message (from Tomcat's localhost log file):

Nov 1, 2006 4:22:13 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
flex.messaging.config.ConfigurationException: Unable to create service 
'flex.data.DataService' for 'data-service' due to the following error: 
Error instantiating application scoped instance of type 
'flex.data.assemblers.HibernateAssembler' for destination 
'actor.hibernate'..
at 
flex.messaging.config.MessagingConfiguration.createServices(MessagingConfiguration.java:202)
at 
flex.messaging.config.MessagingConfiguration.configureBroker(MessagingConfiguration.java:84)
at 
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:105)
etc.

Any pointers/suggestions?

TIA!

Douglas





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] FB2 != Eclipse 3.2

2006-10-27 Thread Douglas McCarroll
 > Any reason not to install Eclipse 3.2 alongside FB2?

I've been asking the same question and, no, so far no reason not to run 
two versions.

I've installed JBoss 2.0 which is based on 3.2. Reason: I wanted to use 
HibernateTools which requires 3.2. Also, the HibernateTools web page 
says "HibernateTools is a core component of JBoss Eclipse IDE".

Anyway, no problems with having two versions of Eclipse running. I read 
somewhere that Eclipse is entirely contained in its install directory 
and doesn't write to the registry etc, which probably explains why my 
two versions aren't fighting with each other...




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Questions about RTMP ports and channel definitions

2006-10-24 Thread Douglas McCarroll
Seth, Dirk (and all),

Thanks for your responses. I think that I'm getting a pretty good 
understanding now.

I have a few more questions. Both Seth and Dirk suggest that I use port 
1935 if I'm not using FMS. But I need a *range* of ports, as I'm running 
multiple webApps in the same servlet container. With both 1935 and 2038 
I'm going to be trespassing onto other apps' registered ports if I go up 
or down. I realize that it's fairly simple to just confirm that these 
apps aren't running on my server, and that's what I assume that I'll be 
doing. But wouldn't it be even better if Adobe registered a range of 
ports? It appears that port numbers up to 49151 can be registered, and 
there are plenty of unregistered ports above 10,000...

As a complete port-newbie I realize that there may be some fairly simple 
flaw in this suggestion...

And even if it's a good idea it will probably take a while...

But if it does make sense, wouldn't it make sense for me to do it on my 
own, now? Select an unregistered range of ports, and use them?

Thanks,

Douglas



Seth Hodgson wrote:
>
> Hi Douglas,
>
> The answer is no. The server name and port you use will be the same 
> for all web apps deployed in your servlet container (app server). What 
> will differ is the context root portion of the URI (this is what the 
> container uses to route an inbound request to the target web app). As 
> someone said earlier if you have two servers (say Tomcat and Weblogic) 
> both running on the same box they'll use different ports so the FDS 
> apps you deploy to either server will need to use the proper port for 
> the server they're deployed to. Using the {server.port} token, or 
> leaving it out completely if it's 80, is the best approach for 
> HTTP/AMF endpoints in your config file.
>
> RTMP is different. HTTP servers and servlet containers don't have 
> native support for RTMP so we can't take advantage of existing 
> functionality for connection management and raw request parsing and 
> handling in the way we can with HTTP based communication. When your 
> FDS app starts up, the RTMP endpoint on the server starts an internal 
> socket server that binds to the port you specify in the endpoint URI 
> in the config file. This socket server is implemented using the Java 
> NIO APIs for improved scalability and it handles the RTMP connections 
> that clients make to the server. The RTMP endpoint and its internal 
> socket server live and die along with the web app, and it can't be 
> shared across web apps because apps can be started and stopped 
> independently. This means that you need to avoid RTMP port binding 
> collisions when you deploy multiple FDS apps to the same server by 
> using a unique port for each RTMP endpoint. If a port is already in 
> use, the RTMP endpoint throws the exception you saw earlier and the 
> web app shuts down because there's no point in running if it can't 
> accept and service client connections.
>
> The RTMP protocol was first used by Flash Media Server (formerly known 
> as Flash Communication Server), and standard ports have been 
> registered with IANA:
>
> macromedia-fcs 1935/tcp Macromedia Flash Communications Server MX
> macromedia-fcs 1935/udp Macromedia Flash Communications server MX
>
> The default FDS port values are offset to 203X as a convenience in 
> case you're running FMS on the same box. If you're not running FMS go 
> ahead and use 1935. If you have multiple apps, just increment the 
> value for each successive FDS app's RTMP endpoint.
>
> HTH,
> Seth
>
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com>] On Behalf Of Douglas McCarroll
> Sent: Monday, October 23, 2006 2:51 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> Subject: Re: [flexcoders] Questions about RTMP ports and channel 
> definitions
>
> I'm getting a little clearer. Thanks Dustin and Stacy!
>
> On a practical level this boils down to a simple practical question: Do
> I need to worry about configuring HTTP and AMF ports when I have several
> webApps on the same server, like I must with RTMP?
>
> I'm pretty sure that the answer is no, but I'd love an authoritative
> answer from Adobe. :-)
>
> And while we're at it, is there a range of port numbers that I should be
> using for the RTMP assignments? The "flex" template app is at 2038. The
> "samples" app is at 2037. How high and low can I go? BTW, my TCP/IP
> Network Administration book (which I obviously haven't ful

[flexcoders] HibernateTools?

2006-10-23 Thread Douglas McCarroll
Hi All,

Has anyone on this list gotten HibernateTools 
(http://www.hibernate.org/255.html) to work in Eclipse?

In specific, have you successfully reverse-engineered DBs to create 
Hibernate mapping files & Java code?

Any tips?

TIA!

Douglas


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Questions about RTMP ports and channel definitions

2006-10-23 Thread Douglas McCarroll
I'm getting a little clearer. Thanks Dustin and Stacy!

On a practical level this boils down to a simple practical question: Do 
I need to worry about configuring HTTP and AMF ports when I have several 
webApps on the same server, like I must with RTMP?

I'm pretty sure that the answer is no, but I'd love an authoritative 
answer from Adobe.  :-)

And while we're at it, is there a range of port numbers that I should be 
using for the RTMP assignments? The "flex" template app is at 2038. The 
"samples" app is at 2037. How high and low can I go? BTW, my TCP/IP 
Network Administration book (which I obviously haven't fully absorbed 
:-) says that IANA keeps a list of assigned & registered ports. When I 
go to the page (http://www.iana.org/assignments/port-numbers) these two 
ports are associated with other programs. Might it be a good idea for 
Adobe to find a short range of numbers that isn't already claimed, and 
claim them? Not that I really know anything about this...  :-)

Douglas



Dustin Mercer wrote:
>
> The server port in this context is actually the HTTP port of your 
> server. The Flex Java architecture picks this up from the web server 
> and binds it to that uri. The reason there is not a problem with that 
> particular port is because it's the standard HTTP port. All web apps 
> can share that port and it's not making any time of remembered 
> connection with the flash client. Only the RTMP channel does that.
>
> I don't know about this part for sure, but I think the RTMP channel is 
> something Adobe built into the Flex framework that is like a mini 
> server that enables the "Real Time" portion of the Flex Data Services. 
> Someone from Adobe can correct me if I am wrong, that is only my 
> assumption. Hope that helps!
>
> -Original Message-
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com>] On Behalf Of Douglas McCarroll
> Sent: Monday, October 23, 2006 2:20 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> Subject: Re: [flexcoders] Questions about RTMP ports and channel 
> definitions
>
> Hi Stacy (and all),
>
> That makes perfect sense. But am I correct in guessing that code like
> this...
>
> uri="http:// 
> {server.name}:{server.port}/{context.root}/messagebroker/amfpolling
>
> ...indicates that our webApp is using the same port for AMF as other
> webApps? (I assume that "server.port" is defined somewhere in FDS
> compiled code - I can't find it in any of the config files.)
>
> ...and if so, why isn't this a problem? Why would several instances be
> able to listen to the same port for AMF and HTTP? Doesn't make sense.
> Obviously, there's something here that I don't understand here...
>
> Douglas
>
> Stacy Young wrote:
> >
> > To answer # 1: trying to have two instances of FDS bind to the same
> > port is the same as trying to run two web servers on the same machine
> > and bind them both to port 80. It's not a matter of message routing
> > ...the port is already in use so the second instance will fail since it
> > can not bind to that same port number on startup.
> >
> > -Stace
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>]
> > *On Behalf Of *Douglas McCarroll
> > *Sent:* Sunday, October 22, 2006 1:44 PM
> > *To:* flexcoders post
> > *Subject:* [flexcoders] Questions about RTMP ports and channel 
> definitions
> >
> > Hi All,
> >
> > I recently wrote a post on my blog
> > <http://www.brightworks.com/flex_ability/?p=17 
> <http://www.brightworks.com/flex_ability/?p=17>
> > <http://www.brightworks.com/flex_ability/?p=17 
> <http://www.brightworks.com/flex_ability/?p=17>>> about an error I was
> > encountering. A kind commenter explained that my problem was caused by
> > the fact that I had two different webApps running that were both
> > configured - in their services-config.xml files - so that their RTMP
> > channels used the same port.
> >
> > I want to revise my post to explain this, but want to make sure that I
> > understand how things work first.
> >
> > So I'd welcome any feedback on the following explanations & questions:
> >
> > 1. Obviously it is bad to have two different webApps use the same RTMP
> > port. I assume that webApps can't

Re: [flexcoders] Questions about RTMP ports and channel definitions

2006-10-23 Thread Douglas McCarroll
Hi Stacy (and all),

That makes perfect sense. But am I correct in guessing that code like 
this...

uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling

...indicates that our webApp is using the same port for AMF as other 
webApps? (I assume that "server.port" is defined somewhere in FDS 
compiled code - I can't find it in any of the config files.)

...and if so, why isn't this a problem? Why would several instances be 
able to listen to the same port for AMF and HTTP? Doesn't make sense. 
Obviously, there's something here that I don't understand here...

Douglas


Stacy Young wrote:
>
> To answer # 1: trying to have two instances of FDS bind to the same 
> port is the same as trying to run two web servers on the same machine 
> and bind them both to port 80. It’s not a matter of message routing 
> …the port is already in use so the second instance will fail since it 
> can not bind to that same port number on startup.
>
> -Stace
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Douglas McCarroll
> *Sent:* Sunday, October 22, 2006 1:44 PM
> *To:* flexcoders post
> *Subject:* [flexcoders] Questions about RTMP ports and channel definitions
>
> Hi All,
>
> I recently wrote a post on my blog
> <http://www.brightworks.com/flex_ability/?p=17 
> <http://www.brightworks.com/flex_ability/?p=17>> about an error I was
> encountering. A kind commenter explained that my problem was caused by
> the fact that I had two different webApps running that were both
> configured - in their services-config.xml files - so that their RTMP
> channels used the same port.
>
> I want to revise my post to explain this, but want to make sure that I
> understand how things work first.
>
> So I'd welcome any feedback on the following explanations & questions:
>
> 1. Obviously it is bad to have two different webApps use the same RTMP
> port. I assume that webApps can't share the same port because, well, how
> would they know which webApp a particular message is being sent to? I
> suppose that this could be resolved by giving different destination
> names to the different webApp's RTMP destinations, but I can imagine how
> this approach could create problems. Anyway, I'm wondering if anyone
> here can explain the crux of the problem more clearly or succinctly...
>
> 2. I assume that configuring a channel with a specific port number (e.g.
> uri="rtmp://{server.name}:2038") does two things:
> a. It tells the FDS server-side code to listen to that port for that
> channel.
> b. It tells clients to connect to that port if they're using that
> channel. I assume that there's some mechanism whereby clients say, "hey
> webApp, what port do I use for this RTMP channel?"
>
> Am I understanding correctly here?
>
> 3. I'm guessing that sharing ports between webApps isn't a problem for
> HTTP and AMF channels. The reason I think this is that they are
> configured in channel definitions with URIs like this:
> uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling
>
> ... as opposed to specifying a specific port, as we do in RTMP channel
> defs.
>
> Do I understand this correctly?
>
> 4. I'm guessing that the reason why this isn't a problem is that they
> don't use a sustained connection, as RTMP channels do. Is this correct?
>
> Thanks in advance for any input! :-)
>
> Douglas McCarroll
>
> *AVIS IMPORTANT*
>
>   
>
> *WARNING*
>
> Ce message électronique et ses pièces jointes peuvent contenir des 
> renseignements confidentiels, exclusifs ou légalement privilégiés 
> destinés au seul usage du destinataire visé. L'expéditeur original ne 
> renonce à aucun privilège ou à aucun autre droit si le présent message 
> a été transmis involontairement ou s'il est retransmis sans son 
> autorisation. Si vous n'êtes pas le destinataire visé du présent 
> message ou si vous l'avez reçu par erreur, veuillez cesser 
> immédiatement de le lire et le supprimer, ainsi que toutes ses pièces 
> jointes, de votre système. La lecture, la distribution, la copie ou 
> tout autre usage du présent message ou de ses pièces jointes par des 
> personnes autres que le destinataire visé ne sont pas autorisés et 
> pourraient être illégaux. Si vous avez reçu ce courrier électronique 
> par erreur, veuillez en aviser l'expéditeur.
>
>   
>
> This electronic message and its attachments may contain confidential, 
> proprietary or legally privileged information, which is solely for t

[flexcoders] Questions about RTMP ports and channel definitions

2006-10-22 Thread Douglas McCarroll
Hi All,

I recently wrote a post on my blog 
<http://www.brightworks.com/flex_ability/?p=17> about an error I was 
encountering. A kind commenter explained that my problem was caused by 
the fact that I had two different webApps running that were both 
configured - in their services-config.xml files - so that their RTMP 
channels used the same port.

I want to revise my post to explain this, but want to make sure that I 
understand how things work first.

So I'd welcome any feedback on the following explanations & questions:

1. Obviously it is bad to have two different webApps use the same RTMP 
port. I assume that webApps can't share the same port because, well, how 
would they know which webApp a particular message is being sent to? I 
suppose that this could be resolved by giving different destination 
names to the different webApp's RTMP destinations, but I can imagine how 
this approach could create problems. Anyway, I'm wondering if anyone 
here can explain the crux of the problem more clearly or succinctly...

2. I assume that configuring a channel with a specific port number (e.g. 
uri="rtmp://{server.name}:2038") does two things:
  a. It tells the FDS server-side code to listen to that port for that 
channel.
  b. It tells clients to connect to that port if they're using that 
channel. I assume that there's some mechanism whereby clients say, "hey 
webApp, what port do I use for this RTMP channel?" 

Am I understanding correctly here?

3. I'm guessing that sharing ports between webApps isn't a problem for 
HTTP and AMF channels. The reason I think this is that they are 
configured in channel definitions with URIs like this: 
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling

... as opposed to specifying a specific port, as we do in RTMP channel 
defs.

Do I understand this correctly?

4. I'm guessing that the reason why this isn't a problem is that they 
don't use a sustained connection, as RTMP channels do. Is this correct?

Thanks in advance for any input!  :-)

Douglas McCarroll


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Help! Problem reinstalling FlexBuilder

2006-10-20 Thread Douglas McCarroll
Hi Matt,

 > You’re sure you’re selecting the root of the eclipse directory for 
your install?

You're right. I could swear that on previous attempts I had checked for 
this but in this attempt I had re-downloaded Eclipse and it seems to 
have configured its folders differently. There was another "Eclipse" 
folder inside the main folder. That was the correct one and now FB is 
installed. (! :-)

My previous attempt was with Eclipse 3.2. I'm pretty sure that I double 
checked that the folder had "plugins" and "features" folders, and yet 
still got the same message. Could the FB installer have been balking at 
3.2? I've since noticed that the system requirements page says "3.2 not 
yet supported". The installer says "3.1 or higher". What's the scoop on 
this? I want to use Hibernate Tools, which require Eclipse 3.2. My 
current tentative plan is to install both 3.1 and 3.2, and use 3.1 for 
Flex and 3.2 for setting up the Hibernate stuff that Flex will run on 
top of. Does this make the most sense from your point of view?

Thanks,

Douglas




Matt Chotin wrote:
>
> You’re sure you’re selecting the root of the eclipse directory for 
> your install? Remember that the plugin wants two directories: first 
> the directory where it will drop the Flex SDK and all the other 
> non-eclipse stuff, second the actual eclipse directory. If I exploded 
> Eclipse into c:\eclipse, that’s the directory I would use.
>
> Matt
>
>
> I'm reinstalling FB as an Eclipse plugin - previously had it installed 
> as plugin
> - no problem - uninstalled both FB & Eclipse - reinstalled Eclipse - 
> now when I
> try to reinstall FB I get this message:
>
> "Please choose an existing Eclipse 3.1 (or greater) folder to be updated"
> "This folder must contain the standard Eclipse folders named "plugins" 
> and
> "features".
>
> Sounds reasonable, except for the fact that I've already done so. (!)
>
> I'm using Eclipse 3.1.2 on WinXP.
>
> I've Googled the message & find 0 results. And am totally stuck until 
> I get this
> resolved...
>
> Douglas
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Help! Problem reinstalling FlexBuilder

2006-10-19 Thread Douglas McCarroll
Hi All,

I'm reinstalling FB as an Eclipse plugin - previously had it installed as 
plugin 
- no problem - uninstalled both FB & Eclipse - reinstalled Eclipse - now when I 
try to reinstall FB I get this message:

"Please choose an existing Eclipse 3.1 (or greater) folder to be updated"
"This folder must contain the standard Eclipse folders named "plugins" and 
"features".

Sounds reasonable, except for the fact that I've already done so. (!)

I'm using Eclipse 3.1.2 on WinXP.

I've Googled the message & find 0 results. And am totally stuck until I get 
this 
resolved...

Douglas


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Samples:CRM example doesn't generate hibernate.cfg.xml on Tomcat

2006-10-18 Thread Douglas McCarroll
Hi All,

I'm trying to get the CRM example to work using Hibernate.

Victor Rubba has a post about doing this at:
http://viconflex.blogspot.com/2006/09/flex-data-services-crm-sample-using.html

He obviously got it to work, but the process breaks for me by the second step 
in 
his outline. I uncomment the code in web.xml and restart Tomcat, but no 
hibernate.cfg.xml file is created.

I assume he's using JRun as he later uses port 8700. Could this be a Tomcat 
issue?

As a temp fix, could someone send me a copy of the hibernate.cfg.xml file that 
gets created?

TIA!

Douglas


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Open source Hibernate projects?

2006-10-16 Thread Douglas McCarroll
Thanks for your response, Allen. Yes, I've wondered if that might not be 
the best approach. (I considered inviting just such responses as yours 
when I wrote my post.)

I may end up taking that route. Just wondering what my options are... :-)

Another route would be to take a sample MySQL DB (I see a couple on the 
MySQL site) and generate a Hibernate mapping file from that, then Java 
classes from that... One advantage is that I'd have a DB that is already 
populated with lots of data...


Allen Riddle wrote:
>
> I hate to be one of those dudes who gives you a reply without 
> answering your question, but I’m going to. I don’t know of any that 
> are small enough that you could play with. But from my experience with 
> learning Hibernate, the best way is just to go to the Hibernate web 
> site and start your own project using their samples on how to get 
> started, they are easy enough to do for people who have never used 
> Hibernate. What better way than to jump right in yourself!
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Douglas McCarroll
> *Sent:* Monday, October 16, 2006 4:12 PM
> *To:* flexcoders post
> *Subject:* [flexcoders] Open source Hibernate projects?
>
> Hi All,
>
> Can you suggest any open source Hibernate based projects that I could 
> play with?
> I want to familiarize myself with Hibernate and (more importantly) 
> experiment
> with putting a Flex front end on top of a Hibernate based app.
>
> The Roller Weblogger project kind of fits the bill, but I'm thinking 
> that it
> would probably be best for me to start by playing with a 
> smaller/simpler project.
>
> Any suggestions?
>
> TIA!
>
> Douglas
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Open source Hibernate projects?

2006-10-16 Thread Douglas McCarroll
Hi All,

Can you suggest any open source Hibernate based projects that I could play 
with? 
I want to familiarize myself with Hibernate and (more importantly) experiment 
with putting a Flex front end on top of a Hibernate based app.

The Roller Weblogger project kind of fits the bill, but I'm thinking that it 
would probably be best for me to start by playing with a smaller/simpler 
project.

Any suggestions?

TIA!

Douglas


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] Flex + coldfusion without FDS

2006-10-13 Thread Douglas McCarroll
There's an article on this subject here:

http://coldfusion.sys-con.com/read/279879.htm

"Developing Flex 2 Applications with ColdFusion and XML Without Needing 
FDS or Mystic"

Douglas McCarroll



omkarjoe wrote:
>
> Hi Everyone,
>
> I was wondering if it is possible to interact with Coldfusion without
> the use of FDS.
>
> Any valuable thoughts are welcomed
>
> Omkar
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Article on setting up an Apache/Tomcat/FDS Server

2006-10-12 Thread Douglas McCarroll
Hi All,

I just posted this article:

http://www.brightworks.com/flex_ability/?p=15

Might be helpful to some...

Douglas




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Flex meeting in Boston tomorrow (Wednesday)

2006-10-10 Thread Douglas McCarroll
Hi All,

The Adobe Boston User Group (ABUG) is having an "Open Forum on Flex" tomorrow. 
Basically an informal gathering to talk about whatever people want to talk 
about. I expect attendance to be fairly low, with mainly the curious and 
newbies 
attending. So, if you're a newbie of curious, please join us. If you're more 
advanced, we'd love to have you come and share your knowledge. :-)

Meeting is at MIT's Stata center at 6:00 PM.

Details at: http://www.abug.us

Douglas McCarroll



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] 2 FDS Samples break when production-mode is set to true

2006-10-10 Thread Douglas McCarroll
Kumaran,

I have FDS running with integrated JRun on another machine. Just tested 
on that machine and the same thing happens. The CRM sample breaks if I 
set production-mode to true. Perhaps this is a bug and happens in all 
cases. This would be reassuring as my main goal is to make sure that my 
server is set up correctly...  :-)

Douglas



Kumaran Nallore wrote:
>
> Hi,
>
>  
>
> Which version of JVM are you using?
>
>  
>
> Are you able to compile the CRM app with production-mode set to false 
> and run it with production-mode set to true?
>
>  
>
> Thanks
>
> Kumaran
>
>  
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Douglas McCarroll
> *Sent:* Tuesday, October 10, 2006 8:27 PM
> *To:* flexcoders post
> *Subject:* [flexcoders] 2 FDS Samples break when production-mode is 
> set to true
>
>  
>
> Hi All,
>
> I'm running into a problem with running the CRM sample and the FlexCab
> Dispatcher sample with production-mode set to true.
>
> I'm running FDS on Tomcat on Windows 2000 Server.
>
> All sample apps work fine if I set production-mode=false.
>
> When I set it to true and try to run CRM I get this message:
>
> Compilation Results
>
> Errors, warnings or exceptions were found while compiling
> /dataservice/crm/companyapp.mxml. Visit the online Flex documentation 
> or API
> reference for further information.
>
> 1 Exception found.
>
> Exception java.lang.NullPointerException
>
> Output from flex.log is below...
>
> The FlexCab Dispatcher sample starts to run, then gets stuck. No error 
> message,
> just freezes.
>
> Any thoughts?
>
> Douglas
>
> Output in flex.log after running CRM:
>
> 10/10 20:08:48 ERROR Exception(s) generated while compiling C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.5\webapps\samples\dataservice\crm\companyapp.mxml
> java.lang.NullPointerException
> at flex2.compiler.API.checkDeep(API.java:826)
> at flex2.compiler.API.checkDeep(API.java:836)
> at flex2.compiler.API.nextSource(API.java:457)
> at flex2.compiler.API.batch2(API.java:263)
> at flex2.compiler.API.batch(API.java:901)
> at flex2.compiler.API.compile(API.java:1110)
> at flex2.compiler.API.compile(API.java:1022)
> at
> flex2.server.j2ee.IncrementalCompileFilter.fullCompile(IncrementalCompileFilter.java:201)
> at
> flex2.server.j2ee.IncrementalCompileFilter.compileMxml(IncrementalCompileFilter.java:113)
> at 
> flex2.server.j2ee.BaseCompileFilter.mxmlToSwf(BaseCompileFilter.java:286)
> at flex2.server.j2ee.BaseCompileFilter.invoke(BaseCompileFilter.java:72)
> at flex2.server.j2ee.RecompileFilter.invoke(RecompileFilter.java:38)
> at flex2.server.j2ee.AboutFilter.invoke(AboutFilter.java:48)
> at flex2.server.j2ee.MxmlServlet.doGet(MxmlServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:85)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at 
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
> at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
> at 
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
> at java.lang.Thread.run(Unknown Source)
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] 2 FDS Samples break when production-mode is set to true

2006-10-10 Thread Douglas McCarroll
Hi Kumaran,

> Which version of JVM are you using?

How do I check the JVM? I have JRE 1.5.0_08 installed.

> Are you able to compile the CRM app with production-mode
> set to false and run it with production-mode set to true?

No, if I understand you correctly. I ran it successfully with
production-mode set to false, and it ran fine. I assume that that
compiled it. Then I changed production-mode to true and got the error. I
would think that in this case FDS wouldn't recompile, but the error
message indicates that it is compiling companyApp.mxml. (?)

Douglas


Kumaran Nallore wrote:
>
> Hi,
>
>  
>
> Which version of JVM are you using?
>
>  
>
> Are you able to compile the CRM app with production-mode set to false 
> and run it with production-mode set to true?
>
>  
>
> Thanks
>
> Kumaran
>
>  
>
> 
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Douglas McCarroll
> *Sent:* Tuesday, October 10, 2006 8:27 PM
> *To:* flexcoders post
> *Subject:* [flexcoders] 2 FDS Samples break when production-mode is 
> set to true
>
>  
>
> Hi All,
>
> I'm running into a problem with running the CRM sample and the FlexCab
> Dispatcher sample with production-mode set to true.
>
> I'm running FDS on Tomcat on Windows 2000 Server.
>
> All sample apps work fine if I set production-mode=false.
>
> When I set it to true and try to run CRM I get this message:
>
> Compilation Results
>
> Errors, warnings or exceptions were found while compiling
> /dataservice/crm/companyapp.mxml. Visit the online Flex documentation 
> or API
> reference for further information.
>
> 1 Exception found.
>
> Exception java.lang.NullPointerException
>
> Output from flex.log is below...
>
> The FlexCab Dispatcher sample starts to run, then gets stuck. No error 
> message,
> just freezes.
>
> Any thoughts?
>
> Douglas
>
> Output in flex.log after running CRM:
>
> 10/10 20:08:48 ERROR Exception(s) generated while compiling C:\Program
> Files\Apache Software Foundation\Tomcat
> 5.5\webapps\samples\dataservice\crm\companyapp.mxml
> java.lang.NullPointerException
> at flex2.compiler.API.checkDeep(API.java:826)
> at flex2.compiler.API.checkDeep(API.java:836)
> at flex2.compiler.API.nextSource(API.java:457)
> at flex2.compiler.API.batch2(API.java:263)
> at flex2.compiler.API.batch(API.java:901)
> at flex2.compiler.API.compile(API.java:1110)
> at flex2.compiler.API.compile(API.java:1022)
> at
> flex2.server.j2ee.IncrementalCompileFilter.fullCompile(IncrementalCompileFilter.java:201)
> at
> flex2.server.j2ee.IncrementalCompileFilter.compileMxml(IncrementalCompileFilter.java:113)
> at 
> flex2.server.j2ee.BaseCompileFilter.mxmlToSwf(BaseCompileFilter.java:286)
> at flex2.server.j2ee.BaseCompileFilter.invoke(BaseCompileFilter.java:72)
> at flex2.server.j2ee.RecompileFilter.invoke(RecompileFilter.java:38)
> at flex2.server.j2ee.AboutFilter.invoke(AboutFilter.java:48)
> at flex2.server.j2ee.MxmlServlet.doGet(MxmlServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:85)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at 
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
> at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
> at 
> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
> at java.lang.Thread.run(Unknown Source)
>
>  




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individu

[flexcoders] 2 FDS Samples break when production-mode is set to true

2006-10-10 Thread Douglas McCarroll
Hi All,

I'm running into a problem with running the CRM sample and the FlexCab 
Dispatcher sample with production-mode set to true.

I'm running FDS on Tomcat on Windows 2000 Server.

All sample apps work fine if I set production-mode=false.

When I set it to true and try to run CRM I get this message:

   Compilation Results

   Errors, warnings or exceptions were found while compiling
   /dataservice/crm/companyapp.mxml. Visit the online Flex documentation or API
   reference for further information.

   1 Exception found.

   Exception java.lang.NullPointerException

Output from flex.log is below...

The FlexCab Dispatcher sample starts to run, then gets stuck. No error message, 
just freezes.

Any thoughts?

Douglas


Output in flex.log after running CRM:

10/10 20:08:48 ERROR Exception(s) generated while compiling C:\Program 
Files\Apache Software Foundation\Tomcat 
5.5\webapps\samples\dataservice\crm\companyapp.mxml
java.lang.NullPointerException
at flex2.compiler.API.checkDeep(API.java:826)
at flex2.compiler.API.checkDeep(API.java:836)
at flex2.compiler.API.nextSource(API.java:457)
at flex2.compiler.API.batch2(API.java:263)
at flex2.compiler.API.batch(API.java:901)
at flex2.compiler.API.compile(API.java:1110)
at flex2.compiler.API.compile(API.java:1022)
at 
flex2.server.j2ee.IncrementalCompileFilter.fullCompile(IncrementalCompileFilter.java:201)
at 
flex2.server.j2ee.IncrementalCompileFilter.compileMxml(IncrementalCompileFilter.java:113)
at 
flex2.server.j2ee.BaseCompileFilter.mxmlToSwf(BaseCompileFilter.java:286)
at flex2.server.j2ee.BaseCompileFilter.invoke(BaseCompileFilter.java:72)
at flex2.server.j2ee.RecompileFilter.invoke(RecompileFilter.java:38)
at flex2.server.j2ee.AboutFilter.invoke(AboutFilter.java:48)
at flex2.server.j2ee.MxmlServlet.doGet(MxmlServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:85)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
at java.lang.Thread.run(Unknown Source)



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Questions about ObjectProxy and Binding

2006-10-09 Thread Douglas McCarroll
Hi All,

A look at the LangRef for ObjectProxy shows lots of properties and methods that 
are clearly designed for event listener registration, etc, e.g. 
addEventListener(), dispatchEvent(), etc. It looks as though ObjectProxy's main 
purpose in life is to be a bindable-to object. Yes?

But the "Build a distributed application with the ActionScript object adapter" 
example marks noteProxy as [Bindable]:

 [Bindable]
 public var noteProxy:ObjectProxy;

This makes me wonder...

Aren't ObjectProxy instances already bindable?

What does the compiler add to an ObjectProxy when we mark it as [Bindable]?

Are any classes natively bindable?

Douglas



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Questions about ObjectProxy and Binding

2006-10-09 Thread Douglas McCarroll
Hi All,

A look at the LangRef for ObjectProxy shows lots of properties and methods that
are clearly designed for event listener registration, etc, e.g.
addEventListener(), dispatchEvent(), etc. It looks as though ObjectProxy's main
purpose in life is to be a bindable-to object. Yes?

But the "Build a distributed application with the ActionScript object adapter"
example marks noteProxy as [Bindable]:

 [Bindable]
 public var noteProxy:ObjectProxy;

This makes me wonder...

Aren't ObjectProxy instances already bindable?

What does the compiler add to an ObjectProxy when we mark it as [Bindable]?

Are any classes natively bindable?

Douglas




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] flex 2 starter

2006-10-03 Thread Douglas McCarroll
General Flex & FDS install info here:

http://www.adobe.com/support/documentation/en/flex/2/install.html


JBoss-specific FDS install info here:

http://www.adobe.com/support/documentation/en/flex/2/install.html#jboss



Husain Kitabi wrote:
> Hi
> I am having an application built a year ago on flex 1.5. Now i am 
> upgrading it to flex 2 and have to add additional functionality. The 
> app shall be integrated into a JBoss 4.0.4 server.
>  
> Can anyone please advise where to start from? Do i have to download 
> the Flex Dataservices 2 pack and work with it. With 1.5 it was just 
> download and un-war the file and set the web.xml accordingly. I have 
> been trying to do a few things but have no success yet.
>  
> Pl advise.
>  
> Thanks
> Husain
>
>
> hussain



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] cairngorm for flex 2

2006-10-01 Thread Douglas McCarroll
http://labs.adobe.com/wiki/index.php/Cairngorm#Downloads

relisanhard52 wrote:
>
> Hi
> Where can I find download for cairngorm for flex 2.
> Please advise.
>
> Tks.
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Flex 2.0 Hosting ( Cheap / Inexpensive )

2006-09-24 Thread Douglas McCarroll
Thanks, Anatole!

Anatole Tartakovsky wrote:
>
> http://coenraets.org/blog/2006/09/30-minutes-flex-test-drive-for-java-developers/
>  
> <http://coenraets.org/blog/2006/09/30-minutes-flex-test-drive-for-java-developers/>
>  - 
> take war file there
>
>  
> On 9/22/06, *Douglas McCarroll* 
> <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Anatole Tartakovsky wrote:
> You need to provide preconfigured VMs with complete software stack
> preinstalled -
> pretty much the configuration Chris Coenraets described in his blog
>
> Anatole - can you provide a link to Chris's blog post that you
> refer to
> here?
>
> .
>
>  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] “Failed to create new project. Re ason: Element not found: [path]” er ror message

2006-09-23 Thread Douglas McCarroll
Hi All,

Just posting to the list in case someone in the future searches the archive for 
the error message “Failed to create new project. Reason: Element not found: 
[path]”

I just spent about four hours solving this problem. Explanation and solution 
are 
here:

http://www.brightworks.com/flex_ability/?p=13

Douglas


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Flex jobs

2006-09-22 Thread Douglas McCarroll
Hi Sri,

 > how should start my career with flex, should i learn flash, xml, php,
 > asp or shall i directly learn flex

I'm not a Flex expert (yet) - in fact I'm somewhat in the same position 
that you are in. But I've been scouting around, trying to get answers to 
this question, and can perhaps share a bit of what I've learned.

If I'm wrong I'll count on the list to correct me.  :-)

First of all, you don't need to learn Flash to learn Flex. If you want 
to learn Flex, learning Flash will be more of a diversion than anything. 
Not that you shouldn't learn it at some point - it might come in handy. 
It just isn't the most direct route.

Second, you can learn some Flex without learning other skills, except 
perhaps XML. You write your Flex applications in MXML and ActionScript, 
and MXML is XML, so it helps to know the principles of XML. Then learn 
MXML and ActionScript. The tutorials in the Getting Started manual are a 
good place to start.

But Flex is most valuable connected to back-end databases, so you might 
want to aim for learning Flex Data Services. You can do some 
data-connection stuff without it - with the HTTPService and WebService 
components - but FDS is very powerful.

In either case you'll need to know some back-end technology to connect 
to. You can either learn it fairly thoroughly or learn it somewhat and 
team with someone who knows it better. I'm planning to team with a 
friend who's fairly good at Java. Other options include PHP, Ruby, 
Coldfusion and probably others. At this point I'll ask for input from 
the list on what technologies are in greatest demand...  Personally, I 
think that Java is a pretty good bet, but I suspect that the others are 
too...

Finally, keep trying. There aren't many Flex developers yet. It's a 
great technology. From what I'm hearing, there's already more demand for 
developers than supply.  :-)

Douglas

PS  I've just started a blog and have links to resources for Java, PHP, 
Rails etc. there:
  http://www.brightworks.com/flex_ability




flexdeveloper wrote:
>
> Hi
> how should start my career with flex, should i learn flash, xml, php,
> asp or shall i directly learn flex, give me suggession
>
> Thanks
> sri
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] Flex 2.0 Hosting ( Cheap / Inexpensive )

2006-09-22 Thread Douglas McCarroll
Anatole Tartakovsky wrote:
You need to  provide preconfigured VMs with complete software stack 
preinstalled -
pretty much the configuration Chris Coenraets described in his blog

Anatole - can you provide a link to Chris's blog post that you refer to 
here?


>
> I do not think it would be that simple. Java server configuration can 
> be somewhat difficult. Java hosting never took off. Add just 1 hour of 
> support time per month and the costs of the hosting becomes irrelevant.
>  
> However, it is feasable by using dedicated machines in the same price 
> range (I am using eSecureData.com - very good value and quality 
> machines, and they do not sell beyond promissed capacity) . You need 
> to  provide preconfigured VMs with complete software stack 
> preinstalled - pretty much the configuration Chris Coenraets described 
> in his blog so that you have free good quality products hosted within 
> either VMWARE or XEN infrastructure and place deployment 
> responsibilities on the client.
>  
> However, Java + OS has to be sized well beyond php requirements - at 
> least 512MB, with clients needing more memory in most of the cases. 
> With 75% of average server load you would need to charge around $70/mo 
> just to get even - and that is with outsourced email-only support.
>  
> Regards,
> Anatole Tartakovsky
>  
>
>  
> On 9/20/06, *Kelly* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> Is it really that hard to just pay for a server or a virtual
> server and
> install it yourself?
>
> You can get decent virtual dedicated servers for like $60/month.
>
> It's not hard at all to install fds when you have root access to a
> server.
>
> Makes me think I should just do it and sell it as a service.
>
> --Kelly
>
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> [mailto:
> flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>] On
> Behalf Of Douglas McCarroll
> Sent: Wednesday, September 20, 2006 1:14 PM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> Subject: Re: [flexcoders] Flex 2.0 Hosting ( Cheap / Inexpensive )
>
> I've checked with CFDynamics. They say "Unfortunately, at this
> time, an
> ETA is unavailable."
>
> It seems to me that it would be in Adobe's interests to do
> whatever it
> can to facilitate making FDS hosting available. A friend of mine
> thinks
> that he may be able to help me out, but I'm sure that there are a
> lot of
> people out there with no options for deploying FDS apps at this
> point...
>
> I'm not talking about full-scale enterprise hosting - just an Express
> FDS equivalent...
>
> Matt Chotin wrote:
> >
> > Yes, CFDynamics has been considering it. I'm not sure if others have
> > been considering it recently, I'll ask Eric but we haven't seen a
> > massive request for it recently.
> >
> > Matt
> >
> > --
> >
> > *From:* flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> [mailto:
> flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>]
> > *On Behalf Of *Brendan Meutzner
> > *Sent:* Tuesday, September 19, 2006 3:59 PM
> > *To:* flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > *Subject:* Re: [flexcoders] Flex 2.0 Hosting ( Cheap / Inexpensive )
> >
> > I've heard that CFDyanmics is considering it... worth posing the
> > question to them...
> >
> >
> > Brendan
> >
> >
> > On 9/19/06, *Douglas McCarroll* <
> > [EMAIL PROTECTED]
> <mailto:org.yahoo_primary.001%40douglasmccarroll.com>
> >  <mailto:org.yahoo_primary.001%40douglasmccarroll.com>>> wrote:
> >
> > Paul Andrews wrote:
> >
> > > Hosting Flex isn't a problem, it's FDS that's the problem. ;-)
> >
> > Are there any solutions available for FDS?
> >
> > It sounds like there aren't. :-(
> >
> > Could someone from Adobe comment on whether Adobe is working on this?
> >
> >
>
> --
> Flexcoders Mailing List
> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> <http://groups.yahoo.com/group/flexc

Re: [flexcoders] David George Presentation re Improving Performance of Flex Apps

2006-09-21 Thread Douglas McCarroll
It plays fine for me.

aaron smith wrote:
>
> does anyone eles have problems with sounds, it cuts out after a couple 
> minutesl...
>
> On 9/20/06, *greg h* <[EMAIL PROTECTED] 
> > wrote:
>
> Adobe just put up a great Adobe Connect recording of a 1 hour
> presentation by David George, Flex Principal Engineer
> TOPIC: Tips and Techniques for Improving Performance of Flex Apps.
> http://adobedev.adobe.acrobat.com/p71169528/
> 
>
> fyi ... this is a nice sampling of the good things that will be
> available in abundance at MAX!
>
>
>  



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





  1   2   >