Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-52

Locally transmitted context data is not received

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.Alpha1
    • None
    • EJB
    • Hide

      from within a client-side ejb interceptor add some data with context.getContextData().put(...). On the server-side ejb interceptor try to read it with context.getContextData().get(...).
      Both EJB's should be on the same machine

      Show
      from within a client-side ejb interceptor add some data with context.getContextData().put(...). On the server-side ejb interceptor try to read it with context.getContextData().get(...). Both EJB's should be on the same machine
    • Hide

      Disable LocalEjbReceiver via exclude-local-receiver="true" in jboss-ejb-client.xml to use the remote receiver.

      <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0">
      <client-context>
      <ejb-receivers exclude-local-receiver="true">
      <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/>
      </ejb-receivers>
      </client-context>
      </jboss-ejb-client>

      See this URL for setting up outbound connection

      https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance

      Show
      Disable LocalEjbReceiver via exclude-local-receiver="true" in jboss-ejb-client.xml to use the remote receiver. <jboss-ejb-client xmlns="urn:jboss:ejb-client:1.0"> <client-context> <ejb-receivers exclude-local-receiver="true"> <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection"/> </ejb-receivers> </client-context> </jboss-ejb-client> See this URL for setting up outbound connection https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance

    Description

      ContextData attached to request is not transmitted when LocalEJBReceiver is used.

      org.jboss.as.ejb3.remote.LocalEJBReceiver:177

      context.setContextData(new HashMap<String, Object>());

      see also https://issues.jboss.org/browse/AS7-5021

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            danamin Wouter De Borger (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: