[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
Alessio Soldano commented on JBWS-3833:
---------------------------------------
Tadayoshi,
please don't me misled by the client invoking echoAsync; the client is using a different SEI, which has the additional -Async methods to allow asynchronous behaviour on client side. As a matter of fact, the wsdl contract that's generated for the deployment only has a 'echo' operation.
This said, I've added a new method to the AsynchTestcase, to also cover your scenario (the test is passing locally): http://anonsvn.jboss.org/repos/jbossws/stack/cxf/trunk/modules/testsuite/...
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration updated JBWS-3833:
------------------------------------------
Bugzilla Update: Perform
Bugzilla References: https://bugzilla.redhat.com/show_bug.cgi?id=1146764
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by Tadayoshi Sato (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
Tadayoshi Sato commented on JBWS-3833:
--------------------------------------
Maybe I should have developed a reproducer based on the {{AsynchTestCase}} in jbossws-cxf...
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by Tadayoshi Sato (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
Tadayoshi Sato commented on JBWS-3833:
--------------------------------------
Hi Alessio,
I believe the difference is that in the jbossws-cxf test case the client explicitly invokes the async version of WS method, {{echoAsync}}, while in my case the {{GreetingService}} doesn't provide {{helloAsync}} to clients as an operation in WSDL and a client is supposed to invoke {{hello}} operation instead.
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
Alessio Soldano edited comment on JBWS-3833 at 9/25/14 5:46 AM:
----------------------------------------------------------------
Strange thing is that the attached app looks very similar (if not the same) to the testcase we have in jbossws-cxf testsuite, which is passing, see e.g. http://jbossws-qa.jboss.org:8180/hudson/job/CXF-CORE-AS-8.1.0/139/testRep...
was (Author: asoldano):
Strange thing is that the attached app looks very similar (if not the same) as the testcase we have in jbossws-cxf testsuite, which is passing, see e.g. http://jbossws-qa.jboss.org:8180/hudson/job/CXF-CORE-AS-8.1.0/139/testRep...
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by Alessio Soldano (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
Alessio Soldano commented on JBWS-3833:
---------------------------------------
Strange thing is that the attached app looks very similar (if not the same) as the testcase we have in jbossws-cxf testsuite, which is passing, see e.g. http://jbossws-qa.jboss.org:8180/hudson/job/CXF-CORE-AS-8.1.0/139/testRep...
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by Tadayoshi Sato (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
Tadayoshi Sato commented on JBWS-3833:
--------------------------------------
FYI, if {{hello}} method is annotated as {{@UseAsyncMethod(always = true)}}, {{helloAsync}} is invoked even on JBoss.
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (JBWS-3833) @UseAsyncMethod doesn't seem to work on JBoss
by Tadayoshi Sato (JIRA)
[ https://issues.jboss.org/browse/JBWS-3833?page=com.atlassian.jira.plugin.... ]
Tadayoshi Sato updated JBWS-3833:
---------------------------------
Description:
I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
{code:java}
@WebService(...)
public class GreetingServiceImpl implements GreetingService {
...
@WebMethod
@UseAsyncMethod
public String hello(String name) { ... }
public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
{code}
My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
Attached please see the complete reproducer project {{async.zip}} for detail.
was:
I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
{code:java}
@WebService(...)
public class GreetingServiceImpl implements GreetingService {
...
@WebMethod
@UseAsyncMethod
public String hello(String name) { ... }
public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
{code}
My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it is not an issue with CXF itself but with JBoss WS integration.
Attached please see the complete reproducer project {{async.zip}} for detail.
> @UseAsyncMethod doesn't seem to work on JBoss
> ---------------------------------------------
>
> Key: JBWS-3833
> URL: https://issues.jboss.org/browse/JBWS-3833
> Project: JBoss Web Services
> Issue Type: Bug
> Components: jbossws-cxf
> Affects Versions: jbossws-cxf-4.3, jbossws-cxf-4.3.1
> Reporter: Tadayoshi Sato
> Attachments: async.zip
>
>
> I developed the following WS endpoint that uses {{@UseAsyncMethod}}:
> {code:java}
> @WebService(...)
> public class GreetingServiceImpl implements GreetingService {
> ...
> @WebMethod
> @UseAsyncMethod
> public String hello(String name) { ... }
> public Future<HelloResponse> helloAsync(final String name, final AsyncHandler<HelloResponse> asyncHandler) { ... }
> {code}
> My expectation with {{@UseAsyncMethod}} is that whenever the {{hello()}} operation is invoked {{helloAsync()}} is eventually executed on JBoss (WildFly 8 or EAP 6). However, it really is not.
> I tested the same endpoint by launching it using {{Endpoint.publish(...)}} as well and it works as expected, so I don't think it's an issue with CXF itself but with JBoss WS integration.
> Attached please see the complete reproducer project {{async.zip}} for detail.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months