Flex2gateway configuration for lucee

Hello Guys,

I have been working on this since last 1 month and not able to resolve this. This flex2gateway used to work flawlessly with ColdFusion but with Lucee i see a lot of changes. I got one solution which make flex2gateway work but that is not the complete solution. I have to download blazeds code and do the configuration in Lucee so that it work but then i get few errors like duplicate sessions and one class can not be created error.

Anyone who made this work?

There is one more error which i could not post in the first post

What version of lucee are you using? We use 4.5 and the flex2gateway works, but we cannot upgrade to version 5 because of the flex2gateway.We reported the bug at Log in with Atlassian account but it doesn’t look like it will be fixed. I would ask you to open a new ticket at the issue tracker…

Michael,

Can you tell me the steps to follow so that it works with Lucee 4.5?

Thanks,
Rohit

We use Apache 2.4 with AJP, so maybe you have to change somethings. It will only work with one virtual host, if you have more hosts, the first one will only work.

lucee/tomcat/conf/web.xml:

<servlet id="MessageBrokerServlet">
  <description>Railo Servlet for Flex Gateway</description>
  <servlet-name>MessageBrokerServlet</servlet-name>
  <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
  <init-param>
    <param-name>services.configuration.file</param-name>
    <param-value>/WEB-INF/flex/services-config.xml</param-value>
  </init-param>
  <init-param>
    <param-name>messageBrokerId</param-name>
    <param-value>_default_</param-value>
  </init-param>
  <load-on-startup>0</load-on-startup>
</servlet>

add to the Apache virtual host:

JkMount /flex2gateway/* ajp13_worker

Check if you have to create the [WEBAPP]\WEB-INF\flex folder, there have to be 4 files:

  • messaging-config.xml
  • proxy-config.xml
  • remoting-config.xml
  • services-config.xml

If you have further questions, please reply, I will check if I can help you.

Hello,
Did you have a chance of running that flex2gateway with Lucee 5.+ ?
We had to plug-in our Flex App to Lucee server.

Thanks for your feedbacks
Vincent