package com.smartdevicelink;

/**
 * This is a sample of how to get Java EE Bean to work with an SDL application
 * The code can be uncommented out with the proper gradle dependencies added
 */


//    @ServerEndpoint("/")
 //   @Stateful(name = "SDLSessionEJB")
    public class Main {

  /*      Session session;
        static Thread thread = null, mainThread;
        static Object LOCK;

        static com.smartdevicelink.SdlService sdlService;
        CustomTransport websocket;

        @OnOpen
        public void onOpen (Session session, EndpointConfig config) {
            websocket = new CustomTransport("http://localhost") {
                @Override
                public void onWrite(byte[] bytes, int offset, int length) {
                    try {
                        session.getBasicRemote().sendBinary(ByteBuffer.wrap(bytes));
                    }
                    catch (IOException e) {

                    }
                }
            };
            this.session = session;
            sdlService = new com.smartdevicelink.SdlService(websocket, sdlServiceCallback);
            sdlService.start();
        }

        @OnMessage
        public void onMessage (ByteBuffer message, Session session) {
            websocket.onByteBufferReceived(message);
        }


        static final com.smartdevicelink.SdlService.SdlServiceCallback sdlServiceCallback = new com.smartdevicelink.SdlService.SdlServiceCallback() {
            @Override
            public void onEnd() {

            }
        };
        */
    }

@@ -1063,16 +1063,42 @@
 Service(
+new CustomTransportConfig(
 websocke
@@ -1098,16 +1098,17 @@
 ebsocket
+)
 , sdlSer

Fix issue in SdlService constructor in hello_sdl_java_ee sample