GithubHelp home page GithubHelp logo

packtpublishing / jakarta-ee-cookbook Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 10.0 35.19 MB

Jakarta EE Cookbook by Packt Publishing

License: Apache License 2.0

Java 89.06% HTML 8.12% JavaScript 0.04% CSS 0.07% Dockerfile 2.09% Shell 0.62%

jakarta-ee-cookbook's Introduction

Jakarta EE Cookbook

Jakarta EE Cookbook

This is the code repository for Jakarta EE Cookbook, published by Packt.

Practical recipes for enterprise Java developers to deliver large scale applications with Jakarta EE

What is this book about?

Jakarta EE is widely used around the world for developing enterprise applications for a variety of domains. With this book, Java professionals will be able to enhance their skills to deliver powerful enterprise solutions using practical recipes.

This book covers the following exciting features:

  • Work with Jakarta EE's most commonly used APIs and features for server-side development
  • Enable fast and secure communication in web applications with the help of HTTP2
  • Build enterprise applications with reusable components
  • Break down monoliths into microservices using Jakarta EE and Eclipse MicroProfile
  • Improve your enterprise applications with multithreading and concurrency

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>8.0</version>
    <scope>provided</scope>
</dependency>

Following is what you need for this book: This book is for Java EE developers who want to build enterprise applications or update their legacy apps with Jakarta EE's latest features and specifications. Some experience of working with Java EE and knowledge of web and cloud computing will assist with understanding the concepts covered in this book..

With the following software and hardware list you can run all code files present in the book (Chapter 1-15).

Software and Hardware List

Chapter OS required Hardware required
1-11 Linux / MacOS / Windows Common System with 4GB RAM (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. [https://static.packt-cdn.com/downloads/9781838642884_ColorImages.pdf] (Graphics Bundle Link).

Related products

  • Hands-On Enterprise Java Microservices with Eclipse MicroProfile [Packt] [Amazon]

  • Hands-On Cloud-Native Applications with Java and Quarkus [Packt] [Amazon]

Get to Know the Author

Elder Moraes helps Jakarta EE developers build and deliver secure, fast, and available applications so that they are able to work on great projects. He is passionate about content sharing; he does it by speaking at international events, blogging, and writing articles. He has been working with Java since 2002 and has developed applications for different industries. As a board member at SouJava, he led the Java EE 8 - The Next Frontier initiative, interviewing some world-class Java EE experts

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781838642884

jakarta-ee-cookbook's People

Contributors

akshitabillava avatar packt-itservice avatar packtutkarshr avatar sonam-packt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jakarta-ee-cookbook's Issues

Class Ch02JtaTest raises org.apache.openejb.OpenEjbContainer$NoModulesFoundException: No modules found to deploy

Hi,
Have tried to use open-ejb as a solution for testing EJBs in a standalone manner but it doesn't seem to work. For example, trying to run mvn test in the ./Jakarta-EE-Cookbook/ch02/ch02-jta raises the following exception:

INFO - ********************************************************************************
INFO - OpenEJB http://tomee.apache.org/
INFO - Startup: Fri Nov 04 13:55:40 CET 2022
INFO - Copyright 1999-2015 (C) Apache OpenEJB/TomEE Project, All Rights Reserved.
INFO - Version: 4.7.4
INFO - Build date: 20160304
INFO - Build time: 09:05
INFO - ********************************************************************************
INFO - openejb.home = /home/nicolas/Jakarta-EE-Cookbook/chapter02/ch02-jta
INFO - openejb.base = /home/nicolas/Jakarta-EE-Cookbook/chapter02/ch02-jta
INFO - Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@3d51f06e
INFO - Succeeded in installing singleton service
INFO - Using 'javax.ejb.embeddable.EJBContainer=true'
INFO - Cannot find the configuration file [conf/openejb.xml].  Will attempt to create one for the beans deployed.
INFO - Configuring Service(id=Default Security Service, type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Configuring Service(id=userDb, type=Resource, provider-id=Default JDBC Database)
INFO - Creating TransactionManager(id=Default Transaction Manager)
INFO - Creating SecurityService(id=Default Security Service)
INFO - Creating Resource(id=userDb)
INFO - Closing DataSource: userDb
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.933 sec <<< FAILURE!
validTransaction(com.eldermoraes.ch02.jta1.Ch02JtaTest)  Time elapsed: 0.878 sec  <<< ERROR!
org.apache.openejb.OpenEjbContainer$NoModulesFoundException: No modules found to deploy.
1)Maybe descriptors are placed in incorrect location.
Descriptors could go under: 
<base-dir>/META-INF or <base-dir>/WEB-INF
but not directly under <base-dir>
Check 'Application Discovery via the Classpath' docs page for more info
2)Maybe no modules are present in the classpath.
Is 'openejb.base' system property pointing to the intended location?
    at org.apache.openejb.util.Exceptions.newNoModulesFoundException(Exceptions.java:99)
    at org.apache.openejb.OpenEjbContainer$Provider.load(OpenEjbContainer.java:540)
    at org.apache.openejb.OpenEjbContainer$Provider.createEJBContainer(OpenEjbContainer.java:322)
    at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at com.eldermoraes.ch02.jta1.Ch02JtaTest.setUp(Ch02JtaTest.java:39)

I think that you might have lacked some configuration details. In a general manner, there is absolutely no notion of deploying artifacts on application servers, which is quite surprising for a book on Jakarata EE. Where and how the presented code is supposed to be deployed and ran ? Quite disappointing ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.