DAO to Access CMP - Ok not OK ?

Hi,
Form a desing point of view is it ok for DAO to fetch data from the CMP entity
bean.
Or DAO pattern is just for direct JDBC calls ?
Thanks

As the earlier Petstore prototype, there's a fastlane pattern.
with it, you can specify using EJB or not. the fastlane is used in DAO.
"Nadeem Akhter" <[email protected]> wrote:
>
Hi,
Form a desing point of view is it ok for DAO to fetch data from the CMP
entity
bean.
Or DAO pattern is just for direct JDBC calls ?
Thanks

Similar Messages

  • To CMP or not to CMP....that is the question!

    Hey guys.
    I have a problem which I am hoping you can help me solve.
    Let's say that we are designing a simple J2EE address book web application.
    The application design must follow these requirements:
    1. The application stores all data in a relational database.
    2. The user interface to the application is browser based only.
    3. The application must be independent of the database type (Oracle, MS Sql, Informix).
    4. The application must be independent of the application server type.
    5. The application must be portable between databases and application servers.
    The application allows the user to do the following:
    A. Search for entries in the address book
    B. Display (read only) entry details
    C. Add/edit/delete entry
    Now, what I'm wondering is: Should we use CMPs to encapsulate the address book entries,
    or should we use Java classes with JDBC access to the database (managed through session beans).
    I know that if we use CMPs, we don't have to code the database access calls.
    Not only does this approach save us time, but it makes the bean portable across various database
    servers.
    But if we use CMPs, it seems to me that we face the following problem
    (please correct me if I am wrong):
    The application server creates tables in the database for storing the CMP data. The names of these
    tables are not specified by the J2EE specification (because the persistent storage does not need to
    be a relational database). Therefore if we deploy the application on application server A, and
    then later decide to change to application server B, then B might have other naming rules for tables
    than A (and would therefore be unable to read the data from the database).
    Therefore, by using CMPs, our application is no longer portable between application servers, and
    this violates design requirement number 5.
    Now, I know that many application servers allow you to specify a mapping for CMP to an existing table,
    but the configuration files for specifying these mappings are different between
    application servers. And since we do not want our application to have to know anything about the
    server it is to be deployed on, that solution is unacceptable.
    Another way would be to implement the address book without CMPs, using Java classes with JDBC access
    to the database (caching frequently accessed data, perhaps with the A.C.E. Smart Cache pattern).
    My question is: What exactly is the tradeoff between these two implementations (in this limited web
    access only context)?
    Will the non-CMP implementation come in second in performance (and if so, why?)?
    When the application server tier is clustered, does the application server synchronize the cached
    CMP data in the cluster? This will have to be done manually in the non-CMP implementation.
    Any thoughts on the above issues are greatly appreciated.
    Thanks.
    OGG.

    I entirely agree! I think this is a general problem with java going forward that they didn't think about. Look for my post on problems with JAAS with JavaBeans and EJBs. They have not thought enough about how to truly ensure integration and portability of 3rd party tools. Yes, in this regard M$ is a little better, as their ActiveX integration has produced a pretty rich 3rd party industry, but that's helped by the fact that they don't really worry about security. (Although their COM+ security integration for 3rd party tools is better than JAAS with Java. In COM+, I can take your component and actually set security levels/roles for any method within your component! You can't do that in JAAS - see the JAAS Problems and Misconceptions discussion somewhere in the Java Forums).

  • I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

  • ERROR: file can not be accessed or does not exist

    I have a client online at this very moment that just went on and did all their page edits... about 2 hours of work for him.
    He went to save the file & received the error "...file can not be accessed or does not exist, Error" (no error number or anything. Here are the steps he took:
    Edit page
    Save ... received error
    Done... received same error
    Call me in panic
    Anyone???

    Hello Tommy,
    The editing session should not time out for 24 hours for a normal login. The period is even longer if “remember me” was checked at login... And if the session timed out, you should have been prompted with the login dialog, not thrown an error.
    I've sent you a private message regarding further troubleshooting.
    Best regards,
    Corey

  • Is there a way to access my old Notes only? I still have my old back up but I cant sync to my phone or it will corrupt it.

    I am using an iphone 5. Recently it malfunctioned and I was told by apple that my old back up had a corruption with it an caused my phone to malfunction. Apple had to redownload the operating system. I was also told that I can not use my old back on my phone I need to delete it and manually download everything. I DID NOT USE ICLOUD. However I do have my old back up still on my mac in itunes. Question below....
    Is there a way to access my old Notes only so I can rewrite them in my phone? I still have my old back up but I cant sync to my phone or it will corrupt it. I just want to access my notes so I can type them back into my notes on my fixed phone.

    you can restore from your backup again just to get the notes. once you've restored from the backup, copy your notes into your icloud notes group or email them to yourself - basically, get them somewhere else so they're not just locally stored on the device. once you've moved your notes elsewhere, restore the device as new again like apple had you do. this will again put a fresh version of the operating system on your phone like it has right now
    there's no other way to access the notes that are in your backup

  • I have a time capsule connected directly to fiber connection. I have connected a windows server directly to TC and configured it for remote desktop connection. From my interanet I can access srvr but not from my home. What config I need on TC?

    I have a time capsule directly connected to fibre optic point out. All pcs and macs are connected wirelessly to the internet. I have connected a windows server pc to TC. When configured for Remote desktop connection, I can access windows server from within interanet but don't know how to access it from internet. I guess I need to change some settings in TC to get some ip adress for the remote desktop connection from my home. Anyone who can help me out? Appreciate it.
    Narmin

    I am a little lost now.. I have read again your title and your first post.. and they seem inconsistent.
    In the title you state.
    From my interanet I can access srvr but not from my home.
    Interanet is not a word I know.. I assumed intranet...are you talking about internet or intranet? And just to be clear say WAN or LAN.. !! Is your home part of the interanet??
    In the first post you state,
    I can access windows server from within interanet but don't know how to access it from internet.
    Now this is more normal.. the issue is not in the home at all, it is accessible from there but fails from internet. If this is correct, then you can do a few obvious things to determine where the problem is.
    But first I need to know are you actually testing from a different internet connection to your home lan.. you are not just trying the public IP from inside the LAN as that will fail due to the TC not doing NAT Loopback.
    I am also assuming the TC is the only router in the network, and has the public IP on the WAN interface.
    And I am also assuming you have turned on the ping responder and you can actually ping your public ip from the internet and get a response. This helps no end in figuring out where there are issues. Strange but I have no idea if there is a ping responder in the TC WAN so you might need to forward that as well. Also if you have a dynamic public ip address are you using dyndns or no-ip or some other service to connect.
    1. Test bypassing the TC.. plug the internet connection straight into the windows server,, and test if you have access. If yes, the TC is the problem.. if not, your setup on the windows server is wrong.. look at firewall in particular.
    2. Assuming from test 1 the TC is the problem, Post the screen shots of the port forwarding setup for us to look at.. that is by far the easiest way to check it out.
    There are lots of references to port forwarding in the TC.. eg
    http://must-know-mac.blogspot.com/2008/07/how-to-port-forward-time-capsule.html
    The things that generally go wrong are firewall on the computer that is accepting the port.
    The ISP doesn't allow connections on a particular port. (not likely in your case)
    The router is behind another router.. double NAT will kill any port forward.
    Upnp has already allocated a port.. not an issue as TC doesn't use upnp although a reboot of everything after you set port forwards is well worth it.. amazing how things don't stick properly without a reboot.
    IP on the receiving device is not static and so changes.
    Not enough or right type of ports are opened. This is always messier than it looks as one port is often not enough for two way communications.

  • Clean Access Server could not establish a secure connection

    I have a OOB Real IP GW setup on v4.1.2
    I seem to have a problem with the CAS connecting to the CAM although I have added the CAS to the CAM and can manage the CAS from the CAM.
    I noticed while troubleshooting client authentication that the client was not being redirected to the logon web page and it had full access to the trusted network from the untrusted authentication vlan. I eventually figured out that if I change the CAS Filter Fallback method from Allow to ignore then it tries to authenticate the client. However the fact that the fallback is activated tells you that something is not right.
    I have 2 problems:
    A) The clients web page is redirected for authentication but it only lists the domain name in the URL and not the hostname or host IP. In the lab I do not have a DNS server and it would not help as it does not include the hostname in the URL anyway. How do I fix this or perhaps it's related to the 2nd problem.
    B) When I manually change the URL by replacing the domain name with the IP of the CAS (untrusted OOB Real IP GW) then I get the following error message when logging on:
    Network Error:
    Clean Access Server could not establish a secure connection to Clean Access Manager at mydomain.com.
    This could be due to one or more of the following reasons: 1) Clean Access Manager certificate has expired 2) Clean Access Manager certificate cannot be trusted or 3) Clean Access Manager cannot be reached.
    Please report this to your network administrator.
    I would guess the culprit is No 2 but surely the system can run on self signed certificates? I have an NTP server so time is in sync. I have even tried regenerating the cetificates on the CAM
    & CAS.
    Any ideas?

    To overcome problem B, I regenerated the SSL Certificates using the host IP address instead of the name for all the CAM & CAS appliances. This seems to have resolved this problem.
    I also SSH'd from each of the CAS's to each of the CAM's from the CLI and it then prompts to permanently store the certificates. I'm not sure it this was necessary though.

  • I can access Google, but not Gmail.

    Hi guys. I've been having trouble with my internet connection for as long as I've had my Mac (one year). For the longest time, I've repeatedly had to click the icon for Airport and then turn it off and back on again to recover my connection to Google Gmail and Google docs. These are the first sites to disappear, later I have trouble accessing other sites, this is corrected by turing off and then on Airport. But that is very frustrating, and I often have to do it over and over again. Also, I'm puzzled by the fact that my Skype connection is rarely bothered when access to others sites drops.
    I've been reading as much as I can find and trying the airport utility. Clearly I am stupid because things went from bad to worse. Now I can access Google, but not Gmail. I can access most parts of Apple.com, but when I tried to purchase the upgrade to OS 10.6, I couldn't view the page images. I found the same problem on a few other sites. When I tried to access Linkedin, I could get to the login page, but no further.
    In each case, I get the usual message: Safari can’t open the page “https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false& continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fhl%3Den%26tab%3Dwm%26ui%3Dhtml %26zy%3Dl&bsv=1eic6yu9oa4y3&scc=1&ltmpl=default&ltmplcache=2&hl=en” because Safari can’t establish a secure connection to the server “www.google.com”.
    I've tried resetting Airport back to the factory settings. Now all I get is the blinking yellow light - I'm not sure what that means.
    I'm now connected via hardwire, but access is limited to very few sites, such as this one and Google. I can search google, but I can't access gmail. I can access everything on my windows computer through the same wired network.
    Message was edited by: WhidbeyTomas

    I am having this same problem, but it's not related to parental controls. I have to keep turning the airport on and off as well. Here (http://www.mac-help.com/forums/showthread.php?t=9802) is a post I made over at mac-help.. still waiting for a reply.
    What I've noticed is, the DNS is resolving correctly, but I cannot access certain sites. Regardless, I've tried Open DNS servers and still get the same result. It's not a specific browser. Certain sites go down in a few minutes after visiting them. Some go down faster than others. And others don't go down at all. Sites I've had problems with are Apple.com (to make this post I've had to turn the airport on and off continually), Gmail.com, Google.com, while Google.ca works fine.
    A solution would be great..

  • Rate and accessable value is not displaying for the tax invoice output

    Hello All,
      Rate and accessable value is not displaying for the tax invoice output. Rest of all outputs for invoices shows Rate and accessable value.
    Scenerio is free of charge sales order (samples) removing the goods from pant so excise invoice has been created and also updated. but for tax invoice out put rate and access value is not displaying.
        Pricing procedure: In pricing procedure account keys have not been maintained because there is not gl account upadation during billing for free of charge delivery.
    Thanks & Regards,
    ramesh

    hi Gurpreet,
    You can add values to that transient column programatically,either by getiing the row from the iterator and then row.setAttribute('Column_name','Value');
    Or providing value to it in the SQL...

  • Access Policy is not getting trigggered after creation of user through GTC

    Hi,
    I have an access policy for ALL USER role and that provision users to an RO after getting created in oim. I have a trusted source flat file reconciliation GTC for user creation. I am facing issue when user is getting created through GTC, access policy is not getting triggered. But while creating an user through web console the same access policy is working fine and user is getting provisioned with RO.
    If anybody have any idea how to resolve this, please help me in this regards.
    Regards,
    Avijit

    Hi ,
    its good to know that its working. As per my experience it works for once (through reconciliation) but then stops working. Now to confirm try to revoke the user by changing the group member-ship through reconciliation and see if the resource is revoked or not (repeat it for 2 -3 times). Note that don't do it form within IDM web admin console, do it through reconciliation.
    do post your results.......
    Regards.

  • Can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Illegal dependency access list does not allow use of caf/eu/gp/api

    I am using NWDS 2004s and working with GP implementation.
    I am also able to see the development components as caf/eu/gp/api and sap.com/caf/gp/api/wd after copying the required files.
    But while selecting caf/eu/gp/api i am getting following exception
    Illegal dependency access list does not allow use of caf/eu/gp/api
    Please suggest if you have any idea regarding this.
    Regards
    Satya

    Hi Satyabrata,
    Are you using NWDI for development, or local development?
    I had the same problem when using local development components. I read somewhere in the documentation that for this you have to use the NWDI.
    Now I am using NWDI and this is working correctly.
    Johan

  • "access restrictions" did not work sometimes when using 3-tier DeskI.

    My customer found that "access restrictions" did not work sometimes when using 3-tier DeskI.
    But this issue can be solved by logging on from another machine, or restarting the DeskI.
    For I can reproduce this issue, so I just want to know that:
    1.What is it probably related to?
    2.If this issue happens again, what can I suggest my customer for tracking it?
      For example, get some log files from servers etc.
    Thanks!

    Hi Sarah,
    Also you can try the following solution.
    1. Import the universe.
    2. Go to manage access restrictions
    3. Remove the restriction .
    4. Again create the rescrition and unchecked the " limit size of result set to"
    5. Now assign it to the unlimited results group ( this is the name of
    the group we have given to those users who should be able to retrieve
    more than X rows)
    6. Now we save the universe. (Dont export the universe).
    I hope this will help you.
    Regards,
    Sarbhjeet Kaur

  • FTP file adapter: file access permissions do not allow the specified action

    Hi,
    I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    Pls advice
    Thanks
    Prasanna

    >
    Prasanna Shanmugasundaram wrote:
    > Hi,
    > I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    > The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    > But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    >
    > Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    > I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    >
    > Pls advice
    >
    > Thanks
    > Prasanna
    In CC you set ON the delete mode, after processing file? Maybe, the file have read only permission....

  • ORA-20001: Unauthorized access (wwv_flow_api.set_credentials not set).

    I was trying to create the new ADMIN2 account from the FLOWS_020200 schema using :
    begin
    wwv_flow_api.set_security_group_id(p_security_group_id=>10);
    wwv_flow_fnd_user_api.create_fnd_user(
    p_user_name => ‘admin2′,
    p_email_address => ‘[email protected]’,
    p_web_password => ‘admin2′) ;
    end;
    And I got:
    ORA-20001: Unauthorized access (wwv_flow_api.set_credentials not set).
    ORA-06512: at “FLOWS_020200.WWV_FLOW_FND_USER_API”, line 19
    ORA-06512: at “FLOWS_020200.WWV_FLOW_FND_USER_API”, line 429
    ORA-06512: at line 3
    What can I do to solve this issue?

    Okay - I see that's easy enough to fix through Enterprise Manager. But now that I can log on as FLOWS_020200, I get this error when I try to run a script with
    APEX_UTIL.IS_USERNAME_UNIQUE.
    ORA-20001: Unauthorized access (wwv_flow_api.set_credentials not set).
    ORA-06512: at "FLOWS_020200.WWV_FLOW_FND_USER_API", line 19
    ORA-06512: at "FLOWS_020200.WWV_FLOW_FND_USER_API", line 324
    ORA-06512: at "FLOWS_020200.HTMLDB_UTIL", line 456
    ORA-06512: at line 10

Maybe you are looking for

  • Issues with setting "Album Artist" in iTunes 9.2.5.1 on Windows 7

    I googled this for a while but haven't been able to find this issues mentioned anywhere else yet. Here's what's happening: I am importing CDs to iTunes 9.2.1.5 on Windows 7 Pro (64 Bit) using MP3 Encoder > Higher Quality. All is well except for a few

  • How do you know what programs are running?

    Is there any way to tell from the Dock which programs are running? In Tiger there use to be a little black arrow underneath the app. What's changed in Leopard?

  • Using Checkboxes in a Table Component

    I have a table bound to a sql-query. I added an additional checkbox-row not bounded to the sql-query. now, I would like to check, which checkboxes are checked. I used these code-snippets to do so: http://blogs.sun.com/divas/entry/using_checkboxes_in_

  • HT4623 Is my original iPad no longer supported?

    I have several apps that don't function anymore. Is there anything I can do...less buying a new iPad?

  • How can I get my LaCie NAS to play nice with Lion?

    Hi all- I bought a LaCie 2TB NAS a couple months before upgrading to Lion. All was well when my MBP had Snow Leopard instand and the NAS was plugged into my Air Port Extreme. As many know, this came to an end with the upgrade to Lion. I contacted LaC