Newbie: Java/JDBC best approach

Hello, i am having trouble understanding the best approach to develop java/jdbc programs.
I was told that the i could best load resultset data in to value objects loaded into a vector
and handled by data access objects instead of using the resultset directly.
This method should give me more flexibility when navigating, inserting, updating and
deleting rows.
An example is given by Matthew Robinson and Pavel Vorobiev in their book
(http://manning.spindoczine.com/sbe/).
So i am desperately seeking for sample code or documentation on this matter.
Matthew Robinson and Pavel Vorobiev do not give a full solution containing r/w/u
functionality.
When seeking on the web i find only references to J2EE and this would be
overkill for the applications i have in mind at this moment.
I am afraid i will re-invent the wheel and end up with a square one.
Therefore in short my questions:
1. Should i use and manipulate the (scrollable, updatable) resultset or use
value objects handled by data access objects.
2. Where can i find sample code or documentation on this matter (not J2EE).
I would be very gratefull if someone could help me,
Rob

Hi,
Contact me at [email protected] I will be able to help you... and provide some sample code.
regards,
Nish

Similar Messages

  • Servlet/jsp/jdbc best approach

    Hello guys
    Which is the best approach when developing servlet/jsp/jdbc? I will take an
    example:
    I have index-page, page2 and page 3.
    When the user writes www.mydomain.com then the page index.jsp checks if the
    user is coming from the servlet, like this:
    <%
    if(request.getAttribute("getPageTitle")==null){
    %>
    <jsp:forward page="/Index" />
    <%
    else{
    %>
    <%@ include file="/include/header.jsp" %>
    content for index.jsp
    <%@ include file="/include/footer.jsp" %>
    <%
    %>
    On the other hand, the Index class has this init()
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    con = DatabaseConf.getConnection();
    DatabaseConf is a class that handles all the operations related to the
    database.
    Index.class has also the doGet-method like this:
    request.setAttribute ("getPageTitle", "AnyTilte");
    getServletConfig().getServletContext().getRequestDispatcher("/index.jsp").forward(request,
    response);
    Does it looks ok so long?
    Now, I have other pages, page2 and page3 (in fact I have mych more than just
    these, but this is only an example)
    pages.jsp works as index.jsp. It makes a check
    <%
    if(request.getAttribute("getPageTitle")==null){
    %>
    if not satisfied than it redirect to
    <jsp:forward page="/Page2" />
    My concern, however, is about databasemanagement. Even the Page.class has an
    init-method that looks exactly like the one in Index.class, e.g.
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    con = DatabaseConf.getConnection();
    In conclusion, Im starting jdbc-connection for every class-file that
    initiates. Is this a good approach? What I would like is a solution to
    initiate the database only one time, when the server starts. Not everytime,
    the first time a specially class-file will be called. I know, this will
    happens only one time for a file for the server's lifetime. But Im afraid
    this is not a good way to work.
    Regards
    email2us

    Hello guys
    Which is the best approach when developing
    servlet/jsp/jdbc? I will take an
    example:
    I have index-page, page2 and page 3.
    When the user writes www.mydomain.com then the page
    index.jsp checks if the
    user is coming from the servlet, like this:
    <%
    if(request.getAttribute("getPageTitle")==null){
    %>
    <jsp:forward page="/Index" />
    <%
    else{
    %>
    <%@ include file="/include/header.jsp" %>
    content for index.jsp
    <%@ include file="/include/footer.jsp" %>
    <%
    %>
    On the other hand, the Index class has this init()
    public void init(ServletConfig config) throws
    ServletException {
    super.init(config);
    con = DatabaseConf.getConnection();
    DatabaseConf is a class that handles all the
    operations related to the
    database.
    Index.class has also the doGet-method like this:
    request.setAttribute ("getPageTitle", "AnyTilte");
    getServletConfig().getServletContext().getRequestDispa
    tcher("/index.jsp").forward(request,
    response);
    Does it looks ok so long?
    Now, I have other pages, page2 and page3 (in fact I
    have mych more than just
    these, but this is only an example)
    pages.jsp works as index.jsp. It makes a check
    <%
    if(request.getAttribute("getPageTitle")==null){
    %>
    if not satisfied than it redirect to
    <jsp:forward page="/Page2" />
    My concern, however, is about databasemanagement.
    Even the Page.class has an
    init-method that looks exactly like the one in
    Index.class, e.g.
    public void init(ServletConfig config) throws
    ServletException {
    super.init(config);
    con = DatabaseConf.getConnection();
    Please use the code formatting tags when posting actual code.
    In conclusion, Im starting jdbc-connection for every
    class-file that
    initiates. Is this a good approach? You normally do not want your Servlet to initiate (which I take to mean 'startup') a database. The two can run independently. The place to initiate a database is in your operating system's startup scripts.
    What I would like
    is a solution to
    initiate the database only one time, when the server
    starts. Not everytime,
    the first time a specially class-file will be called.If you are talking about java.sql.Connection, you generally do not want to have a single connection for your entire application. Each thread should use its own connection, or transaction management/logical unit of work will be problematic, at best. You can use a connection pool to improve performance. However, from a caller's perspective, they are receiving a new connection each time.
    I know, this will
    happens only one time for a file for the server's
    lifetime. But Im afraid
    this is not a good way to work.
    Regards
    email2us- Saish

  • Best approach for IDOC - JDBC scenario

    Hi,
    In my scenarion I am creating sales order(ORDERS04) in R/3 system and which need to be replicated in a SQL Server system. I am sending the order to XI as an IDoc and want to use JDBC for sending data to SQL Server. I need to insert data in two tables(header & details). Is it possible without BPM?  Or what is the best approach for this?
    Thanks,
    Sri.

    Yes, this is possible without the BPM.
    Just create the Corresponding Datatype for the insertion.
    if the records to be inserted are different, then there wil be 2 different datatypes ( one for header and one for detail).
    Do a mutlimapping, where your Source is mapped into the header and details datatype and then send using the JDBC sender adapter.
    For the strucutre of your Datatype for insertion , just check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    To access any Database from XI, you will have to install the corresponding Driver on your XI server.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
    Regards,
    Bhavesh

  • Best approach for building dialogs based on Java Beans

    I have a large amount of Java Beans with several properties each. These represent all the "data" in our system. We will now build a new GUI for the system and I intend to reuse the beans as far as possible. My idea is to automatically generate the configuration dialogs for each bean using the java.beans package.
    What is the best approach for achieving this? Should I use PropertyEditors or should I make my own dialog-generator using the Introspetor class or are there any other suitable solutions?
    All suggestions and tips are very welcome.
    Thanks!
    Erik

    Definitely, it is better for you to use JTable. Why not try it?

  • Best approach to create a security environment in Java

    I need to create a desktop application that will run third party code, and I need to avoid the third party code from export by any way (web, clipboard, file io) informations from the application.
    Somethig like:
    public class MyClass {
        private String protectedData;
        public void doThirdPartyTask() {
            String unprotedtedData = unprotect(protectedData);
            ThirdPartyClass.doTask(unprotectedData);
        private String unprotect(String data) {
    class ThirdPartyClass {
        public static void doTask(String unprotectedData) {
            // Do task using unprotected data.
            // Malicious code may try to externalize the data.
    }I'm reading about SecurityManager and AccessControler, but I'm still not sure what's the best approach to handle this.
    What should I read about to do this implementation?

    Whilst code without any permissions (as supplied through the ProtectionDomain by the class' ClassLoader) cannot access network, file and system clipboard, this does not mean it is entirely isolated.
    Even modern cryptographic systems are surprisingly vulnerable to side-channel attacks.
    Where an untrusted agent has access to sensitive data, it isn't very feasible to stop any escape of that data. Sure, you can block off overt posting of the data, but you cannot reasonably block off all covert channels.
    Steganographic techniques are a particularly obvious way to covertly send sensitive data out amongst intended publications.

  • Newbie: What is the best approach to integrate BO Enterprise into web app

    Hi
    1. I am very new to Business Objects and .Net. I need to know what's the best approach
    when intergrating bo into my web app i.e which sdk do i use?
    For now i want to provide very basic viewing functionality for the following reports :
    -> Crystal Reports
    -> Web Intellegence Reports
    -> PDF Reports
    2. Where do i find a standalone install for the Business Objects Enteprise XI .Net providers?
    I only managed to find the wssdk but i can't find the others. Business Objects Enteprise XI
    does not want to install on my machine (development) - installed fine on server, so i was hoping i could find a standalone install.

    To answer question one, you can use the Enterprise .NET SDK for each, though for viewing Webi documents it is much easier to use the opendocument method of URL reporting to view them.
    The Crystal Reports and PDF instances can be viewed easily using the SDK.
    Here is a link to the Developer Library:
    [http://devlibrary.businessobjects.com/]
    VB.NET XI Samples:
    [http://support.businessobjects.com/communityCS/FilesAndUpdates/bexi_vbnet_samples.zip.asp]
    C# XI Samples:
    [http://support.businessobjects.com/communityCS/FilesAndUpdates/bexi_csharp_samples.zip.asp]
    Other samples:
    [https://boc.sdn.sap.com/codesamples]
    I answered the provider question on your other thread.
    Good luck!
    Jason

  • Best approach to pass string to table

    What is the best approach or way to pass a colon delimited string back to a table from a procedure?
    I know when using a multiselect item you can pass a string back and forth using
    HTMLDB_UTIL.STRING_TO_TABLE or
    HTMLDB_UTIL.TABLE_TO_STRING
    but I'm unsure how to pass a colon separated string from a procedure to insert into a table?
    Unfortunately using the approach below yields me an error
    PLS-00306: wrong number or types of arguments in call to 'TABLE_TO_STRING"
    create or replace PROCEDURE "123_ABC" (
    g_abc IN number,
    g_123 IN varchar2)
    AS
    r_one varchar2(15);
    r_two varchar2(17);
    t_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
    CURSOR 123_cur IS
    select ID, NAME
    from table
    where abc=g_abc
    and 123=g_123;
    BEGIN
    delete from TABLE_STAGE;
    COMMIT;
    t_selected := HTMLDB_UTIL.TABLE_TO_STRING(r_one);
    FOR a_rec IN 123_cur
    LOOP
    INSERT INTO table_stage
    VALUES (r_one, r_two);
    COMMIT;
    END LOOP;
    END 123_ABC;

    In my opinion, unless you embark on O/R mapping frameworks, your JDBC implementation is probably the most efficient but not neccessarly the most elegant aproach. I described an alternative approach which ships serialized Java objects by value across tiers in my book http://www.amazon.com/gp/product/1555583296/
    page 803 chapter 12.
    A second option is to publish the SQL statements (Insert, Delete, Update) as Web services (see Database Web Services in the book).
    Another option also described in the book, is to use the rowset APi (webrowset, joinrowset).
    Kuassi

  • R/3 4.7 to ECC 6.0 Upgrade - Best Approach?

    Hi,
    We have to upgrade R/3 4.7 to ECC 6.0
    We have to do th DB, Unicode and R/3 upgrade. I want to know what are the best approaches available and what risks are associated iwth each approach.
    We have been considering the following approaches (but need to understand the risk for each approach).
    1) DB and Unicode in 1st and then R/3 upgrade after 2-3 months
    I want to understand that if we have about 700 Include Program changing as part of unicode conversion, how much of the functional testing is required fore this.
    2) DB in 1st step and then Unicode and R/3 together after 2-3 months
    Does it makes sense to combine Unicode and R/3 as both require similar testing? Is it possible to do it in 1 weekend with minimum downtime. We have about 2 tera bytes of data and will be using 2 systems fdor import and export during unicode conversion
    3) DB and R/3 in 1st step and then Unicode much later
    We had discussion with SAP and they say there is a disclaimer on not doing Unicode. But I also understand that this disclaimer does not apply if we are on single code page. Can someone please let us know if this is correct and also if doing Unicode later will have any key challenges apart from certain language character not being available.
    We are on single code pages 1100 and data base size is about 2 tera bytes
    Thanks in advance
    Regards
    Rahul

    Hi Rahul
    regarding your 'Unicode doubt"' some ideas:
    1) The Upgrade Master Guide SAP ERP 6.0 and the Master Guide SAP ERP 6.0 include introductory information. Among other, these guides reference the SAP Service Marketplace-location http://service.sap.com/unicode@sap.
    2) In Unicode@SAP can you find several (content-mighty) FAQs
    Conclusion from the FAQ: First of all your strategy needs to follow your busienss model (which we can not see from here):
    Example. The "Upgrade to mySAP ERP 2005"-FAQ includes interesting remarks in section "DO CUSTOMERS NEED TO CONVERT TO A UNICODE-COMPLIANT ENVIRONMENT?"
    "...The Unicode conversion depends on the customer situation....
    ... - If your organization runs a single code page system prior to the upgrade to mySAP ERP 2005, then the use of Unicode is not mandatory. ..... However, using Unicode is recommended if the system is deployed globally to facilitate interfaces and connections.
    - If your organization uses Multiple Display Multiple Processing (MDMP) .... the use of Unicode is mandatory for the mySAP ERP 2005 upgrade....."
    In the Technical Unicode FAQ you read under "What are the advantages of Unicode ...", that "Proper usage of JAVA is only possible with Unicode systems (for example, ESS/MSS or interfaces to Enterprise Portal). ....
    => Depending on the fact if your systems support global processes, or depending on your use of Java Applications, your strategy might need to look different
    3) In particular in view of your 3rd option, I recommend you to take a look into these FAQs, if not already done.
    Remark: mySAP ERP 2005 is the former name of the application, which is named SAP ERP 6.0, now
    regards, and HTH, Andreas R

  • What's the best approach for handeling about 1300 connections in Oracle.

    What's the best approach for handling about 1300 connections in Oracle 9i/10g through a Java application?
    1.Using separate schema s for various type users(We can store only relevant data with a particular schema.     Then No. of records per table can be reduced by replicating tables but we have to maintain all data with a another schema     Then we need update two schema s for a given session.Because we maintain separate scheama for a one user and another schema for all data and then there may be Updating problems)
    OR
    2. Using single schema for all users.
    Note: All users may access the same tables and there may be lot of records than previous case.
    What is the Best case.
    Please give Your valuable ideas

    It is a true but i want a solution from you all.I want you to tell me how to fix my friends car.

  • Slow starup of Java application - best practices for fine tuning JVM?

    We are having problems with a java application, which takes a long time to startup.
    In order to understand our question we better start with some background info. You will find the question(s) after that.
    Background:
    The setup is as follows:
    In a client-server solution we have a win xp, fat client running java 1.6.0.18.
    (Sun JRE). The fat client containt a lot of GUI, and connects to a server for DB access. Client machines are typical 1 to 3 years old (there are problems even on brand new machines). They have the client version of JRE - standard edition installed (Java SE 6 update 10 or better) Pretty much usual stuff so far.
    We have done a lot of profiling on the client code, and yes we have found parts of our own Java code that needs improving. we are all over this. Server side seems ok with good response times. So far, we havent found anything about shaky net connections or endless loops in the java client code or similiar.
    Still, things are not good. Starting the application takes a long time. too long.
    There are many complicating factors, but here is what we think we have observed:
    There is a problem with cold vs. varm starts of the application. Apparently, after a reboot of the client PC - things are really, really bad - and it takes (sometimes) up to 30-40 secs to start the application (until we arrive at the start GUI in our app).
    If we run our application, close it down, and then restart
    without rebooting, things are a lot better. It then usually takes
    something like 15 - 20 sec. which is "acceptable". Not good, but acceptable,
    Any ideas why?
    I have googled it, and some links seems to suggest that the reason could be disk cache. Where vital jar are already in disk cache on th warm start? Does that make any sense? Virus scanners presumable runs in both cases.
    People still think that 15 - 20 sec in start up on the warm start is an awful long time, even though there is a lot, a lot, of functionality in the application.
    We got a suggestion to use IBMs JRE - as it can do some tricks (not sure what) our SUN JRE cant do concerning the warm and cold start problem. But thats is not an option for us. And noone has come up with any really good suggestions with the SUN JRE so far?
    On the Java Quick Starter (JQS) -
    improves initial startup time for most java applets and applications.
    Which might be helpful? People on the internet seem more interested
    in uninstalling the thing than actually installing it though?
    And it seems very proprietary, where we cant give our Jar files to it?
    We could obviously try to "hide" the problem in some way and make it "seem" quicker. Where perceived performance can be just as good as actual performance. But it does seem a bad solution. So for the cold start we will probably try reading the jar files and thereby have them in disk cache before startup of our application. And see if that helps us.
    Still, ok the cold start is the real killer, but warm start isn't exactly wonderfull either.
    People have suggested that we read more on the JVM and performance.
    java.sun.com.javase/technologies/performance.jsp
    java.sun.com.docs/hotspot/gc5.0/gc_tuning_5.html
    the use of JVM flags "-Xms" "-Xmx" etc etc.
    And here comes the question .. da da ...
    Concerning various suggested reading material.
    it is very much appreciated - but we will like to ask people here - if it is possibe to get more specific pointers. to where the gold might be buried.
    I.e. in a an ideal world we would have time to read and understand all of these documents in depth. However, in this less than ideal world we are also doing a lot of very timeconsuming profiling in our own java code.
    E.g. java garbage collection is is a huge subject - and JVm settings also. Sure, in the end we will probably have to do this all very thoroughly. But for now we are hoping for some heuristics on what other people are doing when facing a problem like ours..?
    Young generation, large memory pages, garbage collection threads ect. all sounds interesting - but what would you start with?
    If you don't have info to decide - what kind of profiling would you be running and then adjust what JVM setting in your trials?
    In this pressed for time scenario. Ignorance is not bliss. But makes it hard to pinpoint the or those JVM parameters to adjust. So some good pointers from experienced JVM "configurators" will be much appreciated!
    Actually, If we can establish that finetuning of these parameters is a good idea, it will certainly also be much easier to allocate the time for doing so. - reading, experimenting etc. in our project.
    So, All in all , what kinds of performance improvements can we hope for? 5 out of 20 secs on the warm start? Or is it 10 % nitpicking? Whats the ball park figure for what we can hope to achieve here given our setup? What do you think based on above?
    Maybe someone out there have done some finetuning of JVM parameters in a similiar PC environments like, with similiar fat clients...? Finetuning so and so - gave 5 secs. So start your work with these one-two parameters?
    Something like that - some best practices? Thats what we are hoping for.
    best wishes
    -Simon

    Thanks for helpful answer from both you and kajbj.
    The app doesn't use shared network drives.
    What are you doing between main starts to get executed and the UI is
    displayed?
    Basicly, Calculating what to show in the UI. Accessing server - not so much, there are some reads from a cache, but the profiling doesnt indicate that it should be a problem. Sure, I could shift the startup time to some other slot, but sofar I havent found a place where the end-user wouldnt be annoyed.> Caching of something would seem most obvious. Normal VM stuff >seems unlikely. With profiling i basicly find that ''everything'' takes a lot longer in the cold start scenario. Some of our local java methods are going to be rewritten following our review. But what else can be tuned?You guys dont think the Java Quick Start approach, with more jars in disk cache will give something? And how should that be done/ what does people do?I.e. For the class loader I read something about
    1.Bootstrap class loader
    2.Extensions class loader
    3.System class loader
    and is wondering if this has something to do with the cold start problem?
    The extensions class loader loads the code in the extensions directories (<JAVA_HOME>/lib/ext
    So, we should move app classes to ext? Put them in one jar file? (We have many). Best practice about that?
    Otherwise it seems to me that it must be about finetuning the JVM?
    I imagine that it is a question about:
    1. the right heap size
    2. the right garbage collection scheme
    Googling heap size for XP
    CHE22 writes:
    You are right; -Xms1600M works well, but -Xms1700M bombs
    Thats one best practice or what?
    On garbage collection, there are numerous posts, and much "masters of Java black art" IMHO, And according to profiling GC is not really that much of a problem anyway? Still,
    Based on my description I was hoping for a short reply like "try setting these two parameters on your xp box, it worked for me" ...or something like that. With no takers on that one, I fear people are saying that there is nothing to be gained there?
    we read:
    [ -Xmx3800m -Xms3800m
    Configures a large Java heap to take advantage of the large memory system.
    -Xmn2g
    Configures a large heap for the young generation (which can be collected in parallel), again taking advantage of the large memory system. It helps prevent short lived objects from being prematurely promoted to the old generation, where garbage collection is more expensive.
    Unless you have problems with pauses, try granting as much memory as possible to the virtual machine. The default size (64MB) is often too small.
    Setting -Xms and -Xmx to the same value increases predictability by removing the most important sizing decision from the virtual machine. On the other hand, the virtual machine can't compensate if you make a poor choice.
    The -XX:+AggressiveHeap+ option inspects the machine resources (size of memory and number of processors) and attempts to set various parameters to be optimal for long-running, memory allocation-intensive jobs]
    So is Setting -Xms and -Xmx and -XX:AggressiveHeap
    best practice? What kind of performance improvement should we expect?
    Concerning JIT:
    I read this one
    [the impact of the JIT compiler is obvious on the graph: at startup the time taken is around 500us for the first few values, then quickly drops to 130us, before falling again to 70us, where it stays for 30 minutes,
    for this specific issue, I greatly improved my performances by configuring another VM argument: I set -XX:CompileThreshold=50]
    The size of the cache can be changed with
    -Xmaxjitcodesize
    This sounds like you should do something with JIT args, but reading
    // We disable the JIT during toolkit initialization. This
    // tends to touch lots of classes that aren't needed again
    // later and therefore JITing is counter-productiive.
    java.lang.Compiler.disable();
    However, finding
    the sweet spots for compilation thresholds has been tricky, so we're
    still experimenting with the recompilation policy. Work on it
    continues.
    sounds like there is no such straigth forward path, it all depends...
    Ok, its good, when
    [Small methods that can be more easily analyzed, optimized, and inlined where necessary (and not inlined where not necessary). Clearly delineated uses of data so that usage patterns and lifetimes are apparent. ]
    but when I read this:
    [The virtual machine is responsible for byte code execution, storage allocation, thread synchronization, etc. Running with the virtual machine are native code libraries that handle input and output through the operating system, especially graphics operations through the window system. Programs that spend significant portions of their time in those native code libraries will not see their performance on HotSpot improved as much as programs that spend most of their time executing byte codes.]
    I have the feeling that we might not able to improve performance that way?
    Any comments?
    otherwise i was wondering about
    -XX:CompileThreshold=50 -Xmaxjitcodesize (large, how large?)
    Somehow, we still feel that someone out there should have experienced similiar problems? But obviously there is no guarantee that the someone should surf by here!
    In c++ we used to just write everything ourselves. Here it does seem to be a question about the right use of other peoples stuff?
    Where you are kind of hoping for a shortcut, so you dont have to read endless number of documents, but can find a short document that actually addresses your problem ... well.
    -Simon
    Edited by: simoncpm on Mar 15, 2010 3:43 PM
    Edited by: simoncpm on Mar 15, 2010 3:53 PM

  • Best approach... TiledView or regular ViewBean

    I'm wondering what approach would be best with JATO and the display
    I'm trying to build on a JSP page. My page layout will look something
    like this...
    Checked Out Items: (none)
    ToDo Items: 3 InfoDocs
    2 Sun Alerts
    Draft Items: (none)
    My Docs: 345 InfoDocs
    28 Sun Alerts
    18 SRDB's
    Now, this might get confusing so please ask questions if anything I
    state is not clear. The values after the colons (:) (i.e. 3 InfoDocs,
    2 Sun Alerts, etc) are dynamic. These values will be genereated off of
    queries on a database. There could be more listings or there could be
    the value (none). As far as setting this up through the JATO
    framework, I'm trying to determine the best way to do this. Right now
    I have a VoyagerHome.jsp that will represent the layout displayed
    above. I also have a VoyagerHomeViewBean.java. At first I was thinking
    of registering a Tiled View in this ViewBean but then I felt it didn't
    make sense and wouldn't work out the way I wanted it to. So now I'm
    thinking of registering the labels (Checked Out Items:, ToDo Items:,
    Draft Items:, and My Docs:) as StaticTextFields within the
    VoyagerHomeViewBean.
    Then I think I would also need to make the values (3 InfoDocs, 2 Sun
    Alerts, etc) children and make them HREF jato types. But I'm not sure
    how I can do this when the numbers are going to be dynamic. Does this
    make sense? One question I have is should I or do I have to register
    each document type (InfoDoc,
    Sun Alert, SRDB, etc) for each label grouping (Checked Out Items:,
    ToDo Items:, etc). So for example, in the end, I will need place
    holders for the following:
    Checked Out Items: xxx InfoDocs
    Checked Out Items: xxx Sun Alerts
    Checked Out Items: xxx SRDBs
    Checked Out Items: xxx Cobalt Assets
    Checked Out Items: xxx iPlanet Assets
    ToDo Items: xxx InfoDocs
    ToDo Items: xxx Sun Alerts
    ToDo Items: xxx SRDBs
    ToDo Items: xxx Cobalt Assets
    ToDo Items: xxx iPlanet Assets
    same for Draft Items and My Docs....
    This may seem confusing so please ask questions. In
    other words, is there a way to re-use the HREF tags and run them
    through a tiled view or something eventhough these values for the HREF
    tags are going to be run off of different database tables?
    What I'm trying to do is kinda difficult to explain but I hope you get
    some idea of what I'm trying to accomplish.
    Thanks
    - Billy -

    Best approach i can think of is a TiledView with HREFs for InfoDocs, Sun
    Alerts etc. You can use a StaticTextField for the numbers in the
    TiledView. ToDo Items, Draft Items etc. you can just label them in your
    jsp itself, no need to register them as children.
    Senthil
    chubbykidd wrote:
    I'm wondering what approach would be best with JATO and the display
    I'm trying to build on a JSP page. My page layout will look something
    like this...
    Checked Out Items: (none)
    ToDo Items: 3 InfoDocs
    2 Sun Alerts
    Draft Items: (none)
    My Docs: 345 InfoDocs
    28 Sun Alerts
    18 SRDB's
    Now, this might get confusing so please ask questions if anything I
    state is not clear. The values after the colons (:) (i.e. 3 InfoDocs,
    2 Sun Alerts, etc) are dynamic. These values will be genereated off of
    queries on a database. There could be more listings or there could be
    the value (none). As far as setting this up through the JATO
    framework, I'm trying to determine the best way to do this. Right now
    I have a VoyagerHome.jsp that will represent the layout displayed
    above. I also have a VoyagerHomeViewBean.java. At first I was thinking
    of registering a Tiled View in this ViewBean but then I felt it didn't
    make sense and wouldn't work out the way I wanted it to. So now I'm
    thinking of registering the labels (Checked Out Items:, ToDo Items:,
    Draft Items:, and My Docs:) as StaticTextFields within the
    VoyagerHomeViewBean.
    Then I think I would also need to make the values (3 InfoDocs, 2 Sun
    Alerts, etc) children and make them HREF jato types. But I'm not sure
    how I can do this when the numbers are going to be dynamic. Does this
    make sense? One question I have is should I or do I have to register
    each document type (InfoDoc,
    Sun Alert, SRDB, etc) for each label grouping (Checked Out Items:,
    ToDo Items:, etc). So for example, in the end, I will need place
    holders for the following:
    Checked Out Items: xxx InfoDocs
    Checked Out Items: xxx Sun Alerts
    Checked Out Items: xxx SRDBs
    Checked Out Items: xxx Cobalt Assets
    Checked Out Items: xxx iPlanet Assets
    ToDo Items: xxx InfoDocs
    ToDo Items: xxx Sun Alerts
    ToDo Items: xxx SRDBs
    ToDo Items: xxx Cobalt Assets
    ToDo Items: xxx iPlanet Assets
    same for Draft Items and My Docs....
    This may seem confusing so please ask questions. In
    other words, is there a way to re-use the HREF tags and run them
    through a tiled view or something eventhough these values for the HREF
    tags are going to be run off of different database tables?
    What I'm trying to do is kinda difficult to explain but I hope you get
    some idea of what I'm trying to accomplish.
    Thanks
    - Billy -
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    [Non-text portions of this message have been removed]

  • Best approach - using materialized views

    Hi
    We are using materialized views for structuring complex business data.
    These views get refreshed every night. However, the refresh jobs runs slow in some cases.In such scenarios, the job would still be running while client applications (JDBC) try to access data from the views. This would result in client calls to wait for a long time or to timeout. I would like to know what is the best approach in such scenarios to ensure data availability and performance?
    Thanks
    RC

    See
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14226/repmview.htm#i31171
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14226/repmview.htm#sthref491
    and
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/basicmv.htm#sthref521
    (which also lists the Restrictions)
    You can use a Fast Refresh if it meets the restrictions. You need to have a MATERIALIZED VIEW LOG created on the source table(s).
    Hemant K Chitale

  • Best approach to develop DataTypes

    Hey guys
    suppose i m doin a complex File scenario in which i have a flat file either on the sender or receiver side.what is the best approach to develop the data type for the file structure,is it possible to generate an XML and with the help of that create a data type?
    I actually want to know the professional way of generating datatypes (i m pretty sure in real world scenarios,we get very complex file structures).
    thanx
    Ahmad

    Hi,
    In many cases, if your structure is very complex, you can not get direct nested xml after content conversion. In that case, in the mapping we need to handle the generation of nested strutcure. So you use Java or xslt mapping etc.. if it is not possible via graphical mapping. Also you can do this in the adapter module.
    Here you go with good example- Generic Structure-
    /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    Also file content conversion - limitations-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    Rgds,
    Moorthy

  • Best approach with jsp

    hi,
    i have a scenario that's sending data from jsp.
    i have two options, soap and client java proxy.
    what is best approach for this?,  becasue jsp is calling java which contains coding to call webservice,  so this is similar with client java proxy.
    if you are me,  what is the best?  soap or cleint java proxy?  eventually, soap also proxy.
    please guide me what is big point?  i do not want to get you with basically different point that i know that client java proxy is ejb. soap is wsdl...
    thanks & regards;
    ogawa
    null

    Hi,
    As you already have a J2EE application ( a JSP ), i would suggest that you use Java Proxies for the same to integrate with XI. Proxies allow you to have a better perfromance and so, I would suggest to go with Java Proxies.
    For Java proxies this how to guide would help,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b07fc2113ab
    Regards
    Bhavesh

  • Best approach to implement this requirement in OIM

    Hi experts
    We have an application(say App1) in which we use GTC DB connector to provision users from OIM. But due to some limitations in App1, the communication has to be changed from GTC to custom webservices one.
    For this we have done the following configurations
    1. Introduced new mandatory fields to same process form of App1(as per the req.)
    2. Cleaned all the GTC adapters in the process def of App1 and attached the webservice related adapters.
    So after introducing webservices, the known issues could be
    1. Revoke user fails for existing users since the existing users are already provisioned using GTC conn.
    The reason is, by default if we revoke a user then the revoke user task contains newly created Webservices adapter which will not complete the operation saying that mandatory values are missing for the fields in process form.
    2. Same is the case for Disable/Enable users.
    what would be the best approach to perform the above said operations for existing users who are already provisioned.
    we are not willing to go for creating new Resource Object for webservices communication.
    Any valuable pointers are highly appreciated.

    Hi
    I am trying to run the FVC utility to update the process form fields for old users.
    The FVC properties file looks like
    fvc.properties
    ResourceObject;GTCConnector
    FormName;UD_GTCFORM
    FromVersion;v1.0
    ToVersion;v3.0
    Parent;UD_GTCFORM_DUMMYFIELD;Default;Update
    The field UD_GTCFORM_DUMMYFIELD has been created in latest active version v3.0. I am trying to update some value to older versions of the process form
    When I run the script fvcutil_websphere.cmd, it is throwing me error message below.
    WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.ws.client.applicationclient.launchClient.createContainerAndLa
    unchApp(launchClient.java:747)
    at com.ibm.ws.client.applicationclient.launchClient.main(launchClient.ja
    va:469)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
    at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformAct
    ivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
    va:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.jav
    a:245)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:73)
    at com.ibm.websphere.client.applicationclient.launchClient.main(launchCl
    ient.java:238)
    Caused by: java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(StringTokenizer.java:347)
    at com.thortech.xl.util.fvcutil.FVCUtil.initialize(Unknown Source)
    at com.thortech.xl.util.fvcutil.FVCUtil.<init>(Unknown Source)
    at com.thortech.xl.util.fvcutil.FVCUtil.main(Unknown Source)
    ... 26 more
    Does any one came across this type of error.
    Thanks in Advance

Maybe you are looking for

  • Why do I see my open images in the Save As dialog window?

    I have loaded about 10 pictures in the editor of elements 10.  I want to save them to an sd card.  When I try to do that it tries to save all of my pictures instead.  What am I doing wrong? Message title was edited by: Brett N

  • Strange permission settings that are unchangeable

    Hi guys. I have been searching for hours to try and find this answer, but I have been unable to - hence my post. After doing a Leopard upgrade many months ago I had transfered about 300gb of files over to my external drive. I went to start using them

  • Executing shell script through PL/SQL

    Hi, I need some help regarding execution of shell script through Oracle PL/SQL. I have a shell script present in /abc/xyz folder with name search.sh , Through a PL/SQL procedure I am creating a file to store the report data. I want to execute /abc/xy

  • Saving in Photoshop

    Hello, Using Photoshop CS3 I recently went to "save as" a file and clicked the option below it called "Check in" instead. Now when I go to save or recall a file, the page that comes up is different than it was previouslly. The icons in the "look in"

  • When new update for 17.1.A.1.2?

    I was reading that there are many issues with the touchscreen. Sony won't tell us whether this is a hardware issue or not, but as I heard they are trying to fix this with some updates. When do we get some new updates? On the Z2 Tablet page I still on