JNDI issues - Weird things

Hi,
i'm really confused right now, it's so weird, i just can't get it.
I use POJO business objects in a layer between my session fa�ades and my cmps.
I already have on use case working like this: the fa�ade doesn't make references to other ejbs (neither in ejb-jar.xml nor jboss.xml), as it delegates the work to a business POJO.
This is business POJO looks for a local interface in the following way.
partyHouseLocalHome = (PartyHouseLocalHome)ejbHomeFactory.lookupByLocalEJBReference("PartyHouseLocal");The above code is inside the POJO's constructor. Everything works perfectly fine. I afirm/b]: The fa�ade which delegates to this POJO, which is the PartyIssuesBean, [b]does not have any reference in ejb-jar.xml and jboss.xml to the bean PartyHouseBean, the one i'm looking for in the above code.
So, today i was creating a new use case and build a very similar archicture -> a session fa�ade that delegates to a POJO.
I build a brand new session fa�ade that does not reference any other bean in ejb-jar.xml and jboss.xml. This fa�ade delegates to a POJO that, inside it's constructor, look for the following ejbs.
partyHouseLocalHome = (PartyHouseLocalHome)ejbHomeFactory.lookupByLocalEJBReference("PartyHouseLocal");
partyNegotiationLocalHome = (PartyNegotiationLocalHome)ejbHomeFactory.lookupByLocalEJBReference("PartyNegotiationLocal");Here's the weird thing, on the second lookup i get a javax.ejb.NameNotFoundException !!!!
The lookup for the PartyHouseBean works, but the lookup for the PartyNegotiationBean does not work!!!
Then, i decided to add a reference (in ejb-jar.xml and jboss.xml) to the PartyNegotiationBean for the Session fa�ade the delegates to this POJO.
With that, i lookup works fine !!!!
In other words:
- When i lookup from this POJO for the PartyHouseBean (as in the code above) i do not need a reference to PartyHouseBean in ejb-jar.xml or jboss.xml for the fa�ade that uses this POJO.
- When i lookup from this POJO for the PartyNegotiationBean, it only works if a set a reference to PartyNegotiationBean in ejb-jar.xml and jboss.xml for the fa�ade that uses this POJO.
How weird is that????
I couldn't see any thing diferent between the code of PartyHouseBean and PartyNegotiationBean..., is there some kind of externalize????
I'd appreciate any help.
Leandro

How weird is that????it looks very weird, indeed....
But after you think about those guys that wrote JBoss this looks not so surprising after all.
but jokes aside.... I think you should always use ejb-local-ref when you invoke local EJB's.
best regards,
Maris Orbidans

