How to run code when app is deployed in EAP 5?

Solution Verified - Updated -

Issue

I have a simple application that needs to *execute once* when the app is deployed (or more precisely every time the jBoss server starts).

Environment

  • JBoss Enterprise Application Platform (EAP) 5.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content