[flexcoders] Re: DataService gives CollectionEvents for each item when committing one item

2008-07-16 Thread Steven Toth
Anyone have any experience with Data Services?

--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote:

 
 I have a DataService that uses the Assembler interface approach (I
 subclassed AbstractAssembler).  When I update one item in the 
managed
 Collection and commit it (autoCommit is false) I'm getting a
 PropertyChangeEvent of kind UPDATE for each item in the Collection 
from
 the DataService.  In addition I get a CollectionEvent of kind 
REMOVE for
 each item in the Collection, then a CollectionEvent of kind ADD for 
each
 item in the Collection from the Collection itself.
 
 I'm assuming this is because the fill() is being called after the 
update
 is completed.  How do I commit/update the individual item so that I 
only
 get an event (or set of events) for the item that was modified?  Is 
that
 possible when using a managed Collection or do I need to operate at 
the
 individual item level.  Am I doing something wrong (or not doing
 something at all) in the Assembler?
 
 I'm very experienced with Remoting and Messaging but this is my 
first
 time dealing with DataServices.  Any help, samples,etc.  are greatly
 appreciated.  Thanks.
 
 Here's the Assembler code...
 
 public class MyAssembler extends AbstractAssembler {
 
 
 
 private MyService svc = MyService.getInstance();
 
 
 
 public Collection fill(List fillParameters) {
 
 if (fillParameters.size() = 2) {
 
 
 
 int fillType = FlexDataHelper.getIntPrimitive( fillParameters.get
(0) );
 
 Long companyId = FlexDataHelper.getLong( fillParameters.get(1) );
 
 
 
 switch(fillType) {
 
 case QueryType.ALL_WIDGETS_FOR_COMPANY:
 
 return svc.getAllWidgets(companyId);
 
 case QueryType.ACTIVE_WIDGETS_FOR_COMPANY_:
 
 return svc.getActiveWidgets(companyId);
 
 case QueryType.WIDGETS_BY_COMPANY_AND_CATEGORY:
 
 if (fillParameters.size() == 3) {
 
 Integer categoryId = FlexDataHelper.getInteger( fillParameters.get
(2) );
 
 return svc.getWidgets(companyId, categoryId);
 
 }
 
 }
 
 
 
 }
 
 // Throws a nice error
 
 return super.fill(fillParameters);
 
 }
 
 
 
 public Object getItem(Map uid) {
 
 return svc.getWidget( FlexDataHelper.getLong(uid.get(companyId)),
 FlexDataHelper.getInteger(uid.get(widgetId)) );
 
 }
 
 
 
 public void createItem(Object newVersion) {
 
 svc.saveWidget((WidgetValue)newVersion);
 
 }
 
 
 
 public void updateItem(Object newVersion, Object prevVersion, List
 changes) {
 
 try {
 
 svc.saveWidget((WidgetValue)newVersion);
 
 } catch (Exception e) {
 
 Long companyId = ((WidgetValue)prevVersion).getCompanyId();
 
 Integer widgetId = ((WidgetValue)prevVersion).getWidgetId();
 
 System.err.println(*** Throwing DataSyncException when trying to 
save
 widget =  + widgetId);
 
 throw new DataSyncException(svc.getWidget(companyId, widgetId), 
null);
 
 }
 
 }
 
 
 
 public void deleteItem(Object prevVersion) {
 
 try {
 
 svc.deleteWidget( (WidgetValue)prevVersion );
 
 } catch (Exception e) {
 
 Long companyId = ((WidgetValue)prevVersion).getCompanyId();
 
 Integer widgetId = ((WidgetValue)prevVersion).getWidgetId();
 
 System.err.println(*** Throwing DataSyncException when trying to 
delete
 widget =  + widgetId);
 
 throw new DataSyncException(svc.getWidget(companyId, widgetId), 
null);
 
 }
 
 }
 
 
 
 Here's the Flex UI code...
 
 public function getWidgetsForCompany( company:CompanyValue ):void {
 
 var widgets:ArrayCollection = new ArrayCollection();
 
 var call:AsyncToken = widgetService.fill(widgets,
 QueryType.ALL_WIDGETS_FOR_COMPANY, company.companyId);
 
 // Add a reference to the collection that will be filled for access 
by
 the responder
 
 call.useLocalData = true;
 
 call.localData = widgets;
 
 call.addResponder( responder );
 
 }
 
 public function saveWidget( widget:WidgetValue ):void {
 
 var call:AsyncToken;
 
 if (isNaN(widget.widgetId)) {
 
 call = widgetService.createItem(widget);
 
 } else {
 
 //Update
 
 call = widgetService.commit(new Array(widget), false);
 
 }
 
 call.addResponder( responder );
 
 }





[flexcoders] DataService gives CollectionEvents for each item when committing one item

2008-07-15 Thread Steven Toth

I have a DataService that uses the Assembler interface approach (I
subclassed AbstractAssembler).  When I update one item in the managed
Collection and commit it (autoCommit is false) I'm getting a
PropertyChangeEvent of kind UPDATE for each item in the Collection from
the DataService.  In addition I get a CollectionEvent of kind REMOVE for
each item in the Collection, then a CollectionEvent of kind ADD for each
item in the Collection from the Collection itself.

I'm assuming this is because the fill() is being called after the update
is completed.  How do I commit/update the individual item so that I only
get an event (or set of events) for the item that was modified?  Is that
possible when using a managed Collection or do I need to operate at the
individual item level.  Am I doing something wrong (or not doing
something at all) in the Assembler?

I'm very experienced with Remoting and Messaging but this is my first
time dealing with DataServices.  Any help, samples,etc.  are greatly
appreciated.  Thanks.

Here's the Assembler code...

public class MyAssembler extends AbstractAssembler {



private MyService svc = MyService.getInstance();



public Collection fill(List fillParameters) {

if (fillParameters.size() = 2) {



int fillType = FlexDataHelper.getIntPrimitive( fillParameters.get(0) );

Long companyId = FlexDataHelper.getLong( fillParameters.get(1) );



switch(fillType) {

case QueryType.ALL_WIDGETS_FOR_COMPANY:

return svc.getAllWidgets(companyId);

case QueryType.ACTIVE_WIDGETS_FOR_COMPANY_:

return svc.getActiveWidgets(companyId);

case QueryType.WIDGETS_BY_COMPANY_AND_CATEGORY:

if (fillParameters.size() == 3) {

Integer categoryId = FlexDataHelper.getInteger( fillParameters.get(2) );

return svc.getWidgets(companyId, categoryId);

}

}



}

// Throws a nice error

return super.fill(fillParameters);

}



public Object getItem(Map uid) {

return svc.getWidget( FlexDataHelper.getLong(uid.get(companyId)),
FlexDataHelper.getInteger(uid.get(widgetId)) );

}



public void createItem(Object newVersion) {

svc.saveWidget((WidgetValue)newVersion);

}



public void updateItem(Object newVersion, Object prevVersion, List
changes) {

try {

svc.saveWidget((WidgetValue)newVersion);

} catch (Exception e) {

Long companyId = ((WidgetValue)prevVersion).getCompanyId();

Integer widgetId = ((WidgetValue)prevVersion).getWidgetId();

System.err.println(*** Throwing DataSyncException when trying to save
widget =  + widgetId);

throw new DataSyncException(svc.getWidget(companyId, widgetId), null);

}

}



public void deleteItem(Object prevVersion) {

try {

svc.deleteWidget( (WidgetValue)prevVersion );

} catch (Exception e) {

Long companyId = ((WidgetValue)prevVersion).getCompanyId();

Integer widgetId = ((WidgetValue)prevVersion).getWidgetId();

System.err.println(*** Throwing DataSyncException when trying to delete
widget =  + widgetId);

throw new DataSyncException(svc.getWidget(companyId, widgetId), null);

}

}



Here's the Flex UI code...

public function getWidgetsForCompany( company:CompanyValue ):void {

var widgets:ArrayCollection = new ArrayCollection();

var call:AsyncToken = widgetService.fill(widgets,
QueryType.ALL_WIDGETS_FOR_COMPANY, company.companyId);

// Add a reference to the collection that will be filled for access by
the responder

call.useLocalData = true;

call.localData = widgets;

call.addResponder( responder );

}

public function saveWidget( widget:WidgetValue ):void {

var call:AsyncToken;

if (isNaN(widget.widgetId)) {

call = widgetService.createItem(widget);

} else {

//Update

call = widgetService.commit(new Array(widget), false);

}

call.addResponder( responder );

}



[flexcoders] Re: ANYONE? LCDS Bug? Return from overriden ServiceAdapter manage() disregarded

2008-06-27 Thread Steven Toth
I was able to recreate it in LCDS 2.6 Beta.  I'm going to try to open 
a bug report against it.  Please let me know if anyone has any ideas 
or has been able to get this to work. Thanks.

-Steven

--- In flexcoders@yahoogroups.com, Seth Hodgson [EMAIL PROTECTED] 
wrote:

 Hi Steven,
 
 Definitely let me know if you run into trouble with this on LCDS 
2.6 beta.
 
 Best,
 Seth
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Toth
 Sent: Monday, June 23, 2008 10:20 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: ANYONE? LCDS Bug? Return from overriden 
ServiceAdapter manage() disregarded
 
 Thanks, but the manage() method only gets called if you override 
the 
 handlesSubscriptions() method to return true, and in LCDS if you 
call 
 the super.manage(command) for a subscribe operation when you 
 indicated you will be handling subscriptions it throws an 
exception. 
 BlazeDS will allow you to call the super.manage(command) even with 
 handlesSubscriptions() overriden to return true, but it works even 
if 
 you don't call the super.manage(command). 
 
 For some reason LCDS 2.51 ignores the value I return from the manage
 () method. Seems like a bug. I'm trying to recreate it on LCDS 2.6 
 Beta. 
 
 If anyone has any suggestions or feedback I'd appreciate it. I 
tried 
 to file a bug report from the link on the LCDS Beta Download page 
bug 
 it told me I didn't have the correct permissions. 
 
 Regards.
 
 -Steven
 
 --- In flexcoders@yahoogroups.com, shaun shaun@ wrote:
 
  Hi,
  
  A pure 100% guess... Perhaps you need to call super.manage
 (command).
  
  
  Steven Toth wrote:
   --- In flexcoders@yahoogroups.com, Steven Toth toth82@ 
wrote:
   
  I have a custom adapter I'm using for messaging. This code 
works 
   
   in 
   
  BlazeDS, but when I try it in LiveCycle DS it does not work. 
The 
  return value (a new AckknowledgeMessage I created) from my 
   
   overriden 
   
  manage() method never makes it to the client. I see the message 
   
   from 
   
  the sysout at the end of the method populated correctly, but 
   
   whatever 
   
  is happening after this method is called and before the message 
 is 
  returned to the client overwrites what I returned. Any thoughts?
  
  public class MyMessagingAdapter extends ServiceAdapter {
   public boolean handlesSubscriptions() {
   return true;
   }
  
   public Object manage(CommandMessage command) {
   Object ret = null;
   try {
   if (command.getOperation() == 
  CommandMessage.SUBSCRIBE_OPERATION) {
   // Do something custom here... 
  
   AcknowledgeMessage msg = new 
  AcknowledgeMessage();
   ASObject body = (ASObject)msg.getBody
  ();
   if (body == null) {
   body = new ASObject();
   msg.setBody(body); 
   }
   body.put(someValue,abc);
   body.put(spmeOtherValue, def);
   ret = msg;
   }
   } catch (Throwable t) {
   System.out.println(manage(), exception 
  caught:\n + t.getMessage());
   t.printStackTrace();
   }
   System.out.println(manage(), returning msg:\n + 
  ret);
   return ret;
   }
  
   
   
   
  
 





[flexcoders] Re: LCDS and LCDS Express?

2008-06-26 Thread Steven Toth
Here's a link to the LCDS FAQ...

http://www.adobe.com/products/livecycle/dataservices/faq.html

It explains it in a little more detail, but the jist is the 
difference is the licensing costs...  LCDS Express is free, but 
limited to 1 application on 1 CPU (including in a production 
environment).  Then there are 2 additional licensing options - LCDS 
Departmental, up to 100 concurrent users (I believe the cost is 
$6,000 per CPU) and Enterprise, which is unlimited concurrent users 
(I believe the cost is $20,000 per CPU).

Depending on the use and load you may want to look into BlazeDS, 
which is an open source version of LCDS.  It has a different 
architecture that will not scale quite as well as LCDS, but depending 
on how you want to use it that may be acceptable.

Hope that helps.

Regards.

-Steven


--- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED] 
wrote:

 Hi ,
 
 I just download the LCDS Express 2.6 to try.I like it.
 
 I want to know if LCDS Express  have expired date and what is the 
 different between LCDS Express and LCDS.
 
 Do I have to pay money if I use LCDS Express for production 
enviroment?
 what is the limitatation for LCDS Express ?
 
 
 Thanks a lot
 
 
 Mark





[flexcoders] Re: Flex Web Sites Using Windows Authentication

2008-06-25 Thread Steven Toth
Once the user is logged in they have a session on the app server.  
You can have Flex call a secure resource in the webapp that could 
pull the information from session and return it to the Flex app.

How it goes about doing that would depend on the middleware (you said 
you're using CF, not too familiar with it), but a Servlet has direct 
access to the Session object and the Principal (user) for that 
session.  How I've done it in the past is have the Flex app makes a 
[parameterless] call to a secure Servlet in the webapp and the 
Servlet pulls the Principal from the Session and returns the 
username.  At that point the Servlet could also make a query based on 
the data it pulled from the session if everything you need is not 
there.  

Hope that helps.

-Steven

--- In flexcoders@yahoogroups.com, Owen West [EMAIL PROTECTED] wrote:

 Hi all,
  
 Hoping somebody can provide some assistance...
  
 In our organisation we are starting to deploy web-based 
applications built using Flex to our corporate intranet. We are a 
Microsoft shop and use Windows Server 2003 and IIS for all web site 
hosting.
  
 Currently our applications use Forms authentication (user enters 
login/password, which is checked against database and verified). What 
we would like to do is to have all of our web sites use pass-through 
authentication using Windows Domain Authentication. We have the web 
sites configured to use Integrated Windows Authentication, however  
we are not sure how we can use this level of authentication from 
within our Flex apps. 
  
 What we would like to have happen is something along the lines of:
  
 1. User browses to web site (intranet application): 
http://someapp.ourdomain 
 2. The wen site authenticates the user (in IIS) using their logged 
in Windows user credentials - domain groups will be used to control 
authorisation levels (read-only, sysadmin, etc).
 3. If the user is authenticated to use the web site, then their 
group membership is returned to the Flex application (or it looks up 
the details in Active Directory or equivalent functionality). 
Ultimately what we would want is: 
  * User Name (Domain\User)
  * Domain Group Membership(s) - Domain group memberships will 
control access to resources in the Flex application - only members of 
the application's SysAdmin group will see system admin functions, etc
  * Any other relevant details from Windows Active Directory - 
possibly home folder location (shared folders), etc.
  
 All this should occur seamlessly without the user having to type 
user names/passwords. Our ultimate goal is to have single sign-on 
across the organisation.
  
 We currently have points 1 and 2 operating, however it is the Flex 
part that is causing some troubles. Mainly - can we retrieve the 
Logged In user name from the client (Domain\User) - we only want the 
name, not the password. We use ColdFusion (v8) as our middleware, so 
once we have this we can call CFLDAP tags to integrate with Active 
Directory, the main problem at the moment is getting the client's 
logged on user name.
  
 Hoping somebody can help.
  
  
  
 Owen West  M.SysDev (C.Sturt) MCP MCAD MCSD
 Computer Programmer 
 Applications Development Team
 Information Technology  Telecommunications
 Hunter New England Health
 Ph: (02) 4921 4194
 Fax: (02) 4921 4191
 Email: [EMAIL PROTECTED]





[flexcoders] ANYONE? LCDS Bug? Return from overriden ServiceAdapter manage() disregarded

2008-06-23 Thread Steven Toth
--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote:

 I have a custom adapter I'm using for messaging.  This code works 
in 
 BlazeDS, but when I try it in LiveCycle DS it does not work. The 
 return value (a new AckknowledgeMessage I created) from my 
overriden 
 manage() method never makes it to the client.  I see the message 
from 
 the sysout at the end of the method populated correctly, but 
whatever 
 is happening after this method is called and before the message is 
 returned to the client overwrites what I returned.  Any thoughts?
 
 public class MyMessagingAdapter extends ServiceAdapter {
   public boolean handlesSubscriptions() {
   return true;
   }
 
   public Object manage(CommandMessage command) {
   Object ret = null;
   try {
   if (command.getOperation() == 
 CommandMessage.SUBSCRIBE_OPERATION) {
// Do something custom here... 
 
   AcknowledgeMessage msg = new 
 AcknowledgeMessage();
   ASObject body = (ASObject)msg.getBody
 ();
   if (body == null) {
   body = new ASObject();
   msg.setBody(body);  
   }
   body.put(someValue,abc);
   body.put(spmeOtherValue, def);
   ret = msg;
   }
   } catch (Throwable t) {
   System.out.println(manage(), exception 
 caught:\n + t.getMessage());
   t.printStackTrace();
   }
   System.out.println(manage(), returning msg:\n + 
 ret);
   return ret;
   }





[flexcoders] Re: ANYONE? LCDS Bug? Return from overriden ServiceAdapter manage() disregarded

2008-06-23 Thread Steven Toth
Thanks, but the manage() method only gets called if you override the 
handlesSubscriptions() method to return true, and in LCDS if you call 
the super.manage(command) for a subscribe operation when you 
indicated you will be handling subscriptions it throws an exception.  
BlazeDS will allow you to call the super.manage(command) even with 
handlesSubscriptions() overriden to return true, but it works even if 
you don't call the super.manage(command).  

For some reason LCDS 2.51 ignores the value I return from the manage
() method.  Seems like a bug.  I'm trying to recreate it on LCDS 2.6 
Beta.  

If anyone has any suggestions or feedback I'd appreciate it.  I tried 
to file a bug report from the link on the LCDS Beta Download page bug 
it told me I didn't have the correct permissions.  

Regards.

-Steven



--- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote:

 Hi,
 
 A pure 100% guess...  Perhaps you need to call super.manage
(command).
 
 
 Steven Toth wrote:
  --- In flexcoders@yahoogroups.com, Steven Toth toth82@ wrote:
  
 I have a custom adapter I'm using for messaging.  This code works 
  
  in 
  
 BlazeDS, but when I try it in LiveCycle DS it does not work. The 
 return value (a new AckknowledgeMessage I created) from my 
  
  overriden 
  
 manage() method never makes it to the client.  I see the message 
  
  from 
  
 the sysout at the end of the method populated correctly, but 
  
  whatever 
  
 is happening after this method is called and before the message 
is 
 returned to the client overwrites what I returned.  Any thoughts?
 
 public class MyMessagingAdapter extends ServiceAdapter {
 public boolean handlesSubscriptions() {
 return true;
 }
 
 public Object manage(CommandMessage command) {
 Object ret = null;
 try {
 if (command.getOperation() == 
 CommandMessage.SUBSCRIBE_OPERATION) {
  // Do something custom here... 
 
 AcknowledgeMessage msg = new 
 AcknowledgeMessage();
 ASObject body = (ASObject)msg.getBody
 ();
 if (body == null) {
 body = new ASObject();
 msg.setBody(body);  
 }
 body.put(someValue,abc);
 body.put(spmeOtherValue, def);
 ret = msg;
 }
 } catch (Throwable t) {
 System.out.println(manage(), exception 
 caught:\n + t.getMessage());
 t.printStackTrace();
 }
 System.out.println(manage(), returning msg:\n + 
 ret);
 return ret;
 }
 
  
  
  
 





[flexcoders] LCDS Bug - return from overriden ServiceAdapter manage() does not get to client

2008-06-21 Thread Steven Toth
I have a custom adapter I'm using for messaging.  This code works in 
BlazeDS, but when I try it in LiveCycle DS it does not work. The 
return value (a new AckknowledgeMessage I created) from my overriden 
manage() method never makes it to the client.  I see the message from 
the sysout at the end of the method populated correctly, but whatever 
is happening after this method is called and before the message is 
returned to the client overwrites what I returned.  Any thoughts?

public class MyMessagingAdapter extends ServiceAdapter {
public boolean handlesSubscriptions() {
return true;
}

public Object manage(CommandMessage command) {
Object ret = null;
try {
if (command.getOperation() == 
CommandMessage.SUBSCRIBE_OPERATION) {
 // Do something custom here... 

AcknowledgeMessage msg = new 
AcknowledgeMessage();
ASObject body = (ASObject)msg.getBody
();
if (body == null) {
body = new ASObject();
msg.setBody(body);  
}
body.put(someValue,abc);
body.put(spmeOtherValue, def);
ret = msg;
}
} catch (Throwable t) {
System.out.println(manage(), exception 
caught:\n + t.getMessage());
t.printStackTrace();
}
System.out.println(manage(), returning msg:\n + 
ret);
return ret;
}




[flexcoders] Re: Problems with Sound objects - is this a bug?

2007-05-11 Thread Steven Toth
Clarification - I am setting the volume of SoundTransform of the 
SoundChannel returned from the play() method of the Sound object to 0 
(by creating a new SoundTransform with volume 0), and the audio from 
each Sound object does seem to mute (as I hear the track fade out), but 
the 2nd track's audio can still be heard and the only way to mute it is 
via the SoundMixer's SoundTransform.  It seems like there are 3 
SoundChannels, with the 1st mp3 being opened on one and the 2nd mp3 
being opened on two, but I'm only creating the 1st, and one of the 
2nd.  Is there a global channel?  And if so can I mute that so that I 
only hear the two I'm creating?  Any help would be appreciated.  I'm 
trying to determine if this is a bug or if I'm missing something.  

Thanks.

-Steven


--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote:

 I'm have 2 Sound objects I use to play 2 mp3 files at the same time.  
 However, when I set the volume of the SoundTransform objects for each 
 of the SoundChannel's belonging to the Sound objects I still get 
audio 
 from one of the mp3s.  It is only when I set the volume of the 
 SoundTransform of the SoundMixer object to zero that I get no audio.  
 
 I need to be able to mute individual tracks, but can't seem to do 
it.  
 Is this a bug, or am I missing something.
 
 Thanks.
 
 -Steven





[flexcoders] Problems with Sound objects

2007-05-10 Thread Steven Toth
I'm have 2 Sound objects I use to play 2 mp3 files at the same time.  
However, when I set the volume of the SoundTransform objects for each 
of the SoundChannel's belonging to the Sound objects I still get audio 
from one of the mp3s.  It is only when I set the volume of the 
SoundTransform of the SoundMixer object to zero that I get no audio.  

I need to be able to mute individual tracks, but can't seem to do it.  
Is this a bug, or am I missing something.

Thanks.

-Steven 



[flexcoders] FDS - java.lang.NoClassDefFoundError: flex/messaging/security/TomcatLoginHolder

2007-04-17 Thread Steven Toth
I recently need to upgrade our server that was running Apache, 
Tomcat, and Flex on Windows 2000.  We needed to upgrade the OS to 
Windows 2003, as well as the versions of Apache (now 2.2.4.0) and 
Tomcat (now 5.5.23.0).  I have installed and configured everything.  
It's running via Basic Auth over HTTPS using the secure-amf channel.  
However, there is one problem, FDS no longer works.  The error I get 
in the log is...

2007-04-17 22:56:47,005 [TP-Processor3] ERROR 
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ens-
flex].[MessageBrokerServlet]  - Servlet.service() for servlet 
MessageBrokerServlet threw exception
java.lang.NoClassDefFoundError: 
flex/messaging/security/TomcatLoginHolder
at flex.messaging.security.TomcatLoginCommand.doAuthentication
(TomcatLoginCommand.java:46)
at flex.messaging.security.LoginManager.login
(LoginManager.java:138)
at 
flex.messaging.services.AuthenticationService.decodeAndLogin
(AuthenticationService.java:88)
at flex.messaging.MessageBrokerServlet.service
(MessageBrokerServlet.java:318)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:860)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:151)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke
(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke
(ChannelSocket.java:773)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:703)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
(ChannelSocket.java:895)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)


I've not been able to locate this in any of the Flex jars (hence the 
NoClassDefFoundException), but this version of Flex worked with the 
previous versions of Apache and Tomcat on Windows 2000.  The kicker 
is the same configuration works on my laptop on XP (can't locate the 
class there either).

I'm at a loss.  Google returns no results for the class name 
(TomcatLoginHolder).  Any help would be appreciated.

Thanks.

-Steven




[flexcoders] Re: FDS - java.lang.NoClassDefFoundError: flex/messaging/security/TomcatLoginHolder

2007-04-17 Thread Steven Toth
Yes that was it.  Was actually coming back to update my own post when 
I saw your reply.  Funny thing is I didn't need to do it on XP, and 
didn't need to do it on previous configuration.  Anyhow, works now, 
thanks for the info.

Regards. 

-Steven


--- In flexcoders@yahoogroups.com, Robert Cadena [EMAIL PROTECTED] wrote:

 The class is in the file:
 
 C:\fds2\resources\security\tomcat\flex-tomcat-common.jar
 
 the readme.txt file in that directory will tell you where to put 
the files.
 
 Hope that helps
 
 /r
 
 http://www.searchcoders.com/flex
 http://www.laflex.org - Los Angeles Flex Users Group
 
 Steven Toth wrote:
  I recently need to upgrade our server that was running Apache, 
  Tomcat, and Flex on Windows 2000.  We needed to upgrade the OS to 
  Windows 2003, as well as the versions of Apache (now 2.2.4.0) and 
  Tomcat (now 5.5.23.0).  I have installed and configured 
everything.  
  It's running via Basic Auth over HTTPS using the secure-amf 
channel.  
  However, there is one problem, FDS no longer works.  The error I 
get 
  in the log is...
  
  2007-04-17 22:56:47,005 [TP-Processor3] ERROR 
  org.apache.catalina.core.ContainerBase.[Catalina].[localhost].
[/ens-
  flex].[MessageBrokerServlet]  - Servlet.service() for servlet 
  MessageBrokerServlet threw exception
  java.lang.NoClassDefFoundError: 
  flex/messaging/security/TomcatLoginHolder
  at flex.messaging.security.TomcatLoginCommand.doAuthentication
  (TomcatLoginCommand.java:46)
  at flex.messaging.security.LoginManager.login
  (LoginManager.java:138)
  at 
  flex.messaging.services.AuthenticationService.decodeAndLogin
  (AuthenticationService.java:88)
  at flex.messaging.MessageBrokerServlet.service
  (MessageBrokerServlet.java:318)
  at javax.servlet.http.HttpServlet.service
  (HttpServlet.java:860)
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
  (ApplicationFilterChain.java:269)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter
  (ApplicationFilterChain.java:188)
  at org.apache.catalina.core.StandardWrapperValve.invoke
  (StandardWrapperValve.java:210)
  at org.apache.catalina.core.StandardContextValve.invoke
  (StandardContextValve.java:174)
  at org.apache.catalina.core.StandardHostValve.invoke
  (StandardHostValve.java:127)
  at org.apache.catalina.valves.ErrorReportValve.invoke
  (ErrorReportValve.java:117)
  at org.apache.catalina.core.StandardEngineValve.invoke
  (StandardEngineValve.java:108)
  at org.apache.catalina.connector.CoyoteAdapter.service
  (CoyoteAdapter.java:151)
  at org.apache.jk.server.JkCoyoteHandler.invoke
  (JkCoyoteHandler.java:200)
  at org.apache.jk.common.HandlerRequest.invoke
  (HandlerRequest.java:283)
  at org.apache.jk.common.ChannelSocket.invoke
  (ChannelSocket.java:773)
  at org.apache.jk.common.ChannelSocket.processConnection
  (ChannelSocket.java:703)
  at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
  (ChannelSocket.java:895)
  at 
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
  (ThreadPool.java:685)
  at java.lang.Thread.run(Thread.java:595)
  
  
  I've not been able to locate this in any of the Flex jars (hence 
the 
  NoClassDefFoundException), but this version of Flex worked with 
the 
  previous versions of Apache and Tomcat on Windows 2000.  The 
kicker 
  is the same configuration works on my laptop on XP (can't locate 
the 
  class there either).
  
  I'm at a loss.  Google returns no results for the class name 
  (TomcatLoginHolder).  Any help would be appreciated.
  
  Thanks.
  
  -Steven
  
  
  
  
  --
  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] Strange behavior with Apache/Tomcat over SSL

2007-02-26 Thread Steven Toth
I have Apache and Tomcat integrated using mod_jk (ajp13).  I also 
have mod_ssl loaded in Apache.  I have a web application in Tomcat 
that is protected via forms authentication.  The Main page of the web 
application displays a Flex app.

Everything works fine over HTTP, I'm prompted to authenticate and 
after I do the Flex app displays.  The strange thing is when I try it 
over HTTPS.  I get prompted to authenticate, and after I do I get the 
page that contains the Flex app, but no Flex app.  The Flash Player 
context menu is available (in IE it indicates the movie not 
loaded...), but not my app.  

When I look at the log file for Apache it indicates all the auxiliary 
files were returned OK (HTTP 200), but the SWF was not (HTTP 400).  
Not sure why, but it returns 16K for the request even though the move 
is 400K.  Any thoughts?  I'm at a loss.  Here's the log entries...

Thanks.

-Steven

127.0.0.1 - - [26/Feb/2007:16:32:50 -0500] GET /MyWebApp/app/ 
HTTP/1.1 200 1250
127.0.0.1 - - [26/Feb/2007:16:32:56 -
0500] POST /MyWebApp/app/j_security_check;jsessionid=548A2CA7D771101D
218AEA5F4618D9E7 HTTP/1.1 302 -

127.0.0.1 - - [26/Feb/2007:16:32:58 -0500] GET /MyWebApp/app/ 
HTTP/1.1 200 4237
127.0.0.1 - - [26/Feb/2007:16:32:58 -
0500] GET /MyWebApp/app/AC_OETags.js HTTP/1.1 200 7826
127.0.0.1 - - [26/Feb/2007:16:32:58 -
0500] GET /MyWebApp/app/history.js HTTP/1.1 200 1292
127.0.0.1 - - [26/Feb/2007:16:32:58 -
0500] GET /MyWebApp/app/MyFlexApp.swf HTTP/1.1 400 16368
127.0.0.1 - - [26/Feb/2007:16:32:58 -
0500] GET /MyWebApp/app/history.htm HTTP/1.1 200 1272
127.0.0.1 - - [26/Feb/2007:16:32:58 -
0500] GET /MyWebApp/app/history.swf HTTP/1.1 200 2656




[flexcoders] Why doesn't Flash/Flex allow Basic Auth for uploads?

2007-02-11 Thread Steven Toth
I'm working on an application that's on a development server that is 
secured via Basic Auth over HTTPs.  The application has an upload 
feature that will not work on the development server because Flash/Flex 
does not allow authentication for uploads...

Here's an excerpt from the SDK documentation of the 
flash.net.FileReference class (that is being used to upload files)...

Note: If your server requires user authentication, only SWF files 
running in a browser — that is, using the browser plug-in or ActiveX 
control — can provide a dialog box to prompt the user for a username 
and password for authentication, and only for downloads. For uploads 
using the plug-in or ActiveX control, or for uploads and downloads 
using the stand-alone or external player, the file transfer fails.

Any input or workarounds would be appreciated.  Thanks.

-Steven



[flexcoders] Re: Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-12-01 Thread Steven Toth
I apologise.   The literal name of it is Microsoft Windows XP 
Tablet PC Edition 2005.  Here is the url to the product page on 
Microsoft's site.  Thanks.

-Steven

http://www.microsoft.com/windowsxp/tabletpc/evaluation/overviews/defa
ult.mspx

--- In flexcoders@yahoogroups.com, Chris Hill [EMAIL PROTECTED] wrote:

 AFAIK there is no Windows 2005 Tablet PC edition. I am running 
Windows 
 XP Tablet PC edition on this computer, is that what you're talking 
 about? Or are you perhaps running Vista on a Tablet PC?
 
 
 John Dowdell wrote:
 
  Steven Toth wrote:
   Has any testing been done of the Flash Player 9 on Windows 
2005 Tablet
   PC edition? When running our application under Flash Player 7 
it
   responded as expected. However, Flash Player 9 is responding 
poorly to
   pen gestures such as textInput focus and double click. We 
filed a bug
   report and the Adobe rep. that contacted us didn't know what 
Windows
   2005 Tablet PC edition was and wasn't sure how to help us. Any 
help
   would be greatly appreciated. Thanks.
 
  I'm pulling up 18 Google references to search phrase Windows 
2005
  Tablet PC... variant phrases don't return good results either. 
Is there
  another label I should be searching on to find others' 
experience with
  similar machines...?
 
  tx,
  jd
 
  -- 
  John Dowdell . Adobe Developer Support . San Francisco CA USA
  Weblog: http://weblogs.macromedia.com/jd 
  http://weblogs.macromedia.com/jd
  Aggregator: http://weblogs.macromedia.com/mxna 
  http://weblogs.macromedia.com/mxna
  Technotes: http://www.macromedia.com/support/ 
  http://www.macromedia.com/support/
  Spam killed my private email -- public record is best, thanks.
 
 





[flexcoders] Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-11-30 Thread Steven Toth
Has any testing been done of the Flash Player 9 on Windows 2005 Tablet 
PC edition? When running our application under Flash Player 7 it 
responded as expected.  However, Flash Player 9 is responding poorly to 
pen gestures such as textInput focus and double click.  We filed a bug 
report and the Adobe rep. that contacted us didn't know what Windows 
2005 Tablet PC edition was and wasn't sure how to help us.  Any help 
would be greatly appreciated.  Thanks.

-Steven



[flexcoders] Re: FlexSessionListener sessionDestroyed() doesn't get called when using polling

2006-11-16 Thread Steven Toth
That doesn't seem consistent with what I see in RTMP.  In RTMP, as 
soon as I close the browser I get the sessionDestroyed() method of 
the listener called, not after the session times out.  I understand 
that with polling the application is pinging, but why must I wait for 
the session timeout to get notification, it's not timing out with 
RTMP.  Is it that since closing the application closes the underlying 
socket connection (which the server would be aware of) in RTMP is 
triggering the sessionDestroyed() method call, whereas with polling 
there is no trigger on the server because there is no static 
connection???  Therefore, I cannot depend on the sessionDestroyed() 
method to be called immediately after the application is closed.  

I originally used the Flex-Ajax Bridge to have the JavaScript 
beforeUnload event call a method on the Flex app, which would then 
delete the session (remove it from the collection of session objects 
managed by the DataService).  It was working, but a little tedious.  
The FlexSessionListener seemed like a much cleaner implementation.  

Would you agree I need to go back to my original solution since I 
require immediate notification of the application closing?

Thanks for your help.

Regard. 

-Steven

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 What I mean is that as long as your flex app is running in a 
browser it
 will be pinging the server, therefore the session won't expire.  You
 need the app to not be running for the length of the timeout before 
the
 server will think the session ended.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Wednesday, November 15, 2006 7:30 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: FlexSessionListener sessionDestroyed() 
doesn't
 get called when using polling
 
  
 
 Yes, 20 minutes. I'm not sure I follow you when you say Make sure 
 to close the app down too. Could you elaborate? Is there something 
 I'm not doing that would correct the FlexSessionListener 
 sessionDestroyed() method not getting called when I'm using 
polling? 
 Thanks. 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  How long is your app server configured to hold onto sessions? 
 Should be
  something like 15-20 minutes of no activity by default before the
  session is destroyed. Make sure to close the app down too because
  polling will just keep the session alive.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of Steven Toth
  Sent: Tuesday, November 14, 2006 7:38 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] FlexSessionListener sessionDestroyed() 
 doesn't get
  called when using polling
  
  
  
  I have a Java class that extends AbstractAssembler and implements 
  FlexSessionListener. When I configure the destination to use RTMP 
 it 
  works fine. If I change it to use a Secure AMF channel with 
polling 
  turned on the FlexSessionListener sessionDestroyed() method never 
 gets 
  called. I tried changing the polling interval from 8 seconds to 1 
  second and the method still never gets invoked.
  
  I'm pretty sure this is a bug. Any thoughts or suggestions?
 






[flexcoders] Re: FlexSessionListener sessionDestroyed() doesn't get called when using polling

2006-11-16 Thread Steven Toth
I'm not using only polling.  Polling is least desirable alternative 
for those cleints behind firewalls they cannot change.  The Unload 
event was not consistent, but the beforeUnload was.  Given I can't 
change the session timeout, and I can't gaurantee the users won't 
just close the browser, I don't see any other option but to use 
JavaScript and the bridge.  

Thanks for your assistance.

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 RTMP is a stateful connection, the server has an open connection 
to the
 client.  When the browser is closed that connection is severed and 
the
 server is immediately aware that the client is gone.  In HTTP a
 connection is stateless, the server does not keep a persistent
 connection, so it has to rely on the timeout to decide that a 
client no
 longer exists.  If you are polling and know that this is the only 
thing
 that will be hitting your app server you could change the timeout 
to
 something very low (maybe 3 times the poll interval) and you would 
get
 the disconnect pretty soon after the client stopped pinging the 
server.
 
  
 
 The unload event in the browser is unreliable because you can't be
 guaranteed that the call to the server will complete before the 
browser
 shuts down.  Timeout is really your best bet with HTTP.
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Thursday, November 16, 2006 1:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: FlexSessionListener sessionDestroyed() 
doesn't
 get called when using polling
 
  
 
 That doesn't seem consistent with what I see in RTMP. In RTMP, as 
 soon as I close the browser I get the sessionDestroyed() method of 
 the listener called, not after the session times out. I understand 
 that with polling the application is pinging, but why must I wait 
for 
 the session timeout to get notification, it's not timing out with 
 RTMP. Is it that since closing the application closes the 
underlying 
 socket connection (which the server would be aware of) in RTMP is 
 triggering the sessionDestroyed() method call, whereas with 
polling 
 there is no trigger on the server because there is no static 
 connection??? Therefore, I cannot depend on the sessionDestroyed() 
 method to be called immediately after the application is closed. 
 
 I originally used the Flex-Ajax Bridge to have the JavaScript 
 beforeUnload event call a method on the Flex app, which would then 
 delete the session (remove it from the collection of session 
objects 
 managed by the DataService). It was working, but a little tedious. 
 The FlexSessionListener seemed like a much cleaner implementation. 
 
 Would you agree I need to go back to my original solution since I 
 require immediate notification of the application closing?
 
 Thanks for your help.
 
 Regard. 
 
 -Steven
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Matt Chotin mchotin@ wrote:
 
  What I mean is that as long as your flex app is running in a 
 browser it
  will be pinging the server, therefore the session won't expire. 
You
  need the app to not be running for the length of the timeout 
before 
 the
  server will think the session ended.
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of Steven Toth
  Sent: Wednesday, November 15, 2006 7:30 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Re: FlexSessionListener sessionDestroyed() 
 doesn't
  get called when using polling
  
  
  
  Yes, 20 minutes. I'm not sure I follow you when you say Make 
sure 
  to close the app down too. Could you elaborate? Is there 
something 
  I'm not doing that would correct the FlexSessionListener 
  sessionDestroyed() method not getting called when I'm using 
 polling? 
  Thanks. 
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
 40yahoogroups.com
  , Matt Chotin mchotin@ wrote:
  
   How long is your app server configured to hold onto sessions? 
  Should be
   something like 15-20 minutes of no activity by default before 
the
   session is destroyed. Make sure to close the app down too 
because
   polling will just keep the session alive.
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
 40yahoogroups.com
  
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
 40yahoogroups.com
  ] On
   Behalf Of Steven Toth
   Sent: Tuesday, November 14, 2006 7:38 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 mailto:flexcoders%
 40yahoogroups.com 
   Subject: [flexcoders] FlexSessionListener

[flexcoders] ATTN: Adobe Re: Does FDS project have to compile on the server?

2006-11-01 Thread Steven Toth
Here is the command line for the compiler (taken from FlexBuilder):

-services C:\dev\flex\fds2\jrun4\servers\default\flex\WEB-
INF\flex\services-config.xml -locale en_US  -context-root=/flex

Here's the channel definition:

channel-definition id=my-rtmp-ext 
class=mx.messaging.channels.RTMPChannel
endpoint uri=rtmp://{server.name}:2038 
class=flex.messaging.endpoints.RTMPEndpoint/
properties
idle-timeout-minutes20/idle-timeout-minutes
client-to-server-maxbps100K/client-to-server-
maxbps
server-to-client-maxbps100K/server-to-client-
maxbps
!-- for deployment on WebSphere, must be mapped to 
a WorkManager available in the web application's jndi context.
websphere-workmanager-jndi-
namejava:comp/env/wm/MessagingWorkManager/websphere-workmanager-
jndi-name
--
/properties
/channel-definition

The local URL is:

http://127.0.0.1:8700/flex/MyApp/MyApp.html


When I hardcode the server name it works (although intermittenly).

Yes, the logging is set up to monitor the traffic.  However, when I 
was getting the error, it was showing up on the client indicating 
the RTMP connection cold not be established, not on the server.  As 
I mentioned, hardcoding the server name somewhat corrects the 
issue.  Thanks.



--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:

 Note that context roots should not be used in RTMPChannels so in 
this case it shouldn't be a factor here... the context root is only 
a consideration for HTTP based endpoints that are housed in J2EE web 
applications, such as the HTTPChannel or AMFChannel which use a 
servlet to accept requests.
  
 That said, however, yes, people often forget that they have a 
{context-root} token in the channel-definition endpoint and don't 
let the compiler know what this token should be. The channel can't 
reliably work out what this value is at runtime so it must be 
specified at compile time either in the manner Dirk describes, or in 
the flex-config.xml file under the compiler settings as a context-
root entry.
  
 Pete
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann
 Sent: Tuesday, October 24, 2006 3:18 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] ATTN: Adobe Re: Does FDS project have to 
compile on the server?
 
 
 
 I also encountered this in a project that uses RemoteObject. I 
always ended up getting error that /messagebroker/amf wasnot found. 
After looking at the runtime channel information I realized that the 
context root was not included in the endpoint URL (e.g. instead of 
http://foo.bar.com/flex/messagebroker/amf 
http://foo.bar.com/flex/messagebroker/amf  Flex tried to connect 
to http://foo.bar.com/messagebroker/amf 
http://foo.bar.com/messagebroker/amf )
  
 I solved this by adding this by hand as a compiler flag, i.e.
  
   -context-root=/flex
  
 and then it worked fine.
  
 Dirk.
 
 
 
 
   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland
   Sent: Tuesday, October 24, 2006 5:17 AM
   To: flexcoders@yahoogroups.com
   Subject: RE: [flexcoders] ATTN: Adobe Re: Does FDS project 
have to compile on the server?
   
   
   The error below indicates that RTMPChannel failed during 
connect. Can you list the command line to mxmlc that you're running, 
and more importantly the channel-definition for the RTMPChannel that 
is referenced by the data management service destination? Also, what 
URL are you using to load the SWF locally? Have you tried 
replacing tokens in the channel-definition endpoint URL, such as 
{server.name}, with hard coded values?

   Do you know how to monitor endpoint traffic by turning on 
debug level logging on for the Endpoint.* categories and monitoring 
the server logs?

   Pete
 
 
 
   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Toth
   Sent: Monday, October 23, 2006 9:10 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] ATTN: Adobe Re: Does FDS project have 
to compile on the server?
   
   
 
   Has anyone from Adobe weighed in on this? I'm able to 
duplicate the 
   problem. I have a two projects that use the Data Management 
Service 
   over RTMP. One is compiled locally and does not work (same 
error as 
   below). The other is compiled on the server with the same 
   paramters/configuration and works. Thanks.
   
   -Steven
   
   --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com , Allen Riddle ariddle@ 
   wrote:
   
Thanks for your help. I do have the entry pointed to my 
services-
   config.xml file, and application is even able to find my 
Data 
   Service

[flexcoders] Is it possible to setup polling amf over HTTPS?

2006-11-01 Thread Steven Toth
I'm using a SecureAMFChannel for Remoting, but also need to use a 
DataService.  I have a RTMPChannel that I'm going to switch over to 
SecureRTMPChannel, but have some users behind proxies.  I want to 
setup a polling amf channel over HTTPS as a secondary channel.  I 
haven't been able to find any documentation on whather it can be done, 
and if so, hwo to do it?  I know the polling amf over HTTP uses the 
AMFChannel with the amfpolling endpoint.  What's the channel type and 
endpoint for a HTTPS polling amf channel???  Thanks.

-Steven




--
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] ATTN: Adobe Re: Does FDS project have to compile on the server?

2006-10-23 Thread Steven Toth
Has anyone from Adobe weighed in on this?  I'm able to duplicate the 
problem.  I have a two projects that use the Data Management Service 
over RTMP.  One is compiled locally and does not work (same error as 
below).  The other is compiled on the server with the same 
paramters/configuration and works.  Thanks.

-Steven


--- In flexcoders@yahoogroups.com, Allen Riddle [EMAIL PROTECTED] 
wrote:

 Thanks for your help. I do have the entry pointed to my services-
config.xml file, and application is even able to find my Data 
Service destination (in this case, it's a Hibernate entity). But 
when I try to call the fill method, I get:
 
  
 
 [RPC Fault faultString=Send failed 
faultCode=Client.Error.MessageSend 
faultDetail=Channel.Connect.Failed error null]
 
 at 
mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/intern
al::dispatchFaultEvent()
 
 at ::DataListRequestResponder/fault()
 
 at mx.rpc::AsyncRequest/fault()
 
 at mx.messaging::ChannelSet/::faultPendingSends()
 
 at mx.messaging::ChannelSet/channelFaultHandler()
 
 at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE
ventFunction()
 
 at flash.events::EventDispatcher/dispatchEvent()
 
 at 
mx.messaging::Channel/mx.messaging:Channel::connectFailed()
 
 at 
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCh
annel::connectFailed()
 
 at 
mx.messaging.channels::RTMPChannel/mx.messaging.channels:RTMPChannel:
:statusHandler()
 
  
 
 I do not get this when I have it compiled on the server at run 
time.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas
 Sent: Thursday, October 19, 2006 8:38 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Does FDS project have to compile on the 
server?
 
  
 
 Below is the command we use to pre-compile our Flex app that uses 
FDS. Just like Peter said you just need to specify the services 
option and thats it. Hope my example helps.
 
  
 
 exec executable=${FLEX2_COMPILER} 
dir=${BUILD} 
vmlauncher=false
failonerror=true
arg value=-incremental=true /
arg value=-context-root=/billing/
arg value=-locale=en_US/
arg value=-source-path=WEB-INF/flex/locale/en_US/
arg value=-services=WEB-INF/flex/services-config.xml/
arg value=billing.mxml /
 /exec
 
  
 
 Dimitrios Gianninas
 
 RIA Developer
 
 Optimal Payments Inc.
 
  
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle
 Sent: Thursday, October 19, 2006 6:09 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Does FDS project have to compile on the 
server?
 
 I do have that entry in there. Can't figure it out.
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland
 Sent: Thursday, October 19, 2006 4:53 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Does FDS project have to compile on the 
server?
 
 You can precompile any Flex 2 app, including FDS apps. You need to 
point Flex Builder 2 (or the command line compiler if using mxmlc 
directly) to the /WEB-INF/flex/services-config.xml file at compile 
time. You can either do this using the services option under the 
compiler section of flex-config.xml or using a command line 
argument --services=c:/path/to/web/application/WEB-INF/flex/services-
config.xml
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle
 Sent: Thursday, October 19, 2006 5:42 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Does FDS project have to compile on the 
server?
 
 In my Data Services project, do I have to choose the option to 
compile the application on the server vs. pre-compiling it if I want 
to use Data Management Services? It's the only way I could get it to 
work. When I do a pre-compiled swf, I'm unable to make an RTMP 
connection.
 
 Allen Riddle
 
 Sofware Development
 
 x3217
 
 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 

[flexcoders] Location of Flex Data Service Load Test Tool???

2006-10-15 Thread Steven Toth
I just finished the Adobe whitepaper on Flex Data Services Capacity 
Planning: 
http://www.adobe.com/products/flex/whitepapers/pdfs/flex2wp_fdscapacity
planning.pdf

I have the MS Web Application Stress Tool, anyonw know where to get 
the Flex Data Service Load Test Tool repeatedly mentioned in the 
whitepaper?  No luck googling it.

Thx, Steven  




--
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] Re: Choice of backend systems - which provides best functionality

2006-08-23 Thread Steven Toth
I think one thing not given enough consideration in this discussion is 
cost.  We've been developing an enterprise-type application in Flex 2 
and initially chose to use AMF Remoting.  At the time, the licensing 
costs were not available.  However, now that we know it will cost us 
$20K per CPU for unlimited connections we're reconsidering.  
Webservices provide a nice alternative, but the marshalling/compression 
done by the AMF engine between AS and Java is very powerful.  We've yet 
to start evaluating the third party products, so I can't speak to them 
yet.

-Steven


--- In flexcoders@yahoogroups.com, rhlarochelle [EMAIL PROTECTED] 
wrote:

 I am new to Flex 2, and have the opportunity to develop a new
 application. Given all of the choices of back end technology out there
 (J2EE, Coldfusion, PHP), which will provide for the richest user
 experience?
 
 It seems that leveraging J2EE and Java gives the best potential for
 sharing objects (and updates to objects ) over the wire. Have I got
 this right?











--
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] Issue with drawing on UIComponent

2006-08-22 Thread Steven Toth
I'm subclassing UIComponent and want to draw a lines around certain 
edges (a pseudoborder), however when I use the graphics object to 
draw the lines from the upper left corner (0, 0) to the lower left 
corner (0, unscaledHeight) in updateDisplayList() the line shows up a 
pixel 1 (i.e. I see the UIComponent background on the outside [left] 
of the line).  Event hough it should be relevant since I'm drawing 
and not adding child controls I've tried setting all the styles I 
could think of that might be impacting where the line appears (such 
as paddingLeft, leading, borderStyle, borderThickness, etc).  
However, the line still shows up with the UIComponent background on 
the outside of it.  This also occurs on the top of the control, but 
not of the right or bottom.  Here's is sample code to reproduce the 
issue.  Anybody have any ideas?


package samples
{
import mx.core.UIComponent;

public class UIComponentControl extends UIComponent {
public function UIComponentControl() {
super();
opaqueBackground = 0xff0;
}

protected override function updateDisplayList
(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, 
unscaledHeight);

graphics.clear();
graphics.lineStyle(1, 0x00ff00);
graphics.moveTo(0, 0);
graphics.lineTo(0, unscaledHeight);
graphics.lineTo(unscaledWidth, 
unscaledHeight);
graphics.lineTo(unscaledWidth, 0);
graphics.lineTo(0, 0);
}
}
}





--
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: Problem with drawn lines appearing outside the bounds of container on resize.

2006-06-07 Thread Steven Toth
Can anyone comment?  Anyone from Adobe have any insight?  Thanks.

--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] 
wrote:

 I have a Canvas that I'm drawing on using the graphics.lineTo() 
method 
 of the Canvas. When I resize the browser window so the the Canvas 
gets 
 smaller the lines that were in the Canvas now extend outside the 
bounds 
 of the Canvas and show on other containers.  The only thing I have 
been 
 able to do to remove them is to call the graphics.clear() of the 
 Canvas.  The clipContent property of the Canvas is set to true and 
it 
 still shows the lines outside of the bounds of the Canvas.  Is 
this 
 expected behavior?  What needs to be done to have the lines drawn 
on 
 the Canvas resize with the Canvas to stay contained within the 
bounds 
 of the Canvas?  I expected that to happen by default.  I'm using 
Flex 2 
 Beta 3.
 
 Thanks.
 
 -Steven







 Yahoo! Groups Sponsor ~-- 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/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: Beta3 BUG: Date.parse does not work with XML format (YYYY-MM-DDThh:mm:ss) string

2006-06-07 Thread Steven Toth
Can Adobe confirm this is a bug?  Thanks.

--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] 
wrote:

 My WebSerivce returns a date string in the XML Date format (-
MM-
 DDThh:mm:ss).  Calling Date.parse() to convert it to a Number (a 
Number 
 representing the milliseconds elapsed since January 1, 1970, UTC) 
 always return NaN.  According to the Flex docs for Beta3 this 
format is 
 supported by the Date.parse() method. 
 
 I also tried appending different timezone abbreviations (GMT, PST, 
and 
 EST) to provide the full date string (-MM-DDThh:mm:ssTZD).
 
 -Steven







 Yahoo! Groups Sponsor ~-- 
Home is just a click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/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] Problem with drawn lines appearing outside the bounds of container on resize.

2006-06-02 Thread Steven Toth



I have a Canvas that I'm drawing on using the graphics.lineTo() method 
of the Canvas. When I resize the browser window so the the Canvas gets 
smaller the lines that were in the Canvas now extend outside the bounds 
of the Canvas and show on other containers. The only thing I have been 
able to do to remove them is to call the graphics.clear() of the 
Canvas. The clipContent property of the Canvas is set to true and it 
still shows the lines outside of the bounds of the Canvas. Is this 
expected behavior? What needs to be done to have the lines drawn on 
the Canvas resize with the Canvas to stay contained within the bounds 
of the Canvas? I expected that to happen by default. I'm using Flex 2 
Beta 3.

Thanks.

-Steven









--
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] Beta3 BUG: Date.parse does not work with XML format (YYYY-MM-DDThh:mm:ss) string

2006-06-01 Thread Steven Toth



My WebSerivce returns a date string in the XML Date format (-MM-
DDThh:mm:ss). Calling Date.parse() to convert it to a Number (a Number 
representing the milliseconds elapsed since January 1, 1970, UTC) 
always return NaN. According to the Flex docs for Beta3 this format is 
supported by the Date.parse() method. 

I also tried appending different timezone abbreviations (GMT, PST, and 
EST) to provide the full date string (-MM-DDThh:mm:ssTZD).

-Steven










--
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: Can't get inline headerRenderer to work for DataGridColumn in Flex 2 Beta 3

2006-05-30 Thread Steven Toth



Anyone? Anyone? A little help please ;)

--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] 
wrote:

 Has anyone gotten this to work??? I took most of the code right 
out 
 of the sample for doing inline renders.
 
 Thanks.
 
 -Steven
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
 wrote:
 
  I'm trying to load an image into a DataGridColumn header. 
  
  I've tried this...
  
  mx:DataGridColumn dataField=status width=5
   mx:headerRenderer
mx:Component
 mx:Image source=/assets/CheckBox.png/
/mx:Component 
   /mx:headerRenderer
  /mx:DataGridColumn 
  
  As well as this...
  
  mx:DataGridColumn dataField=status width=5
   mx:headerRenderer
mx:Component
 mx:Image source=@Embed
  (source='/assets/CheckBox.png')/
/mx:Component 
   /mx:headerRenderer
  /mx:DataGridColumn 
  
  I've also tried setting the autoLoad to True, specifying a 
height 
  and a width for the image, and not specifying a width for the 
 column.
  
  The image loads fine from the specified path when I use it as 
the 
  icon for a button. 
  
  Any thoughts? 
  
  Thanks.
  
  -Steven
 












--
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: Can't get inline headerRenderer to work for DataGridColumn in Flex 2 Beta 3

2006-05-26 Thread Steven Toth



Has anyone gotten this to work??? I took most of the code right out 
of the sample for doing inline renders.

Thanks.

-Steven

--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] 
wrote:

 I'm trying to load an image into a DataGridColumn header. 
 
 I've tried this...
 
 mx:DataGridColumn dataField=status width=5
  mx:headerRenderer
   mx:Component
mx:Image source=/assets/CheckBox.png/
   /mx:Component 
  /mx:headerRenderer
 /mx:DataGridColumn 
 
 As well as this...
 
 mx:DataGridColumn dataField=status width=5
  mx:headerRenderer
   mx:Component
mx:Image source=@Embed
 (source='/assets/CheckBox.png')/
   /mx:Component 
  /mx:headerRenderer
 /mx:DataGridColumn 
 
 I've also tried setting the autoLoad to True, specifying a height 
 and a width for the image, and not specifying a width for the 
column.
 
 The image loads fine from the specified path when I use it as the 
 icon for a button. 
 
 Any thoughts? 
 
 Thanks.
 
 -Steven











--
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] Can't get inline headerRenderer to work for DataGridColumn in Flex 2 Beta 3

2006-05-25 Thread Steven Toth



I'm trying to load an image into a DataGridColumn header. 

I've tried this...

mx:DataGridColumn dataField=status width=5
 mx:headerRenderer
  mx:Component
   mx:Image source=/assets/CheckBox.png/
  /mx:Component 
 /mx:headerRenderer
/mx:DataGridColumn 

As well as this...

mx:DataGridColumn dataField=status width=5
 mx:headerRenderer
  mx:Component
   mx:Image source=@Embed
(source='/assets/CheckBox.png')/
  /mx:Component 
 /mx:headerRenderer
/mx:DataGridColumn 

I've also tried setting the autoLoad to True, specifying a height 
and a width for the image, and not specifying a width for the column.

The image loads fine from the specified path when I use it as the 
icon for a button. 

Any thoughts? 

Thanks.

-Steven











--
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: How to cancel Keyboard events?

2006-05-19 Thread Steven Toth



