[flexcoders] LCDS RTMPS connection forced closed

2008-12-18 Thread Daniel Harfleet
Hi,

we are running into a problem with RTMPS on LCDS 2.6  . If anyone has
any ideas, or is experiencing similar problems, please let me know,

many thanks

dan

15:26:35,575 INFO  [STDOUT] [LCDS]SocketServer 'my-rtmps-SocketServer'
has accepted new Connection '13257590'.
15:26:35,576 INFO  [STDOUT] [LCDS]Reactor 'Reactor1' for SocketServer
'my-rtmps-SocketServer' is managing Connection '13257590'.
15:26:35,576 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1,5,jboss] unregistering
read interest for Connection '13257590'.
15:26:35,577 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' starting a read.
15:26:35,657 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] registering
write interest for Connection '13257590'.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] registering
read interest for Connection '13257590'.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1,5,jboss] unregistering
write interest for Connection '13257590'.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' finished a read. Handshaking.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1Writer,5,jboss] Connection
'13257590' starting a write.
15:26:35,659 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1Writer,5,jboss] Connection
'13257590' finished a write. Handshaking.
15:26:35,726 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1,5,jboss] unregistering
read interest for Connection '13257590'.
15:26:35,726 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' starting a read.
15:26:35,731 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] failed to
read Connection '13257590' or process the data; Connection is in the
'Handshaking' state and will be forced closed.
javax.net.ssl.SSLException: Inbound closed before receiving peer's
close_notify: possible truncation attack?
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1356)
at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1324)
at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.closeInbound(SSLEngineImpl.java:1263)
at
flex.messaging.socketserver.SSLConnection.handshake(SSLConnection.java:290)
at
flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:761)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:613)
15:26:35,732 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' has changed state to: Closing
15:26:35,733 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] closing
Connection '13257590'.
15:26:35,733 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] generated
an exception shutting down socket input for Connection '13257590'.
java.net.SocketException: Socket is not connected
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at 
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:583)
at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
at
flex.messaging.socketserver.Connection.closeImmediate(Connection.java:384)
at
flex.messaging.socketserver.SSLConnection.closeImmediate(SSLConnection.java:143)
at
flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:838)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:613)

-  -  -  -  -  -  -  -  -  -  -  - 
We are running on Jboss:

[Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417).

Java:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

Mac:
OS X 10.5.5

-  -  -  -  -  -  -  -  -  -  -  - 







[flexcoders] Cairngorm on Labs

2006-08-21 Thread Daniel Harfleet
Hi,


As many of you are aware, Cairngorm now has space at Adobe Labs. We
are hoping to soon update the content on Labs in order to give people
more resources to become productive with Cairgorm.

We'd really like to hear from you if you have any ideas or opinions on
the type of thing we should be including.

Please let us know by reply to all, replying here
http://weblogs.macromedia.com/dharfleet/archives/2006/08/cairngorm_on_la.cfm#more
 or just directly to me (dharfleet at adobe.com) with details of what
you would like to see, why you want to see it and how it would enable
you or others to utilise Cairngorm. 

Thanks in advance,


Daniel Harfleet






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

<*> 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] Re: Cairngorm demo shop and user not found

2006-05-11 Thread Daniel Harfleet



Hi Tom, this is definately to do with the location of the database
files for HSQLDB, can I suggest you put the full path of the hsqldb
database files into store.cfg or to start with hardcode the full path
into the java source in HSQLDBConnectionManager

dan



--- In flexcoders@yahoogroups.com, "Tom Chiverton" <[EMAIL PROTECTED]>
wrote:
>
> So, I've get stuck on the infamous "Error: java.sql.SQLException:
User not found: CAIRNGORMSTORE" error, which seems to be because the
Java classes can't find the required database.
> 
> I'm using tomcat on Linux.
> The store is in 
> cd /opt/jakarta-tomcat-5.0.28/webapps/caingormstore
> cat ./WEB-INF/classes/store.cfg says:
> db_path=..\\db\\
>
connection_manager_impl=org.nevis.cairngorm.samples.store.dao.HSQLDBConnectionManager
> and the db is:
> ls ../../db
> catalog.properties  catalog.script
> 
> which should all be fine ?
> 
> But I get said error when visiting
http://flex.whitbread.localdomain/caingormstore/Main.mxml :-(
> Worth pointing out the login app runs OK on the same host, so it's
not Flex per-say.
> 
> Anyone able to help out ?
> 
> 
> Tom Chiverton
> 
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
> 
> We are pleased to announce that Halliwells LLP has been voted AIM
Lawyer of the Year at the 2005 Growth Company Awards
>











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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  












[flexcoders] Re: hi, i am new to flex, can any one help me how so go with it ?

2005-10-11 Thread Daniel Harfleet

http://www.macromedia.com/devnet/flex/

http://livedocs.macromedia.com/flex/15/

http://groups.yahoo.com/group/flexcoders/message/22504

http://www.amazon.com/exec/obidos/tg/detail/-/0321255666/qid=1129025361/sr=2-1/ref=pd_bbs_b_2_1/002-5980796-8408032?v=glance&s=books

http://www.richinternetapps.com/archives/000128.html

http://www.macromedia.com/support/training/instructor_led_curriculum/flex_webapp_developers.html



and you can also get help on this group by posting *specific* questions




--- In flexcoders@yahoogroups.com, "gonchu24" <[EMAIL PROTECTED]> wrote:
>
> hi
> 
> I am kumar, from bangalore, INDIA. I am a flash user to a standard 
> actionscript usage. now I would like to learn and deploy the power of 
> flex.
> 
> please any one help me in this.
> 
> thanks in advance
> 
> kumar
>






 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: Asynchronous notification

2005-10-05 Thread Daniel Harfleet
You should maybe also take a look at Flash Communication Server. FCS
allows you to push data to ActionScript clients using RTMP; you can
then just implement some kind of 'Listener' class in you client which
receives notifications of data changes.  You could implement your FCS
code in such a way that the client makes an initial request giving its
intent to listen to some server side data and then FCS pushes out the
data when it changes.

Check out Client.call(..)on the server / NetConnection.call(..)on the
client, or alternatively you can use SharedObject.onSync(..) and
setProperty(k, v)

http://www.macromedia.com/devnet/flashcom/cross_product_integration.html

http://livedocs.macromedia.com/flashcom/mx2004/index.html



hth

dan




--- In flexcoders@yahoogroups.com, "Mink, Joseph" <[EMAIL PROTECTED]>
wrote:
> Thanks, Kevin!  I finally did my homework of the XMLSocket obj, but
> wasn't sure how to serve that protocol with a web server or servlet
> container...I'll definitely look for the examples you mention.  I wonder
> if they are actual stand-alone, custom servers of if they are a hack way
> of getting servlets to solve the problem.
>  
> Thanks!
> Joey
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin Langdon
> Sent: Tuesday, October 04, 2005 10:01 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Asynchronous notification
> 
> 
> You probably want to look into the XMLSocket object.  This can make a
> connection back to a server and maintain it.  A 0 byte is sent between
> requests and response without the connection being dropped.  Those
> requests and responses are xml and could be used for messaging or keep
> alives to avoid timeout issues.  There are some good Java examples out
> there on implementing this on the server end, not sure about other
> platform implementations.
>  
> Kevin
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Mink, Joseph
> Sent: Tuesday, October 04, 2005 8:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Asynchronous notification
> 
> 
> All,
>  
> We have, up until now, used webservices to check for server-side
> notifications...we just poll (I know, I hate polling!).  We'd like to
> move to something more asynchronous, but I thought I'd ask the forum for
> their recommendation.
>  
> I know there is some kind of method in AS for making an HTTP
> request...we could have a servlet that would accept that request, hold
> onto it until some data comes in, and then finally respond to the
> request.  Of course there are probably time-out issues that would have
> to be side-stepped.
>  
> That's about the only sol'n I can see being possible right now.  I'm not
> very familiar with RMI and Remote Objects, but can this technology be
> used asynchronously in Flex?
>  
> Any thoughts would be appreciated!
>  
> Thanks.
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> Web site design development
>  site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>   Computer software
> development
>  b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> Software design and
> development
>  Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>   
> Macromedia flex
>  development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>   Software development best
> practice
>  w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>
> 
> 
> 
> YAHOO! GROUPS LINKS 
> 
> 
>   
> *  Visit your group "flexcoders
>  " on the web.
> 
> *  To unsubscribe from this group, send an email to:
>[EMAIL PROTECTED]
> 

[flexcoders] Re: Trying to compile with mxmlc - can't find JVM

2005-09-21 Thread Daniel Harfleet
Hi, this may help you .





This build script wraps compc




















   








 




rgds
dan



--- In flexcoders@yahoogroups.com, "Libby" <[EMAIL PROTECTED]> wrote:
> Hello, I am trying to compile all my flex objects using mxmlc and I
> always get "can't find JVM". I have edited my jvm.cfg and jvm.config
> files to no avail. Could someone with working mxmlc jobs post their
> versions of these files for me so I can see what dumb mistake I am
> making? I have j2sdk1.4.2.04 JVM on my machine in addition to eclipse.
> 
> If I ever get it to work, I would like to invoke it via ant if anyone
> wants to take a stab at assisting me with that...
> 
> Thanks,
> Libby





 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: not-explicitly-set VO attribute being lost when passed to CFC

2005-09-09 Thread Daniel Harfleet
can we see the source of you ListVO.as please ?


--- In flexcoders@yahoogroups.com, "a8i364io" <[EMAIL PROTECTED]> wrote:
> OK I think this is really weird.  I've been making good progress in 
> Cairngorm'ing an app I built but I've run across a problem.  I've got 
> this thingy that updates a database using a CFC that accepts a 
> structure as its only argument.  When I don't explicitly define each 
> of the attributes of the VO that I'm passing, they get lost somewhere 
> in the send between Flex and CF - I get this message back from the 
> CFC: 
> 
> "Element ATTRIBUTE_NAME is undefined in STRUCTURE_NAME"
> 
> I know that attribute is being passed all the way through the 
> Cairngorm architure because I can trace it until just before the CFC 
> call.
> 
> here's the relevant code:
> 
> ViewHelper.as 
> (if I uncomment that one line of code where I'm just setting the 
> attribute equal to itself the whole thing works like a charm!)
> 
> 
> function updateDL():Void
>   {
>   var eventObj = new Object();
>   eventObj.dlToUpdate = new ListVO();
>   eventObj.dlToUpdate = ModelLocator.selectedList;
>   //eventObj.dlToUpdate.DLAlias = 
> eventObj.dlToUpdate.DLAlias;
>   eventObj.dlToUpdate.OwnerAlias = "DistListAdmin";
>   eventObj.dlToUpdate.EditorAlias = "System";
>   EventBroadcaster.getInstance().broadcastEvent( 
> DLController.EVENT_CONCRETE_COMMAND, eventObj );
>   closeForm();
>   }
> 
> 
> ConcreteCommand.as
> 
> 
> public function execute( event : Event ):Void
>   {
>   var delegate : ListDelegate = new ListDelegate( 
> this );
>   delegate.updateDL(event);
>   }
> 
> 
> 
> ListDelegate.as
> (the below alert shows the correct value whether the line
> of code in the ViewHelper.as file is commented-out or not)
> 
> 
> public function updateDL(event:Object) : Void
>   {   
>   var dlToUpdate:ListVO;
>   dlToUpdate=event.data.dlToUpdate;
>   mx.core.Application.alert(dlToUpdate.DLAlias);
>   var call = service.updateDL({dlToUpdate:dlToUpdate});
>   /...
>   }
> 
> 
> 
> 
> AppHandler.CFC
> 
> 
>hint="updates distribution list in 
> database and LDAP">
>required="yes" />
> 
> 
> 
> ANY INSIGHT/HELP MUCH APPRECIATED!




 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: I have an overloaded Java method, How can I call an specific method using Re

2005-09-09 Thread Daniel Harfleet
if you were to map the java params to action script params, what would
the params still be different and if so, you may be able to work out
what param types you need to supply 

see the 'Converting data from Java to ActionScript' part of the live docs




--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote:
> I have a overloaded method in Java which I am calling using
RemoteObject.
> One version of the methods requires X parameters while the other
requires
> Y. I am trying to call the one with Y but it Flex tries to call the one
> with X by the default. How can I tell Flex which to call?
> 
> Thanks
> 
>
---
> This e-mail message (including attachments, if any) is intended for
the use
> of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and
exempt from
> disclosure.  If you are not the intended recipient, you are notified
that
> any dissemination, distribution or copying of this communication is
> strictly prohibited.  If you have received this communication in error,
> please notify the sender and erase this e-mail message immediately.
>
---




 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: Linux Macromedia Flex on Tomcat HOWTO

2005-09-08 Thread Daniel Harfleet
I would add that a quick way to deploy a vanilla flex war to Tomcat
with the preferred name of you webapp, is to rename flex.war to your
webapp name  e.g.  rename flex.war to bookstore.war   and drop it into
your Tomcat webapps directory

dan


--- In flexcoders@yahoogroups.com, "charlespaz1" <[EMAIL PROTECTED]> wrote:
> I've just created and posted a HOWTO for installing Macromedia Flex on
> Tomcat in a RHEL AS4 / Fedora Core 3 environment.
> 
> Comments and critiques are welcome.
> 
> http://members.cox.net/midian/howto/flex+tomcat.htm




 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: Cairgorm features

2005-09-02 Thread Daniel Harfleet
I would add that although Cairngorm uses patterns that are also used
by Struts, to a certain extent that is where the similarity stops;
from a programming perspective Flex probably compares more closely to
Swing, MFC, Motif or similar event driven UI languages and Cairngorm
is a set of patterns to support Flex / event driven UI.

HTML is not really an event driven UI language, although you could
argue that with the addition of javascript, it becomes that. Struts is
a set of patterns to support the generation of html.

I suspect your motivation for comparison is a possible move from an
HTML user interface to a RIA user interface. I would suggest that you
should be comparing the technologies at a slightly higher level if
that is the reason.

To reiterate what Steve says, Cairngorm is a set of patterns to
support RIA development in a 'thickish' client, it is not intended as
an emulation of Struts; it just so happens that we use a few of the
same GOF patterns (e.g. Command pattern aka Action in Struts) 
http://www.tml.tkk.fi/~pnr/Tik-76.278/gof/html/Command.html

dan





--- In flexcoders@yahoogroups.com, "Steven Webster" <[EMAIL PROTECTED]> wrote:
> Hey Michel,
> 
> - Error Handling 
>  
> 
> What would you require exactly; remember we're not "in JVM" so the
> responsibility to throw errors is different.  What would you be looking
> for...?
> 
>  - Internacionalization  
> 
> We intended implementing the solution by Benoit Hedard into the
Cairngorm
> framework, but haven't made any concrete commitments to delivering that.
> We're trying to balance decisions about whether features belong in an
> architectural framework, or whether we should lobby for their
inclusion in
> the technology itself.
> 
>  
> - Action Mapping (regarding navigation) 
> 
>  Again, what would you be looking for here ?  Currently, actions are
> essentially "event names" that invoke commands, and the map as such
is the
> implementation of the FrontController.  We've found that to be a
lightweight
> implementation that delivers on what people require ... would you
require
> more.
> 
> Struts is built upon the Core J2EE Patterns, Cairngorm is an
implementation
> of an RIA microarchitecture that leverages the Core J2EE Patterns
that the
> iteration::two team considered over the years to be appropriate to RIA
> development, and have since won support from the other members of the
> Cairngorm project committee (and the developers using the framework).
> 
> Our goal is to deliver an implementation of a best-practice
> microarchitecture that best-leverage the feature-set of Flex; our
goal has
> never been to port Struts (which I would consider to be too
heavyweight for
> stateful client-side microarchitecture, but that's another discussion).
> 
> Have you built an RIA with Cairngorm, and did you find anything
lacking in
> being able to engineer and deliver the kind of user-experiences that you
> hoped for ?  Feature requests based upon real-world use-cases are
greatfully
> accepted...
> 
> Best wishes,
> 
> Steven
> 
>  
> 
> --
> Steven Webster
> Technical Director
> iteration::two
> 
>  
>  
> This e-mail and any associated attachments transmitted with it may
contain
> confidential information and must not be copied, or disclosed, or
used by
> anyone other than the intended recipient(s). If you are not the intended
> recipient(s) please destroy this e-mail, and any copies of it,
immediately.
>  
> Please also note that while software systems have been used to try
to ensure
> that this e-mail has been swept for viruses, iteration::two do not
accept
> responsibility for any damage or loss caused in respect of any viruses
> transmitted by the e-mail. Please ensure your own checks are carried out
> before any attachments are opened.





 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: passing array of Form values in VO

2005-09-02 Thread Daniel Harfleet
Will your form have a fixed amount of 'name' inputs, or will the user
keep adding inputs by clicking a button (or similar) ?

dan



--- In flexcoders@yahoogroups.com, "cruegger2000" <[EMAIL PROTECTED]>
wrote:
> I want to have a form on the client side that accepts
> a list of items of the same type/meaning, for example people's names.
> I would then send a value object to a server side Delegate object 
> using the  construct.
>  
> However, I don't know how to indicate that a form variable
> is an "array" without getting duplicate component id errors.
> In essence, I want to do what is shown below. How can I have a 
> "vector" form variable using Flex?
> Thanks in advance.
> 
> mxml file:
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
>   
> 
> 
> 
> Client side value object:
> -
> class Foo
> {
>   public var names: Array;
> }
> 
> 
> Server Side value object:
> -
> public class Foo
> {
>   private String[] names; (or List)
>   
>   // accesors
> }




 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: Does Flex have equivalent of JSTL ?

2005-09-01 Thread Daniel Harfleet
Hi,

if it is always the case that you only have to ouput 1,2 or 3 input
fields, you could create a custom component which would be initialized
by your object in the dataprovider, it could contain the logic to
decide which 'view' to show. Inside your custom component, you can
just make TextInputs 1, 2 , 3 visible or not depending on the type of
data/model you initialize it with

dan


--- In flexcoders@yahoogroups.com, "cruegger2000" <[EMAIL PROTECTED]>
wrote:
> 
> I need to iterate through a collection of polymorphic objects
> and build a form dynamically. Depending on the current type
> of object, I  need to output 1, 2, or 3  components.
> I'm using a Repeater to iterate through the collection.
> 
> Does Flex have the equivalent of JSTL  or some other
> logic tags that will let me conditionally generate mxml?
> 
> Thanks in advance.




 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: Cairngorm question

2005-08-30 Thread Daniel Harfleet
Alberto,

this seems a fair approach to me, you may also want to include some
logic to disconnect from the flash comm server when you know you are
not interested in receiving updates and maybe even a 'recovery plan'
for the service should the connection to the FCS be broken.

rgds

dan

--- In flexcoders@yahoogroups.com, Alberto Albericio Salvador
<[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> The Cairngorm samples are a great resource for understanding how to
best 
> arquitect an specific kind of applications; in this case, applications 
> that talk syncly with some servers that expose some services.
> 
> Imagine now that Im building an application which implements,
somewhere, 
> some kind of asynchronous services: a flash comm server chat , for 
> example. This "service" must be running, in the background, even if im 
> visually working in another part of the application, entering some data 
> for new providers or whatever. So the question is, where is the best 
> place to initialise these services? Or how can I place/work with these 
> services within this arquitecture?
> 
> My choice would probably be to initialise evrything inside a 
> "initialise()" function in the model locator and then use some public 
> var there to control msgs and status of this "service" and then bind
the 
> chat components to these vars.
> 
> I hope someone can help chosing the best option.
> 
> Thanks all in advance.
> 
> -- 
> Alberto Albericio Salvador
> Aura S.A. Seguros
> Departamento Informática





 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: CAIRNGORM 0.99 QUESTION

2005-08-30 Thread Daniel Harfleet
Hi,

you would need to be carefull, because the command instances are
created once only at creation of the FrontController. By creating a
delegate instance, you are using the ServiceLocator to look up the
remote object, however, if your service locator hasn't been
initialized yet, you may get  a no service found error. So make sure
your services are created before you front controller if you are going
to take this approach.



--- In flexcoders@yahoogroups.com, "flexcoding" <[EMAIL PROTECTED]> wrote:
> Is it OK to have a constructor in the Command classes and have 
> delegate initialized there rather than doing it in every time 
> execute method is called?
> 
> So Could the code of LoginCommand of sample code that came with 
> CAIRNGORM 0.99 be changed to:
> 
> class org.nevis.cairngorm.samples.login.commands.LoginCommand 
> implements Command, Responder
> {
>private var delegate: CustomerDelegate;
> 
>public function LoginCommand ()
>{
>   delegate = new CustomerDelegate( this );
>}
> 
>public function execute( event:Event ) : Void
>{
>   var loginVO : LoginVO = LoginVO( event.data );
>   delegate.login( loginVO );
>}
> 
> //---
> --
> 
>public function onResult( event : Object ) : Void
>{  
>   ModelLocator.workflowState = 
> ModelLocator.VIEWING_LOGGED_IN_SCREEN;
>   
>   var loginDate : Date = Date( event.result );   
>   ModelLocator.loginDate = loginDate;
>}
> 
> //---
> --
> 
>public function onFault( event : Object ) : Void
>{
>   ModelLocator.statusMessage = "Your username or password was 
> wrong, please try again.";
>}
> }
> 
> from
> 
> /*
> 
> Copyright 2005 iteration::two Ltd
> 
> Licensed under the Apache License, Version 2.0 (the "License");
> you may not use this file except in compliance with the License.
> You may obtain a copy of the License at
> 
> http://www.apache.org/licenses/LICENSE-2.0
> 
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
> implied.
> See the License for the specific language governing permissions and
> limitations under the License.
> 
> @ignore
> */
> import org.nevis.cairngorm.business.Responder;
> import org.nevis.cairngorm.commands.Command;
> import org.nevis.cairngorm.control.Event;
> import org.nevis.cairngorm.samples.login.business.CustomerDelegate;
> import org.nevis.cairngorm.samples.login.vo.LoginVO;
> import org.nevis.cairngorm.samples.login.model.ModelLocator;
> 
> /**
>  * @version   $Revision: 1.4 $
>  */
> class org.nevis.cairngorm.samples.login.commands.LoginCommand 
> implements Command, Responder
> {
> 
>public function execute( event:Event ) : Void
>{
>   var delegate: CustomerDelegate = new CustomerDelegate( 
> this ); 
>   var loginVO : LoginVO = LoginVO( event.data );
>   delegate.login( loginVO );
>}
> 
> //---
> --
> 
>public function onResult( event : Object ) : Void
>{  
>   ModelLocator.workflowState = 
> ModelLocator.VIEWING_LOGGED_IN_SCREEN;
>   
>   var loginDate : Date = Date( event.result );   
>   ModelLocator.loginDate = loginDate;
>}
> 
> //---
> --
> 
>public function onFault( event : Object ) : Void
>{
>   ModelLocator.statusMessage = "Your username or password was 
> wrong, please try again.";
>}
> }




 Yahoo! Groups Sponsor ~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~-> 

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

<*> 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] Re: help.. passing arguments to a method using remoteobject

2005-08-11 Thread Daniel Harfleet
Amit, 

can you give the list an idea of what the error actually says ? Are
you also getting errors on your J2EE server ? If so what are these ?
Have you switched on the gateway debug ? 


If your flex server is installed locally we suggest enabling server
side "debug" level logging in /WEB-INF/flex/gateway-config.xml to
watch the raw trace information in the Flex server console / logs from
the AMF Gateway as it processes your RemoteObject requests.


hope this helps

dan


--- In flexcoders@yahoogroups.com, "Philippe Maegerman" <[EMAIL PROTECTED]> 
wrote:
> You can use  inside yout method
> 
>
>   
>  {text1.text}
>  {text2.text}
>   
>
> 
> Documentation here : 
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=1175.htm
>  
> Philippe Maegerman
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Amit Sanon
> Sent: jeudi 11 août 2005 7:52
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] help.. passing arguments to a method using
remoteobject
> 
> 
> i cannot figure out how to pass arguments... pls send an example code 
> as to how to pass arguments to a method using remote object
> 
> i have a class as follows
>   
> class A
> {
>   public int func1(int i, string st)
>   {
>  ...
>   }
> }
> 
> i created a remote object like...
> 
> 
>   
> 
> 
> and made a call to this method as
> 
> function getReply()
> {
>   remot.func1(1,"amit");
> }
> 
> but was not successfull.. it gave an error cannot invoke method func1
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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 
> 
> 
>   
> *  Visit your group "flexcoders
 " on the web.
> 
> *  To unsubscribe from this group, send an email to:
>[EMAIL PROTECTED]
 
> 
> *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service  . 
> 
> 
> 
> 
> 
> 
> --
> **STATEMENT OF CONFIDENTIALITY** 
> 
> This e-mail and any attached files are confidential and intended
solely for the use of the individual to whom it is addressed. If you
have received this email in error please send it back to the person
that sent it to you. Any views or opinions presented are solely those
of author and do not necessarily represent those the Emakina Company.
Unauthorized publication, use, dissemination, forwarding, printing or
copying of this email and its associated attachments is strictly
prohibited.
> 
> We also inform you that we have checked that this message does not
contain any virus but we decline any responsability in case of any
damage caused by an a non detected virus.
> --




 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hnbvubc/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123759093/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!.
~-> 

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

<*> 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] Re: An interesting problem with models....

2005-08-11 Thread Daniel Harfleet
If you want an Array to act as a DataProvider, you must use the
DataProvider methods, as these fire the relevant events to let
controls know about changes

http://www.cflex.net/showfaq.cfm?Object=faq&channelID=1&faqtype=&defaultfields=&defaultValues=#Question398

http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataProvider.html


hope this helps

daniel



--- In flexcoders@yahoogroups.com, Tariq Ahmed <[EMAIL PROTECTED]> wrote:
> Hi Mika, thanks! That lead me down the right track. Your first 
> suggestion is basically the solution.
> 
> Thanks!
> 
> 
> Mika Kiljunen wrote:
> 
> > Perhaps you should modify the values on the model through the list's 
> > dataProviders editField or replaceItemAt, since the changes made to 
> > the model directly won't be reflected to the list?
> >
> > You could set the list's dataprovider once more after you modify the 
> > list directly, this might help too.
> >
> >  
> >
> > So something like this:
> >
> >
> >
> >  > labelField="revenue"/>
> >
> > function processCurrentItems()
> > {
> > myList.dataProvider.replaceItemAt(0,13);
> > myList.dataProvider.replaceItemAt(1,14);
> > myList.dataProvider.replaceItemAt(2,15);
> > myList.dataProvider.replaceItemAt(3,16);
> >
> > }
> >
> >  
> >
> > OR
> >
> >  
> >
> >  > labelField="revenue"/>
> >
> > function processCurrentItems()
> > {
> > sectionModel.region[0].revenue = 13;
> > sectionModel.region[1].revenue = 14;
> > sectionModel.region[2].revenue = 15;  
> > sectionModel.region[3].revenue = 16;  
> >
> > myList.dataProvider = sectionModel;
> >
> > }
> >
> >  
> >
> >  
> >
> > -Mika
> >
> >  
> >
> >

> >
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
> > *On Behalf Of *Tariq Ahmed
> > *Sent:* 10. elokuuta 2005 7:54
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] An interesting problem with models
> >
> >  
> >
> > A model, remoteobject, and a list walk into a bar, and the bartender 
> > ... j/k
> >
> > I got a weird problem that I've narrowed down into a simple
> > reproduceable test case.
> >
> > Got a simple model:
> > 
> > 
> > 
> >   
> > 
> >   
> >
> > And I got a function that just hard code updates the values:
> > function processCurrentItems()
> > {
> > sectionModel.region[0].revenue = 13;
> > sectionModel.region[1].revenue = 14;
> > sectionModel.region[2].revenue = 15;  
> > sectionModel.region[3].revenue = 16;  
> > }
> >
> > And then these two components displaying data:
> > 
> > 
> >
> > Now the list should show 13,14,15,16 after the above function is
called,
> > and it does if called from the Application initialize call. But,
if it's
> > called as a result from a remoteObject call, the model is updated, but
> > the List doesn't the change, however the Label does.
> >
> > Attached is a working sample.
> >
> > It turns out the List is updating in the remoteobject case, but the
> > display only updates if you move your mouse over each individual item.
> > Though why it works fine if the same code is executed as a result
of an
> > initialize call is beyond me.
> >
> > In the actual problem that I have - instead of a list I have a
PieChart,
> > and its display does not update even though the model is updated
(though
> > to complicate things the exact same code works on another machine).
> >
> > Any ideas? Some caching thing?
> >




 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hu9ft8s/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123758457/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy.
~-> 

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

<*> 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] Re: No Deserializer for List -- more information

2005-07-19 Thread Daniel Harfleet


or working very hard ;-)

> Anyways, today does not seem to be a good day for tough questions and 
> expert answers!
> *FlexCoders are on vacation, I think!!!*
> 
> Regards, Sree




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

<*> 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] Re: Flex WebApp Consuming CPU when idle?

2005-06-09 Thread Daniel Harfleet
Hi Rick,

are you running it in production or development mode ?

dan


--- In flexcoders@yahoogroups.com, "Rick Bullotta"
<[EMAIL PROTECTED]> wrote:
> Looks like the Flex web app is using CPU (doing something?) on about a
> 1-2 second interval (some type of license check?) that consumes about 4%
> of the CPU on average.
> 
> Rick Bullotta
> CTO
> Lighthammer Software





 
Yahoo! Groups Links

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

<*> 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] Re: Cairngorm .99 + Flex-Config + Services.mxml

2005-06-01 Thread Daniel Harfleet
Hey Dave,

hate to ask the standard question, but here goes .


what are the symptoms you are getting ? Is it an error message,
timeout, or what ? 

thanks

dan



--- In flexcoders@yahoogroups.com, dave buhler <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am attempting to update the configuration for my services, both the 
> flex-config.xml and services.mxml. This first example works fine,
thanks to 
> the trusty wildcard. However, this week, I'll need to work on
security and 
> databinding (this begins the segway into my next post) so it's time to 
> rebuild both files.
> 
> I know the cfc exists because I can access it at: 
>
http://localhost:8300/wwwroot.myDomain.model.user.usersService.cfc?wsdl
and 
> I can access it in the first example.
> 
> Any help is appreciated.
> 
> I'm running:
>  
>- Flex (stand-alone) on JRun4 (port: 8700) 
>- CF 7 on JRun4 (port: 8300) 
>- Cairngorm .99 
>- mach-ii 
> 
> 
> Does Work: :)
> 
> Services.mxml 1
> http://www.macromedia.com/2003/mxml"; 
>  xmlns:cairngorm="http://www.iterationtwo.com/cairngorm";>
> 
>endpoint="http://localhost:8300/flashservices/gateway"; 
>  source="wwwroot.myDomain.model.user.usersService
>  protocol="http"
>  showBusyCursor="true"
>  result="event.call.resultHandler( event )"
>  fault="event.call.faultHandler( event )">
>  
>  
>endpoint="http://localhost:8300/flashservices/gateway"; 
>  source="wwwroot.myDomain.model.owner.ownersService"
>  protocol="http"
>  showBusyCursor="true"
>  result="event.call.resultHandler( event )"
>  fault="event.call.faultHandler( event )">
>  
> 
> 
> 
> Flex-Config.mxml 1
> 
>  
>   
>  
>  
>  *
>  stateless-class
>  
>  
>  
>  
>  {context.root}/amfgateway 
>  {context.root}/amfgateway
>  false
>  
> 
> 
>
---
> 
> Does Not Work: :( - - 
> 
> Services.mxml 2
> http://www.macromedia.com/2003/mxml"; 
> xmlns:cairngorm="http://www.iterationtwo.com/cairngorm";>
> 
>  protocol="http"
> showBusyCursor="true"
> result="event.call.resultHandler( event )"
> fault="event.call.faultHandler( event )">
> 
> 
>  protocol="http"
> showBusyCursor="true"
> result="event.call.resultHandler( event )"
> fault="event.call.faultHandler( event )">
> 
> 
> 
> 
> 
> Flex-Config.mxml 2
> 
> 
>   
>  
>  
>  
>  wwwroot.myDomain.model.user.usersService
>  stateless-class
>  
>  
>  
>  wwwroot.myDomain.model.owner.ownersService
>  stateless-class
>  
>  
>  
>  
> 
>  {context.root}/amfgateway 
>  {context.root}/amfgateway
>  false
> 
> 
> 
> Dave




 
Yahoo! Groups Links

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

<*> 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] Re: mousedown scope

2005-05-28 Thread Daniel Harfleet
Tom,

have you looked at mouseDownSomewhere   event ?

rgds

dan


--- In flexcoders@yahoogroups.com, Tom Fitzpatrick <[EMAIL PROTECTED]> wrote:
> I have a custom component, based on the Panel component, that can be 
> selected with a mousedown. The component contains subcomponents that
also 
> have mousedowns with different behaviors.
> 
> Is it possible to disassociate the two?
> 
> Right now, clicking the subcomponent also selects the Panel.
> 
> I'd like to be able to click the subcomponent without selecting the
Panel - 
> sort of a problem of eliminating the "bubble-down", I guess.
> 
> Is this possible? Or, can I have the mousedown on the Panel
associated only 
> with the Panel Header?
> 
> - Tom




 
Yahoo! Groups Links

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

<*> 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] Re: Cairngorm store - still trying

2005-05-26 Thread Daniel Harfleet
Tom,

thanks for the feedback on the docs, I will ammend the typos.

There seems to be some inconsistancy at where Tomcat thinks the
current directory is, maybe on some operating systems and/or some
versions of Tomcat, it thinks it is in the web context and others, it
thinks it is under the webapps directory.

I'd be interested to see if this is a common problem.

Just out of interest, are you using the Ant script, or are you doing
all the configuration manually ?

By the way, you can ignore the warning messages for Log4J, the log4J
configuration should be picked up from the classes directory, where
the store.cfg is, but maybe it is not happening for some reason, when
I get time I will look into it.

thanks for your feedback and glad you got it working eventually,

dan


--- In flexcoders@yahoogroups.com, Tom Fitzpatrick <[EMAIL PROTECTED]> wrote:
> At 10:29 AM 5/26/2005, you wrote:
> >So  please ensure that you hve the catalog.script file copied into
> >the db/ directory that you have created;
> 
> This did work - thanks!
> 
> But - for the sake of others who might be confused - the odd thing
is that 
> I didn't create that db folder, it was created automatically (one level 
> higher) after I had created a db folder, with the script file in it,
at the 
> level indicated in the docs and in Alex's email. Then, when I moved the 
> script file to that newly created folder, the product images showed up.
> 
> I am still getting the log4j error messages - I take it I can safely
ignore 
> them.
> 
> Thanks again for your help in getting this going. Onward and upward!
> 
> - Tom




 
Yahoo! Groups Links

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

<*> 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] Re: Cairngorm store - still trying

2005-05-26 Thread Daniel Harfleet
In Tomcat '..' (atleast on all the machines we have tested on) points
to the next directory up from webapps (NOT the webapp, but the webapps
directory). This would be TOMCAT_HOME/db (jakarta-tomcat-5.0.25/db)
in your case.


to clarify:

if you have your app in TOMCAT_HOME/webapps/cairngormstore

the filesystem seems to have the current directory set to
TOMCAT_HOME/webapps, therefore

..  points to TOMCAT_HOME  (not TOMCAT_HOME/webapps)

so ../db will point to TOMCAT_HOME/db


