Cover image for Java EE6 Cookbook for securing, tuning, and extending enterprise applications.
Java EE6 Cookbook for securing, tuning, and extending enterprise applications.
Title:
Java EE6 Cookbook for securing, tuning, and extending enterprise applications.
Author:
Knutson, Mick.
ISBN:
9781849683173
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (414 pages)
Contents:
Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications -- Table of Contents -- Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications -- Credits -- About the Author -- Acknowledgement -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Instant Updates on New Packt Books -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Out with the Old, In with the New -- Introduction -- Pruning old APIs -- Pruning JAX-RPC -- Why was it marked for deletion? -- What has replaced this specification? -- See also -- Pruning JAXR -- Why was it marked for deletion? -- What has replaced this specification? -- See also -- Pruning EJB Entity (CMP) -- Why was it marked for deletion? -- What has replaced this specification? -- See also -- Pruning Java EE application deployment -- Why was it marked for deletion? -- What has replaced this specification? -- See also -- Pruning EE Management -- Why was it marked for deletion? -- What has replaced this specification? -- See also -- In with the new -- Lighter -- The metadata and common annotations -- See also -- Implementing Java Contexts and Dependency Injection (CDI) -- @Qualifier -- @Inject -- @Named -- @Scope -- See also -- Understanding the EJB 3.1 specification -- @Stateless -- @EJB -- @Remote -- @Singleton -- @Asynchronous -- See also -- Understanding the JPA 2.0 specification -- @ElementCollection -- @CollectionTable -- Pessimistic locking -- Criteria API -- String-based criteria -- Strongly-typed criteria -- Additional JPQL -- See also -- Understanding the JAX-RS 1.1 specification -- @Path -- HTTP Methods.

@Produces -- @Consumes -- See also -- Understanding the Servlet 3.0 specification -- @WebServlet -- @WebFilter -- @WebInitParam -- @WebListener -- Web fragments -- Asynchronous servlet processing -- See also -- Understanding the WebBeans 1.0 specification -- See also -- Understanding the JSF 2.0 specification -- @ManagedBean -- @ResourceDependency -- @ListenerFor -- @FacesConverter -- @FacesValidator -- See also -- Understanding Bean Validation -- Getting ready -- How to do it... -- There's more... -- Timezone and locale -- See also -- Understanding profiles -- See also -- 2. Enterprise Persistence -- Introduction -- Understanding @CollectionTable -- Getting ready -- How to do it... -- How it works... -- Aggregate mappings -- See also -- Auditing previous JPA Operations -- Getting ready -- How to do it... -- How it works... -- There's more... -- Pre- and post-lifecycle hooks -- See also -- Auditing historical JPA Operations -- Getting ready -- How to do it... -- How it works... -- EclipseLink Customizers -- Caching and security -- aboutTo*(*) versus pre*(*) and post*(*) -- Common database user ID, and managing auditing and security in the application -- See also -- Profiling and testing JPA Operations -- Getting ready -- How to do it... -- How it works... -- There's more... -- Inspections tab -- Note about unit testing -- See also -- 3. Security -- Introduction -- Security and Java EE containers -- Java EE deployment descriptors -- See also -- Performing authentication in Java EE -- Getting ready -- How to do it... -- How it works... -- See also -- Authorization in Java EE -- Getting ready -- How to do it... -- How it works... -- See also -- Enforcing security in Enterprise Applications -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Programmatic security and annotations in Java EE -- Getting ready.

How to do it... -- How it works... -- There's more... -- Using annotation and deployment descriptors together -- See also -- Securely signing JAR artefacts -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Configuring Linux firewall rules -- Getting ready -- How to do it... -- Precautions during testing -- Web server configuration -- Application server configuration -- Redirecting traffic -- See also -- Securely obfuscating Java byte-code -- Getting ready -- How to do it... -- How it works... -- There's more... -- Deobfuscating artefacts -- GZipping log files -- SHA-1, MD5 MANFEST.mf for all artefact entries -- See also -- Minification and obfuscation of web resources -- Getting ready -- How to do it... -- There's more... -- Running by the command line -- Running by means of Ant Java task -- See also -- 4. Enterprise Testing Strategies -- Introduction -- Remote debugging of Java EE applications -- Getting ready -- How to do it... -- How it works... -- Adding JVM debug options with Ant -- Starting Gradle in debug mode -- Adding debug options to JAVA_OPTS -- See Also -- Testing JPA with DBUnit -- Getting ready -- DDL generation -- How to do it... -- Step 1: Imports -- Step 2: Attributes -- Null Primary Key Filter -- Lifecycle methods -- -- ordering -- Step 3: Unit testing -- There's more... -- Multiple databases -- See also -- Using Mock objects for testing -- Getting ready -- How to do it... -- Step 1: -- Step 2: -- Step 3: -- Step 4: -- Step 5: -- Step 6: -- How it works... -- There's more... -- Mocking all object types -- Simulating service delays -- Partial Mocking -- Step 1: -- Step 2: -- Step 3: -- Step 4: -- Step 5: -- Mocking exception scenarios -- Mocking methods returning void -- Multiple interactions with a Mock -- Ensuring Mocks called in order -- Mocking static methods -- Step 1:.