I'm writing a masked edit control. I want to do various things at 
various times. I want to allow the deletion of certain characters. 
I want to allow editing of certain characters. All of which is 
dependent on the keyboard event/text input, mask, caret index, and 
selection begin/end index. The textInput event works perfectly. My 
issues center around trapping and ultimately rejecting (under 
certain cirucmstances) keyboard events for keys such as DELETE, 
BACKSPACE, LEFT, RIGHT, etc. I already have some code to workaround 
not being able to cancle the LEFT and RIGHT Keyboard events, but it 
doesn't look all that nice (you see the caret move and then move 
back). 

Thanks for the suggestions. However, I don't think what I'm trying 
to do is all that unusual. I've done it in numerous other languages 
and I don't think I should have to write excessive amounts of code 
to store and restore state when the same thing could be accomplished 
by having the appropriate control over the events. It seems like 
either I'm missing something or the language is. 

Thanks again. The suggestions are greatly appreciated. 

-Steven

--- In flexcoders@yahoogroups.com, Chris Velevitch 
[EMAIL PROTECTED] wrote:

 On 5/19/06, Steven Toth [EMAIL PROTECTED] wrote:
  No dice. I do see the eventPhase equal to 1 (capture), but the
  stopPropagation() and stopImmediatePropagation() still do not
  prevent the DELETE from being processed. I'm beginning to think 
I'm
  just going about this the wrong way. There has to be a way to do
  this.
 
 As I understand it, capture only works for the container containing
 the text field, that is before the target gets it.
 
 And alternative would be to save the state of the text field and if
 the length is zero use the saved state to restore it. I'm assuming 
you
 want to prevent all the data from being deleted and but allow it 
to be
 edited.
 
 
 Chris
 -- 
 Chris Velevitch
 Manager - Sydney Flash Platform Developers Group
 www.flashdev.org.au












--
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: How to cancel Keyboard events?

2006-05-19 Thread Steven Toth



That's fine for printable characters (i.e. text), but not for trapping 
and rejecting special keys like DELETE, BACKSPACE, LEFT, RIGHT, etc. 
Those keys don't initiate a textInput event. Try it. Thank for the 
suggestion though.

-Steven


--- In flexcoders@yahoogroups.com, Manish Jethani 
[EMAIL PROTECTED] wrote:

 On 5/19/06, Steven Toth [EMAIL PROTECTED] wrote:
 
 what should I be doing so I can reject certain keystrokes?
 
 Listen for the *textInput* event on the TextField at a higher priority
 and call preventDefault() on the event object. See the documentation
 for TextField and its textInput event.












--
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] How to cancel Keyboard events?

2006-05-18 Thread Steven Toth



I'm trying to write a custom control and I need to be able to reject 
certain keystrokes. I'm able to add listeners for the KeyBoardEvent, 
but they are not cancelable. I don't see anywhere in the object 
heirarchy that they are. I'm probably missing something since I'm 
approaching this from a perspective of developing similar controls 
in .NET and Java. Is handling the KeyboardEvent the correct way to do 
this? If so, how do I handle the event so that I can cancel it? If 
not, what should I be doing so I can reject certain keystrokes? 
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
  
  
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: How to cancel Keyboard events?

2006-05-18 Thread Steven Toth



Thanks for the feedback, but that does not do the trick. The event 
is not cancelable, so I cannot prevent the keystrokes. For example, 
I'm using a TextInput control. I can handle the textInput event and 
cancel it (not allow the new text to be input) using the 
prevenDefault() method. However, the keyDown and keyUp events are 
not cancelable. Hence I cannot prevent my user from deleting text 
from the control via the DELETE key. The stopPropagation() and 
stopImmediatePropagation() method do not work since the event has 
already been processed and the text deleted by the time it gets to 
the keyDown and keyUp events. It seems that there must be someway 
to be able to reject or respond in a custom way to keyDown/keyUp 
events???


--- In flexcoders@yahoogroups.com, Michael Schmalle 
[EMAIL PROTECTED] wrote:

 Hi,
 
 Well, looking at how Adobe did somethings, I would say you could 
either
 write a filter loop that executes in the keyDown handler or just 
hard code
 the keys you want to reject.
 
 I don't know if this helps you but, there is;
 
 keyEvent.stopPropagation()
 keyEvent.stopImmediatePropagation()
 
 See the docs for the lengthy definition of those methods.
 
 Being email and all it sounds like you just need to do alittle 
ditch digging
 ;-) IE put in an if statement with logical || .
 
 Peace, Mike
 
 On 5/18/06, Steven Toth [EMAIL PROTECTED] wrote:
 
  I'm trying to write a custom control and I need to be able to 
reject
  certain keystrokes. I'm able to add listeners for the 
KeyBoardEvent,
  but they are not cancelable. I don't see anywhere in the object
  heirarchy that they are. I'm probably missing something since 
I'm
  approaching this from a perspective of developing similar 
controls
  in .NET and Java. Is handling the KeyboardEvent the correct way 
to do
  this? If so, how do I handle the event so that I can cancel 
it? If
  not, what should I be doing so I can reject certain keystrokes?
  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 developmenthttp://groups.yahoo.com/gads?
t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=
Computer+software+developmentw3=Software+design+and+developmentw4=M
acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L
-4QTvxB_quFDtMyhrQaHQ Computer
  software developmenthttp://groups.yahoo.com/gads?
t=msk=Computer+software+developmentw1=Web+site+design+developmentw
2=Computer+software+developmentw3=Software+design+and+developmentw4
=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig
=lvQjSRfQDfWudJSe1lLjHw Software
  design and developmenthttp://groups.yahoo.com/gads?
t=msk=Software+design+and+developmentw1=Web+site+design+development
w2=Computer+software+developmentw3=Software+design+and+development
w4=Macromedia+flexw5=Software+development+best+practicec=5s=166.s
ig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia
  flexhttp://groups.yahoo.com/gads?
t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+sof
tware+developmentw3=Software+design+and+developmentw4=Macromedia+fl
exw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZ
I36cYzBjw Software
  development best practicehttp://groups.yahoo.com/gads?
t=msk=Software+development+best+practicew1=Web+site+design+developm
entw2=Computer+software+developmentw3=Software+design+and+developme
ntw4=Macromedia+flexw5=Software+development+best+practicec=5s=166
.sig=f89quyyulIDsnABLD6IXIw
  --
  YAHOO! GROUPS LINKS
 
 
  - Visit your 
group flexcodershttp://groups.yahoo.com/group/flexcoders
  on the web.
 
  - To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]flexcoders-
[EMAIL PROTECTED]
 
  - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
  Service http://docs.yahoo.com/info/terms/.
 
 
  --
 
 
 
 
 -- 
 What goes up, does come down.












--
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: How to cancel Keyboard events?

2006-05-18 Thread Steven Toth



No dice. I do see the eventPhase equal to 1 (capture), but the 
stopPropagation() and stopImmediatePropagation() still do not 
prevent the DELETE from being processed. I'm beginning to think I'm 
just going about this the wrong way. There has to be a way to do 
this.

I'd love to see what's going in under the covers. Is the source 
code for the flash namespaces available. I looked through the mx 
namespaces, but the bulk of what I'm interested in is in the flash 
namespaces.

--- In flexcoders@yahoogroups.com, Michael Schmalle 
[EMAIL PROTECTED] wrote:

 Jeremy,
 
 If that works... props to you man! ;-)
 
 Peace, Mike
 
 On 5/18/06, jeremy lu [EMAIL PROTECTED] wrote:
 
 
  write this off top my head,
  but there are two phases for event, one is capturing phase, the 
other
  bubbling phase.
 
  I guess what you need to do is like this:
 
  Application.application.addEventListener(keyDown, onKeyDown, 
true);
 
  setting third param to true will switch to capture phase, then 
you get the
  chance to do :
 
  keyEvent.stopPropagation()
  keyEvent.stopImmediatePropagation()
 
  as Michael suggested, this will prevent keyDown event from being 
picked up
  by underlying components.
 
  see if that works.
 
 
  On 5/19/06, Michael Schmalle [EMAIL PROTECTED] wrote:
  
   Ah,
  
   I got ya. Yeah, I know I read somwhere in the docs about this 
issue. I
   can't remeber if it pertains to your particular problem.
   EDIT - I looked and now REALLY understand you.
  
   As far as I know, IE delete, there is no way as of yet.
  
   ... But don't take my word for it ;-)
  
   I don't think there is a way to do what you want, AS seems to 
be one
   layer to high for that interaction other than like you said, 
make the
   behavior cancelable..
  
   Never know for the future though, they might be listening. :)
  
   Peace, Mike
  
   On 5/18/06, Steven Toth  [EMAIL PROTECTED] wrote:
  
Thanks for the feedback, but that does not do the trick. 
The event
is not cancelable, so I cannot prevent the keystrokes. For 
example,
I'm using a TextInput control. I can handle the textInput 
event and
cancel it (not allow the new text to be input) using the
prevenDefault() method. However, the keyDown and keyUp 
events are
not cancelable. Hence I cannot prevent my user from 
deleting text
from the control via the DELETE key. The stopPropagation() 
and
stopImmediatePropagation() method do not work since the 
event has
already been processed and the text deleted by the time it 
gets to
the keyDown and keyUp events. It seems that there must be 
someway
to be able to reject or respond in a custom way to 
keyDown/keyUp
events???
   
   
--- In flexcoders@yahoogroups.com, Michael Schmalle
   
teoti.graphix@ wrote:

 Hi,

 Well, looking at how Adobe did somethings, I would say you 
could
either
 write a filter loop that executes in the keyDown handler 
or just
hard code
 the keys you want to reject.

 I don't know if this helps you but, there is;

 keyEvent.stopPropagation()
 keyEvent.stopImmediatePropagation()

 See the docs for the lengthy definition of those methods.

 Being email and all it sounds like you just need to do 
alittle
ditch digging
 ;-) IE put in an if statement with logical || .

 Peace, Mike

 On 5/18/06, Steven Toth steventoth@ wrote:
 
  I'm trying to write a custom control and I need to be 
able to
reject
  certain keystrokes. I'm able to add listeners for the
KeyBoardEvent,
  but they are not cancelable. I don't see anywhere in 
the object
  heirarchy that they are. I'm probably missing something 
since
I'm
  approaching this from a perspective of developing similar
controls
  in .NET and Java. Is handling the KeyboardEvent the 
correct way
to do
  this? If so, how do I handle the event so that I can 
cancel
it? If
  not, what should I be doing so I can reject certain 
keystrokes?
  Thanks.
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ:

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%
http://www.mail-archive.com/flexcoders%25
40yahoogroups.com
 
 
 
  SPONSORED LINKS
  Web site design 
developmenthttp://groups.yahoo.com/gads?

t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=

Computer+software+developmentw3=Software+design+and+developmentw4=M

acromedia+flexw5=Software+development+best+practicec=5s=166.sig=L
-4QTvxB_quFDtMyhrQaHQ Computer
  software developmenthttp://groups.yahoo.com/gads?

t=msk=Computer+software+developmentw1=Web+site+design+developmentw

2=Computer+software+developmentw3=Software+design+and+developmentw4

=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig
=lvQjSRfQDfWudJSe1lLjHw

[flexcoders] Re: How to cancel Keyboard events?

2006-05-18 Thread Steven Toth



Thanks. Two things though...

It's not just DELETE, it's any keyboard event (KEY_UP, KEY_DOWN).

Another thing I've noticed is that the caretIndex of the TextField 
is not accurate on the focusIn event. It shows as the last position 
in the TextField instead of the position the user clicked.

Thanks again for your help.

-Steven

--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] 
wrote:

 I think not being able to cancel DELETE is an oversight in the 
design;
 I'll file a bug about this. You'll probably have to allow the 
deletion
 to happen and then restore the previous text afterwards.
 
 - Gordon
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Thursday, May 18, 2006 5:40 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: How to cancel Keyboard events?
 
 No dice. I do see the eventPhase equal to 1 (capture), but the 
 stopPropagation() and stopImmediatePropagation() still do not 
 prevent the DELETE from being processed. I'm beginning to think 
I'm 
 just going about this the wrong way. There has to be a way to do 
 this.
 
 I'd love to see what's going in under the covers. Is the source 
 code for the flash namespaces available. I looked through the mx 
 namespaces, but the bulk of what I'm interested in is in the flash 
 namespaces.
 
 --- In flexcoders@yahoogroups.com, Michael Schmalle 
 teoti.graphix@ wrote:
 
  Jeremy,
  
  If that works... props to you man! ;-)
  
  Peace, Mike
  
  On 5/18/06, jeremy lu wade.lu@ wrote:
  
  
   write this off top my head,
   but there are two phases for event, one is capturing phase, 
the 
 other
   bubbling phase.
  
   I guess what you need to do is like this:
  
   Application.application.addEventListener(keyDown, onKeyDown, 
 true);
  
   setting third param to true will switch to capture phase, then 
 you get the
   chance to do :
  
   keyEvent.stopPropagation()
   keyEvent.stopImmediatePropagation()
  
   as Michael suggested, this will prevent keyDown event from 
being 
 picked up
   by underlying components.
  
   see if that works.
  
  
   On 5/19/06, Michael Schmalle teoti.graphix@ wrote:
   
Ah,
   
I got ya. Yeah, I know I read somwhere in the docs about 
this 
 issue. I
can't remeber if it pertains to your particular problem.
EDIT - I looked and now REALLY understand you.
   
As far as I know, IE delete, there is no way as of yet.
   
... But don't take my word for it ;-)
   
I don't think there is a way to do what you want, AS seems 
to 
 be one
layer to high for that interaction other than like you said, 
 make the
behavior cancelable..
   
Never know for the future though, they might be listening. :)
   
Peace, Mike
   
On 5/18/06, Steven Toth  steventoth@ wrote:
   
 Thanks for the feedback, but that does not do the trick. 
 The event
 is not cancelable, so I cannot prevent the keystrokes. 
For 
 example,
 I'm using a TextInput control. I can handle the textInput 
 event and
 cancel it (not allow the new text to be input) using the
 prevenDefault() method. However, the keyDown and keyUp 
 events are
 not cancelable. Hence I cannot prevent my user from 
 deleting text
 from the control via the DELETE key. The stopPropagation
() 
 and
 stopImmediatePropagation() method do not work since the 
 event has
 already been processed and the text deleted by the time it 
 gets to
 the keyDown and keyUp events. It seems that there must be 
 someway
 to be able to reject or respond in a custom way to 
 keyDown/keyUp
 events???


 --- In flexcoders@yahoogroups.com, Michael Schmalle

 teoti.graphix@ wrote:
 
  Hi,
 
  Well, looking at how Adobe did somethings, I would say 