if you are not sure this is happening on your OS, write a simple java
class that outputs a file and call it in your webapp, wherever the
file is written, is where  .  is, so put your db directory one up


hth
dan




--- In flexcoders@yahoogroups.com, "Daniel Harfleet" <[EMAIL PROTECTED]>
wrote:
> Tom (and anyone else having problems with HSQLDB)
> 
> HSQLDB is used in this project in its 'in-process' mode, this means
> that it does not run as a seperate server process as a 'normal'
> database would such as MySQL or Oracle.  The database instance is
> started by the first call to getConnection in HSQLDBCOnnectionManager
> 
> 
>  protected Connection getConnection() throws Exception
> {  
> return DriverManager.getConnection( "jdbc:hsqldb:file:" +
> dbPath + getSchema()
>   , getUsername()
>   , getPassword() );  
> }
> 
> 
> So Tomcat starts, Flex Gateway calls the method (probably after first
> remote call) and the HSQLDB Driver Manager creates the database files
> at the path specified by  'dbpath'
> 
> When the java process that is holding the database in memory is
> running (Tomcat), various files are created, including lock files, etc.
> 
> At the same point that the first connection is created, hsqldb code
> looks at the dbpath and tries to read in a .script file, which will
> include the product details.
> 
> We currently have the db_path set to ..\db in the store.cfg  file
> which gets copied by Ant (or manualy by you) to the classpath of the
> tomcat webapp.
> 
> In Tomcat  '..' (atleast on all the machines we have tested on) points
> to the next directory up from webapps (NOT the webapp, but the webapps  
> directory). This would be  TOMCAT_HOME/db  (jakarta-tomcat-5.0.25/db)
> in your case.
> 
> You should either have your .script file under that directory, or you
> can change store.cfg to point to another relative or explicit
> directory, for example c:/db  . But to be honest, I would try and get
> it working with the default settings.
> 
> If you are getting the can't find user messages, it is almost
> certainly the case that the code is not finding your .script file, as
> the second line of the .script file creates the user.
> 
> Can I suggest the following steps to get it working:
> 
> stop Tomcat
> create a directory called 'db' under your TOMCAT_HOME.
> make sure the .script file is there
> make sure your store.cfg is pointing to where it was when it shipped (
> db_path=..\\db\\ ) (the double slashes are a java thing)
> DELETE any .lck files
> ENSURE that there are no other processes pointing at those files which
> may cause a lock to occur.
> Start TOmcat
> 
>  that should work
> 
> We realise that HSQLDB has caused several people some config problems
> (we had them too). However, we were torn between providing code which
> could (in theory ;-) ) run out of the box and code which would require
> the downloading of a database server and running of database scripts.
> 
> We have found HSQLDB can sometimes cause problems particularly when
> developing, due to the way it locks files. Be aware that there is a
> ten second timeout on the .lck file mandated by HSQLDB (not us).
> 
> So if you are running unit tests or writing dev/debug code, you should
> be aware that for ten seconds after your code has run, there will
> still be a lock, maybe also if you have those files open in an editor?
> 
> If you have MySQL, you could change the store.cfg to point to the
> MySQLConnectionManager instead ( there is a mysql script under db in
> the download).
> 
> Links which may be of help:
> 
> HsqlDB Manual (see 'in-process') 
> http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html
> About the ten second timeout  
>
http://blog.taragana.com/index.php/archive/how-to-close-all-connections-in-hsqldb-to-prevent-a-locking-defect/
> 
> 
> I'm sorry to hear there were errors in the documentation, I spent
> several hours 'testing' them, please let me know what they are and I
> will ammend the docs
> 
> hope this helps
> 
> dan
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Tom Fitzpatrick <[EMAI

[flexcoders] Re: Cairngorm store - still trying

2005-05-26 Thread Daniel Harfleet
Tom (and anyone else having problems with HSQLDB)

HSQLDB is used in this project in its 'in-process' mode, this means
that it does not run as a seperate server process as a 'normal'
database would such as MySQL or Oracle.  The database instance is
started by the first call to getConnection in HSQLDBCOnnectionManager


 protected Connection getConnection() throws Exception
{  
return DriverManager.getConnection( "jdbc:hsqldb:file:" +
dbPath + getSchema()
  , getUsername()
  , getPassword() );  
}


So Tomcat starts, Flex Gateway calls the method (probably after first
remote call) and the HSQLDB Driver Manager creates the database files
at the path specified by  'dbpath'

When the java process that is holding the database in memory is
running (Tomcat), various files are created, including lock files, etc.

At the same point that the first connection is created, hsqldb code
looks at the dbpath and tries to read in a .script file, which will
include the product details.

We currently have the db_path set to ..\db in the store.cfg  file
which gets copied by Ant (or manualy by you) to the classpath of the
tomcat webapp.

In Tomcat  '..' (atleast on all the machines we have tested on) points
to the next directory up from webapps (NOT the webapp, but the webapps  
directory). This would be  TOMCAT_HOME/db  (jakarta-tomcat-5.0.25/db)
in your case.

You should either have your .script file under that directory, or you
can change store.cfg to point to another relative or explicit
directory, for example c:/db  . But to be honest, I would try and get
it working with the default settings.

If you are getting the can't find user messages, it is almost
certainly the case that the code is not finding your .script file, as
the second line of the .script file creates the user.

Can I suggest the following steps to get it working:

stop Tomcat
create a directory called 'db' under your TOMCAT_HOME.
make sure the .script file is there
make sure your store.cfg is pointing to where it was when it shipped (
db_path=..\\db\\ ) (the double slashes are a java thing)
DELETE any .lck files
ENSURE that there are no other processes pointing at those files which
may cause a lock to occur.
Start TOmcat

 that should work

We realise that HSQLDB has caused several people some config problems
(we had them too). However, we were torn between providing code which
could (in theory ;-) ) run out of the box and code which would require
the downloading of a database server and running of database scripts.

We have found HSQLDB can sometimes cause problems particularly when
developing, due to the way it locks files. Be aware that there is a
ten second timeout on the .lck file mandated by HSQLDB (not us).

