CRUD Operations using Servlets , SessionBeans and JPA

Hi
Please tell me what will be the right approach for doing CRUD operations .
I have a jsp page with which the user interacts.
Please tell me the right approach here :
Option 1 :
JSP --->Servlet--->SessionBean--->JPA.
JSP Page submits data to the servlet , the servlet looks up for the SessionBean , and the sessionBean consists of the container EntityManager , for persist , delete , and finding .
Option 2 :
JSP --->Servlet-->JPA.
The Jsp page submits to servlets and the Servlet itself consists of the container EntityManager , for persist , delete , and finding .

Depends on the reusabiltity of the query really. If you have a single database query that is used in multiple places, then by all means put it in a session bean. But if you only do persist/delete operations, then just use the EntityManager directly. The session bean would just be an extra layer of complexity that you don't need.

Similar Messages

  • File IO operations using servlets

    Hi,
    I want to read and process some files (on the server) and write the results using Java servlets.
    Is there any tutorial/resource for the beginners for doing this. I would be grateful for any assistance.
    Thanx,
    -bool

    Google Results
    Accessing files from a servlet

  • Sharepoint 2013 copy/move operation using Content and Structure fails

    Hi,
    We had a recent upgrade from SP2010 to SP2013 environment. After the migration, we realized that the
    copy/move operations using Manage content and structure(sitemanager.aspx) is not working as expected, neither does this give any error nor is it stuck. In fact if I check the content and structure log I find the message as
    succeeded but file/item is not copied to the target. 
    The strange thing is that if I am performing this operation with Full Control permission level it
    does not work but if I do the operation as Site collection admin it works without problem. I know if sub-sites are to moved then one should be site col admin but in this case I am trying to move just documents or pages.
    Any help will be greatly appreciated.
    Thanks

    Hi Vineet,
    According to your description, my understanding is that copy/move operation using Content and Structure cannot work in SharePoint.
    I recommend to check if there are any custom fields in the source list/library and target list/library. If yes, delete the custom fields to see if the issue still occurs.
    Here is a similar thread for you to take a look:
    http://social.technet.microsoft.com/Forums/en-US/56d803d7-8573-4c29-9f6b-c63023941f44/manage-content-and-structure-cannot-move-or-copy-items?forum=sharepointgeneralprevious
    To copy or move files/items between sites, we need to have
    appropriate permissions on both sites.
    I recommend to check if the user has full control on both sites.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • When to use servlets / when applets

    hi there,
    building a web application when do I use servlet technology and when applets? What are the arguments to let me choose between them? Or combine both servlets and applets? Any ideas/URLs are welcome.
    greetings

    is it a matter how powerful my servermachine is?
    No, not really, but an applet will use the processor on the client and the servlet will use the server's cpu, so that could potentially be an issue for you.
    or a matter of security or whatever?
    There are security issues with Applets, as they cannot access system resources, but neither can Servlets, so I think that's a non issue.
    What exactly do you need to do with the data once you get it out of the database? THAT is the real question! If you want to fetch data and then display the data as text or HTML in a browser, use a servlet. If you need the client to interact with the data in a more sophisticated way, use an Applet. With an Applet, you can put buttons and sliders and whatever and control things, and interact with the application. But a Servlet is not an application, nor is it interactive. A Servlet is called, it gets parameters from an HTTP client, and then it responds, and it's done. An Applet has runtime, and stays running, to interact with the client indefinitely.
    I'll give you a real world example. With a Servlet, you might output a web page to a browser, and show an advertisement somewhere on the page. However, an Applet could show an advertisement, and update that ad every few seconds or so, and show one after another, like a slideshow. Even better, an Applet could go get a BRAND NEW ad that was just put in the database and get the new ad at runtime, showing up to the minute results. An Applet could do a stock ticker program, Servlet cannot. Get the difference?

  • How to done Next and Previous operations using(struts or jsp and servlets).

    I have some problem with Next and Previous Operations in my application. I solve that problem by my own. But I need some more information to solve that problem.
    In order to solve this problem, 1st i moved all the Dara Base records into one collection.And I set that collection Object in Session scope in Servlet file.And i dispatch the request to one jsp(Show.jsp) . The code of that is given bellow.
    <%@page language="java"%>
    <%@page import="java.util.*"%>
    <%@page import="home.servlet.beans.*"%>
    <%!
         public static int no=0;
    %>
    <html>
         <body>          
                   <%
                        String s=request.getParameter("nam");
                        if(s==null)
                             s="some";
                        ArrayList a=(ArrayList)session.getAttribute("tv");
                        if(!s.equals("pre"))
                             int i=no;
                             %>
                             <table border=1>
                   <tr>
                        <th>DEPTNO</th>
                        <th>DNAME</th>
                        <th>LOC</th>
                   </tr>
                   <%
                        if((no+1)<a.size())
                        for(i=no;i<(no+2);i++)
                             SelectBean sb=(SelectBean)a.get(i);
                             %>
                             <tr>
                                  <td><%=sb.getDeptno()%></td>
                                  <td><%=sb.getDname()%></td>
                                  <td><%=sb.getLoc()%></td>
                             </tr>
                             <%
                             no=no+2;
                        else
                             if(i<a.size())
                             for(i=no;i<a.size();i++)
                             SelectBean sb=(SelectBean)a.get(i);
                             %>
                             <tr>
                                  <td><%=sb.getDeptno()%></td>
                                  <td><%=sb.getDname()%></td>
                                  <td><%=sb.getLoc()%></td>
                             </tr>
                             <%
                             else
                                  out.println("<tr><td colspan='3'>There is no records to display</td></tr>");
                        else
                             %>
                             <table border=1>
                   <tr>
                        <th>DEPTNO</th>
                        <th>DNAME</th>
                        <th>LOC</th>
                   </tr>
                   <%
                             if(no==a.size())
                                  no=no-1;
                             int i=no;
                             for(i=no;i>(no-2);i--)
                                  if(i==-1)
                                       break;
                                  SelectBean sb=(SelectBean)a.get(i);
                             %>
                             <tr>
                                  <td><%=sb.getDeptno()%></td>
                                  <td><%=sb.getDname()%></td>
                                  <td><%=sb.getLoc()%></td>
                             </tr>
                             <%                               
                             no=no-2;
                             if(no<0)
                                  no=0;
                   %>
                   </table>
                   <br>
                   next
                   previous
         </body>
    </html>
    If u have any other idea please reply to me. Please copy the above code and work with your application.

    It's a classic paging feature.
    And since it's a classic feature, you have most of the work already done for you, like JSP paging tags.
    You just need to Google for "jsp tag paging" or something to that effect to get several useful links.

  • How to use tree tables with CRUD operation for begineers ADF 11g

    This is Friday night call for help.
    This is only few sample ressources on the web for tree table and only one with CRUD operation.
    I used this one http://jobinesh.blogspot.com/2010/05/crud-operations-on-tree-table.html because this is the only one that address CRUD.
    And it is shaky. Deletion works fine but insertion not very well. This is working using custom code provided below.
    Depending if the user selection in the tree, the code insert from the master node to the children node.
    Any other options because it is not working well.
    Also where Oracle describes how to use the row, rowset, itorator API? This is really hard to understand like almost if we should not use it.
    then if not how can I insert in tree with two nodes and insert in the parent or children depending the users selection.
    Lately I 'been posting questions on this forum with no response. This hurts. I understand developers cannot spend their time on this but People from Oracle, please help. We pay licenses...
    public void createChildren(RowIterator ri, Key selectedNodeKey) {
    final String deptViewDefName = "model.DepartmentsView";
    final String empViewDefName = "model.EmployeesView";
    if (ri != null && selectedNodeKey != null) {
    Row last = ri.last();
    Key lastRowKey = last.getKey();
    // if the select row is not the last row in the row iterator...
    Row[] found = ri.findByKey(selectedNodeKey, 1);
    if (found != null && found.length == 1) {
    Row foundRow = found[0];
    String nodeDefname =
    foundRow.getStructureDef().getDefFullName();
    if (nodeDefname.equals(deptViewDefName)) {
    RowSet parents =
    (RowSet)foundRow.getAttribute("EmployeesView");
    Row childrow = parents.createRow();
    parents.insertRow(childrow);
    } else {
    RowSet parents =
    (RowSet)foundRow.getAttribute("EmployeesView");
    Row childrow = parents.createRow();
    childrow.setAttribute("DepartmentId",
    foundRow.getAttribute("DepartmentId"));
    parents.insertRow(childrow);
    } else {
    System.out.println("Node not Found for " + selectedNodeKey);
    }

    I am looking for a sample that describe how to design a jsf page with a tree table.
    So you have Department and employees. In the tree first comes Department and if you click the node you see the employees assigned to this department.
    I need to be able to insert a new department or a new employee from the tree table by clicking on a insert button in the panel collection toolbar depending on user selection in the tree.
    I got part of it working but not good enough.
    By problem is the get insertion working
    I have a createChildren method in my AM implementation that get in input a RowIterator and selected node key.
    To goal is to create new records depending of the user selection and the input parameters get populated by the binding like this:
    #{backing_treeSampleBean.selectedNodeRowIterator} #{backing_TreeSampleBean.selectedNodeRowkey} via method binding with parameters.
    Is it the right approach?
    First to be able to insert a parent record, I select nothing in the tree and ri and selectedNodeKey comes to null
    we run this code
    ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
    //ViewObjectImpl vo = getDepartmentsView1();
    Row foundRow = vo.first();
    Row childrow = vo.createRow();
    vo.insertRow(childrow);
    A new blank entry appears in the parent node and we enter a value.
    The the problem starts when we want to add a child to this parent.
    We select the created parent and press the insert button, this code get executed
    if (nodeDefname.equals(deptViewDefName))
    //list of the children of the parent and create an new row
    RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
    Row childrow = childRows.createRow();
    childRows.insertRow(childrow);
    But the new entry does not appear, it is almost like it would be created for a different parent because this is a mandatory field that is not feel in yet and the interface complaints of a missing value. It is created somewhere just not a the right place... This is my guess.
    Do you see something wrong with the code?
    The full code og my create children method is there below
    I am using jdeveloper 11.1.1.3.0 any issues with tree table to know about with this version?
    Thanks for your help
    public void createChildren(RowIterator ri, Key selectedNodeKey) {
    final String deptViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidaySchedExceptionsView";
    final String empViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidayExceptionDatesView";
    if (ri != null && selectedNodeKey != null) {
    // last row
    Row last = ri.last();
    Key lastRowKey = last.getKey();
    // if the select row is not the last row in the row iterator...
    Row[] found = ri.findByKey(selectedNodeKey, 1);
    if (found != null && found.length == 1) {
    // foundRow is the row selected
    Row foundRow = found[0];
    // The row selected can be the parent node or the child node
    String nodeDefname = foundRow.getStructureDef().getDefFullName();
    // if parent row
    if (nodeDefname.equals(deptViewDefName))
    //list of the children of the parent and create an new row
    //works but we try to resolve the creation of a parent
    RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
    Row childrow = childRows.createRow();
    //childrow.setAttribute("HolidayDate", new java.util.Date().getDate());
    System.out.println("insert child row from master");
    childRows.insertRow(childrow);
    } else
    //RowSet ParentRow = (RowSet)foundRow.getAttribute("SchHolidaySchedExceptionsView");
    //RowSet childRows = (RowSet)ParentRow.first().getAttribute("SchHolidayExceptionDatesView");
    Row childrow = ri.createRow();
    System.out.println("insert child row from child ");
    } else {
    System.out.println("Node not Found for " + selectedNodeKey);
    } else {
    System.out.println(" param null try creating for first row : " +
    ri + " * " + selectedNodeKey);
    ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
    Row foundRow = vo.first();
    Row childrow = vo.createRow();
    vo.insertRow(childrow);
    }

  • CRUD operations and PersistenceManager close.

    I have several issues which I am struggling to find the best practices for
    Kodo implementation of JDO. I have a typical database schema.
    Employee-Office (one-2-many), Employee-Department(one-2-many),
    Employee-Projects (many-2-many).
    1. What are best practices to do CRUD operations on Employee table? How
    does JDO-QL queries look like? (I am new the JDO).
    2. What are the best practices to do close on PM, Query, and Extent? PM
    close seems to be tricky. I found a good discussion on this newsgroup
    about pm.close(). As it is from 2002, would like to get latest details on
    when one could reuse extent, query and pm objects and when one could do
    close on them 'safely' and considered best practice?
    Thank you.

    Vipul-
    In article <c2i8u2$7v1$[email protected]>, Vipul Sagare wrote:
    >
    I have several issues which I am struggling to find the best practices for
    Kodo implementation of JDO. I have a typical database schema.
    Employee-Office (one-2-many), Employee-Department(one-2-many),
    Employee-Projects (many-2-many).
    1. What are best practices to do CRUD operations on Employee table? How
    does JDO-QL queries look like? (I am new the JDO).I think these sorts of questions are best anwered by running through the
    tutorial in the documentation. All the simple operations are
    demonstrated.
    If you still have questions about this after taking the tutorial, please
    let us know.
    2. What are the best practices to do close on PM, Query, and Extent? PM
    close seems to be tricky. I found a good discussion on this newsgroup
    about pm.close(). As it is from 2002, would like to get latest details on
    when one could reuse extent, query and pm objects and when one could do
    close on them 'safely' and considered best practice?There is some discussion of the effect of closing the PersistenceManager
    at:
    http://docs.solarmetric.com/manual.html#jdo_overview_pm_closing
    Basically, closing a PersistenceManager should be done once you no
    longer need to use any of the objects that may have been obtained from
    the PersistenceManager. Note that Kodo will close discarded
    PersistenceManagers automatically for you eventually, but it is
    sometimes wise to do it yourself to conserve resources.
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Can I do CRUD operation on a businessview object using RAS SDK.or BO SDK?

    I want to add a filter to my businessview using BO SDK or RAS SDK. and also want to do some CRUD operations on businessview uisng SDK. is there any way to add a filter to business view using RAS SDK?
    I can get the businessView and set it as a datasource to ReportClient Document. now I want to add a filter to businessView and save the modification.
    please refer the code for better clarity.
    ISessionMgr sessionMgr = CrystalEnterprise.getSessionMgr();
                   IEnterpriseSession enterpriseSession = sessionMgr.logon(
                             "Administrator", "amam!984", "cura-ws-78:6400",
                             "secEnterprise");
                   IInfoStore iStore = (IInfoStore) enterpriseSession
                             .getService("InfoStore");
                   IInfoObjects infoObjects = iStore
                             .query("Select * From CI_APPOBJECTS where SI_NAME='BusinessViewName'");                    
                   IInfoObject infoObject = (IInfoObject) infoObjects.get(0);
    IReportAppFactory reportAppFactory = (IReportAppFactory) enterpriseSession
                             .getService("RASReportFactory");
                   ReportClientDocument rcd = new ReportClientDocument();
                   rcd= reportAppFactory.newDocument(null);
                   rcd.getDatabaseController().addDataSource(infoObject);
    After this can I add a filter to the businessview here?
    All the reply are highly appreciated and thanks in advance to all for sharing knowledge.
    Regards,
    Sunil Kumar Sahoo

    There's currently no public SDK for CRUD of Business Views.
    Sincerely,
    Ted Ueda

  • Perform CRUD operation on List using Gridview control (SharePoint Visual webpart)

    Hi Friends,
    I have SharePoint Visual webpart and I want to perform CRUD operation on SharePoint list using Gridview control.
    Is there any other way to implement it , please suggest me the solution approach.
    Thanks,
    Digambar Kashid

    Is there any specific reason you dont want to use Out Of the Box list CRUD operation? Anyways, if you want to use custom approach I think SPGridView is good approach. 
    There are some samples available for what you are trying to achieve.
    Samples on how to use SharePoint's GridView
    Also There is similar thread which might be helpful as well. 
    http://social.msdn.microsoft.com/Forums/en-US/7b4f69e9-36b5-4188-8b75-1f727d0bb594/is-there-any-posibility-to-do-crud-operations-with-gridview-control?forum=sharepointdevelopmentprevious
    Amit

  • HT1338 Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    Purchased a used macbook pro with Mountain Lion. My old Mac runs Snow Leopard is backed up to Time machine. How do I register the operating system to me and how do I use Time Machine to move my files to the new used computer?

    If you look at the User Tips tab, you will find a write up on just this subject:
    https://discussions.apple.com/docs/DOC-4053
    The subject of buying/selling a Mac is quite complicated.  Here is a guide to the steps involved. It is from the Seller's point of view, but easily read the other way too:
    SELLING A MAC A
    Internet Recovery, and Transferability of OS & iLife Apps
    Selling an Old Mac:
    • When selling an old Mac, the only OS that is legally transferable is the one that came preinstalled when the Mac was new. Selling a Mac with an upgraded OS isn't doing the new owner any favors. Attempting to do so will only result in headaches since the upgraded OS can't be registered by the new owner. If a clean install becomes necessary, they won't be able to do so and will be forced to install the original OS via Internet Recovery. Best to simply erase the drive and revert back to the original OS prior to selling any Mac.
    • Additionally, upgrading the OS on a Mac you intend to sell means that you are leaving personally identifiable information on the Mac since the only way to upgrade the OS involves using your own AppleID to download the upgrade from the App Store. So there will be traces of your info and user account left behind. Again, best to erase the drive and revert to the original OS via Internet Recovery.
    Internet Recovery:
    • In the event that the OS has been upgraded to a newer version (i.e. Lion to Mountain Lion), Internet Recovery will offer the version of the OS that originally came with the Mac. So while booting to the Recovery Disk will show Mountain Lion as available for reinstall since that is the current version running, Internet Recovery, on the other hand, will only show Lion available since that was the OS shipped with that particular Mac.
    • Though the Mac came with a particular version of Mac OS X, it appears that, when Internet Recovery is invoked, the most recent update of that version may be applied. (i.e. if the Mac originally came with 10.7.3, Internet Recovery may install a more recent update like 10.7.5)
    iLife Apps:
    • When the App Store is launched for the first time it will report that the iLife apps are available for the user to Accept under the Purchases section. The user will be required to enter their AppleID during the Acceptance process. From that point on the iLife apps will be tied to the AppleID used to Accept them. The user will be allowed to download the apps to other Macs they own if they wish using the same AppleID used to Accept them.
    • Once Accepted on the new Mac, the iLife apps can not be transferred to any future owner when the Mac is sold. Attempting to use an AppleID after the apps have already been accepted using a different AppleID will result in the App Store reporting "These apps were already assigned to another Apple ID".
    • It appears, however, that the iLife Apps do not automatically go to the first owner of the Mac. It's quite possible that the original owner, either by choice or neglect, never Accepted the iLife apps in the App Store. As a result, a future owner of the Mac may be able to successfully Accept the apps and retain them for themselves using their own AppleID. Bottom Line: Whoever Accepts the iLife apps first gets to keep them.
    SELLING A MAC B
    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
    A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
    B. Clone to an external drive using using Carbon Copy Cloner.
    1. Open Carbon Copy Cloner.
    2. Select the Source volume from the Select a source drop down menu on the left side.
    3. Select the Destination volume from the Select a destination drop down menu on the right
    side.
    4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
    sure to opt for that.
    Destination means a freshly erased external backup drive. Source means the internal
    startup drive. 
    Step Two - Prepare the machine for the new buyer:
    1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
    2, Remove any Open Firmware passwords or Firmware passwords.
    3. Turn the brightness full up and volume nearly so.
    4. Turn off File Vault, if enabled.
    5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
    A. Snow Leopard and earlier versions of OS X
    1. Insert the original OS X install CD/DVD that came with your computer.
    2. Restart the computer while holding down the C key to boot from the CD/DVD.
    3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
    Optionally, click on the Security button and set the Zero Data option to one-pass.
    4. Install OS X.
    5. Upon completion DO NOT restart the computer.
    6. Shutdown the computer.
    B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because
    it is three times faster than wireless.
    1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
    Utilities window appears.
    2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button. 
    3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
    on the Erase tab in the DU main window.
    4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
    and set the Zero Data option to one-pass.
    5. Click on the Erase button and wait until the process has completed.
    6. Quit DU and return to the Mac OS X Utilities window.
    7. Select Reinstall Lion/Mountain Lion and click on the Install button.
    8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

  • Using CRUD procedures to update data and ref cursors to return data

    Hi:
    I am currently evaluating Apex 3.x to replace an existing app that uses lots of procedures to update and return data.
    1. Is it possible to return data from a function that returns a cursor (or from a procedure that has an input/output ref cursor parameter for that matter) ? Example: Let's say I have the following function in a package:
    function get_data return sys_refcursor
    is
    l_cursor sys_refcursor;
    begin
    open l_cursor for select sysdate as field from sys.dual;
    return l_cursor;
    end;
    Can I add a page with a table that is populated based on this function? Based on my research it is not possible, but I want an APEX expert to confirm it
    2. The old application uses CRUD procedures to update date, that is for each table there are 3 procedures, insert update and delete. Question: is it possible to channel all the update, inserts and deletes through these procedures? Furthermore, in lots of cases I use sequences to populate the primary keys, and the new value is returned as output parameter. Can I retrieve the output value and use it maybe in the next page I am branching to?
    In the samples that I've seen the same form is used for insert and update. How do I distinguish between the two modes?
    3. Can you please point me to some samples that show how to do 1 & 2. The standard samples that I've seen use the automatic row processing.
    4. Could you please recommend some good books about Apex or HTML db? I found the documentation unintuitive. It is hard to picture quickly how things tie together by reading this documention. I wish the documentation was more task oriented and presented 'how to...' implement generic patterns used in web apps.
    Thank you in advance

    Hi guys
    Check out the last 2 posts in this thread for ideas on how to implement 1.
    Report on user data from LDAP
    Varad

  • Netweaver's ORM library and JPA implementation. How to use EclipseLink?

    Hi,
    I'm migrating from Glassfish to Netweaver and when I deploy my EAR on Netweaver I'm receiving the following exception.  I have two questions.  1) TABLE_PER_CLASS is supported in EclipseLink but for some reason Netweaver isn't using it as the JPA implementation.  Why? 2) What is the com.sap.engine.services.orpersistence.model.ormappingmodel package and how do I avoid using it because it seems to be reading my annotations when I just want it to ignore it and let EclipseLink handle things?
    I'm using Netweaver Composition Environment 7.1 and found this little FAQ on the topic:
    https://wiki.sdn.sap.com/wiki/display/Java/JavaEE5+FAQ#JavaEE5FAQ-1.190
    It says:
    Can I use another JPA implementation on top of Java EE 5 Edition?
    By design this feature is supported, however it has not been tested in this release. For future releases it is planned to test the SAP NetWeaver AS Java with other available JPA providers.
    Not even sure if it's applicable here since the FAQ entry isn't related to CE.
         Description:
              1. [ERROR CODE DPL.DS.5402] JLinEE reported following erros for JavaEE/calendar-ear application.
    ERRORS:
    Model Creator: Error during model creation occured: com.sap.engine.services.orpersistence.model.ormappingmodel.ORMException: Unsupported inheritance strategy TABLE_PER_CLASS
         at com.sap.engine.services.orpersistence.model.ormappingmodel.impl.ORMUtils.getInheritanceStrategy(ORMUtils.java:1252)
         at com.sap.engine.services.orpersistence.model.ormappingmodel.impl.ORMappingModelCreatorImpl.parsePersistentClass(ORMappingModelCreatorImpl.java:831)
    Thanks, any help is appreciated.
    Edited by: Zarar Siddiqi on Jul 24, 2009 5:32 PM

    I should add that I've gone through the steps outlined in this article:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257
    I've properly configured a Heavy Resource and tested it through telnet so I know its installed properly.  However, I still get the same exception.   In my persistence.xml I've specified EclipseLink as the persistence provider:
        <persistence-unit name="mainDatabase">
            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
            <jta-data-source>jdbc/Main</jta-data-source>
    I'm wondering what I'm missing because Netweaver is still using SAP JPA and not EclipseLink.
    Thanks.

  • How to upload a file into server using j2ee jsp and servlet with bean?

    How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
    Anyone help me please!

    u don't need j2ee and struts to do file uploading. An example is as such
    in JSP. u use the <input> file tag like
    <input type="file"....>You need a bean to capture the file contents like
    class FileUploadObj {
        private FormFile srcFile;
        private byte[] fileContent;
        // all the getter and setter methods
    }Then in the servlet, you process the file for uploading
        * The following loads the uploaded binary data into a byte Array.
        FileUploadObj form = new FileUploadObj();
        byte[] byteArr = null;
        if (form.signFile != null) {
            int filesize = form.srcFile.getFileSize();
            byteArr = new byte[filesize];
            ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
            bytein.read(byteArr);
            bytein.close();
            form.setFileContent(byteArr);
        // Write file content using Writer class into the destination file in the server.
        ...

  • I need to work with the RAW files on a SONY RX100III. I use Photoshop CS5 and a Mac operating system OSX 10.6.

    I need to work with the RAW files on a SONY RX100III camera. I use Photoshop CS5 and a Mac operating system OSX 10.6. Is there an Camera RAW upgrade or an alternative program that works here?

    You don't. Since you have an Intel Mac, buy a Mac OS X 10.6 DVD from the online Apple Store.
    (71894)

  • When to use jsp,and when to use servlet?

    I think that jsp and servlet can realize the same functions, because when run a jsp, it is transferred to a servlet program, so when to use jsp and when to use servlet?
    I am now developing the input interface for a website, I just use jsp and javabean to connect to weblogic and database, and I didn't use servlet, Is there any unseemliness?
    Thank you!

    IMHO I use servlets to control the flow between my jsp's based on a number of factors in a webapp. For instance, user authorization. If a user has the authorization to conduct various administrative functions on an application (like change user rights, reset passwords etc) they will have access to specific buttons or links on some screens that others will not. I use servlets to establish what access rights a user has and direct them to the appropriate pages. I also use servlets to test data validity on form input screens. I know that I can also do this with JavaScript but that can be disabled by the client and in order to prevent that I also double check the form input from a servlet. All my jsp's do is display the results of a business process (which is held in a JavaBean or EJB) and the servlets act as the controllers for the application, connecting to multiple databases, verifying application state, flow control etc. I try to keep the jsp as simple as possible as some of them are maintained by html developers who lack the necessary experience to write java code. I hope this helps.

Maybe you are looking for

  • Anyone ever use a Canon XH A1 with FCP 5.1.4? I cannot capture at present.

    I tried to start a new project with different setting for SD, and all the settings I originally had for my HD project changed, now I cannot capture anymore. It took me a while to configure all the settings for HD with the 2:3:3:3 pulldown, but now I'

  • How can I prefill an xdp file from a web link

    Hi Prior to using LifeCycle Designer, there was a means to use a document javascript to parse through a url and set values of a PDF with the url's parameters. Now with LifeCycle Designer, that document level javascript is gone. So how do I have a lis

  • Help with constructors, accessors and mutators

    Hi all... Can anyone give me a code for the following problem with the use of constructors, accessors and mutators ? Programme is : Create a class called Stock that has the following attributes: STKID : integer DESC : STRING COSTPRICE : float SALEPRI

  • Gradient annotator tool missing in illustrator cc 2014

    I have a gradient on a rectangle, it's not in a group and my options show "hide annotator tool", so I know it should be showing, but it's not there! I've tried turning off GPU rendering and I still don't see it, does anyone know what's going on?

  • How to install backup file?

    Hi all, My subject could be different from problem. My problem is that i have installed oracle 10g XE on windows, selected partition for installation d: and OS partition is C: i formatted my c:and installed fresh XP now i need my database users and d