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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.