Skip to content

Commit

Permalink
Changes for JIRA issue WBRI-177
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1966 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
drallen committed Mar 13, 2009
1 parent 29c1273 commit eb4be09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions impl/src/main/java/org/jboss/webbeans/ManagerImpl.java
Expand Up @@ -899,12 +899,12 @@ public NamingContext getNaming()
return namingContext;
}

public EjbResolver getEjbResolver()
public final EjbResolver getEjbResolver()
{
return ejbResolver;
}

public ResourceLoader getResourceLoader()
public final ResourceLoader getResourceLoader()
{
return resourceLoader;
}
Expand All @@ -915,7 +915,7 @@ public ResourceLoader getResourceLoader()
*
* @return a TransactionServices provider per the SPI
*/
public TransactionServices getTransactionServices()
public final TransactionServices getTransactionServices()
{
return transactionServices;
}
Expand Down
Expand Up @@ -83,7 +83,7 @@ public void initialize()
}
if (getTransactionServices() == null)
{
throw new IllegalStateException("TransactionServices is not set");
log.info("Transactional services not available. Transactional observers will be invoked synchronously.");
}
this.manager = new ManagerImpl(getNamingContext(), getEjbResolver(), getResourceLoader(), getTransactionServices());
getManager().getNaming().bind(ManagerImpl.JNDI_KEY, getManager());
Expand Down
Expand Up @@ -87,7 +87,7 @@ protected void init()
@Override
public void notify(T event)
{
if (manager.getTransactionServices().isTransactionActive())
if ((manager.getTransactionServices() != null) && (manager.getTransactionServices().isTransactionActive()))
{
deferEvent(event);
}
Expand Down

0 comments on commit eb4be09

Please sign in to comment.