My Account Log in

2 options

Mastering Java EE development with WildFly : create enterprise-grade Java applications with WildFly / Luca Stancapiano.

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Stancapiano, Luca, author.
Language:
English
Subjects (All):
Application software--Development--Computer programs.
Application software.
Physical Description:
1 online resource (437 pages)
Edition:
1st edition
Place of Publication:
Birmingham, England ; Mumbai, [India] : Packt Publishing, 2017.
System Details:
text file
Biography/History:
Stancapiano Luca: Luca Stancapiano has been working in the IT industry since 2000. He specializes in Java EE and JBoss, and has collaborated with Apache, Alfresco, Atliassian, EXo, and JBoss communities on several open source products for many years. He lives in Italy and collaborates with leading consulting companies for design and implementation of applications for both government and private companies dealing with information, finance, and transport. Abroad, he is known for his interventions at the Daily Telegraph in portals. He brings projects such as Wildfly, Alfresco ECM, Activiti, JGroups, Arquillian, Exo Portal, Solr, Infinispan, JBoss Portal, Gatein, Jira, and Confluence, and manages Vige, an open source community specializing in open government and smart cities. He is one of the authors of the Gatein Cookbook, showing Gatein's portal and how to develop portlets with it, published in 2012 by Packt.
Summary:
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 backend JavaScript code seamlessly into Java applications Who This Book Is For If you are a Java developer with at least basic knowledge of Java EE, then this book is for you. No previous knowledge of WildFly is required. What You Will Learn Configure the development environment along with native and cloud installation of WildFly Write a DB schema and the relative entities and how to use the relationships between the entities Analyze with examples all the java annotations to manage the EJB and the configuration to get better performances Write different REST services through the EJB Implement Web sockets 1.0 and know why and when use the web sockets Work with Active MQ and write JMS clients to manage the authentication and authorization in the clients Configure the mail server through the wildfly console Learn how and when to use a new feature JAX-RS 2.0, which is the asynchronous call through REST Use the new JSF features of Wildfly 10 such as Mojarra 2.2, JSF 2.2, Richfaces 4.5 In Detail Packed with rich assets and APIs, Wildfly 10 allows you to create state-of-the-art Java applications. This book will help you take your understanding of Java EE to the next level by creating distributed Java applications using Wildfly. The book begins by showing how to get started with a native installation of WildFly and it ends with a cloud installation. After setting up the development environment, you will implement and work with different WildFly features, such as implementing JavaServer Pages. You will also learn how you can use clustering so that your apps can handle a high volume of data traffic. You will also work with enterprise JavaBeans, solve issues related to failover, and implement Java Message Service integration. Moving ahead, you will be working with Java Naming and Directory Interface, Java Transaction API, and use ActiveMQ for message relay and message querying. This book will also show you how you can use your existing backend JavaScript code in your application. By the end of the book, you'll have gained the knowledge to implement the latest Wildfly features in your Java applications. Style and approach Each part of this book shows you how to ...
Contents:
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
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
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
Stateless
Stateful
Entity beans
Remote
Thread pools
IIOP
In VM remote interface invocations
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
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
Chapter 7: Implementing WebSockets
History of the web
Implementation engine
A first basic example
WebSocket container
WebSocket session
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
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
Message listeners
The JMS context
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
Chapter 10: Asynchronous REST
Asynchronous resources
REST timeouts
REST server callbacks
Connection callbacks
Asynchronous clients
Asynchronous client callbacks
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
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
Job context and step context
Metrics and step execution
Listeners
Job listener
Step listener
Chunk listener
Batch property
Checkpoint Algorithm
Checkpoint timeout
Monitoring of the batches
Deploying the workflows
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 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
File descriptor security
Programmatic security
Form login
Create a custom JAAS module
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
ACL permissions and PicketBox
Chapter 15: Sharing the Web Sessions
Clustering
Infinispan
Distributable applications
Cluster domains
Customize the domains
Chapter 16: WildFly in Cloud
OpenShift
WildFly installation
Command-line tools
Exposed services
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
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
Chapter 19: Working with OSGi
Modules
OSGi in WildFly
Installation
Deployment of bundles
Maven bundle plugin
Index.
Notes:
Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed July 14, 2017).
ISBN:
9781787289079
1787289079
OCLC:
993258649

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account