Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.0_b89_RC5
    • Fix Version/s: None
    • Component/s: cdi
    • Labels:
      None
    • Environment:

      mac osx

      Description

      Hi,

      Got some CDI issues on the latest GlassFish version

      First in JSF2.2 the flowDefinition of flows does not work , I needed to use the faces-config.xml and that works perfectly

      my example
      @Named("flow1")
      public class Flow1 implements Serializable {

      private static final long serialVersionUID = -1L;

      @Produces @FlowDefinition
      public Flow buildMyFlow(@FlowBuilderParameter FlowBuilder flowBuilder)

      { System.out.println("flowdef"); String flowId = "flow1"; flowBuilder.id("", flowId); flowBuilder.viewNode(flowId, "/flow1/" + flowId + ".xhtml").markAsStartNode(); return flowBuilder.getFlow(); }

      }

      Also in the websockets and do an inject of session bean and does not do anything , also listen to an CDI event inside does not work

      @ServerEndpoint("/mywebsocket")
      public class MyWebSocket implements Serializable {

      @Inject
      JmsSessionBean jmsBean;

      public void onJMSMessage(@Observes @CDIJmsEvent Message msg) {
      System.out.println("Got JMS Message at WebSocket!");
      try {
      for (Session s : sessions)

      { s.getBasicRemote().sendText("message from JMS: " + msg.getBody(String.class)); }

      } catch (IOException | JMSException ex)

      { ex.printStackTrace(); }

      }

      Inside a managed bean Inject and the CDI events works perfectly

        Activity

          People

          • Assignee:
            phil.zampino
            Reporter:
            biemond
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: