Mastering Java EE development with WildFly create enterprise-grade Java applications with WildFly

Your one stop solution to create highly scalable enterprise grade Java applications with WildFly. About This Book Master Java EE development with the latest WildFly 10 application server. Integrate with JSF and JMS and use efficient load balancing techniques to create real-time apps Integrate your b...

Descripción completa

Detalles Bibliográficos
Otros Autores: Stancapiano, Luca, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England ; Mumbai, [India] : Packt Publishing 2017.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630138506719
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Customer Feedback
  • Table of Contents
  • Preface
  • Chapter 1: Introducing Java EE and Configuring the Development Environment
  • JSON and HTML5
  • WebSockets
  • Simplified JMS 2.0 API
  • Groundwork for Cloud environments
  • Batch applications
  • Updated web profiles
  • Concurrency utilities
  • Context dependency injection
  • Java API for RESTful web services (JAX-RS) 2.0
  • Servlet 3.1
  • JNDI
  • Asynchronous invocation
  • Timers
  • EJB Lite
  • Development in WildFly
  • Operating system
  • Java
  • Application server
  • Build system
  • Structure of the exercises
  • Tests
  • IDE
  • Netbeans IDE
  • IntelliJ IDEA
  • Eclipse IDE
  • Importing exercises
  • Debug exercises
  • Summary
  • Chapter 2 : Working with Dependency Injection
  • Dependency injection 1.0 for Java
  • [Qualifiers]
  • Qualifiers
  • EL name resolution
  • Resources
  • Context and dependency injection 1.1 for Java
  • Injection and contexts
  • Managed beans
  • Producer methods and fields
  • Bean types
  • The BeanManager object
  • CDI
  • Unmanaged
  • Enabled and disabled beans
  • The injection target
  • Scopes
  • Session beans
  • Service Provider Interfaces
  • Events
  • Event qualifiers
  • Observer methods
  • Container lifecycle events
  • Utilities
  • Decorators
  • Enabled decorators
  • And more...
  • Model
  • TransientReference
  • Interceptors 1.2
  • Interceptor classes
  • Associating an interceptor class with the target class
  • Default interceptors
  • Interceptors for lifecycle callbacks
  • Interceptor bindings
  • Common annotations for the Java platform 1.2
  • Common annotation
  • SQL utilities
  • Web console for monitoring beans
  • Summary
  • Chapter 2: Persistence
  • Common JPA annotations
  • Named queries
  • Relationships
  • Cascade on one-to-one and one-to-many.
  • Cascading the one-to-one persist operation
  • Cascading the one-to-one merge operation
  • Cascading the one-to-one delete operation
  • The one-to-one delete orphan cascading operation
  • Cascade on Many To Many
  • Cascade of the persist many to many operation
  • Dissociation of one side in the many to many association
  • Tricks for many to many CascadeType.REMOVE
  • Conclusion
  • News from Java EE 7
  • Result set
  • Stored procedures
  • Converters
  • Named entity graphs
  • JPQL improvements
  • API Criteria bulk operations
  • Unsynchronized persistence context
  • Indexes
  • Packages and entities
  • DataSources and connectors
  • Deployment of the DataSource
  • DS file
  • XA and non XA
  • Activating the deployer
  • XML configuration
  • Web console
  • Summary
  • Chapter 4: Implementing Business Logic
  • Scopes in EJB
  • Singleton
  • Local and remote interfaces
  • Remote clients
  • EJB client library
  • Remote naming project
  • Combining the remote naming project and EJB client library
  • Local and remote homes
  • The session context
  • Transactions
  • Exceptions
  • Transaction management annotation
  • Transaction attributes
  • Security
  • EJB container configuration
  • Session beans
  • Stateless
  • Stateful
  • Singleton
  • Entity beans
  • Remote
  • Thread pools
  • IIOP
  • In VM remote interface invocations
  • Summary
  • Chapter 5: Working with Distributed Transactions
  • Transaction overview
  • BMT and CMT
  • Descriptor configuration
  • Remote transaction
  • Transactions and resource managers
  • ACID properties
  • Enterprise concurrent API
  • Managed executor service
  • Set of threads
  • Transactional tasks
  • Levels and transaction isolation problems
  • Isolation violations
  • Dirty read
  • Non-repeatable read
  • Phantom read
  • Isolation levels
  • Read committed
  • Read uncommitted
  • Repeatable read
  • Serializable
  • Transaction models.
  • Flat transactions
  • Savepoints
  • Nested transactions
  • Saga
  • Chained transactions
  • Distributed transactions and the JTA
  • Distributed transaction scenarios
  • Multiple databases
  • Message queue and database
  • Multiple application servers
  • Transaction started by the client
  • Two-phase commit
  • Emulating two-phase commit
  • Summary
  • Chapter 6: Creating REST Services
  • Services
  • REST and HTTP
  • GET methods
  • POST methods
  • PUT methods
  • HEAD methods
  • OPTIONS method
  • DELETE method
  • Using RESTEasy directly
  • REST application and components
  • Container components
  • Container request filter
  • Container Response Filter
  • Name binding
  • Providers
  • Client components
  • Client Request Filter
  • Client Response Filter
  • Interceptors
  • Reader interceptors
  • Writer interceptors
  • Features
  • Contracts
  • Dynamic features
  • Forms and beans
  • Selenium and Drone
  • Summary
  • Chapter 7: Implementing WebSockets
  • History of the web
  • Implementation engine
  • A first basic example
  • WebSocket container
  • WebSocket session
  • Security
  • HTTPS
  • Security realm
  • Custom HTTPS configuration
  • WebSocket HTTPS connection
  • Negotiated subprotocols
  • Configurators for requests and responses
  • Request informations and parameters
  • Path parameters
  • Request parameters
  • Other features
  • Container configuration
  • Runtime configuration
  • Client WebSockets
  • Basic client
  • Async client
  • Message handlers
  • Whole
  • Partial
  • Custom message handler registration
  • Ajax versus WebSockets
  • Summary
  • Chapter 8: Working with Messaging
  • Queues and topics
  • Queues
  • Creating the queue from the web console
  • Creating the queue using CLI and Maven WildFly plugin
  • Creating the queue through an Arquillian test case
  • Create the Java client for the queue
  • Topics
  • Creating the topic from the web console.
  • Creating the topic with the Maven WildFly plugin
  • Creating the topic through an Arquillian test case
  • Creating the Java client for the topic
  • Remote clients
  • Message listeners
  • The JMS context
  • Summary
  • Chapter 9: Implementing a Mail Client
  • Mail client API
  • Java example
  • Creating a client with Java SE
  • Configuration of the mail server
  • SMTP local mail server
  • Summary
  • Chapter 10: Asynchronous REST
  • Asynchronous resources
  • REST timeouts
  • REST server callbacks
  • Connection callbacks
  • Asynchronous clients
  • Asynchronous client callbacks
  • Summary
  • Chapter 11: Asynchronous EJB
  • The asynchronous annotation
  • Timers and schedulers
  • Timer service
  • File configuration
  • Timer configuration
  • Access timeout
  • Old specs compliant
  • Stateful timeout
  • Schedulers
  • Transactions and timers
  • Message driven beans
  • Message driven bean context
  • Acknowledge mode
  • Summary
  • Chapter 12: Batches and Workflows
  • Workflows and BPM
  • Batch models
  • Chunks
  • Chunk and ETL
  • Chunk Reader
  • Chunk processor
  • Chunk writer
  • Client
  • Batchlets
  • Decision
  • Mail example
  • Client
  • Job context and step context
  • Metrics and step execution
  • Listeners
  • Job listener
  • Step listener
  • Chunk listener
  • Batch property
  • Checkpoint Algorithm
  • Checkpoint timeout
  • Exceptions
  • Monitoring of the batches
  • Deploying the workflows
  • Summary
  • Chapter 13: Working with Servlets and JSP
  • Undertow
  • Servlets and web components
  • Ports and security
  • Request and response
  • Cookies
  • JSP pages
  • EL Expressions
  • Cookies operations
  • Web session and other scopes
  • Creation of a cookie
  • Cookies and JavaScript
  • Tests with Selenium
  • Error mappings
  • File configuration
  • File upload
  • Filters
  • HTTP servlet response wrapper
  • Event listeners
  • Session listener
  • Session ID listener.
  • Servlet request listener
  • Servlet request attribute listener
  • Session attribute listener
  • Session binding listener
  • Session activation listener
  • Servlet context listener
  • Servlet context attribute listener
  • Asynchronous servlet
  • Non blocking I/O
  • Protocol handler
  • Dynamic context registration
  • External resources and themes
  • Web fragments
  • Security
  • File descriptor security
  • Programmatic security
  • Form login
  • Create a custom JAAS module
  • Summary
  • Chapter 14: Writing a JSF Application
  • MVC
  • Components
  • Use
  • Structure
  • Configuring and developing your application
  • Internationalization
  • Navigation
  • Navigation inside the page
  • Phases and listeners
  • Working with Facelets
  • Web templates
  • Custom functions
  • Custom tags
  • Security
  • ACL permissions and PicketBox
  • Summary
  • Chapter 15: Sharing the Web Sessions
  • Clustering
  • Infinispan
  • Distributable applications
  • Cluster domains
  • Customize the domains
  • Summary
  • Chapter 16: WildFly in Cloud
  • OpenShift
  • WildFly installation
  • Command-line tools
  • Exposed services
  • Summary
  • Chapter 17: Share your Data
  • Infinispan and the cluster
  • LRU and LIRS
  • JGroups configuration
  • Singleton HA Services
  • Writing the Service
  • Writing the Activator
  • Client for the Service
  • Summary
  • Chapter 18: Deployment
  • Deployment types
  • Enterprise packages
  • Web archive
  • Java archive
  • EJB
  • Client application
  • Simple Java library
  • Resource adapters
  • Extension packages
  • Datasources
  • Service archives
  • Deployment tools
  • Administrator tools
  • HA deploy
  • Development tools
  • Summary
  • Chapter 19: Working with OSGi
  • Modules
  • OSGi in WildFly
  • Installation
  • Deployment of bundles
  • Maven bundle plugin
  • Summary
  • Index.