[flexcoders] [Flex2, FDS] Configuring RPC
Hi list, I need to configure an RPC service in Flex Data Services. In addition, the desired application has to make use of a Messaging- and/or DataManagement-Service of the FDS environment. For that, the application needs to run under FDS, so the RPC configuration should be made in the Flax config files rather thatn inthe Coldfusion ones, right? How do I manage to do so? I mean, with the application hosted under Coldfusion, I simply tell FlexBuilder to use ColdFusion with FlashRemoting and it publishes the app in the wwwroot of Coldfusion. What I tried so far is to configure the Flex xml's just as the Coldfusion ones (regarding channel and service definition), but it does not find the adapter definition coldfusion.flash.messaging.ColdFusionAdapter, because it lies in the Coldfusion directories... Or is this a wrong attempt of mine? Is there a better (possibly right) way to configure stuff? Cheers, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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/
RE: [flexcoders] [Flex2, FDS] Configuring RPC
Thomas, To achieve this you have 3 ways ,in case you compile your app in the builder but if you compile at the server only the 2 first will work: 1) Use a merged version of CF+FDS 2) Create your RPC channel destination at runtime (Mike Nimer gave an example but can't remember where) this one will only work if it's the builder who compiles your app (and not the server). 3) Duplicate your compile file and in this one define your ColdFusion destination so FDS doesn't know about it , then point the compile argument to this one. FDS will use the regular one without the ColdFusion destination and the builder will compile your app with no problem. HTH, João Fernandes -Original Message- From: flexcoders@yahoogroups.com on behalf of Thomas Rühl -akitogo- Sent: Tue 18-Jul-06 12:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] [Flex2, FDS] Configuring RPC Hi list, I need to configure an RPC service in Flex Data Services. In addition, the desired application has to make use of a Messaging- and/or DataManagement-Service of the FDS environment. For that, the application needs to run under FDS, so the RPC configuration should be made in the Flax config files rather thatn inthe Coldfusion ones, right? How do I manage to do so? I mean, with the application hosted under Coldfusion, I simply tell FlexBuilder to use ColdFusion with FlashRemoting and it publishes the app in the wwwroot of Coldfusion. What I tried so far is to configure the Flex xml's just as the Coldfusion ones (regarding channel and service definition), but it does not find the adapter definition coldfusion.flash.messaging.ColdFusionAdapter, because it lies in the Coldfusion directories... Or is this a wrong attempt of mine? Is there a better (possibly right) way to configure stuff? Cheers, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/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/ winmail.dat
Re: [flexcoders] [Flex2, FDS] Configuring RPC
Hi João, thanks for the hints. Could you please please (with sugar on top of it ;-)) provide me with some more information about these two things * How can I merge the files into a single one (without FDS throwing errors all the time)? - tried that without success... * What do you mean Duplicate the compile files? The config's or mxml's? Is there a reliable documentation about these things? Everything I found seems somehow teared apart and I just don't get the big picture here... Thanks very much, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com João Fernandes wrote: Thomas, To achieve this you have 3 ways ,in case you compile your app in the builder but if you compile at the server only the 2 first will work: 1) Use a merged version of CF+FDS 2) Create your RPC channel destination at runtime (Mike Nimer gave an example but can't remember where) this one will only work if it's the builder who compiles your app (and not the server). 3) Duplicate your compile file and in this one define your ColdFusion destination so FDS doesn't know about it , then point the compile argument to this one. FDS will use the regular one without the ColdFusion destination and the builder will compile your app with no problem. HTH, João Fernandes -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of Thomas Rühl -akitogo- Sent: Tue 18-Jul-06 12:15 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] [Flex2, FDS] Configuring RPC Hi list, I need to configure an RPC service in Flex Data Services. In addition, the desired application has to make use of a Messaging- and/or DataManagement- Service of the FDS environment. For that, the application needs to run under FDS, so the RPC configuration should be made in the Flax config files rather thatn inthe Coldfusion ones, right? How do I manage to do so? I mean, with the application hosted under Coldfusion, I simply tell FlexBuilder to use ColdFusion with FlashRemoting and it publishes the app in the wwwroot of Coldfusion. What I tried so far is to configure the Flex xml's just as the Coldfusion ones (regarding channel and service definition), but it does not find the adapter definition coldfusion.flash. messaging.ColdFusionAdapter, because it lies in the Coldfusion directories... Or is this a wrong attempt of mine? Is there a better (possibly right) way to configure stuff? Cheers, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] mailto:thomas.ruehl%40akitogo.com Web http://www.akitogo.com http://www.akitogo.com Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/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/
RE: [flexcoders] [Flex2, FDS] Configuring RPC
Thomas, you couldn't find documentation because there isn't :p Adobe launched a technote how to merge cf + fds but Tom Jordahl doesn't like it very much. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d but in the merging web.xml from cf and flex you should keep the cf version of the MessageBrokerServlet. The compile files, I mean, the flex-config.xml file where you define your channels destinations. When creating a new project, the services argument is set for you (go to properties then flex compiler) but you can change this an point to any xml file so you can have your FDS with your Messaging, DS Destinations, http, etc and a copy of that with the additional destination for ColdFusion just for compiling purpose. João Fernandes -Original Message- From: flexcoders@yahoogroups.com on behalf of Thomas Rühl -akitogo- Sent: Tue 18-Jul-06 1:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] [Flex2, FDS] Configuring RPC Hi João, thanks for the hints. Could you please please (with sugar on top of it ;-)) provide me with some more information about these two things * How can I merge the files into a single one (without FDS throwing errors all the time)? - tried that without success... * What do you mean Duplicate the compile files? The config's or mxml's? Is there a reliable documentation about these things? Everything I found seems somehow teared apart and I just don't get the big picture here... Thanks very much, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com João Fernandes wrote: Thomas, To achieve this you have 3 ways ,in case you compile your app in the builder but if you compile at the server only the 2 first will work: 1) Use a merged version of CF+FDS 2) Create your RPC channel destination at runtime (Mike Nimer gave an example but can't remember where) this one will only work if it's the builder who compiles your app (and not the server). 3) Duplicate your compile file and in this one define your ColdFusion destination so FDS doesn't know about it , then point the compile argument to this one. FDS will use the regular one without the ColdFusion destination and the builder will compile your app with no problem. HTH, João Fernandes -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of Thomas Rühl -akitogo- Sent: Tue 18-Jul-06 12:15 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] [Flex2, FDS] Configuring RPC Hi list, I need to configure an RPC service in Flex Data Services. In addition, the desired application has to make use of a Messaging- and/or DataManagement- Service of the FDS environment. For that, the application needs to run under FDS, so the RPC configuration should be made in the Flax config files rather thatn inthe Coldfusion ones, right? How do I manage to do so? I mean, with the application hosted under Coldfusion, I simply tell FlexBuilder to use ColdFusion with FlashRemoting and it publishes the app in the wwwroot of Coldfusion. What I tried so far is to configure the Flex xml's just as the Coldfusion ones (regarding channel and service definition), but it does not find the adapter definition coldfusion.flash. messaging.ColdFusionAdapter, because it lies in the Coldfusion directories... Or is this a wrong attempt of mine? Is there a better (possibly right) way to configure stuff? Cheers, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] mailto:thomas.ruehl%40akitogo.com Web http://www.akitogo.com http://www.akitogo.com Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/ winmail.dat
Re: [flexcoders] [Flex2, FDS] Configuring RPC
=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 channel-definition id=my-http class=mx.messaging.channels.HTTPChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/http; class=flex.messaging.endpoints.HTTPEndpoint/ /channel-definition channel-definition id=my-secure-http class=mx.messaging.channels.SecureHTTPChannel endpoint uri=https://{server.name}:9100/{context.root}/messagebroker/httpsecure; class=flex.messaging.endpoints.SecureHTTPEndpoint/ /channel-definition /channels logging target class=flex.messaging.log.ConsoleTarget level=Error properties prefix[Flex] /prefix includeDatefalse/includeDate includeTimefalse/includeTime includeLevelfalse/includeLevel includeCategoryfalse/includeCategory /properties filters patternEndpoint.*/pattern patternService.*/pattern patternConfiguration/pattern /filters /target /logging system redeploy enabledtrue/enabled watch-interval20/watch-interval watch-file{context.root}/WEB-INF/flex/services-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/proxy-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/remoting-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/messaging-config.xml/watch-file watch-file{context.root}/WEB-INF/flex/data-management-config.xml/watch-file touch-file{context.root}/WEB-INF/web.xml/touch-file /redeploy /system /services-config - Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com Thomas Rühl -akitogo- wrote: Alright João, thanks! I'll give it a shot then. You'd be my personal hero of the week, if it works after all ;-) Cheers. Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] mailto:thomas.ruehl%40akitogo.com Web http://www.akitogo.com http://www.akitogo.com João Fernandes wrote: It's the FDS one you'll need to duplicate. why? Because it's the FDS one that doesn't support ColdFusion remoting so, you duplicate that file, add the ColdFusion destination, change the -service arg to point to the new file and compile it. Deploy it in FDS and you should be able to invoke DS destinations and use remoting pointing to your CF instance. João Fernandes -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com on behalf of Thomas Rühl -akitogo- Sent: Tue 18-Jul-06 2:02 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] [Flex2, FDS] Configuring RPC When creating a new project, the services argument is set for you (go to properties then flex compiler) but you can change this an point to any xml file so you can have your FDS with your Messaging, DS Destinations, http, etc and a copy of that with the additional destination for ColdFusion just for compiling purpose. ...so, a roadmap might be something like this: * I make a copy of the services-config.xml. (The cf- or flex-version?) * In the new file, I set up a destination named Coldfusion for dummy purpose and the compiler not to moan. * In the project's properties, I select the duplicated file. * And in the end, I let FlexBuilder publish everything on FDS anyway, right? Sorry, but I feel a little unsafe here... ;-) Regards, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL
Re: [flexcoders] [Flex2, FDS] Configuring RPC
YEEEAHH!! Rock 'n' Roll!!! It works, RPC works! And it's hosted on FDS, how cool's that...!? Dunno exactly why, I didn't change anything about the config files anymore, just closed and re-opened eclipse, and see - it seems the RPC calls finally work :-) Thanks again, João! You ARE my personal hero for the rest of the week now... Trying to get the rest of the FDS working now ;-) Cheers, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] Web http://www.akitogo.com Thomas Rühl -akitogo- wrote: Alright João, thanks! I'll give it a shot then. You'd be my personal hero of the week, if it works after all ;-) Cheers. Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] mailto:thomas.ruehl%40akitogo.com Web http://www.akitogo.com http://www.akitogo.com João Fernandes wrote: It's the FDS one you'll need to duplicate. why? Because it's the FDS one that doesn't support ColdFusion remoting so, you duplicate that file, add the ColdFusion destination, change the -service arg to point to the new file and compile it. Deploy it in FDS and you should be able to invoke DS destinations and use remoting pointing to your CF instance. João Fernandes -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of Thomas Rühl -akitogo- Sent: Tue 18-Jul-06 2:02 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] [Flex2, FDS] Configuring RPC When creating a new project, the services argument is set for you (go to properties then flex compiler) but you can change this an point to any xml file so you can have your FDS with your Messaging, DS Destinations, http, etc and a copy of that with the additional destination for ColdFusion just for compiling purpose. ...so, a roadmap might be something like this: * I make a copy of the services-config.xml. (The cf- or flex-version?) * In the new file, I set up a destination named Coldfusion for dummy purpose and the compiler not to moan. * In the project's properties, I select the duplicated file. * And in the end, I let FlexBuilder publish everything on FDS anyway, right? Sorry, but I feel a little unsafe here... ;-) Regards, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] mailto:thomas.ruehl%40akitogo.com mailto:thomas.ruehl%40akitogo.com Web http://www.akitogo.com http://www.akitogo.com http://www.akitogo.com http://www.akitogo.com João Fernandes wrote: Thomas, you couldn't find documentation because there isn't :p Adobe launched a technote how to merge cf + fds but Tom Jordahl doesn't like it very much. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4f079a4d but in the merging web.xml from cf and flex you should keep the cf version of the MessageBrokerServlet. The compile files, I mean, the flex-config.xml file where you define your channels destinations. When creating a new project, the services argument is set for you (go to properties then flex compiler) but you can change this an point to any xml file so you can have your FDS with your Messaging, DS Destinations, http, etc and a copy of that with the additional destination for ColdFusion just for compiling purpose. João Fernandes -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com on behalf of Thomas Rühl -akitogo- Sent: Tue 18-Jul-06 1:15 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders