]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
a bit formatted
authorRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 09:33:34 +0000 (11:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 Oct 2015 09:33:34 +0000 (11:33 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/pizzaapplication/beans/checkout/CheckoutWebBean.java

index dcfafb9cdf3138b6406b65b8682b719a62fa61f2..95b1bf6ab6d710254c73c0d5f33ec32419a76143 100644 (file)
@@ -78,7 +78,6 @@ public class CheckoutWebBean implements CheckoutWebController {
        @Inject
        private CustomerWebController customerController;
 
-
        /**
         * Object message
         */
@@ -94,7 +93,6 @@ public class CheckoutWebBean implements CheckoutWebController {
         */
        private Queue queue;
 
-
        /**
         * Receipt bean
         */
@@ -206,20 +204,25 @@ public class CheckoutWebBean implements CheckoutWebController {
                try {
                        // Get initial context
                        Context context = new InitialContext();
+
                        // Get factory from JMS resource
                        QueueConnectionFactory connectionFactory = (QueueConnectionFactory) context.lookup("jms/shopConnectionFactory"); //NOI18N
+
                        // Lookup queue
                        this.queue = (Queue) context.lookup("jms/shopCheckoutQueue"); //NOI18N
 
                        // Create connection
                        this.connection = connectionFactory.createConnection();
+
                        // Init session instance
                        this.session = this.connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+
                        // And message producer
                        this.messageProducer = this.session.createProducer(this.queue);
+
                        // Finally the message instance itself
                        this.message = this.session.createObjectMessage();
-               }catch (final NamingException | JMSException e) {
+               } catch (final NamingException | JMSException e) {
                        // Continued to throw
                        throw new FacesException(e);
                }