So if you are running unit tests or writing dev/debug code, you should
be aware that for ten seconds after your code has run, there will
still be a lock, maybe also if you have those files open in an editor?

If you have MySQL, you could change the store.cfg to point to the
MySQLConnectionManager instead ( there is a mysql script under db in
the download).

Links which may be of help:

HsqlDB Manual (see 'in-process') 
http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html
About the ten second timeout  
http://blog.taragana.com/index.php/archive/how-to-close-all-connections-in-hsqldb-to-prevent-a-locking-defect/


I'm sorry to hear there were errors in the documentation, I spent
several hours 'testing' them, please let me know what they are and I
will ammend the docs

hope this helps

dan





--- In flexcoders@yahoogroups.com, Tom Fitzpatrick <[EMAIL PROTECTED]> wrote:
> Still trying to get the cairngorm store products to show up. I
thought I 
> had done everything right - but there are several errors in the docs
and I 
> had to do some guessing, plus working with hints from Steven and
Alex from 
> iteration2.
> 
> On startup, I'm getting a couple of warnings from the server:
> 
> - log4j: WARN No appenders could be found for logger
> - log4j: WARN Please initialize the log4j system properly
> 
> And, when I access the app, the server throws this error:
> 
> Error: java.sql.SQLException: User not found: CAIRNGORMSTORE
> 
> To make things easier, here's my current relevant directory structure:
> 
> C:
> \servers
>  > db
>  >> file: catalog.lck
>  >> file: catalog.log
>  >> file: catalog.properties
>  >> file: catalog.script
>  > jakarta-tomcat-5.0.25
>  >>...
>  >> db
>  >>> file: catalog.properties
>  >>> file: catalog.script
>  >> webapps
>  >>> cairngormstore
>   assets
>   data
>   META-INF
>   org
>   tests
>   WEB-INF
>  > classes
>  >> conf
>  >>> file: log4j.properties
>  >>> file: store.cfg
>  >> org
>  >>> nevis...
>  > flex
>  >> file: cairngorm-manifest.xml
>  >> file: flex-config.xml
>  >>user_classes
>  >>> file: cairngorm.swc
>  >>> file: FlexUnit.swc
>  > lib
>  >> files: jar files
> 
> The db folder at the top level appears t

[flexcoders] Re: Filtering data in Flex

2005-05-05 Thread Daniel Harfleet
Don't quote me on this ;-) but I believe its the Adapter Pattern (GOF)

a java swing example is here:

http://java.sun.com/docs/books/tutorial/uiswing/co
mponents/table.html#sorting

rgds

dan

--- In flexcoders@yahoogroups.com, "Alistair McLeod" <[EMAIL PROTECTED]>
wrote:
> Hi Ketan,
> 
> As Steven said, you should create a FilteredDataProvider that
implements the
> DataProvider interface and does the filtering for you - your
TileList then
> takes that as its dataprovider and when filtering occurs, the
TileList will
> updates its view of the data.
> 
> Here's the one Manish wrote:
> 
> http://manish.revise.org/2005/04/data-filtering-using-custom.html
> 
> Cheers,
> 
> Ali
> 
> 
> --
> Alistair McLeod
> Development Director
> iteration::two
> [EMAIL PROTECTED]
>  
> Office:  +44 (0)131 338 6108
>  
> This e-mail and any associated attachments transmitted with it may
contain
> confidential information and must not be copied, or disclosed, or
used by
> anyone other than the intended recipient(s). If you are not the
intended
> recipient(s) please destroy this e-mail, and any copies of it,
immediately.
>  
> Please also note that while software systems have been used to try
to ensure
> that this e-mail has been swept for viruses, iteration::two do not
accept
> responsibility for any damage or loss caused in respect of any
viruses
> transmitted by the e-mail. Please ensure your own checks are
carried out
> before any attachments are opened.
>  
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod
[EMAIL PROTECTED] On
> Behalf Of Ketan Bengali
> Sent: 05 May 2005 13:12
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Filtering data in Flex
> 
> Setting the height/width to 0 doesn't make any difference.
> 
> We wont to delete the items not satisfying the filter criteria.
> In other words update the TileList component with the data.
> 
> 
> Regards,
> 
> Ketan Bengali
> 
> 
> 
> 
> joao_m_fernandes wrote:
> 
> >Ketan,
> >
> >Did you try to set Height and Width to 0? 
> >For the datagrid it should be easy, setting a new dg dataProvider
with 
> >only the new Items.
> >
> >
> >
> >  
> >
> >  
> >
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links

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

<*> 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: Performance testing Flash-J2EE applications

2005-03-08 Thread Daniel Harfleet

Madhu, have you seen this article, it may help 

http://www.macromedia.com/devnet/flex/articles/amf_perftest.html

dan


--- In flexcoders@yahoogroups.com, "t_msreddy" <[EMAIL PROTECTED]> wrote:
> 
> Hi
> I am trying to test the performance of my application which involves 
> flex mxml, actionscript classes which call backend J2EE code. What 
> are the tools out in the market which allows me to test this similar 
> to the test load test that we do on web applications.
> 
> I tried OpenSTA but and tried to capture and play the test but I got 
> this error:
> -
> Error: Request received was not Flash-based (not of the binary AMF 
> protocol). 
> -
> 
> Any ideas on what this error might be. Or if you know any tool let 
> me know.
> Thanks
> Madhu







Re: MySQL .jar file question

2005-02-04 Thread Daniel Harfleet

Hi,

there is a file called sqladmin.properties under WEB-INF/classes, did
you put your db name / url / username / password details in there ?

In MySQL, make sure the user you specify in the above file has localhost 
connection permission (assuming your db is on the same machine as your
webapp)


hope this helps

dan


--- In flexcoders@yahoogroups.com, "nextadvantage" <[EMAIL PROTECTED]> wrote:
> 
> I'm trying to get the flex based mysql administration app
> (http://coenraets.com/viewarticle.jsp?articleId=88) working, but it is
> failing when attempting to connect to the database. 
> 
> Any tips on getting mysql to connect? I placed the .jar file in the
> WEB-INF/lib sub-directory, but it doesn't seem to know its there.