1 © Luxoft Training 2013 Spring Framework Module 10 JMS & EJB.

Презентация:



Advertisements
Похожие презентации
Evgeniy Krivosheev Andrey Stukalenko Vyacheslav Yakovenko Last update: Nov, 2013 Spring Framework Module 1 - Introduction.
Advertisements

© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Using Multihomed BGP Networks.
Evgeniy Krivosheev Vyacheslav Yakovenko Last update: Feb, 2012 Spring Framework Module 4 – JNDI.
© 2009 Avaya Inc. All rights reserved.1 Chapter Four, UMS Web Services Module Two – IMAP Service.
© 2003, Cisco Systems, Inc. All rights reserved. CSPFA Chapter 3 Cisco PIX Firewall Technology and Features.
WEB SERVICES Mr. P. VASANTH SENA. W EB SERVICES The world before Situation Problems Solutions Motiv. for Web Services Probs. with Curr. sols. Web Services.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v BGP Overview Establishing BGP Sessions.
© 2006 Cisco Systems, Inc. All rights reserved. BSCI v Configuring EIGRP Using EIGRP in an Enterprise Network.
© 2009 Avaya Inc. All rights reserved.1 Chapter Nine, Voic Pro in SCN Module Four – Distributed Voic Pro.
Evgeniy Krivosheev Vyacheslav Yakovenko Last update: Feb, 2012 Spring Framework Module 6 – ORM Support.
© 2009 Avaya Inc. All rights reserved.1 Chapter Four, UMS Web Services Module Three – Exchange 2007.
© 2009 Avaya Inc. All rights reserved.1 Chapter Four, UMS Web Services Module One – UMS.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v Integrating Internet Access with MPLS VPNs Implementing Separate Internet Access and VPN Services.
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
© 2002 IBM Corporation Confidential | Date | Other Information, if necessary © Wind River Systems, released under EPL 1.0. All logos are TM of their respective.
Evgeniy Krivosheev Vyacheslav Yakovenko Last update: Feb, 2012 Spring Framework Module 4 – DAO, JDBC.
© 2005 Cisco Systems, Inc. All rights reserved. BGP v Route Selection Using Policy Controls Using Outbound Route Filtering.
© 2006 Cisco Systems, Inc. All rights reserved. MPLS v Integrating Internet Access with MPLS VPNs Implementing Internet Access as a Separate VPN.
© 2009 Avaya Inc. All rights reserved.1 Chapter Three, Voic Pro Advanced Functions Module Four – Voic Campaigns.
© 2006 Cisco Systems, Inc. All rights reserved.ONT v Describe Cisco VoIP Implementations Implementing Voice Support in an Enterprise Network.
Транксрипт:

1 © Luxoft Training 2013 Spring Framework Module 10 JMS & EJB

2 © Luxoft Training 2013 Contents Overview of JEE technologies JMS support in Spring EJB support Spring

3 © Luxoft Training 2013

4

5

6

7

8

9

10 © Luxoft Training 2013 Spring :: JMS :: JmsTemplate JMS – Java Messaging Service: message exchange Publisher-Subscriber Point-to-Point

11 © Luxoft Training 2013 Spring :: JMS :: JmsTemplate JmsTemplate – is used to work with JMS ; JmsTemplate needs ConnectionFactory ConnectionFactory : JMS contract object; Is get from JNDI; Used by client application to create connection to JMS provider; Includes various configuration parameters

12 © Luxoft Training 2013 Spring :: JMS :: JmsTemplate connecionFactory & jmsTemplate configuration:

13 © Luxoft Training 2013 Spring :: JMS :: JmsTemplate Destination: JMS contract object; Received from JNDI; Often known only on runtime; DestinationResolver : To get Destination in a runtime; Message sending:

14 © Luxoft Training 2013 Spring :: JMS :: Example Synchronous message receive:

15 © Luxoft Training 2013 Spring :: JMS Message Listener: register and receive messages; manage resources; take part in transactions; exception handling; the simplest implementation is SimpleMessageListenerContainer Asynchronous receive of the message:

16 © Luxoft Training 2013 Spring :: EJB ::Example Business Interface Controller

17 © Luxoft Training 2013 Spring :: EJB :: Example Configuring local interface

18 © Luxoft Training 2013 Spring :: EJB :: Example Configuring remote interface

19 © Luxoft Training 2013 ConceptsEJB 3.0Spring Framework Dependency Injection Can inject anything in the container including EJBs, data sources, JMS and JPA resources Can inject almost anything including lists, maps, properties and JNDI resources Transaction management Works right out of the box, but only JTA is supported Supports a number of strategies including JTA, JDBC and Hibernate Persistence Tightly integrated through JPASupport for JPA, Hibernate, JDBC. State management Robust support through Stateful Session Beans. Indirect support dependent on web container session management Web Services Seamless support for JAX-WS 2.0Poor direct support. Messaging Supported out of the box through Message Driven Beans. JMSTemplate adds nice abstraction over JMS. AOP Simple but limited support through interceptors. Robust support through AspectJ and Spring AOP alliance. Security Integrated support for declarative and programmatic security (JAAS). Must add and configure Spring Security. Scheduling Simple scheduling possible through EJB Timer Must add and configure Quartz for scheduling. Remoting Integrated support through Session Bean remote interfaces. Supports distributed transactions, security. Remoting support may be added via configuration. Remote transactions and security are not supported. Spring :: EJB or Spring?

20 © Luxoft Training 2013 Any questions!?