Well,
I managed to merge both in a single instance following this steps (still a
problem):
1) Create a new CF Instance
2) Stop that instance
4) Install Flex 2 as J2EE and pick the CFinstance port number (you can see that
under the instance manager).
3) Expand Flex.war into a temp folder .
4) Merge coldfusion web.xml and flex one like for CF+Flex 1.5 (filters,
mappings, servlets...)
5) Copy libs from /tempfolder/lib (those that don't exist on the /web-inf/lib
6) Copy /tempfolder/flex to web-inf/flex folder
7) Enable the messaging channel in the flex-enterprise-services.xml by adding
this channel.
<channel-definition id="my-cfamf"
class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:{your cf instance port here
}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<custom-deserializer type="typed-object"
class="coldfusion.flash.messaging.io.amf.serializers.TypedObjectDeserializer" />
</serialization>
</properties>
</channel-definition>
8) to Enable Flex 2 EventGateway communication add this line in the
flex-message-service.xml (/flex/ folder) inside the adapters tag:
<adapter-definition id="cfgateway"
class="coldfusion.flex.CFEventGatewayAdapter"/>
8) for remoting (flex-remoting-service.xml) add this adapter
<adapter-definition id="cf-object"
class="coldfusion.flash.messaging.ColdFusionAdapter" />
Set the default channel to
<default-channels>
<channel ref="my-cfamf"/>
</default-channels>
And set the destination :
<destination id="ColdFusion">
<channels>
<channel ref="my-cfamf"/>
</channels>
<properties>
<source>*</source>
<lowercase-keys>false</lowercase-keys>
</properties>
</destination>
9) Start your CF instance
10) Launch wsconfig and map that instance to a website (+ configure cf for that
site).
11) Map the additional flex extensions to the same jrun.dll.
12) add the cfide virtual folder
My instance started fine but I had an error on my log saying that it couldn't
find "coldfusion.flash.messaging.ColdFusionAdapter".
I just copied the the /web-inf/cfusion/lib/flashremoting_update.jar to the
/web-inf/lib/ and no more errors where found.
Coldfusion related objects work just fine but mxml are compiled but the movie
never show up. The html-wrapper is created fine by the instance but no movie.
I checked all the logs (jrun4/logs,
jrun4/servers/myinstance/cfusion.ear/cfusion.war/web-inf/cfusion/logs,
jrun4/servers/myinstance/cfusion.ear/cfusion.war/web-inf/flex/logs and no error
was thrown.
Any Ideas? Just this missing to be able to play with my new baby.
Regards,
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
joao_m_fernandes
Sent: quarta-feira, 1 de Fevereiro de 2006 12:40
To: [email protected]
Subject: [flexcoders] FES2 + ColdFusion
Hi there,
So here I go:
1) How do you process do deploy FES2 under the same context as CF?
2) Is the same approach than with Flex 1.5?
3) Is any changes to be made to the flex-config.xml ? I see
there a <context-root>/flex</context-root> should it be commented?
4) During installation I was asked for a port number (default
8700) should I care about this or since I'm using under CF
installation I won't have any effect or this is relevant on my
endpoints inside the flex-enterprise-services.xml?
5) Does FES2 provide already the CFAdapter for dataservices or
only for Hibernate/JAVA ones?
6) How to install Flex-admin btw? is it installable under CFinstance
like flex?
Thanks
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
--
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/