Similar Messages

  • Weird thing going on with Expose and Dock

    Weird things have been going on with my Macbook Pro. It's been like this for several months and it's very annoying. What happened was that at some point during using computer, the dock and the expose will go on doing strange stuff together, for the dock, it's the magnification not working properly, when i move my mouse over any application icon, the magnification didn't come up, but if I click on it it will, however, after having clicked on the icon it will not doing the jump motion like it usually does, what it does is that it's going to stay being magnified, even if i point the mouse elsewhere. That's the dock. The problem with the expose is with the all window view, where when i turn it on everything seems to be normal, but if i move my mouse around, anywhere, each window that has been shown in the "all window" view will keep flashing until i dont move my mouse again. And that's the expose problem. Two other problems that occur along with the annoying issue mentioned earlier is that say when you click on the apple icon on the top, usually when you move down along there will be a blue stripe as a background to the words like "About this mac", "System preferences" etc, but when the problem occurs it will not do that. And if you have any window opened that has a scroll for horizontally, it'll keep forcing me to the right hand side of the bar, even if i drag it to the left it'll still go straight to the right hand side automatically. These are the problems that log-out-then-log-in won't resolve, needs to be restarted, i cannot work under this kind of situation, and it's getting really frustrating although i really like my mac still. I'm not sure when it started to do this, one time i thought maybe an application like p2p may disrupt the system so one time i only had calendar, itunes working still it happened again. I have a macbook pro A1226, has been updated to 10.5 and went through all the software update already... still... Does anyone have have the similar or maybe exact same problem as I do here? Please let me know. If you know how to fix it even better, I'd appreciate that. Thanks.

    Hello Karsten,
    These are the requested lines
    192.168.1.x/24 is my local lan.
    I want to make a RDP session from my PC (192.168.1.x) to a server on the customer lan for example 172.31.2..x
    access-list VPN_Filter line 2 extended permit object RDP object-group DM_INLINE_NETWORK_8 object Lan-Pat 0x7a06853d
      access-list VPN_Filter line 2 extended permit tcp 192.168.5.0 255.255.255.0 range 1 65535 192.168.1.0 255.255.255.0 eq 3389 (hitcnt=0) 0x6dbbab46
      access-list VPN_Filter line 2 extended permit tcp 172.31.2.0 255.255.255.0 range 1 65535 192.168.1.0 255.255.255.0 eq 3389 (hitcnt=0) 0x4fede2a3
      access-list VPN_Filter line 2 extended permit tcp 10.255.2.0 255.255.255.0 range 1 65535 192.168.1.0 255.255.255.0 eq 3389 (hitcnt=0) 0xf63149ed
      access-list VPN_Filter line 2 extended permit tcp 192.168.0.0 255.255.255.0 range 1 65535 192.168.1.0 255.255.255.0 eq 3389 (hitcnt=0) 0xf6c544e9

  • I have an iphone 4 that I recently upgraded to IOS 7, and now I cant drag music to it.  It says "preparing to update" eternally.  Weird thing is... I have an iphone 3s that is IOS 6, and it takes new music all day.  arg.

    I have an iphone 4 that I recently upgraded to IOS 7, and now I cant drag music to it.  It says "preparing to update" eternally.  Weird thing is... I have an iphone 3s that is IOS 6, and it takes new music all day.  arg.
    I have tried direct connecting the iphone 4, via wifi, everything.  I hate itunes with a passion, but it seems to be a necessary evil.  I dont know why I would have no trouble with my iphone 3.  I am using the same technique for both phones.  Find the music I want in the library and drag it to the iphone.  Works on IOS 6, not IOS 7.
    WHat else should I try?

    Hi jeffmbellucci,
    If you are having issues dragging music to your iPhone 4 after a recent upgrade to iOS 7, you may want to verify that the phone is still set to "Manually manage music and videos." You may find the following article helpful:
    Apple Support: Managing content manually on iPhone, iPad, and iPod
    http://support.apple.com/kb/ht1535
    Regards,
    - Brenden

  • Projects doing very weird things

    This has really been driving me nuts.
    I'm on Mac 10.8.5. Just recently updated to CC 2014 v8.
    I've been working on several projects lately, and very weird things are happening every time I open a project. Usually when you save and exit a project, when you reopen it, it will open to the same sequence you were last working on, but for some reason every time I open it will load a random sequence I hadn't worked on in a long time. Sometimes when I open, the project will load slowly indexing and conforming and generating peak files. After it thinking for 5 minutes, I go to play my sequence that was fine yesterday and now some audio tracks that are still in the timeline no longer contain any audio. When I match frame, the audio clip appears in source, but has no waveform and will not play any audio. Some audio tracks do not have waveforms but DO play audio, and when I match frame on those, the clip comes up and plays audio but shows no waveform.
    Restarted computer and now all the audio loads fine, but thumbnails for all video aren't showing.
    The other day I had a similar situation with VIDEO. Clips were randomly "pending" or "offline" and I would 'link' them, but it would remain offline or pending. Eventually it fixed itself somehow.
    I'm having a hell of a time here. This is really holding me back from my work. I'm not really sure how to troubleshoot this as it is different everytime.
    I'm working from an external harddrive that is brand new, and shouldn't be having any permissions issues...
    Any insight would be appreciated!

    Some trouble shooting:
    Open Premiere while holding down shift+alt until welcome screen then
    Clear out Media Cache database and remove remaining files in that folder manually.
    See if that will help.

  • MacBook won't turn on 98% of the time, help! Very weird things happening!

    Hi there, any advice you have for me would me much appreciated. What happened with my Macbook is all very strange.
    So, the morning before last, I was on my Macbook (which I bought in 2006 so it's on the older side, but otherwise worked great) and it was running low on battery. I was late for work so didn't plug it in before leaving. I left it open. However I have no roomates, pets, etc.
    When I get home that evening, I plugged in the powercord and it wouldn't turn on. After trying a million different things, like taking the battery out, reseting the PRAM, etc, there were a few times where I got it to turn on, went through the log on screen, and was able to use my computer like normal for about 5 minutes or so, and then it would just shut off.
    There were also many times when I would pres the power button and the screen would flash like it was about to turn on, and then it would make the noise that the computer makes when you're typically on 0% battery and it shuts down. Later in the night, when the computer was closed but plugged into the power outlet, it was by itself (meaning I wasn't pressing anything) making the noise that it was restarting. It made that noise about every 30 seconds for a few minutes. Weird.
    It was also doing inconsistent things re: the sleep light. At times it was on, including when the computer was closed, and sometimes it would go from on to off. Also, the battery/charing was doing weird things. The few times I was able to get past the log in screen it showed that it was at 0%, even though the light on the adapter was green and it had been plugged in for a long time. Another time the battery icon had an X through it. I have 2 different batteries and neither one of them seemed to make a difference.
    Also, yesterday I brought my computer into the Apple store and they put in a battery that was charged and it didn't seem to make a difference either. One more weird thing: when I did get the computer on in the spotlight bar it said it was indexing??
    Anyways, I'm just confused/upset, etc. because I literally did nothing to the computer. I didn't drop it/spill on it, etc. I'm also frustrated because the guy at the genius bar litteraly only spent like 5 minutes looking at before he said i was SOL. He said it was the "main board" that was the problem. One of the things like I'm just confused by is if the main board really does need to be replaced, then how was I able to get the computer on and working those few times???
    Sorrry this is so long, any help would be awesome!! I just don't have the money to buy a new computer, and I'm not sure it will be worth it for me to pay $300 to have it fixed when my computer's already pretty old and other things haven't been working for awhile (like my disc drive, camera). THANK YOU!!!

    EmadJamal,
    the battery won’t melt because of long connection to the AC charger, although that has the potential of reducing the battery’s life.
    Do you have access to a second 60 W AC charger to test with your MacBook Pro, or access to a second 13-inch MacBook Pro against which your AC charger could be tested?

  • Weird things happen in Edit view...

    Some (but NOT all)of my photos do weird things when you Double-Click them to get into Edit view. Most of my photos zoom in to their appropriate sizes and are viewed 'normally', however, other photos initially come up in their normal zoomed size then in a second of two, zoom in again several times larger than they should be, and the colors will pop your eyes out, like a reverse negative or something and the photos gets all 'chunky' or 'blocky'. Fortunately, only a small number of my photos zoom in wildly like this.
    Anyone seen this, have a clue what causes it and most importantly, can it be fixed to STOP doing this?
    Thanks

    Well, I used to see this problem way back in the v7 days of the purple app. It's not an FCP exclusive problem, though I have seen it happen one time with Final Cut.
    Glad to help you solve this one, Jamie. You can help others who come to this thread later, by marking the Helpful & Solved posts in the thread. That way, when others are searching for solutions to this problem, they can scan down quickly and easily to those posts, and see the yellow and green stars.
    I've posted this request on a number of threads, both those I've helped or solved, and those I had no helpful contributions for. I'm just trying to help make the new forum as usable as ut can be.

  • I opened my iPhoto library today which was stored on an external hard drive and several of my videos now will not play. The weird thing is that each file shows a duration of 1 second and when I open them it just shows one frame. What the

    I opened my iPhoto library today which was stored on an external hard drive and several of my videos now will not play at all. The weird thing is that each file shows a duration of 1 second and when I open them it just shows one frame. What the !&%$#@ Where did my original video files go?

    Sounds like a good plan, you can never be to safe and having a second External HD is safer than one.
    The only thing that I would do different, is setup the 3T as my TimeMachine Backup and then erase and move my Photos, Videos and perhaps even iTunes Media to the 1T. That way you will have room to backup both the Internal Hard Drive and the 1T External Hard Drive to the 3T using TimeMachine.
    Take your time, study and use the > Time Machine - Frequently Asked Questions if you get stuck or aren't sure how to make the move.
    Also see > iPhoto: How to move the Library folder to a new location
    iMovie ’08: Storing or moving your video library to an external hard disk
    and >  iTunes for Mac: Moving your iTunes Media folder

  • I bought my Iphone 5 a week ago, now suddenly my sound is gone when i play games, i checked everything and the weird thing is that when i put my headphone in i CAN hear the sound when in games, also he just plays music whitout my headphone. What could it

    Hello so as you can see in my question i have troubles with my sound
    I cant hear annything of my sound in game and i did check everything
    The weird thing is that when i put my headphone in i do hear the sound
    Also my music plays without my headphone
    Wat can it be ? Pls help !

    Ok, a little clarification then, you can hear music fine with the speaker and headphone?  You can hear a game's music fine with the headphone but not with the speaker?  Do you get the notification sounds ok with the speaker?
    If the speaker sound is acceptable with everything except the game then there is a problem with that game and its settings.
    If that is the case, you might want to try deleting the game and then downloading and reinstalling the game to see if that helps the problem.

  • I restored my iPod in the middle of a download, now it can't do anything but restore, and when i restore it, the screen gets stuck on weird things, like the apple screen or purple or yellow. how do i get it un-stuck?

    i restored my iPod in the middle of a download, now it can't do anything but restore, and when i restore it, the screen gets stuck on weird things, like the apple screen or purple or yellow. how do i get it un-stuck?

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Lines on LCD and a Weird Thing

    Today, after I've applied the invisibleSHEILD to my iPod Touch I started to notice lines or streaks on the screen. There's about 8 of them and at different angles I see different colors. Such as the one that runs right across the music App. At one angle it's light orange and light brown and at another it's dark orange and dark brown. They're happening every where. When I turn my iPod completely off they're still there but instead they're in shades of gray. So I supposed that it's the liquid from the invisibleSHEILD but the lines stop at the end of the clear part of the glass, not the black part.
    As for the weird thing after I finished putting on the invisibleSHEILD I could push the bottom-left corner of my iPod Touch screen into the device almost a millimeter. All the other corners were fine and stable. The screen was actually going inside!
    Message was edited by: iHave a iPod

    Hi micsmith66!
    Thank you for posting to our forum!  It is very difficult to say whether or not this had anything to do with living near the beach.  This will need to be checked out by our Factory Service Center.  To start the repair process, you'll need to complete a Repair Request on our website.
    If this is a time sensitive-matter, additional support options are available at Contact Us.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • What are these weird things in Apple Mail?

    Hi,
    Does anyone know what these weird things are in Apple Mail? (Please ignore the yellow markers)
    It often happens when I open the application in the first e-mail.
    Thanks!
    Teun

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}' | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}' | open -f -a TextEdit 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Weird thing happening with my iCal

    A weird thing is happening with my iCal, I don't know if it's a bug... Today I was printing the months of September and October with all my appointments, and when I was checking October I have noticed that 14th was printed as Saturday and as Sunday too, and 15th became Monday, 16th became Tuesday, and so on.
    But in my computer screen the calendar was correct: 14 Saturday, 15 Sunday, 16 Monday, etc.
    I cannot figure out what could be happening and how to solve this.
    Any idea?
    Any help will be appreciated.
    PowerMac G4 1.5 AGP Graphics   Mac OS X (10.4.7)   1 GB RAM

    Today a friend of mine said that he had a similar problem with iCal when printing the month of October, and that he fixed this by changing the Time and Zone setting in System Preferences. When he changed the setting from Sao Paulo, Brazil to Buenos Aires, Argentina (the both have the same time zone) the problem was solved.
    Today I did this and my problem dissapeared too. But I would like to know why is this happening.

  • A weird thing in changing UDF setting

    Hi All,
    I had a weird thing in UDF setting. Previously I set some valid values for an UDF, now I removed them so there is no limitation for this UDF. At least I don't see any setting in valid values in UDF management tools. But the problem is when i test my add-on it gives me error like value is not valid value for this UDF. Do I need to reboot whole SAP B1 server?
    Any idea?
    Thanks,
    Lan

    Hi Gordon,
    Thanks for your reply, actually i didn't do anything just took 20 minutes break when i came back then it works.
    Thanks,
    Lan

  • Macbook Pro slow start up, freezing on Safari, weird things on iTunes

    I have a mid-2012 Macbook Pro and it's never seemed to operate optimally. It's slow to start up and sometimes freezes on Safari pages. ITunes is difficult to navigate and does weird things. I haven't done the latest update because we don't have Wi-Fi at home. Could it be that or could I have a hardware problem? Thanks!

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Weird thing in Safari

    Not sure why, Safari just started doing this weird thing.
    After I click on an item in eBay, or click any page on any site, when I 'swipe' back using my Apple Magic Mouse, the page jams a few pixels back and it freezes, mouse won't click on anything in Safari after that. I have to quit and start again.
    I trashed system pref plist for Safari, made no difference.
    I repaired permissions (three times) and get the following, anyone know what this means or why Safari has started doing this or how to fix it?
    Repairing permissions for “Macintosh HD”Permissions differ on “Applications/Safari.app/Contents/Resources/Safari.help/Contents/Resources/inde x.html”; should be lrwxr-xr-x ; they are -rwxr-xr-x .Repaired “Applications/Safari.app/Contents/Resources/Safari.help/Contents/Resources/inde x.html”
    Thanks

    1. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. Test.
    2. There are reports that this problem can be solved by simply restarting, or by resetting the PRAM.
    Repairing permissions is a waste of time.

Maybe you are looking for