JavaEE 6: javax.naming.NameAlreadyBoundException: Use rebind to override

前端 未结 5 1807
再見小時候
再見小時候 2020-12-17 17:39

I have a business interface being implemented by two EJBs.

UserManagementService

@Remote
public interface UserManagementService {
          


        
5条回答
  •  不思量自难忘°
    2020-12-17 17:59

    In my case, i was using JBoss5.1GA and i had two EJBs implementing a common local Business Interface...

    I Follow the idea suggested by @Christo Smal, and it work for me.... Another Observation: I was deploying an ear which contains the two EJBs at two differents EJB jars; e.g:

       Ear File:
       * Jar File1: Containing EJB1
       * Jar File2: Containing EJB2
       * lib/dummy.jar: Library containing the Business Local interface
    

提交回复
热议问题