We we deploy an EJB/WAR/ear to containers in our AS configuring domain/ in a standalone mode.
Rather i would want to have the jboss server jars inside my code base and i could run the application as a java program without actually deployment.
The server provide the environment and start it. It will be not the same to include the JBoss classes.
A new project migth what you are looking for -> Rightsize your JavaEE Applications | WildFly Swarm
Retrieving data ...