Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java EE 7 Development with WildFly

You're reading from   Java EE 7 Development with WildFly Leverage the power of the WildFly application server from JBoss to develop modern Java EE 7 applications

Arrow left icon
Product type Paperback
Published in Dec 2014
Publisher
ISBN-13 9781782171980
Length 434 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Preface 1. Getting Started with WildFly FREE CHAPTER 2. Your First Java EE Application on WildFly 3. Introducing Java EE 7 – EJBs 4. Learning Context and Dependency Injection 5. Combining Persistence with CDI 6. Developing Applications with JBoss JMS Provider 7. Adding Web Services to Your Applications 8. Adding WebSockets 9. Managing the Application Server 10. Securing WildFly Applications 11. Clustering WildFly Applications 12. Long-term Tasks' Execution 13. Testing Your Applications A. Rapid Development Using JBoss Forge Index

Creating your first Java EE 7 application with JBoss Forge

So, Forge installation is quite easy; however, creating your first Java EE 7 application will be even faster! Although, we can create rather advanced applications with Forge, for the purpose of learning, we will just use a simple schema that contains a user table, which can be built using the following command:

CREATE TABLE users (
  id serial PRIMARY KEY,
  name varchar(50),
  surname varchar(50),
  email varchar(50)
);

The first thing that we need to do is to create a new project using the project-new command. Execute the following commands from within the Forge shell:

[bin]$ project-new --named forge-demo --topLevelPackage com.packtpub.wflydevelopment.appendix –projectFolder forge-demo

Now, you have a new Forge project, which is based on a Maven project structure. Arguably, generating a new project isn't Forge's greatest value—the same can be achieved with Maven archetypes. The sweet part of Forge is that...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image