Can two EARs contain the same ejb-name?

Is it possible to have the same entity bean ejb-name in different EARs, referenced
by different JNDI names?
a.ear
JNDI = ejb.a.MyBean
ejb-name = MyBean
b.ear
JNDI = ejb.b.MyBean
ejb-name = MyBean
I get
Unable to bind EJB Home Interface to the JNDI name: foo.MyBean. The error was:
javax.naming.NameAlreadyBoundException: MyBean is already bound; remaining name
'ejb.b'
I'm using local entity beans and it seems they should be local to the EAR. I'm
using 7.0.
thanks,
jeff

Hi Jeff,
Local beans are local to JVM not an application/module. If you need to refer them
by different names for some reason use EJB references (a#mybean sort).
S
"Jeff White" <[email protected]> wrote:
>
Is it possible to have the same entity bean ejb-name in different EARs,
referenced
by different JNDI names?
a.ear
JNDI = ejb.a.MyBean
ejb-name = MyBean
b.ear
JNDI = ejb.b.MyBean
ejb-name = MyBean
I get
Unable to bind EJB Home Interface to the JNDI name: foo.MyBean. The
error was:
javax.naming.NameAlreadyBoundException: MyBean is already bound; remaining
name
'ejb.b'
I'm using local entity beans and it seems they should be local to the
EAR. I'm
using 7.0.
thanks,
jeff

Similar Messages

  • Can two EARs bind the same ejb?

    Hello,
    Is it possible to use the same entity bean from different EARs?
    I have an entity ejb for the UUP and I want to use the same uup from two different applications, but when the second application is deploying, throws the next exception:
    <BEA-149231> <Unable to set the activation state to true for the application 'secondApplicationEAR'.
    weblogic.application.ModuleException: Exception activating module: EJBModule(myUUP.jar)
    Unable to deploy EJB: MyUUP from myUUP.jar:
    [EJB:011008]Unable to bind EJB Home Interface to the JNDI name: ejb.MyUUPRemoteHome.
    javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(605920552248037872S:AdminServer [605920552248037872S
    ::AdminServer/301])/301 [uup.MyUUPRemoteHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub
    at MyUUPRemoteHome(ClusterableRemoteRef(605920552248037872S::AdminServer [605920552248037872S::AdminServer/300])/300 [u
    up.MyUUPRemoteHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name 'ejb'
    at weblogic.rmi.cluster.ClusterableRemoteObject.onBind(ClusterableRemoteObject.java:201)
    at weblogic.jndi.internal.BasicNamingNode.bindHere(BasicNamingNode.java:371)
    at weblogic.jndi.internal.ServerNamingNode.bindHere(ServerNamingNode.java:140)
    at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:317)
    at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:324)
    at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:277)
    at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:407)
    at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1249)
    at weblogic.ejb.container.deployer.EJBDeployer.activate(EJBDeployer.java:1237)
    at weblogic.ejb.container.deployer.EJBModule.activate(EJBModule.java:476)
    at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:411)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:66)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    at weblogic.ejb.container.deployer.EJBModule.activate(EJBModule.java:493)
    at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:411)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74)
    Truncated. see log file for complete stacktrace
    I have the myUUP.jar included in the two applications and I working with Weblogic 10.3.
    Could you help me?

    Now, they are deployed successfully.
    I have written distinct names in the <ejb-jndi> property of p13n-profile-config.xml in both applications and I've deleted the <jndi-name> param in weblogic-ejb-jar.xml into my uup jar. It seem is running correctly.
    I had a first application EAR that used an uup. The uup is defined in a Ejb Project. In the firstApplication EAR is defined a dependence on the uup.jar. I'm not an expert in uup (that's obvious) and I need other application, with other content manager and other funcionality, but the same autentication and user properties. This is the reason by I defined a second EAR project with dependencies over the same uup.jar that the first EAR project.
    But I don´t know if it's the most correct...
    Is there a better option?
    Thanks for everything.

  • Can two bands use the same name on iTunes?

    Hi, I'm in a band that uses the same name as another band listed on iTunes.
    Can two bands with the same name be listed on iTunes? We hope to eventually have an album for sale on the site and I'd like to know now if it's going to be a problem.

    Of course it will be a problem. You simply can not have two bands with the same name. I can think of MANY bands that had to change their names (either completely or just for certain countries) because the name was already taken. Blink (Blink-182), Bush (Bush X), The Beat (The English Beat), Yazoo (Yaz), and the list goes on and on.
    Your band better start brain storming for a new or modified name.
    Patrick

  • Can two people share the same Apple ID on two different iPhones and maintain different passwords?  Yes, there is more to the story.

    I have an iMac, and iPhone.  I've had my Apple ID for a few years. 
    My wife got an iPhone 4S a few months back and the salesperson at Verizon set her Apple ID the same as mine, but gave her a different password.  I don't know if this was ok, but that is what happened.
    So, yesterday, we both upgraded to IOS6 and I had no problem logging in to my iPhone with my Apple ID.  When my wife went to log in, she was told that she was entering the wrong password. We entered the password over and over again and still was wrong.
    The question is... can two people share the same Apple ID on two different iPhones and maintain different passwords?  (I have the feeling her iPhone is thinking that since it's my Apple ID, it wants my password.)
    If not, can I still set up a new Apple ID for her even through she's had the iPhone for a few months?
    Thanks.

    Hi
    You shold follow your feelings, its probably right most of the time.
    You can have 5 different devices hucked upp to one Apple ID. What I have done is that my wife and I have one Apple ID, when I bye a new app on my phone, She gets it to. Thats nice.
    You can allways set upp a new Apple ID for your wife.

  • Can two users on the same Mac sync contacts by using the same Apple ID in the iCloud settings?

    Can two users on the same Mac sync contacts by using the same Apple ID in the iCloud settings?

    Hi Barney,
    That's exactly what I want. I have a personal user and a business user on my MacBook Pro. I want both users to have the same contacts so if I add a contact while I'm logged into my personal user, it will show up when I'm logged into my business user. I want both contacts books to be exactly the same; like you said. So, I used my business user AppleID when I enabled iCloud for my personal user and I enabled iCloud for my business user with that Apple ID as well. For my personal user, I selected Contacts and Calendars to sync with iCloud. For my business user, I selected everything to sync with iCloud. The problem is... it didn't change anything. I restarted my computer to see if that would do anything but nothing happened. I'm not super savvy with Apple products, so maybe I'm completely confused.
    Hi Xeni,
    Thank you for your response, as well.
    KEW

  • HT5177 How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    Have the project, events and media on one drive which is common to both macs.
    You can download FCP X to both macs using the same Apple ID that it was purchased with.
    Andy

  • Two persons with the same screen name?

    Am I seeing things, or here we have two persons with the same screen name?
    http://forums.adobe.com/people/Federico_Plat%C3%B3n
    http://forums.adobe.com/people/federico%20platon
    (Yes, I know it's really two identities belonging to the same person, but to my eye both screen names look identical on screen; and I thought the system prevented entering a screen name already in use).

    Jochem van Dieten wrote:
    Claudio González wrote on 4/21/2010 9:53 PM:
    Rick, I must confess that I had never thought of looking for participant's screen names down there. And I still find it curious that the accent is absent at the obvious position of screen names.
    Have you ever considered investigating this sort of thing? Create a new
    Adobe ID, change values for userID, screenname, firstname and lastname
    on the Adobe side and see what changes on the Jive side? The logic may
    turn out to be surprisingly simple.
    No, I haven't and most probably I will not, at least in the foreseeable future. I have enough problems with my own account, and I waste too much time as it is on re-logging in, and on waiting for pages to load and messages to be posted, to indulge in such an investigation. Even if the logic behind two accounts that on screen seem to be associated with exactly the same screen name turns out to be exceedingly simple.

  • HT204053 can two devices share the same apple id

    can two devices share the same apple id

    Yes.
    According to this Support Article  >  http://support.apple.com/kb/HT4627
    Your Apple ID can have up to 10 devices and computers (combined) associated with it.

  • HT1495 Can two people use the same itunes account?

    Can two people use the same iTunes account? On different computers and different devices?

    Yes, READ the article from which the question was posted as it explains how to do so in detail.

  • Can two players use the same game app without erasing each other's scores?

    Can two players use the same game app on the same device without erasing each other's scores?  My two sons build up their characters and progress in their games, then the other one wants to play, erasing the first son's progress.
    Is it possible to create two player identities in the Game Center? 
    Is it possible to have two different Apple User ID accounts on the same device?  Is that even desirable?
    Many thanks!
    MCPROBW

    You can create as many individual user accounts on a Mac as you like. Then, any one or more of those users can remotely log in from another Mac and use that Mac as their own, simultaneously. Each account will remain separate from all others.
    However, since each user needs to have a Mac to do that, I'm not sure how you could effectively double the number of users as you describe.

  • Can two ipods with the same email address face time independantly?

    Can two ipods with the same email address face time independantly?

    Hey Bumblebee, To each other, no-- would be like trying to call yourself on the same phone. To different persons on other devices??? Not sure you'll have to try, I'm guessing if both are online you may well dial up on both, (once had the same address on the my computer and iPod, both would ring when called, this stopped when I changed the iPod's address). If you change one of the iPod's e-mail address you should be fine. You'll have to do a little experimenting. Hope this helps, Good luck. Cheers.

  • Can two Iphones have the same account/email address?

    Can two iphones have the same account/email address? I bought two phones-one for my wife and the other for myself. They are both under the same account /itunes account /email address-Would this cause a conflict with the two phones?

    No, as long as you want to share the same account for iCloud's services like Mail, Calendars, Contacts, Reminders, Notes, iCloud, Documents etc.
    I personally would create two accounts so that everyone could have and use  heir own mail account, address book, create meetings, reminders etc. without reading and deleting stuff of the other person.

  • TS3899 Can two people have the same email address and password on their phone?

    Can two people have the same email address and password on their phone?

    I guess so.    But the email content will mirror on both phones.
    If you are talking about your Apple ID and iCloud email, yes, it is possible, but again the phones will mirror.   You should not have the same Apple ID and iCloud both.  
    Why?
    If you explain the reason for the question we may have a solution that works for you.

  • Can two users access the same bootcamp (win os) instance?

    We are two users who are using our imac and we both have own user names in mac os. I created a bootcamp partition with windows xp on it. Can both users access the same partition and create their own user spaces within xp?
    Will that work also if we use Parallel or virtual box? (access the same user data as in boot camp?)
    I would like to have the option for each user to access their windows data either through bootcamp or through the virtual tool.
    Message was edited by: gss2
    Message was edited by: gss2

    gss2 wrote:
    What do you mean Virtual box it will not run on its own partition? I have a virtual box running on my desktop and it runs just fine ...own partition?? I don't understand.
    Running on its own partition means that the installed OS has its own formatted portion (partition) of the hard drive. A virtual machine does not have its own partition. It creates a virtual partition (a file on the computer) that simulates a file system (partition). So Virtual Box, or any other virtualization software, does not run Windows, or any other OS in its own partition.

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

Maybe you are looking for

  • Upgrading external hard drive to OSX 10.8.5

    I purchased a 27 inch iMac in 2011 and within a year, decided to update the original terabyte sata drive with an SSD.   I kept the old drive, which had OSX 10.7.2.   I'm about to get rid of it, but wanted to keep the old drive and possibly use it to

  • Importing data to table from excel

    hi, Is it possible to import data from excel to an oracle table using a stored procedure? database used : Oracle 11g Joseph

  • Booklet Printing Duplex Imposition

    I have been Googling and searching the forums and I am not finding just what I need. Please help! I want to create a booklet in InDesign. I set up my document with left and right hand pages as 1/4 of a standard letter size. So my page measures 4.25"

  • Why do I receive Offending Operator Error when opening illustrator created charts??

    I have created a pie chart in illustrator and after I save and close I receive Offending Operator errors when reopening and my chart information is gone.  This has happened to me twice between a six month period.  I thought it was just corupt files,

  • Can i backup iPad/iPhone to device via internet?

    My MybookLiveDual is connected to internet via router at home. Can i backup selected files on my iPad remotely to the device via internet? I would like to do this while traveling if possible.