openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1640713 - /openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/portable/ConversationProducer.java
Date Thu, 20 Nov 2014 10:29:21 GMT
Author: struberg
Date: Thu Nov 20 10:29:21 2014
New Revision: 1640713

URL: http://svn.apache.org/r1640713
Log:
OWB-1028 return dummy ConversationImpl if no ConversationService is configured

Modified:
    openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/portable/ConversationProducer.java

Modified: openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/portable/ConversationProducer.java
URL: http://svn.apache.org/viewvc/openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/portable/ConversationProducer.java?rev=1640713&r1=1640712&r2=1640713&view=diff
==============================================================================
--- openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/portable/ConversationProducer.java
(original)
+++ openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/portable/ConversationProducer.java
Thu Nov 20 10:29:21 2014
@@ -48,6 +48,14 @@ public class ConversationProducer extend
         ConversationImpl conversation = null;
         //Gets conversation service
         ConversationService conversationService = webBeansContext.getService(ConversationService.class);
+
+        if (conversationService == null)
+        {
+            // in case where we do not support a 'real' Conversation handling, the user will
just get a temporarily one.
+            return new ConversationImpl(webBeansContext);
+
+        }
+
         //Gets conversation id
         String conversationId = conversationService.getConversationId();       
         //Gets session id that conversation is created



Mime
View raw message