Step 2: -- Step 3: -- Step 4: -- Step 5: -- Mocking private methods -- Step 1: -- Step 2: -- Step 3: -- Step 4: -- Step 5: -- See also -- Testing HTTP endpoints with Selenium -- Getting ready -- Dependencies -- Application server -- JUnit -- Selenium -- How to do it... -- How it works... -- There's more... -- WebDriver integration -- See also -- Testing JAX-WS and JAX-RS with soapUI -- Getting ready -- How to do it... -- Testing RESTful services -- Testing SOAP services -- There's more... -- Testing with Mock services -- Extending soapUI capabilities with Groovy -- Getting ready -- How to do it... -- Writing output to file -- See also -- 5. Extending Enterprise Applications -- Introduction -- Integrating Groovy into Enterprise Applications -- Getting ready -- How to do it... -- How it works... -- Interchanging Java and Groovy in unit tests -- See also -- Integrating Jython into Enterprise Applications -- Getting ready -- How to do it... -- How it works... -- See also -- Integrating Scala into Enterprise Applications -- Getting ready -- How to do it... -- There's more... -- Interchanging Java and Scala in unit tests -- See also -- Weaving AspectJ advice into Enterprise Applications -- Cross-cutting concerns -- Advice -- Pointcut -- Aspect -- Joinpoint -- Weaving -- Getting ready -- How to do it... -- How it works... -- See also -- Weaving AspectJ advice into existing libraries -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Adding advice with CDI Decorators -- Getting ready -- Component interface -- Delegate class -- Decorator class -- How to do it... -- Component interface -- Delegate class -- Decorator class -- How it works... -- There's more... -- See also -- Adding advice with CDI Interceptors -- Getting ready -- Target class -- Annotation marker -- Interceptor class -- Interceptor metadata annotations.

How to do it... -- Target class -- Annotation marker -- Interceptor class -- How it works... -- There's more... -- See also -- 6. Enterprise Mobile Device Integration -- Introduction -- Evaluating mobile framework projects -- Mobile-web frameworks -- Mobile-web framework projects -- PROs -- CONs -- Native code generators -- Native code generator projects -- PROs -- CONs -- Native web runtime (NWR) -- Native web runtime (NWR) projects -- PROs -- CONs -- See also -- Native application considerations -- Development considerations -- iOS -- Written in Objective-C -- IDE -- Other considerations -- iOS -- Build automation -- Deployment -- Android -- Build automation -- Deployment -- Distribution considerations -- iOS -- Certificates -- Screenshots -- Distribution cost -- Other distribution considerations -- Android -- Screenshots -- Distribution cost -- See also -- Leveraging mobile design tools -- Design and mock-ups -- Android designer -- MIT App Inventor -- DroidDraw -- Online designers -- iPlotz -- iPhoneMock-up -- ThemeRoller -- Additional design resources -- There's more... -- Android Screenshots and Screen Capture -- iPhone screen capture -- See also -- Testing mobile-web applications with online emulators -- Getting ready -- How to do it... -- See also -- Setting up a local Apache environment -- Getting ready -- How to do it... -- How it works... -- There's more... -- Stopping XAMPP -- Upgrading Tomcat 7 -- Accessing Tomcat applications through Apache -- Changing the installation PATH -- See also -- Native SDK development considerations -- IDE considerations -- Eclipse IDE -- IntelliJ IDEA -- AppCode -- Build management considerations -- Ant -- Maven -- Other build tools -- See also -- 7. Deployment and Configuration -- Introduction -- The Java Management Extensions -- Java EE configuration with CDI -- Getting ready -- How to do it...

There's more...
Abstract:
Packed with comprehensive recipes to secure, tune, and extend your Java EE applications with this book and ebook.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: