[JBoss JIRA] (LOGMGR-95) Log4j Logger.getParent() inconsistent
by RH Bugzilla Integration (JIRA)
[ https://issues.jboss.org/browse/LOGMGR-95?page=com.atlassian.jira.plugin.... ]
RH Bugzilla Integration commented on LOGMGR-95:
-----------------------------------------------
James Perkins <jperkins(a)redhat.com> changed the Status of [bug 1079106|https://bugzilla.redhat.com/show_bug.cgi?id=1079106] from NEW to POST
> Log4j Logger.getParent() inconsistent
> -------------------------------------
>
> Key: LOGMGR-95
> URL: https://issues.jboss.org/browse/LOGMGR-95
> Project: JBoss Log Manager
> Issue Type: Bug
> Reporter: James Livingston
> Assignee: James Perkins
>
> Log4j Loggers have a getParent() method, whose return value is set up by JBossLogManagerFacade.updateParents(). The method locates the closest parent node which has an existing Log4J logger created *at the time*. This results in the parent being different depending on the order Log4j loggers are used in.
> Consider:
> Logger.getLogger("a");
> Logger.getLogger("a.b.c");
> Logger.getLogger("a.b");
> When the second line causes updateParents() to be called, LoggerNode.getOrCreate() has already created the intermediate "a.b" node. That does not yet have a Log4j Logger created, so the Logger for "a" is returned. Original log4j would have returned "a.b" due to it using the parent structure in the implementation.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[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)
10 years
[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)
10 years
[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)
10 years
[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)
10 years