you 
 could
 either
  write a filter loop that executes in the keyDown handler 
 or just
 hard code
  the keys you want to reject.
 
  I don't know if this helps you but, there is;
 
  keyEvent.stopPropagation()
  keyEvent.stopImmediatePropagation()
 
  See the docs for the lengthy definition of those methods.
 
  Being email and all it sounds like you just need to do 
 alittle
 ditch digging
  ;-) IE put in an if statement with logical || .
 
  Peace, Mike
 
  On 5/18/06, Steven Toth steventoth@ wrote:
  
   I'm trying to write a custom control and I need to be 
 able to
 reject
   certain keystrokes. I'm able to add listeners for the
 KeyBoardEvent,
   but they are not cancelable. I don't see anywhere in 
 the object
   heirarchy that they are. I'm probably missing 
something 
 since
 I'm
   approaching this from a perspective of developing 
similar
 controls
   in .NET and Java. Is handling the KeyboardEvent the 
 correct way
 to do
   this? If so, how do I handle the event so that I can 
 cancel
 it? If
   not, what

[flexcoders] Re: AS3 API generation

2006-04-27 Thread Steven Toth



If you're talking about generating the ActionScript 3 classes from 
Java classes then XDoclet 
(http://xdoclet.codehaus.org/Actionscript+plugin) is a good tool. I 
had to change the templates and I tweaked the code to allow custom 
data type mappings to be loaded from properties files, but a good tool 
to start with.

-Steven

--- In flexcoders@yahoogroups.com, deepu_verma [EMAIL PROTECTED] 
wrote:

 Is there any application that is updated to generate the AS3 doc?
 (AS3 API for my classes)
 
 Thanks,
 Deepak











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



  











[flexcoders] Re: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS

2006-04-26 Thread Steven Toth



Yes. Insecure works beautifully, via Apache-JRun, Apache-Tomcat, 
and standalone Tomcat. Haven't tried insecure over IIS-JRun, but 
I'll test it out sometime today. It's just when I'm trying to run in 
a secure mode over anything but standalone JRun. 

Thanks.

-Steven


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 I'm not sure either since I don't have Apache set up for 
debugging. We
 really don't think there should be a difference between JRun 
standalone
 and JRun with a connector, but clearly something is getting messed 
up.
 Does insecure work with the connector? 
 
 Matt
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Tuesday, April 25, 2006 7:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 2.0 Remote Objects over 
SecureAMFChannel
 (HTTPS) in Apache or IIS
 
 No, nothing really changed in the flex config. files other than the 
 port when I was going directly through Tomcat and JRun. When going 
 through Apache and IIS they stayed the same . 
 
 I'd say with near certainty the port is configured correctly since 
 I'm seeing the Command and Acknowledge messages in the console and 
 the log. Also when going through Apache and IIS I see in the web 
 server log that it is calling the messagebroker/amfsecure servlet 
and 
 getting a 200 back. 
 
 For some reason, I can't tell why since there's no source code and 
 very little information available in the log other than the 
messages, 
 it does not get (or process) the Remoting messages. That's why I 
 feel like something else may need to be configured. However, the 
 same configuration works when running directly through JRun over 
 SecureAMF (HTTPS). Of course, that's the only time it works.
 
 I appreciate all the help, but I'm not sure where to go from here. 
 It doesn't seem like anyone else has tried to get Flex 2 working in 
a 
 secure environment (other than JRun). Like I said, I'd be elated 
if 
 I was doing something wrong that was easily corrected as opposed to 
 waiting for a new release. However, I've gone over this more times 
 than I'd like to count and I cannot see anything wrong and other 
(non-
 Flex) J2EE applications are running correctly over HTTPS. 
 
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  I've forwarded on to QA to see if we know of any issues. Did 
 anything
  change between configurations when you use the connector like what
  server name you use? Is the port configured right?
  
  -Original Message-
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Steven Toth
  Sent: Monday, April 24, 2006 11:01 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Flex 2.0 Remote Objects over 
 SecureAMFChannel
  (HTTPS) in Apache or IIS
  
  I've also setup the flex application to run on Tomcat. Again, it 
 works 
  fine over an AMFChannel (HTTP), but not over a SecureAMF channel 
  (HTTPS). It seems that there's a bug here. The only platform I 
 could 
  get it to work strictly over the SecureAMFChannel is standalone 
 JRun. 
  I was not able to get it to work strictly over HTTPS on 
standalone 
  Tomcat, Apache-Tomcat, Apache-JRun, or IIS-JRun. All of these 
  configurations support working applications that are executing 
 strictly 
  over HTTPS. 
  
  Has anyone had other results? Can anyone at Macromedia/Adobe 
 comment? 
  Flex 2.0 is a great technology, but it's not going to penetrate 
the 
  mainstream if it won't run on the lion's share of web 
 environments. 
  We've made a concerted effort to use Flex 2.0 and it would be 
 counter 
  productive to move back to the Flex 1.5 platform. Strictly using 
 JRun 
  is not an option where existing environments are already 
situated. 
  
  I would be elated if I were simply missing something or 
configured 
  something incorrectly, but other applications are working fine on 
 these 
  configurations. Also, as I mentioned previously, I see some of 
the 
  flex messages in the log. Are there additional settings to run 
 over 
  SecureAMF? 
  
  I'm truly at an impass. Any help would be appreciated. Thanks.
  
  --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
 wrote:
  
   Has anyone been able to get Flex 2.0 remote objects to work 
over 
 a 
   SecureAMFChannel (HTTPS) in Apache or IIS via the JRUN 
 connectors? I 
   have had success over a AMFChannel (HTTP) in Apache and IIS, 
but 
 have 
   only been able to get it to work over a SecureAMFChannel 
(HTTPS) 
 when 
   using JRun by itself. 
   
   When executing over a AMFChannel (HTTP) in Apache and IIS, or 
 over a 
   SecureAMFChannel (HTTPS) in standalone JRun I see traces for 
   CommandMessage, AcknowledgeMessage, and RemotingMessage. 
 However, 
   when running over a SecureAMFChannel (HTTPS) in Apache or IIS I 
 only 
   see the CommandMessage and AcknowledgeMessage.
   
   Any help would be greatly appreciated, I've

[flexcoders] Re: (Flex20b2) RemoteObject access problem

2006-04-26 Thread Steven Toth



Did you recompile the SWF after changing the endpoint URI? 

--- In flexcoders@yahoogroups.com, aejaz_98 [EMAIL PROTECTED] wrote:

 Hi Matt,
 
 Thanks for your reply. Yes, I am running the SWF using the URL
 
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
 
 I also changed the channel endpoint URI from
 http://{server.name}:{server.port}/{context.root}/messagebroker/amf
 to
 http://localhost:8080/flex/messagebroker/amf
 but I still get the same result i.e. Channel.Connect.Failed error.
 NetConnection.Call.Failed error:HTTP:Failed .
 
 Please let me know what else could be missin/misconfigured.
 
 Thanks,
 Aejaz
 
 --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
 
  Are you running the SWF from http://localhost:8080/flex/ in your
  browser? Everything seems OK to me otherwise. Try changing the 
my-am
  channel entry to http://localhost:8080/flex/messagebroker/amf, 
but you
  shouldn't have needed to do it.
  
  
  
  Matt
  
  
  
  
  
  From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
  Behalf Of aejaz_98
  Sent: Tuesday, April 25, 2006 10:47 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] (Flex20b2) RemoteObject access problem
  
  
  
  Hi,
  
  I have posted a couple of messages on calling a method on a Java 
object
  using mx:RemoteObject tag but so far I haven't been successful. 
With
  help from Peter  Suresh I did proceed a little bit further but I 
am
  still unable to successfully call the method on the server side 
object.
  Since I described the problem in bits  pieces before, I think 
that I
  may have missed some step(s) which I don't know about. Here is 
what I
  have done step by step. Please let me know if I am doing anything 
wrong
  or not doing something.
  
  Basically what I wanted to do was to verify the connectivity from 
the
  browser side to a simple Java class on the back end using 
RemoteObject
  tag before doing anything major. To do this I take a (String) 
name from
  a TextInput field which is sent to the getString() method of the 
class
  called Echo which appends Welcome  to the incoming String  
returns it
  back. This is displayed by the state 'TargetState'.
  
  1. Here is the mxml file named SimpleRemoteObject.mxml. Please 
take a
  look at my ActionScript methods as I am new to ActionScript as 
well.
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
xmlns=*
  layout=absolute
  mx:TraceTarget level=0 /
  mx:Script
  ![CDATA[
  import mx.rpc.events.*; 
  import mx.collections.*;
  import mx.controls.*
  
  private function getNameHandler(event:ResultEvent):void
  {
  Result.text = event.result.toString();
  currentState='TargetState';
  }
  
  private function faultHandler(event:FaultEvent):void
  {
  Alert.show(event.fault.faultstring, Error);
  Alert.show(event.fault.faultDetail, Error); 
  }
  ]]
  /mx:Script
  mx:states 
  mx:State name=TargetState
  mx:RemoveChild child={button1}/
  mx:RemoveChild child={formInput}/
  mx:RemoveChild child={label1}/
  mx:AddChild position=lastChild
  mx:Label x=99 y=130 width=265 height=28
  id=Result/
  /mx:AddChild
  /mx:State
  /mx:states
  
  mx:RemoteObject id=sendStringBack destination=EchoString
  showBusyCursor=true fault=faultHandler(event)
  mx:method name=getString result=getNameHandler
(event)
  mx:arguments
  str
  {formInput.text}
  /str
  /mx:arguments
  /mx:method
  /mx:RemoteObject
  mx:TextInput x=119 y=129 id=formInput/
  mx:Button x=119 y=170 label=Submit fontSize=13 
id=button1
  click=sendStringBack.getString.send()/
  mx:Label x=119 y=86 text=What is your name ? 
width=160
  fontSize=15 id=label1/ 
  /mx:Application
  
  For this project I defined the Flex root folder at
  C:\tomcat-5.5.9\webapps\flex  flex server URL to
  http://localhost:8080/flex/.
  
  2. Defined the destination EchoString in
  C:\tomcat-5.5.9\webapps\flex\WEB-INF\flex\flex-remoting-
service.xml as
  follows,
  
  adapters
  adapter-definition id=java-object
  class=flex.messaging.services.remoting.adapters.JavaAdapter
  default=true/
  /adapters
  
  default-channels
  channel ref=my-amf/
  /default-channels
  
  destination id=EchoString
  properties
  sourcesamples.SimpleRemoteObject.Echo/source
  /properties
  /destination
  
  3. Saved the mxml file in Flex Builder which created
  C:\tomcat-5.5.9\webapps\flex\SimpleRemoteObject directory  put 
the
  HTML, SWFs  _javascript_ files in it.
  
  4. Compiled the Java class called Echo.java  put Echo.class in
  C:\tomcat-5.5.9\webapps\flex\WEB-
INF\classes\samples\SimpleRemoteObject.
  
  package samples.SimpleRemoteObject;
  public class Echo {
  public Echo(){
  }
  public String getString(String str){
  System.out.println(In Echo::getString(), got  + str);
  return Welcome  + str ;
  }
  }
  
  5. Started tomcat  went to,
  
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
  
  6. First page got painted fine, input a name  

[flexcoders] Re: (Flex20b2) RemoteObject access problem : Success at last

2006-04-26 Thread Steven Toth



It seems as though the result of your call is null, hence the 
event.result.toString() call in your getNameHandler() is generating 
a NullPointerException. 

Do you see a value in the Tomcat console from the System.out call in 
your SimpleRemoteObject class?

--- In flexcoders@yahoogroups.com, aejaz_98 [EMAIL PROTECTED] wrote:

 Hi Steven,
 
 Thanks a lot for your reply. I recompiled the swf again 
 in the Tomcat console I could see that the method on my class
 was being called. So, thing that made this whole thing work
 was,
 
 Matt's advice to change the endpoint URI to
 http://localhost:8080/flex/messagebroker/amf
 
 
 
 recompilation of the swf after it.
 
 However on the browser side I am seeing this error in a new window,
 
 An ActionScript error has occurred,
 TypeError: Error #1009: null has no properties.
  at SimpleRemoteObject/::getNameHandler()
  at SimpleRemoteObject/___Operation1_result()
  at flash.events::EventDispatcher/dispatchEvent()
  at
 
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::
dispatchRpcEvent()
  at
 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
sultHandler()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.rpc::Producer/acknowledge()
  at
 ::NetConnectionMessageResponder/NetConnectionChannel.as$36:NetConnec
tionMessageResponder::handleResult()
  at mx.messaging::MessageResponder/result() 
 
 Any clues ?
 
 Thanks,
 Aejaz
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
wrote:
 
  Did you recompile the SWF after changing the endpoint URI? 
  
  --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote:
  
   Hi Matt,
   
   Thanks for your reply. Yes, I am running the SWF using the URL
   
  
http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html
   
   I also changed the channel endpoint URI from
   http://{server.name}:{server.port}/
{context.root}/messagebroker/amf
   to
   http://localhost:8080/flex/messagebroker/amf
   but I still get the same result i.e. Channel.Connect.Failed 
error.
   NetConnection.Call.Failed error:HTTP:Failed .
   
   Please let me know what else could be missin/misconfigured.
   
   Thanks,
   Aejaz
   
   --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ 
wrote:
   
Are you running the SWF from http://localhost:8080/flex/ in 
your
browser? Everything seems OK to me otherwise. Try changing 
the 
  my-am
channel entry to 
http://localhost:8080/flex/messagebroker/amf, 
  but you
shouldn't have needed to do it.



Matt





From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On
Behalf Of aejaz_98
Sent: Tuesday, April 25, 2006 10:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] (Flex20b2) RemoteObject access problem



Hi,

I have posted a couple of messages on calling a method on a 
Java 
  object
using mx:RemoteObject tag but so far I haven't been 
successful. 
  With
help from Peter  Suresh I did proceed a little bit further 
but I 
  am
still unable to successfully call the method on the server 
side 
  object.
Since I described the problem in bits  pieces before, I 
think 
  that I
may have missed some step(s) which I don't know about. Here 
is 
  what I
have done step by step. Please let me know if I am doing 
anything 
  wrong
or not doing something.

Basically what I wanted to do was to verify the connectivity 
from 
  the
browser side to a simple Java class on the back end using 
  RemoteObject
tag before doing anything major. To do this I take a (String) 
  name from
a TextInput field which is sent to the getString() method of 
the 
  class
called Echo which appends Welcome  to the incoming String  
  returns it
back. This is displayed by the state 'TargetState'.

1. Here is the mxml file named SimpleRemoteObject.mxml. 
Please 
  take a
look at my ActionScript methods as I am new to ActionScript 
as 
  well.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml 
  xmlns=*
layout=absolute
mx:TraceTarget level=0 /
mx:Script
![CDATA[
import mx.rpc.events.*; 
import mx.collections.*;
import mx.controls.*

private function getNameHandler
(event:ResultEvent):void
{
Result.text = event.result.toString();
currentState='TargetState';
}

private function faultHandler(event:FaultEvent):void
{
Alert.show(event.fault.faultstring, Error);
Alert.show(event.fault.faultDetail, Error); 
}
]]
/mx:Script
mx:states 
mx:State name=TargetState
mx:RemoveChild child={button1}/
mx:RemoveChild child={formInput}/
mx:RemoveChild child={label1}/
mx:AddChild position=lastChild
mx:Label x=99 y=130 width=265 
height=28
id=Result/
/mx:AddChild
/mx:State
/mx:states

mx:RemoteObject id

[flexcoders] Re: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS

2006-04-25 Thread Steven Toth



No, nothing really changed in the flex config. files other than the 
port when I was going directly through Tomcat and JRun. When going 
through Apache and IIS they stayed the same . 

I'd say with near certainty the port is configured correctly since 
I'm seeing the Command and Acknowledge messages in the console and 
the log. Also when going through Apache and IIS I see in the web 
server log that it is calling the messagebroker/amfsecure servlet and 
getting a 200 back. 

For some reason, I can't tell why since there's no source code and 
very little information available in the log other than the messages, 
it does not get (or process) the Remoting messages. That's why I 
feel like something else may need to be configured. However, the 
same configuration works when running directly through JRun over 
SecureAMF (HTTPS). Of course, that's the only time it works.

I appreciate all the help, but I'm not sure where to go from here. 
It doesn't seem like anyone else has tried to get Flex 2 working in a 
secure environment (other than JRun). Like I said, I'd be elated if 
I was doing something wrong that was easily corrected as opposed to 
waiting for a new release. However, I've gone over this more times 
than I'd like to count and I cannot see anything wrong and other (non-
Flex) J2EE applications are running correctly over HTTPS. 


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 I've forwarded on to QA to see if we know of any issues. Did 
anything
 change between configurations when you use the connector like what
 server name you use? Is the port configured right?
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Monday, April 24, 2006 11:01 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 2.0 Remote Objects over 
SecureAMFChannel
 (HTTPS) in Apache or IIS
 
 I've also setup the flex application to run on Tomcat. Again, it 
works 
 fine over an AMFChannel (HTTP), but not over a SecureAMF channel 
 (HTTPS). It seems that there's a bug here. The only platform I 
could 
 get it to work strictly over the SecureAMFChannel is standalone 
JRun. 
 I was not able to get it to work strictly over HTTPS on standalone 
 Tomcat, Apache-Tomcat, Apache-JRun, or IIS-JRun. All of these 
 configurations support working applications that are executing 
strictly 
 over HTTPS. 
 
 Has anyone had other results? Can anyone at Macromedia/Adobe 
comment? 
 Flex 2.0 is a great technology, but it's not going to penetrate the 
 mainstream if it won't run on the lion's share of web 
environments. 
 We've made a concerted effort to use Flex 2.0 and it would be 
counter 
 productive to move back to the Flex 1.5 platform. Strictly using 
JRun 
 is not an option where existing environments are already situated. 
 
 I would be elated if I were simply missing something or configured 
 something incorrectly, but other applications are working fine on 
these 
 configurations. Also, as I mentioned previously, I see some of the 
 flex messages in the log. Are there additional settings to run 
over 
 SecureAMF? 
 
 I'm truly at an impass. Any help would be appreciated. Thanks.
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
wrote:
 
  Has anyone been able to get Flex 2.0 remote objects to work over 
a 
  SecureAMFChannel (HTTPS) in Apache or IIS via the JRUN 
connectors? I 
  have had success over a AMFChannel (HTTP) in Apache and IIS, but 
have 
  only been able to get it to work over a SecureAMFChannel (HTTPS) 
when 
  using JRun by itself. 
  
  When executing over a AMFChannel (HTTP) in Apache and IIS, or 
over a 
  SecureAMFChannel (HTTPS) in standalone JRun I see traces for 
  CommandMessage, AcknowledgeMessage, and RemotingMessage. 
However, 
  when running over a SecureAMFChannel (HTTPS) in Apache or IIS I 
only 
  see the CommandMessage and AcknowledgeMessage.
  
  Any help would be greatly appreciated, I've put a lot of effort 
into 
  getting this to work and I'm at a loss. Thanks.
 
 
 
 
 
 
 
 --
 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








  
  
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" 

[flexcoders] Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS

2006-04-24 Thread Steven Toth



Has anyone been able to get Flex 2.0 remote objects to work over a 
SecureAMFChannel (HTTPS) in Apache or IIS via the JRUN connectors? I 
have had success over a AMFChannel (HTTP) in Apache and IIS, but have 
only been able to get it to work over a SecureAMFChannel (HTTPS) when 
using JRun by itself. 

When executing over a AMFChannel (HTTP) in Apache and IIS, or over a 
SecureAMFChannel (HTTPS) in standalone JRun I see traces for 
CommandMessage, AcknowledgeMessage, and RemotingMessage. However, 
when running over a SecureAMFChannel (HTTPS) in Apache or IIS I only 
see the CommandMessage and AcknowledgeMessage.

Any help would be greatly appreciated, I've put a lot of effort into 
getting this to work and I'm at a loss. 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
  
  
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: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS

2006-04-24 Thread Steven Toth



I've also setup the flex application to run on Tomcat. Again, it works 
fine over an AMFChannel (HTTP), but not over a SecureAMF channel 
(HTTPS). It seems that there's a bug here. The only platform I could 
get it to work strictly over the SecureAMFChannel is standalone JRun. 
I was not able to get it to work strictly over HTTPS on standalone 
Tomcat, Apache-Tomcat, Apache-JRun, or IIS-JRun. All of these 
configurations support working applications that are executing strictly 
over HTTPS. 

Has anyone had other results? Can anyone at Macromedia/Adobe comment? 
Flex 2.0 is a great technology, but it's not going to penetrate the 
mainstream if it won't run on the lion's share of web environments. 
We've made a concerted effort to use Flex 2.0 and it would be counter 
productive to move back to the Flex 1.5 platform. Strictly using JRun 
is not an option where existing environments are already situated. 

I would be elated if I were simply missing something or configured 
something incorrectly, but other applications are working fine on these 
configurations. Also, as I mentioned previously, I see some of the 
flex messages in the log. Are there additional settings to run over 
SecureAMF? 

I'm truly at an impass. Any help would be appreciated. Thanks.

--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] wrote:

 Has anyone been able to get Flex 2.0 remote objects to work over a 
 SecureAMFChannel (HTTPS) in Apache or IIS via the JRUN connectors? I 
 have had success over a AMFChannel (HTTP) in Apache and IIS, but have 
 only been able to get it to work over a SecureAMFChannel (HTTPS) when 
 using JRun by itself. 
 
 When executing over a AMFChannel (HTTP) in Apache and IIS, or over a 
 SecureAMFChannel (HTTPS) in standalone JRun I see traces for 
 CommandMessage, AcknowledgeMessage, and RemotingMessage. However, 
 when running over a SecureAMFChannel (HTTPS) in Apache or IIS I only 
 see the CommandMessage and AcknowledgeMessage.
 
 Any help would be greatly appreciated, I've put a lot of effort into 
 getting this to work and I'm at a loss. Thanks.











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



  











[flexcoders] Re: Can't use RemoteObject on HTTPS ONLY Server?

2006-04-21 Thread Steven Toth



I was able to get the secure AMF channel to work over HTTPS running 
under standalone JRUN. By configuring and running the SSLService in 
JRUN I was able to execute a secure AMF call over HTTPS. 

It seems that there is an issue between Apache and JRun. I'm not 
sure if it's an issue in the communication, or if it's an issue in 
my configuration. I'm looking into the configuration of the 
mod_jrun20.so. It's odd that I get some of the messages in the JRun 
console window when going over HTTPS through Apache. It's apparent 
there is communication established between the two.

Has anyone else gotten HTTPS-Apache-JRun-SecureAMF to work???




--- In flexcoders@yahoogroups.com, sof4real03 [EMAIL PROTECTED] 
wrote:

 Interesting, has anyone gotten Flex 2 Beta 2 to work over HTTPS 
with
 AMF? Also adding the complexity of proxying through Apache SSL?
 
 --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
