title: JBoss - how set deployment runtime name (not using CLI, but directly from ear/war)
body: <p>I'm facing this particular problem right now and I really don't know whether is it possible to achieve this somehow or not. But here's the situation:</p>
  
  <p>We have this <strong>webapp(Java EE 6)</strong> which is organized into two modules. One is a <strong>Service module</strong>, and the other one is a <strong>Frontend module</strong> . The comunicate via remote ejb and they are deployed on different jboss servers(both EAP 6.2). (The modules just share the ejb interfaces(Service module implements them), and in the Frontend module, the actual service bean implementations are injected(@Inject) and instanced via remote JNDI locator and then remoting is used). This all works as expected.</p>
  
  <p>But when we are deploying the application(using the jboss admin console) we have the app war name like this: <strong>app-service-1.0.war</strong> and during the uploading process, when jboss asks about the "<strong>name</strong>" and "<strong>runtinme name</strong>" we need to get rid of the "version" part so the runtime name would be like this <strong>app-service</strong> (name has to stay 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 delete the version part manually. <strong>I know it is possible to set the name via CLI but I would like to know if it's also possible to set is somewhere inside of the deployment(war/ear file), so that the admins don't need to alter the runtime name when using the web admin console. Thanks</strong></p>