[JBoss JIRA] (WFLY-3925) JAX-RS bean implemented as Stateless is destroyed after response
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/WFLY-3925?page=com.atlassian.jira.plugin.... ]
David Lloyd updated WFLY-3925:
------------------------------
Steps to Reproduce:
1. Create this test bean:
{code}
@Path("/test2")
@Stateless
public class Test2 {
@GET
public String hello() {
return "hello !";
}
@PostConstruct
protected void postConstruct() {
System.out.println("Test2().postConstruct() " + this);
}
@PreDestroy
protected void preDestroy() {
System.out.println("Test2().preDestroy() " + this);
}
}
{code}
2. Hit the URL (ex: http://localhost:8080/TestRest3/rest/test2) and look at the server output, something like this will show:
{noformat}
16:21:46,430 INFO [stdout] (default task-41) Test1().postConstruct() test.Test2@890a1e2
16:21:46,432 INFO [stdout] (default task-41) Test1().preDestroy() test.Test2@890a1e2
{noformat}
AFAIK SLSB shouldn't be destroyed after service request.
was:
1. Create this test bean:
@Path("/test2")
@Stateless
public class Test2 {
@GET
public String hello() {
return "hello !";
}
@PostConstruct
protected void postConstruct() {
System.out.println("Test2().postConstruct() " + this);
}
@PreDestroy
protected void preDestroy() {
System.out.println("Test2().preDestroy() " + this);
}
}
2. Hit the URL (ex: http://localhost:8080/TestRest3/rest/test2) and look at the server output, something like this will show:
16:21:46,430 INFO [stdout] (default task-41) Test1().postConstruct() test.Test2@890a1e2
16:21:46,432 INFO [stdout] (default task-41) Test1().preDestroy() test.Test2@890a1e2
AFAIK SLSB shouldn't be destroyed after service request.
> JAX-RS bean implemented as Stateless is destroyed after response
> ----------------------------------------------------------------
>
> Key: WFLY-3925
> URL: https://issues.jboss.org/browse/WFLY-3925
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 8.1.0.Final
> Reporter: Sergio Samayoa
> Assignee: Jason Greene
>
> A JAX-RS bean implemented as stateless EJB is destroyed after response is sent.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months
[JBoss JIRA] (WFLY-3925) JAX-RS bean implemented as Stateless is destroyed after response
by Sergio Samayoa (JIRA)
[ https://issues.jboss.org/browse/WFLY-3925?page=com.atlassian.jira.plugin.... ]
Sergio Samayoa updated WFLY-3925:
---------------------------------
Description:
A JAX-RS bean implemented as stateless EJB is destroyed after response is sent.
Steps to Reproduce:
1. Create this test bean:
@Path("/test2")
@Stateless
public class Test2 {
@GET
public String hello() {
return "hello !";
}
@PostConstruct
protected void postConstruct() {
System.out.println("Test2().postConstruct() " + this);
}
@PreDestroy
protected void preDestroy() {
System.out.println("Test2().preDestroy() " + this);
}
}
2. Hit the URL (ex: http://localhost:8080/TestRest3/rest/test2) and look at the server output, something like this will show:
16:21:46,430 INFO [stdout] (default task-41) Test1().postConstruct() test.Test2@890a1e2
16:21:46,432 INFO [stdout] (default task-41) Test1().preDestroy() test.Test2@890a1e2
AFAIK SLSB shouldn't be destroyed after service request.
Affects Version/s: 8.1.0.Final
> JAX-RS bean implemented as Stateless is destroyed after response
> ----------------------------------------------------------------
>
> Key: WFLY-3925
> URL: https://issues.jboss.org/browse/WFLY-3925
> Project: WildFly
> Issue Type: Bug
> Affects Versions: 8.1.0.Final
> Reporter: Sergio Samayoa
> Assignee: Jason Greene
>
> A JAX-RS bean implemented as stateless EJB is destroyed after response is sent.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months
[JBoss JIRA] (WFLY-3924) Facility to suppress interruption on EJB methods
by David Lloyd (JIRA)
David Lloyd created WFLY-3924:
---------------------------------
Summary: Facility to suppress interruption on EJB methods
Key: WFLY-3924
URL: https://issues.jboss.org/browse/WFLY-3924
Project: WildFly
Issue Type: Enhancement
Components: EJB
Reporter: David Lloyd
Assignee: David Lloyd
Priority: Optional
We should provide an annotation to mark an EJB method as uninterruptible, which prevents interruption from being delivered to the thread during the invocation (via forthcoming mechanism in JBoss Threads).
Or, this could be a CDI facility, or both.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months
[JBoss JIRA] (WFLY-3923) Option for suppressing thread interruption during JDBC driver operations
by David Lloyd (JIRA)
David Lloyd created WFLY-3923:
---------------------------------
Summary: Option for suppressing thread interruption during JDBC driver operations
Key: WFLY-3923
URL: https://issues.jboss.org/browse/WFLY-3923
Project: WildFly
Issue Type: Enhancement
Components: JCA
Reporter: David Lloyd
Assignee: Jesper Pedersen
Fix For: 9.0.0.CR1
The data source and JCA subsystems should provide a facility to suppress thread interruption during driver operations. The data source attribute should have values "on", "off", and "auto", where "auto" indicates that the subsystem should make a decision based on the driver.
A list of drivers which are known to fail in the presence of interruption is forthcoming.
A facility in JBoss Threads to suppress interruption for the duration of a task is forthcoming.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
11 years, 9 months