wrote:
 
  Here are the console messages from the non-secure amf:
  
  [Flex] Channel endpoint my-amf received request.
  [Flex] Deserializing AMF/HTTP request
  Version: 3
  (Message #0 targetURI=null, responseURI=/1)
  (Array #0)
  [0] = (Typed Object 
  #0 'flex.messaging.messages.CommandMessage')
  messageRefType = null
  operation = 6
  correlationId = 
  headers = (Object #1)
  messageId = 7872E161-B9A4-4841-5F6D232B
  timeToLive = 0
  timestamp = 0
  clientId = null
  body = (Object #2)
  destination = 
  
  [Flex] Executed command: (default service)
  commandMessage: Flex Message 
  (flex.messaging.messages.CommandMessage)
  operation = client_ping
  messageRefType = null
  clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
  correlationId =
  destination =
  messageId = 7872E161-B9A4-4841-5F6D232B
  timestamp = 1145493517421
  timeToLive = 0
  body = {}
  replyMessage: Flex Message 
  (flex.messaging.messages.AcknowledgeMessage)
  clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
  correlationId = 7872E161-B9A4-4841-5F6D232B
  destination = null
  messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
  timestamp = 1145493517421
  timeToLive = 0
  body = null
  
  [Flex] Serializing AMF/HTTP response
  Version: 3
  (Message #0 targetURI=/1/onResult, responseURI=)
  (Typed Object 
#0 'flex.messaging.messages.AcknowledgeMessage')
  destination = null
  headers = (Object #1)
  correlationId = 7872E161-B9A4-4841-5F6D232B
  messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
  timeToLive = 0.0
  timestamp = 1.145493517421E12
  clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
  body = null
  
  [Flex] Channel endpoint my-amf received request.
  [Flex] Deserializing AMF/HTTP request
  Version: 3
  (Message #0 targetURI=null, responseURI=/2)
  (Array #0)
  [0] = (Typed Object 
  #0 'flex.messaging.messages.RemotingMessage')
  source = null
  operation = authenticateUser
  headers = (Object #1)
  endpoint = my-amf
  messageId = 09226E93-C2DA-A5E4-CCE6D97E
  timeToLive = 0
  timestamp = 0
  clientId = null
  body = (Array #2)
  [0] = (Typed Object 
  #3 'com.logicseries.services.security.authenticati
  on.AuthenticatedUserValue')
  currentLogonDateTime = null
  username = XX
  lastLogonDateTime = null
  password = XX
  invalidLogonAttempts = NaN
  name = null
  profile = "">
  authorizedRoles = null
  personId = NaN
  destination = lsSecurity
  
  
  
  
  Here are the console messages from the secure amf:
  
  [Flex] Channel endpoint my-secure-amf received request.
  [Flex] Deserializing AMF/HTTP request
  Version: 3
  (Message #0 targetURI=null, responseURI=/1)
  (Array #0)
  [0] = (Typed Object 
  #0 'flex.messaging.messages.CommandMessage')
  operation = 6
  messageRefType = null
  correlationId = 
  messageId = E41A269A-9553-977E-525A3BB0
  timeToLive = 0
  timestamp = 0
  clientId = null
  body = (Object #1)
  destination = 
  headers = (Object #2)
  
  [Flex] Serializing AMF/HTTP response
  Version: 3
  (Header #0 name=AppendToGatewayUrl, mustUnderstand=false)
  ;jsessionid=c030f64fa6665e267f2d
  
  (Message #0 targetURI=/1/onResult, responseURI=)
  (Typed Object 
#0 'flex.messaging.messages.AcknowledgeMessage')
  destination = null
  headers = (Object #1)
  correlationId = E41A269A-9553-977E-525A3BB0
  messageId = 2345E298-890B-5740-1E8D-72D6ED468800
  timeToLive = 0.0
  timestamp = 1.145493705625E12
  clientId = 2345E271-790C-307C-1DE9-1CB848FC58D2
  body = null
  
  
  
  On the non-secure amf channel I get RemotingMessage traces after 
the 
  AcknowledgeMessage. I never get anything on the secure amf 
channel 
  after the AcknowledgeMessage. Any thought???
  
  
  
  
  --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ 
  wrote:
  
   Thanks for the notes. I wasn't aware of the fact that you 
need to 
   specify the context root on the compiler. I assumed (I know 
it's 
  not 
   good to assume) that whatever was in the config files in WEB-
  INF/flex 
   directory of the web app would be loaded and used at runtime. 
I 

[flexcoders] Re: Can't use RemoteObject on HTTPS ONLY Server?

2006-04-19 Thread Steven Toth



Thanks for the notes. I wasn't aware of the fact that you need to 
specify the context root on the compiler. I assumed (I know it's not 
good to assume) that whatever was in the config files in WEB-INF/flex 
directory of the web app would be loaded and used at runtime. I 
guess it's based on experiences with other languages/applications. 

You're summary of the configuration is correct. I misspoke of JMS 
messages, these are the Command and Remoting Messages, my apologies. 

I already had the log level turned up, and I do see the Command and 
Remoting Messages over HTTP, but only one of them over HTTPS (I'm not 
see the message with the data for the objects being passed back and 
forth). I will re-run a test and capture the sets of messages over 
HTTP and HTTPS and post them here later tonight. 

Sorry if I'm not articulating things exactly right, I'm new to Flex 
and learning as I go. Thanks again for all your help. 


--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:

 Note that for mxmlc you can provide the context root on the command 
line
 with --context.root. Flex Builder needs to make this a little more
 obvious for FDS apps.
 
 Note that you don't _have_ to compile in configuration information, 
but
 if you didn't then you would instead have to programmatically create
 your own Channel instance(s) and ensure the channel-id and path info
 match the channel endpoint definitions on the server, add them to a
 ChannelSet and then set this ChannelSet instance on the client
 RemoteObject instance (i.e. through the channelSet:ChannelSet 
property).
 When getting started it should be easier to just point to a
 configuration file and have the client create all of this for you so
 that it matches the server...
 
 So, to repeat your setup to you, you have :
 
 Flex2 App -- SecureAMFChannel over HTTPS -- Apache with Connector 
to
 JRun4 -- FDS 2 Web App
 
 
 Now, your mention of JMS in this setup confuses me from your 
original
 post... are you using the JMSAdapter on the MessagingService, or 
perhaps
 trying to do this yourself from RemotingService, or am I missing 
how JMS
 is involved somewhere else? I'm not familiar with JRun4 connectors 
and
 Apache nor the JRunProxyService but I know of others who are... 
However,
 if you're saying that it works over normal HTTP based AMFChannel 
(i.e.
 non-secure) then something beyond FDS seems wrong.
 
 Can you turn on debug level logging in
 /WEB-INF/flex/flex-enterprise-services.xml and ensure the Endpoint.*
 category is being watched and look out for both CommandMessage
 request/response confirming the channel is connected and then the
 AsyncMessage or RemotingMessage being sent to whatever service is
 managing your destination and see whether all of the information
 arrived?
 
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Steven Toth
 Sent: Tuesday, April 18, 2006 9:44 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Can't use RemoteObject on HTTPS ONLY 
Server?
 
 The SWF is also loaded over HTTPS, the same domain as the url for 
the
 secure amf endpoint. One part of the problem was that I didn't 
know the
 configuration files get compiled into the SWF (that still baffles 
me why
 you'd compile in configuration files). Once I recompiled with the
 updated config files it started attempting to access the secure amf
 endpoint. However, I had to change the config file to hardcode the
 context root - it was not interpreting the {context.root} in the
 endpoint definition. I found this out by seeing requests for
 //messagebroker/amfsecure in the Apache log. 
 
 After that change it hits the secure amf endpoint, but it is still 
not
 working. When I run over a non-secure amf endpoint I see the JMS
 message in the server console window with the Value objects that are
 being sent over the wire. However, when I run over the secure amf
 endpoint I only see the JMS messages, no data. I'm guess something 
is
 not configured correctly on Apache, JRUN, Flex or all the above. 
I'm
 running Apache 2, with the mod_jrun20.so connecting to JRun through 
the
 JRunProxyService. I do not have the SSLService running on JRUN, 
and the
 JRunProxyService is not setup to run securely as it gave me issues 
about
 plain text connections when I tried. However, when I request the 
SWF
 over HTTPS the request is routed to JRUN through Apache and it comes
 back successfully. Also, I do see the JMS messages in the console
 window when accessing the secure amf endpoint, so it seems as 
though the
 Apache-JRun communication works for the HTTPS requests. Am I 
missing
 sometihng? I'm at a loss. Thanks.
 
 
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@
 wrote:
 
  How are you loading your SWF? Are you loading it over HTTPS too? 
 Is it
  on the same domain as the secure AMF endpoint?
  
  Did you recompile your SWF with the updated configuration? Did 
you 
  restart the server

[flexcoders] Re: Can't use RemoteObject on HTTPS ONLY Server?

2006-04-19 Thread Steven Toth



Here are the console messages from the non-secure amf:

[Flex] Channel endpoint my-amf received request.
[Flex] Deserializing AMF/HTTP request
Version: 3
 (Message #0 targetURI=null, responseURI=/1)
 (Array #0)
 [0] = (Typed Object 
#0 'flex.messaging.messages.CommandMessage')
 messageRefType = null
 operation = 6
 correlationId = 
 headers = (Object #1)
 messageId = 7872E161-B9A4-4841-5F6D232B
 timeToLive = 0
 timestamp = 0
 clientId = null
 body = (Object #2)
 destination = 

[Flex] Executed command: (default service)
 commandMessage: Flex Message 
(flex.messaging.messages.CommandMessage)
 operation = client_ping
 messageRefType = null
 clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
 correlationId =
 destination =
 messageId = 7872E161-B9A4-4841-5F6D232B
 timestamp = 1145493517421
 timeToLive = 0
 body = {}
 replyMessage: Flex Message 
(flex.messaging.messages.AcknowledgeMessage)
 clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
 correlationId = 7872E161-B9A4-4841-5F6D232B
 destination = null
 messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
 timestamp = 1145493517421
 timeToLive = 0
 body = null

[Flex] Serializing AMF/HTTP response
Version: 3
 (Message #0 targetURI=/1/onResult, responseURI=)
 (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
 destination = null
 headers = (Object #1)
 correlationId = 7872E161-B9A4-4841-5F6D232B
 messageId = 233EDFBE-1D1D-C0FC-936D-FA6B34623DC5
 timeToLive = 0.0
 timestamp = 1.145493517421E12
 clientId = 233EDFBE-1D0A-4948-4537-EC592DCACD7F
 body = null

[Flex] Channel endpoint my-amf received request.
[Flex] Deserializing AMF/HTTP request
Version: 3
 (Message #0 targetURI=null, responseURI=/2)
 (Array #0)
 [0] = (Typed Object 
#0 'flex.messaging.messages.RemotingMessage')
 source = null
 operation = authenticateUser
 headers = (Object #1)
 endpoint = my-amf
 messageId = 09226E93-C2DA-A5E4-CCE6D97E
 timeToLive = 0
 timestamp = 0
 clientId = null
 body = (Array #2)
 [0] = (Typed Object 
#3 'com.logicseries.services.security.authenticati
on.AuthenticatedUserValue')
 currentLogonDateTime = null
 username = XX
 lastLogonDateTime = null
 password = XX
 invalidLogonAttempts = NaN
 name = null
 profile = "">
 authorizedRoles = null
 personId = NaN
 destination = lsSecurity




Here are the console messages from the secure amf:

[Flex] Channel endpoint my-secure-amf received request.
[Flex] Deserializing AMF/HTTP request
Version: 3
 (Message #0 targetURI=null, responseURI=/1)
 (Array #0)
 [0] = (Typed Object 
#0 'flex.messaging.messages.CommandMessage')
 operation = 6
 messageRefType = null
 correlationId = 
 messageId = E41A269A-9553-977E-525A3BB0
 timeToLive = 0
 timestamp = 0
 clientId = null
 body = (Object #1)
 destination = 
 headers = (Object #2)

[Flex] Serializing AMF/HTTP response
Version: 3
 (Header #0 name=AppendToGatewayUrl, mustUnderstand=false)
 ;jsessionid=c030f64fa6665e267f2d

 (Message #0 targetURI=/1/onResult, responseURI=)
 (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage')
 destination = null
 headers = (Object #1)
 correlationId = E41A269A-9553-977E-525A3BB0
 messageId = 2345E298-890B-5740-1E8D-72D6ED468800
 timeToLive = 0.0
 timestamp = 1.145493705625E12
 clientId = 2345E271-790C-307C-1DE9-1CB848FC58D2
 body = null



On the non-secure amf channel I get RemotingMessage traces after the 
AcknowledgeMessage. I never get anything on the secure amf channel 
after the AcknowledgeMessage. Any thought???




--- In flexcoders@yahoogroups.com, Steven Toth [EMAIL PROTECTED] 
wrote:

 Thanks for the notes. I wasn't aware of the fact that you need to 
 specify the context root on the compiler. I assumed (I know it's 
not 
 good to assume) that whatever was in the config files in WEB-
INF/flex 
 directory of the web app would be loaded and used at runtime. I 
 guess it's based on experiences with other 
languages/applications. 
 
 You're summary of the configuration is correct. I misspoke of JMS 
 messages, these are the Command and Remoting Messages, my 
apologies. 
 
 I already had the log level turned up, and I do see the Command 
and 
 Remoting Messages over HTTP, but only one of them over HTTPS (I'm 
not 
 see the message with the data for the objects being passed back 
and 
 forth). I will re-run a test and capture the sets of messages 
over 
 HTTP and HTTPS and post them here later tonight. 
 
 Sorry if I'm not articulating things exactly right, I'm new to 
Flex 
 and learning as I go. Thanks again for all your help. 
 
 
 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ 
 wrote:
 
  Note that for mxmlc you can provide the context root on the 
command 
 line
  with --context.root. Flex Builder needs to make this a little 
more
  obvious for FDS apps.
  
  Note that you don't _have_ to compile in configuration 
information, 
 but
  if you didn't then you would instead have to programmatically 
create
  your own Channel instance(s) and ensure t

[flexcoders] Re: Can't use RemoteObject on HTTPS ONLY Server?

2006-04-18 Thread Steven Toth
The SWF is also loaded over HTTPS, the same domain as the url for 
the secure amf endpoint.  One part of the problem was that I didn't 
know the configuration files get compiled into the SWF (that still 
baffles me why you'd compile in configuration files).  Once I 
recompiled with the updated config files it started attempting to 
access the secure amf endpoint.  However, I had to change the config 
file to hardcode the context root - it was not interpreting the 
{context.root} in the endpoint definition. I found this out by 
seeing requests for //messagebroker/amfsecure in the Apache log. 

After that change it hits the secure amf endpoint, but it is still 
not working.  When I run over a non-secure amf endpoint I see the 
JMS message in the server console window with the Value objects that 
are being sent over the wire.  However, when I run over the secure 
amf endpoint I only see the JMS messages, no data.  I'm guess 
something is not configured correctly on Apache, JRUN, Flex or all 
the above.  I'm running Apache 2, with the mod_jrun20.so connecting 
to JRun through the JRunProxyService.  I do not have the SSLService 
running on JRUN, and the JRunProxyService is not setup to run 
securely as it gave me issues about plain text connections when I 
tried.  However, when I request the SWF over HTTPS the request is 
routed to JRUN through Apache and it comes back successfully.  Also, 
I do see the JMS messages in the console window when accessing the 
secure amf endpoint, so it seems as though the Apache-JRun 
communication works for the HTTPS requests.  Am I missing 
sometihng?  I'm at a loss.  Thanks.



--- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] 
wrote:

 How are you loading your SWF? Are you loading it over HTTPS too? 
Is it
 on the same domain as the secure AMF endpoint?
 
 Did you recompile your SWF with the updated configuration? Did you
 restart the server with the updated configuration?
 
 How many channels are referenced under your RemotingService 
destination
 (i.e. the one in flex-remoting-service.xml)? 
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of sof4real03
 Sent: Monday, April 17, 2006 3:18 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Can't user RemoteObject on HTTPS ONLY Server?
 
 I'm trying to get a Remote Object to work on an HTTPs only server 
(one
 that does not accept HTTP connections). I have it working fine 
over a
 regular HTTP connection. I then remove the AMF channel definition 
in the
 flex-enterprise-services.xml and replace it with a SecureAMF 
channel
 definition and update the destinations in the flex-remoting-
service.xml
 to use the SecureAMF channel. However, when I execute the SWF I 
see in
 the web server logs that it is POSTing to messagebroker/amf not
 messagebroker/amfsecure. Also, if I open up the server to allow 
HTTP
 connections, but only configure SecureAMF channels I get the 
following
 error:
 
 No configured channel has an endpoint path '/messagebroker/amf
 
 The stacktrace indicates it's coming from the
 flex.messaging.MessageBroker.getEndPoint(MessageBroker.java:297). 
This
 seems to indicate that the Flex Data Services cannot run on an 
HTTPS
 only server.
 
 
 
 
 
 --
 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/

* 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: Combobox not highlighting on mouseOver (Flex2Beta2)

2006-04-18 Thread Steven Toth
Thanks for the idea, but we have already tried that.  It just seems 
as though it can't handle complex types.  It seems like it only 
works properly with Object types.  It rendered the list with the 
complex type (Value object), but it highlighted the last visible 
item when the dropdown list is displayed and doesn't highlight on 
mouseover.  Not sure if it's a bug or just not supported. 

Ended up using code similar to this ...

// Combo box is bound to the boundArray with the labelField being
// set to the value field and the data beign set to the code 
field.
var resultArray:Array = event.result as Array;
var boundArray:Array = new Array(resultArray.length);
for (var i:int = 0;iresultArray.length; i++) {
 boundArray[i] = {value:resultArray[i].value,code:resultArray
[i].code};
}

--- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] 
wrote:

 Instead of casting event.result, would
 mx.utils.ArrayUtil.toArray(event.result) do the trick?
 
 --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ 
wrote:
 
  A workaround that I had to do was create a new array and push in 
each
  of the indexes of the ValueObject array. This created a second 
array
  of plain vanilla objects. I'm not happy with this solution, but 
I'm
  baffled...
  
  --- In flexcoders@yahoogroups.com, sufibaba sufibaba@ wrote:
  
   
   I am using the PhoneCairngorm structure  from Benoit and have 
modified
   the backend to use a Database instead of the XML datafile.
   
   I am experiencing the same combobox  highlighting problem. The 
result
   ArrayCollection is Piped into a comboBox.  The labels are all
 correctly
   displayed in the box, however, when I scroll over the items, no
   highlight is shown.
   
   An interesting thing is that when I use Benoit's phone result
 dataset to
   populate a comboBox, it works properly.
   
   Does anyone have insight into this very perplexing problem?
   
   P.S.  This problem is not only with the combobox,   list 
controls is
   doing the same thing with the same problem dataset.
   
   Cheers,
   
   Tim
   
   
   
   
   --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ 
wrote:
   
Can the dataprovider for combobox understand an array of 
specific
value objects or does it need to be a plain vanilla object or
 string?
   
   
   
--- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ 
wrote:

 I'm returning a native 1 dimensional array of ValueObjects 
from a
   java
 class. The Value Object returned in the array has the 
following
 properties (AvtCategory:Object, value:String, 
code:String). I then
 databind the array to the dataprovider of the combobox 
specifying
   the
 label and data files to use. It populates the combobox, 
but when I
 mouseOver items in the dropdown it doesn't highlight the 
item. Any
 reason why that would be happening?

 Code below:

 mx:RemoteObject id=avtFacade destination=lsAvt
 result=resultHandler( event )
 fault=faultHandler( event )
 showBusyCursor=true/
 mx:Script
 ![CDATA[
 import com.name.services.avt.AvtCategoryValue;
 import mx.collections.ArrayCollection;
 import com.name.services.avt.AvtItemValue;
 import mx.controls.*;
 import mx.rpc.events.*;

 [Bindable]
 public var stateAvts:Array;

 public function testAvt():void
 {
 var stateCategory:AvtCategoryValue = new AvtCategoryValue
();
 stateCategory.avtCategoryCode = STATE;
 avtFacade.getAvtItems(stateCategory);
 }

 public function resultHandler(event:ResultEvent):void
 {
 stateAvts = event.result as Array;
 }

 public function faultHandler(event:FaultEvent):void
 {
 Alert.show(event.fault.faultstring, Error);
 }
 ]]
 /mx:Script

 mx:ComboBox id=state dataProvider={stateAvts}
 labelField=value data=code/

   
  
 








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