TomEE, EJB and virtual-hosts

痴心易碎 提交于 2019-12-08 07:16:50

问题


I am simulating multiple TomEE (1.7.1) instances using virtual-hosts. I have multiple virtual-hosts that are deploying the same war with the same EJBs.

This leads to:

org.apache.openejb.DuplicateDeploymentIdException: Application cannot be deployed as it contains deployment-ids which are in use

Any suggestions on how to solve this?


回答1:


did you try openejb.deploymentId.format = {appId}/{ejbJarId}/{ejbName} in conf/system.properties?

To make it even more portable coming 1.7.2 (release process in progress) and coming 2.x will support:

openejb.deploymentId.format = {host}/{appId}/{ejbJarId}/{ejbName}

and even

openejb.deploymentId.format = {hash}/{host}/{appId}/{ejbJarId}/{ejbName}



来源:https://stackoverflow.com/questions/27722550/tomee-ejb-and-virtual-hosts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!