Has anyone yet managed to get OpenBD working with some form of AMF provider? I can see this being a very common use case for CF developers and think if anyone has anything to share, the sooner the better.
I guess BlazeDS would be the initial answer (unless someone knows better, which is quite likely).
I started a discussion in the past regarding this and I think they were going to ask the guys from the WebOrb to help port BD6.2 implementation to OpenBD. While this is great, integration with BlazeDS would be awesome since it would provide support not only for remoting but also for messaging. It would make OpenBD a very interesting solution for data-push Flex/AJAX applications.
I asked Vince about this at cfO. webOrb used to work with BlueDragon but it seems this may have taken a nose dive (seems like I heard this somewhere). I've yet to try it with OpenBD I have some work to do on another initiative this week and can not get distracted, again. You may check out weborb and try installing it see how it goes :)
Adam Haskell
On Mon, May 12, 2008 at 12:55 PM, Neil Middleton <neil.middle...@gmail.com> wrote:
> Has anyone yet managed to get OpenBD working with some form of AMF > provider? I can see this being a very common use case for CF developers and > think if anyone has anything to share, the sooner the better.
> I guess BlazeDS would be the initial answer (unless someone knows better, > which is quite likely).
I was able to get the BlazeDS testdrive-httpservice example to work with OpenBD using the following steps:
1. Installed BlazeDS Turnkey to C:\BlazeDS.
2. Extracted the contents of openbluedragon.war to C:\BlazeDS\tomcat\webapps\samples. (NOTE: don't overwrite the existing JARs and web.xml)
3. Edited the C:\BlazeDS\tomcat\webapps\samples\WEB-INF\web.xml to copy the listener, servlets and servlet mappings from OpenBD's web.xml. I've attached the resulting web.xml.
4. Edited the C:\BlazeDS\tomcat\webapps\samples\WEB-INF\flex\proxy-config.xml to change catalog.jsp to catalog.cfml.
5. Created a catalog.cfml in the C:\BlazeDS\tomcat\webapps\samples\testdrive-httpservice directory. This file uses CFML to generate XML equivalent to the XML generated by catalog.jsp.
6. Started Tomcat by invoking C:\BlazeDS\tomcat\bin\startup.bat.
I haven't played with any of the other examples yet.
Paul
From: openbd@googlegroups.com [mailto:openbd@googlegroups.com] On Behalf Of Neil Middleton Sent: Monday, May 12, 2008 12:55 PM To: openbd@googlegroups.com Subject: [OpenBD] AMF
Has anyone yet managed to get OpenBD working with some form of AMF provider? I can see this being a very common use case for CF developers and think if anyone has anything to share, the sooner the better.
I guess BlazeDS would be the initial answer (unless someone knows better, which is quite likely).
Paul, I followed the same steps as you did but the 'real' bonus of integrating OpenBD with BlazeDS would be to have AS3 Classes translated to CFC instances over a HTTP based channel ( default , polling, long-polling or HTTPStreaming) using AMFX. There is a cfgatewayadapter.jar that seems to have some classes that would help. --
BlazeDS implements a plug-in play serializer to support other
languages (outside of Java). All you need to do is write a serializer
that converts the ActionScript objects to BlueDragon's CFC Java
classes. It's really straight forward and simple. BlazeDS is also
GPLv3, so you should be able to distribute it with OpenBD (the open
source version that is). Good luck.
<joaopedromartinsfernan...@gmail.com> wrote:
> Paul, I followed the same steps as you did but the 'real' bonus of
> integrating OpenBD with BlazeDS would be to have AS3 Classes translated
> to CFC instances over a HTTP based channel ( default , polling,
> long-polling or HTTPStreaming) using AMFX. There is a
> cfgatewayadapter.jar that seems to have some classes that would help.
> --
> BlazeDS implements a plug-in play serializer to support other > languages (outside of Java). All you need to do is write a serializer > that converts the ActionScript objects to BlueDragon's CFC Java
There's OpenAMF too, which Railio ships with, but the latest released version doesn't support AMF3 (so object type information is lost) - I think.
I never wrote a line of JAVA but I guess AMF0 implementation will allow me to understand how it all works. I guess to debug BlazeDS within BlueDragon I'll have to copy all the source code inside and merge the web.xml , right? Or do I need to change anything additionally to the build.xml?
I was able to get the BlazeDS testdrive-remoteobject test to work with OpenBD by performing these additional steps:
1. Edited C:\BlazeDS\tomcat\webapps\samples\WEB-INF\flex\remoting-config.xml to change the adapters children to:
a. <adapters>
b. <adapter-definition id="bd-object" class="openbd.flash.messaging.OpenBDAdapter" default="true"/>
c. <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter"/>
d. </adapters>
2. Placed the attached OpenBDAdapter.jar in the directory C:\BlazeDS\tomcat\webapps\samples\WEB-INF\lib. Note that this jar file contains the source too for those that want to look at it.
3. Placed the attached ProductService.cfc in the directory C:\BlazeDS\tomcat\webapps\samples\flex\samples\product.
This week is the first time that I've used BlazeDS so hopefully I took the right approach in making a new adapter to support OpenBD.
Paul
From: openbd@googlegroups.com [mailto:openbd@googlegroups.com] On Behalf Of Paul Bonfanti Sent: Monday, May 12, 2008 3:01 PM To: openbd@googlegroups.com Subject: [OpenBD] Re: AMF
I was able to get the BlazeDS testdrive-httpservice example to work with OpenBD using the following steps:
1. Installed BlazeDS Turnkey to C:\BlazeDS.
2. Extracted the contents of openbluedragon.war to C:\BlazeDS\tomcat\webapps\samples. (NOTE: don't overwrite the existing JARs and web.xml)
3. Edited the C:\BlazeDS\tomcat\webapps\samples\WEB-INF\web.xml to copy the listener, servlets and servlet mappings from OpenBD's web.xml. I've attached the resulting web.xml.
4. Edited the C:\BlazeDS\tomcat\webapps\samples\WEB-INF\flex\proxy-config.xml to change catalog.jsp to catalog.cfml.
5. Created a catalog.cfml in the C:\BlazeDS\tomcat\webapps\samples\testdrive-httpservice directory. This file uses CFML to generate XML equivalent to the XML generated by catalog.jsp.
6. Started Tomcat by invoking C:\BlazeDS\tomcat\bin\startup.bat.
I haven't played with any of the other examples yet.
Paul
From: openbd@googlegroups.com [mailto:openbd@googlegroups.com] On Behalf Of Neil Middleton Sent: Monday, May 12, 2008 12:55 PM To: openbd@googlegroups.com Subject: [OpenBD] AMF
Has anyone yet managed to get OpenBD working with some form of AMF provider? I can see this being a very common use case for CF developers and think if anyone has anything to share, the sooner the better.
I guess BlazeDS would be the initial answer (unless someone knows better, which is quite likely).
I
was able to get the BlazeDS testdrive-remoteobject test to
work with OpenBD by performing these additional steps:
1.Edited
C:\BlazeDS\tomcat\webapps\samples\WEB-INF\flex\remoting-config.xml
to change the adapters children to:
a. <adapters>
b. <adapter-definition
id="bd-object" class="openbd.flash.messaging.OpenBDAdapter"
default="true"/>
c. <adapter-definition
id="java-object"
class="flex.messaging.services.remoting.adapters.JavaAdapter"/>
d. </adapters>
2.Placed
the attached OpenBDAdapter.jar in the directory
C:\BlazeDS\tomcat\webapps\samples\WEB-INF\lib.
Note that this jar file contains the source too for those that want to
look at
it.
3.Placed
the attached ProductService.cfc in the directory
C:\BlazeDS\tomcat\webapps\samples\flex\samples\product.