can you inject a value from the config params file in to the splitter group 
attribute? if so, what is the proper way of doing it? thanks!

Is this possible? What am I doing wrong? Thank you!

<split streaming="true" >
<tokenize token="\n" group="{{noOfLines}}" />
<log message="Split Group Body: ${body}"/>
    <to uri="bean:extractHeader" />
    <to id="acceptedFileType" ref="pConsumer" /> 
</split>

<split streaming="true" >
<tokenize token="\n" group={{noOfLines}} />
<log message="Split Group Body: ${body}"/>
    <to uri="bean:extractHeader" />
    <to id="acceptedFileType" ref="pConsumer" /> 
</split>

Gary Lee Mills
Work:  331-777-2318

-----Original Message-----
From: Shultz, Dmitry [mailto:dmitry_shu...@kaltire.com] 
Sent: Thursday, May 17, 2018 4:23 PM
To: users@camel.apache.org
Subject: EXT: camel-atmosphere-websocket + TomEE

Hi All,

I'm running CDI + JSF + Deltaspike + Camel web app in TomEE. My web.xml 
contains following config for the servlets:

   <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
        <welcome-file>dashboard.xhtml</welcome-file>
    </welcome-file-list>

    <servlet>
        <display-name>Camel Http Transport Servlet</display-name>
        <servlet-name>CamelServlet</servlet-name>
        
<servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <!-- define that url path for the Camel Servlet to use -->
    <servlet-mapping>
        <servlet-name>CamelServlet</servlet-name>
        <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>

It's all works good except of camel-atmosphere-websocket, when I create route:

from("atmosphere-websocket:///mypath");

from("direct:ws").to("atmosphere-websocket:///mypath?sendToAll=true");

HTTP Client is not able to connect to the WS, getting:

WebSocket connection to 'ws://localhost:8080/my-app/rest/mypath' failed: Error 
during WebSocket handshake: Unexpected response code: 404

Is there anything I'm missing?

Actually, I'm not sure if camel-atmosphere-websocket actually creates the 
server endpoint (the same as this one for example: 
https://github.com/WASdev/sample.microprofile.meetingapp/blob/master/src/main/java/net/wasdev/samples/microProfile/meetings/MeetingNotifier.java)

Cheers,
Dmitry


Reply via email to