Wednesday, October 6, 2010

Yes on 24.

Vote!

Friday, January 22, 2010

Corporations Are Individuals

Since they get free speech, they also should be incarcerated and get the death penalty for crimes they commit. They means all of their shareholders.

Friday, August 28, 2009

Configure Flex To Use Either AMF or AMF-SECURE

How To Configure Flex To Use Either AMF or AMF-SECURE

I needed to develop a Flex application on my desktop and test using Tomcat 6 out of the box, without a certificate installed for HTTPS. However I need to deploy that application to a test and production server that force the use of HTTPS.

There is no good documentation on the web explaining how you can do this. It's not difficult. I'm writing this to save you the trial and error process I went through.

#1. In your services-config.xml file you need the following entries to define your amf and amf-secure channels. The trick here is that we make these polling so that the system will be able to switch to the other channel if the first one it tries fails, given that you follow the instructions in Step 2:


<channel-definition id=\"my-secure-amf\" class=\"mx.messaging.channels.SecureAMFChannel\">
<endpoint url=\"https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure\" class=\"flex.messaging.endpoints.SecureAMFEndpoint\"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>true</polling-enabled>
<polling-interval-millis>0</polling-interval-millis>
<wait-interval-millis>-1</wait-interval-millis>
<max-waiting-poll-requests>0</max-waiting-poll-requests>
</properties>
</channel-definition>

<channel-definition id=\"my-amf\" class=\"mx.messaging.channels.AMFChannel\">
<endpoint url=\"http://{server.name}:{server.port}/{context.root}/messagebroker/amf\" class=\"flex.messaging.endpoints.AMFEndpoint\"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>true</polling-enabled>
<polling-interval-millis>0</polling-interval-millis>
<wait-interval-millis>-1</wait-interval-millis>
<max-waiting-poll-requests>0</max-waiting-poll-requests>
</properties>
</channel-definition>


#2. In your remoting-config.xml and your proxy-config.xml files define the following. The trick here is that you are defining two channels for use. If one fails the system will try the next.





That's it! As soon as I made the above changes I was able to build and deploy my Flex application to EITHER an https configured server OR and http configured server.

Friday, August 21, 2009

Promises Promises

Quote of the day - "We may make statements on this Web page regarding our product development and service offering initiatives, including the content of future product upgrades, updates or functionality in development. While such statements represent our current intentions, they may be modified, delayed or abandoned without prior notice and there is no assurance that such offering, upgrades, updates or functionality will become available unless and until they have been made generally available to our customers."

Tuesday, August 18, 2009

Which Search Engine Is Best?

http://www.blindsearch.fejus.com/

You decide!

Tuesday, May 6, 2008

Thursday, February 14, 2008

Deploy Flex App as a WAR file on Tomcat.

1. Build the Flex app, say "HelloWorld".
2. Create a temp directory.
3. Copy everything out of the Flex HelloWorld bin directory to temp.
4. In temp create a META-INF and WEB-INF directory.
5. In temp type: jar cvf HelloWorld.war *
6. Use the Tomcat Manager web application to deploy the HelloWorld.war file.