I ran into this particular problem right now, and I really don't know if this can be achieved anyway. But here is the situation:
We have this webapp (Java EE 6) , which consists of two modules. One of them is the Service module , and the other is the Frontend module. Communication via remote ejb and they are deployed on different jboss servers (like EAP 6.2). (The modules only share the ejb interfaces (the service module implements them), and the actual bean implementations (@Inject) are implemented in the Frontend module and run through the remote JNDI locator, and then remote access is used). All this works as expected.
But when we deploy the application (using the jboss admin console), we have a military application name like this: app-service-1.0.war and during the boot process, when jboss asks for โ name โ and โ name runtinme โ we need to get rid from the "version" part, so that the runtime name is the same as the strong> service application (the name should remain as it is, with the version number). But the problem is that this runtime name is always based on the deployment name, so we always need to manually delete part of the version. I know that you can set the name through the CLI, but I would like to know if it can be installed somewhere inside the deployment (war / ear file), so that administrators should not change the runtime name when using the web admin console. Thanks
source share