DAO pattern & Lookup datasource with NamingException in the same J2EE APP

Hello Experts:
I'm developing an J2EE application with EJB's for transactional operations (that works fine!) and I'm implementing the J2EE DAO Pattern using a DAO ConnectionFactory with OpenSQL/JDBC standard for Querying the DB, but here my problems begins:
The DAOConnectionFactory Singleton Class is placed in a java package inside the same application that holds my Entitys & Sessions (remember this ejb's works fine!) and I'm trying to get the "localy-configured-in-the-j2ee-application" alias-datasource for my DAO Querys, but "lookup" doesn't find this resource!!!.
I'm thinking, there's not remote access to this resouce because the DAO-CF is in the same context and JVM, but this appreciation is correct? or  what I miss?
Another remark: I've been used the Telnet Administrator and the same lookup string is founded correctly!.
Here is the Codec:
public class ConexionFactory implements Serializable {
     private static ConexionFactory singleton = null;
     private DataSource ds;
     protected ConexionFactory() {
          String source = "jdbc/BURO_COMM";
          try {
               Context ctx = new InitialContext();
               ds = (DataSource) ctx.lookup(source);
               if (null == ds) {
                    throw new RuntimeException("Couldn't get the datasource");
          } catch (NameNotFoundException e) {
               throw new RuntimeException(e.getMessage());
          } catch (NamingException e) {
               throw new RuntimeException(e.getMessage());
     public static ConexionFactory getInstance() {
          if (null == singleton) {
               singleton = new ConexionFactory();
          return singleton;
.... (some other methods)

Hello all again:
I've been making some tests (and investigation reading other posts) and I found that everything is related with the Resource Sharing Scope of my Session Object that commands the process. And it works fine.
By now, for my conceptual test is Ok and finally i must work in this app arquitecure path:
->Web Service (with a POJO in a web module)
>ProcessRender Class (a POJO with the main control logic)
>BussinesDelegate's -->ServiceLocator
>SessionFacades --->Entity's
>DAO Connection Factory---->OpenSQL/JDBC Querys

Similar Messages

  • Now that the photo gallery in MobileMe is ending, is there another photo sharing site to which existing iPhoto albums can be transferred as is, with photos in the same order and with titles, and with minimal problems?

    Now that the photo gallery in MobileMe is ending, is there another photo sharing site to which existing iPhoto albums can be transferred as is, with photos in the same order and with titles, and with minimal problems?

    No. If you don't have the album you originally used to create the galleries you can do so by dragging the photos from each gallery to a new, empty album. Then when you find the photo sharing site/option you have decided on  you can easily upload each album to the site.
    Another option is to obtain a hosting service and create iWeb photo pages for each album and future albums similar to this photo page in one of my demo sites: iPhoto Book as an iWeb Slideshow.  Or you can use the iWeb album page and have an album for each  iPhoto album on it like on this demo page: Page-7 .
    OT

  • "Open with" menu displaying the same apps several times...

    I've tried googling this several times but never really found a good answer nor a way to solve this (see image below)...
    As you can see, the "open with" menu displays the GROUP OF APPS several times, not just the apps themselves... Funny thing is, this only happens when I navigate with the keyboard to the "open with" option, i.e., if I highlight it with the mouse a correct menu pops up...!
    Any thoughts on how to fix this?
    NOTE: This has happened to me since Leopard.

    Ok, I will try your suggestion (reinstalling Snow Leopard), maybe not today or tomorrow since this is my work computer but when I have a little time off...
    Just so you can see the "error in action" (the 'insert video' button was disabled, hence the link): http://dl.dropbox.com/u/10042917/Error.mov
    It's a screen recording of me trying to "open with" an image file 1st using the mouse and then using the keyboard (NOTE: if the first navigation in the menu is done with the keyboard, i.e., if you highlight "open" using the keyboard and then navigate to "open with" with the mouse I will still get the repeated menu while... in other words, the use of the keyboard always activates the repeated menu.)
    Anyway, thank you for your help

  • How do you edit photos with photoshop from the new  Photos app?  The edit in external editor menu item seems to be gone.

    How do you edit photos with photoshop from the new  Photos app?  The edit in external editor menu item seems to be gone.

    Tell Apple what additional features you want in Photos via both http://www.apple.com/feedback/macosx.html and http://www.apple.com/feedback/iphoto.html  since they don't have a feedback page for Photos as yet.

  • Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Hi, I have a macbook air os x 10.9.5 and I have problems with the app store. It doesn't open anyway. so, how can I install it again or update. I have problems with preview too, the same, doesn't open the application

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Can SS9 coexist with SS8 on the same box?

    Hello,
    First off, congratulations on the SS9 release!
    I'm about to try it out, but I can't make sense of some what's said in the release notes.
    "If you have Forte Developer 6 software, Sun ONE Studio 7 software, Sun ONE Studio 8 software, or Sun Studio 8 software installed, be sure to follow the installation instructions and install the Sun Studio 9 software in a different directory."
    The next paragraph says:
    "If you have Sun ONE Studio 8, Compiler Collection software or the Sun Studio 8 software installed, be sure to follow the installation instructions and install the Sun Studio 9 software on a different system."
    The install guide says:
    "If you installed an Early Access version of the Studio 9 software or any other version of the Sun Studio software on your system, then install the current version of the Sun Studio 9 software in a different directory."
    So can SS9 coexist with SS8 on the same box, albeit in a different directory, or not? I have an S8 box with SS8 on it.
    Regards,
    Sergey

    I don't have the installation guide handy, but the Release Notes say something different. The Install Guide is wrong about the EA and CA versions. The wording about installing on a different "system" is also wrong. I'll forward this information and see what can be done about correcting it. (No matter how many times a doc is reviewed, it's still wrong ... )
    The rules for Sun Studio 9 installation are actually simple, and are the same as for all previous releases:
    1. You can install any number of different releases on one system, but each must be installed in a different base directory.
    2. You can install only copy of a given release on one system.
    The default base directory is /opt, and if any release is installed there, additional releases must be installed somewhere else. For example, you could install Sun Studio 9 in /SS9 or /export/SS9 or any place other than /opt.
    Because of #2, you must uninstall an EA or CA version of a release before installing another version of that release. For example, if you install the first EA version, you must uninstall it before installing the second EA version, or CA version or final release version. If you installed the CA version, you must uninstall it before installing the final release version.
    Patches to an existing installation don't count as a new version. A patch by definition is installed on top of the release that it patches.

  • How can I record a guitar and my voice (only voice with mic) at the same time ?, how can I record a guitar and my voice (only voice with mic) at the same time ?

    how can I record a guitar and my voice (only voice with mic) at the same time ? I have one interface with Input 1 mic, Input 2 guitar, everything is working correct, but how can I activate multi recording or something like that... thanks

    Set your inputs on your channel strips and make sure you have one set to input 1 and the other input 2.  Arm the 2 audio tracks(the "R" in the track header. They will turn red and flash), then hit the record button. 

  • Is it possible to listen to music through bluetooth and be on a call with earbuds at the same time?

    Is it possible to listen to music through bluetooth and be on a call with earbuds at the same time?
    I would like to be able to talk on my iPhone with the EarPods while playing music via Bluetooth in my car.  Are there any third party products that will allow this?

    Sorry,  iOS will pause the music playback when you are on the phone call.  You can set iOS to use bluetooth for your audo playback on your music app, and select the earpods for the phone app, but as soon as you answer the phone call, iOS will pause the music playback.  This is a core OS feature, so you will not find any certified iOS app that will do what you want.
    As a side note, please use extra caution when using your ear pods while driving.  It is not safe as you may not hear emergency vehicles, car horns, railroad crossing bells, etc., and it is illegal in many states (in the US).

  • Hi, i am wondering if i use 4g together with wifi in the same time will this increase the internet speed ?

    Hi, i am wondering if i use 4g together with wifi in the same time will this increase the internet speed ?

    The iPad has a micro-SIM card slot - nothing special or unique about it.
    The iPad is not sold as carrier locked.

  • I cannot send emails with pics using the stock email app on my new Droid Turbo, it holds them in the Outbox and won't send even if I move to Inbox and resend

    I cannot send emails with pics using the stock email app on my new Droid Turbo, it holds them in the Outbox and won't send even if I move to Inbox and resend

    First check to make sure you have data turned on and not just Wi-Fi. From reading your question you seem to be saying e mail is working just not attached photos. What size are the photos as some HD photos can't be sent. Your camera may be set at a very high picture size and you can go to settings and lower the size and that may solve your mailing problem.

  • HT4889 Hi there, I just get a new Imac, so, I would like to syncronize with my macbook, and keep the same musik, apps, files. what can I do to do that? Thanks

    Hi there, I just get a new Imac, so, I would like to syncronize with my macbook, and keep the same musik, apps, files. what can I do to do that? Thanks

    Hello there, LeoFerrer.
    The following Knowledge Base article provides some great information and steps for migrating your information to your new iMac:
    OS X: How to migrate data from another Mac using Mavericks
    http://support.apple.com/kb/HT5872
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • But i'm worried about the audio quality which matters to me the most !! is the audio quality on iPod with ear-pods the same as iPad with earpods ?

    hi guys !! i'm an ipod touch 5g user ! and i want to switch to ipad !! but i'm worried about the audio quality which matters to me the most !! is the audio quality on iPod with ear-pods the same as iPad with earpods ?

    thnx i'm more satisfied now !

  • AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem. I believe that it is in AirPort Express, and wou

    AirPort Express wireless connection, when I surf the news sites so I linked to **** pages. And must close the window. If I use my iPhone with Internet sharing the same computer, then I have no problem.
    I believe that it is in AirPort Express, and would have to clean it. How do you do that?

    You need to use the Express in router mode.. I think you are trying to use it in bridge mode.. but you need to give us a lot more details.. screenshots might help more than anything.

  • I have two IPODs and I want to synchronize with ITUNES in the same computer. How can I do it?

    I have two IPODs and I want to synchronize with ITUNES in the same computer. How can I do it?

    See:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

  • Fed up with The same OLD APPS in App store.

    I have been staring at the same old Apps in App store since july 11th. Please developers give us some more Apps. I have read that Old jailbroken Iphones have 1000's of Apps. We have a few hundred.

    You also need to be aware that it isn't just the developer...Apple has to approve the apps before they will permit them on the iPhone. That process takes time. Only Apple approved apps are then added to the app store.
    Second, you will never see all the apps that are available on jailbroken phones because the SDK does not permit access to the phone features themselves -- if you look at those jailbroken apps, you will see all kinds of apps that access the iPod feature, the video features, the camera features. You will find bad MMS apps, you will find all kinds of things that will never be approved by Apple for the iPhone and won't end up in the official Apple App Store.
    Be patient, more applications will come, but you have to be realistic about what will and what will not be available.

Maybe you are looking for

  • Unable to Connect to WebLogic Server 7.0 Win 2000

    Hi, I have successfully installed weblogic 7.0 evaluation version on win 2000 and Iam just tryung to start weblogic server 7.0 by Programs->BEA Weblogic Platform 7.0 --> Weblogic Server 7.0 --> Weblogic Builder and when i try to connect to server thr

  • ReadOnly attribute not showing

    I'm trying to create two views of a page where one is readonly and another one is editable. The form page does the following:                <h:commandLink value="Create Record"                     action="#{Bean.readOnlyAccess}">                    

  • Black scrren

    i'm compiling a flash and everything goes find but when i put the size to 315*2000, maybe it's a bit a strange size but it is what i need, everything appears black without any image. anybody knows about that? is flash cs3 giving you problems? cos i h

  • Restoring from a Time Machine back up: iMac can't find them

    A series of set backs after initially attempting to update Pages to be consistant and usable across my devices. iMac required me to update to Mavericks to be able to download the latest Pages update. After doing this, my iMac failed to reboot - just

  • Auto population of characteristics-DMS

    Hi Friends, I have a requirement to auto populate the characteristics in additional tab of  cv01n whenever the document is created .This has to be done before saving the document.The values are to be populated when the attional tab comes up   , the v