Your opinion on Java dictionary and Open JDBC

Hi all,
What is you experience with the Java dictionary and Open JDBC? I'm awaiting your feedback!
My take on the topic is:
Pros:
- database independence, will run on any NW installation, saves labour
Cons:
- one schema, no way to test db code outside of NW
Questions:
- Is there a naming convention to prevent name clashes with SAP and other vendors objects?
- Is there a way to deploy to a different then the default schema?
Regards
Gregor
Background: Migrating an app to NW, I kept the db code using 'native JDBC', created my one schema and data source in the NW database ... and produced a functioning app.

You can set the maximum number of connections by using:
ServerSocket server = new ServerSocket( port, backlog );
Where backlog is the number of connections at any one time. I'm not sure - but I'm guessing that the physical limit is dictated by your hardware. Once you queue is full of connections, you are right - any further connections are refused. The default number of connections is 50.
Mike

Similar Messages

  • What does this alert mean? "To use this disk as a source, restart your computer using recovery system and open DU again." Trying to clone Lion?

    Errors making a bootable clone? Message said "To use this disk as a source, restart your computer using recovery system and open DU again". Need help making a bootable clone of a MacPro/Lion to a new external hard drive? Thanks.

    Use CarbonCopyCloner or Super Duper.

  • Java Dictionary and Text

    Hello,
      I'm creating an application that requires me to store a large amount of text (around 5000 characters).  The first part of the dilema is how I should persist the data in the java dictionary.  Should I just create one large field?  Or do I need to do something complex and split up each text into smaller lines and have some retrieval method?  The next part of the question has to do with searching this text.  What is the best way to make this text searchable?  Any ideas are much appreciated.
    Thanks,
    Dustin Gronso

    Hi Dustin,
    if you want to have the text searchable, you have to split it up. For columns of type 'string' there are two possibilities in the Data Dictonary:
    1. varchar: the length is limited to 1000 characters, but you can search with a WHERE condition
    2. CLOB allows longer length, but no index or WHERE condition for this column is possible.
    Hope this helps,
    Juergen

  • Compatibility between Java crypto and open ssl

    Hello
    I have some question about compatibility between java crypto and openssl library.
    This is my case:
    1.I created DESede key and stored it to file:
    SecretKey key = KeyGenerator.getInstance("TripleDES").generateKey();
    File f = new File("c:\\key.dat");
    DataOutputStream dos =new DataOutputStream(new FileOutputStream(f));
    dos.write(key.getEncoded());
    dos3.close();2.I encrypt some file "c:\\normal.dat" through:
    ecipher.init(Cipher.ENCRYPT_MODE, key2);
      byte[] enc = ecipher.doFinal(normalData);
      File f2 = new File("c:\\enc.dat");
      DataOutputStream dos =new DataOutputStream(new FileOutputStream(f2));
      dos.write(enc);
      dos.close();

    You have carefully left out some critical java code, namely the Cipher.getInstance() method. You'll notice in the documentation for this method that there 3 components to the "transform" argument of this method, the algorithm, the mode, and the padding. All of these must match exactly with the what openssl is using. Furthermore, if you are using one of the modes which require an IV, like CBC mode, then this must match exactly too. If you don't explicitly specify some of these parameters, you might get default values supplied. It is up to you to find out what these are.

  • What's your opinion about my theme and logo ?

    That's my first webstie and first self-made graphics. so be gentle, please
    http://hackonion.wordpress.com/
    I think it's fancy
    Thanks.

    IMHO, GraniteDS is the most fully implemented open source AMF solution out there (meaning, it's the closest you can get to LCDS without having to shell out the big bucks). A couple things that come to mind are built in support for lazy loading and data push.
    The downside is that documentation is sparse, and it's difficult to jump into unless you have had some experience with other AMF solutions.

  • Yesterday my C4680 worked fine. Today it won't print. In your opinion what has changed and what do I

    HP Photoprint C4680
    Windows 7 32 bit
    Fatal error
    No changes  except Logitech mouse M 505 failed-new mouse is being mailed from Logitech

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Error while saving date value in Java dictionary

    Hello Everybody,
    I got following error while saving date value in one of the fields of the Java table.
    Internal error occured in submit request: Error in method updateRequestContact : The object of type java.sql.Date with the value '2005-12-04 08:00:00.0' assigned to host variable 9 is not normalized. It must not contain time components in the time zone running the virtual machine.
    I can't find why it is taking time value in the date object.
    This value is coming from the RFC as a date value, and I am saving this value in Java dictionary table.
    Same code for this was working fine earlier. But, now suddenly it gives error like this.
    Even if I provide date on the screen from webdynpro application, this date value can't save in the Java dictionary and gives same error.
    What should be the problem behind this?
    Regards,
    Bhavik

    Hi Satyajit,
    I am getting date value from the screen of the webdynpro application from date picker control and passing this value in Java dictionary.
    More Information:
    I have dat value in the Date object: <b>target_date</b>
    But Now I have made new Date object as following:
    Date target_Date1 = new Date(target_date.getYear(),target_date.getMonth(),target_date.getDate());
    Then I am passing this object to Java dictionary. Still it gives same error.
    Then I have changed code as following:
              int l_year;
              int l_month;
              int l_days;
              l_year = target_Date.getYear();
              l_month = target_Date.getMonth();
              l_days = target_Date.getDate();
         Date target_Date1 = new Date(l_year,l_month,l_days);
    Now it works for me.
    But I guess this is not the perment solution. It looks very strange. I have used so many date objects at various palces. So, this solution is not the final for me.
    I want to findout the main cause of it.
    One more thing: This code was working for a mornth or two. But, now suddenly it is giving this error.
    Please help me if anybody knows.
    Regards,
    Bhavik

  • "Claim and open this task" option not working

    A task has been assigned to a group.
    There are two option icons at the lower-left bottom corner named:
    1. Claim this task and make it to your own
    2. Claim and open this task
    Problem with the first option
    When I choose this option, the task is assigned to me; I could open this form and it renders properly; But if i choose the attachments tab and come back to Form, the display area is blank.
    Problem with the second option
    when I click on the second option, i am unable to see both attachments and the form.
    This problem occurs only if I assign task to a Group.
    Any help on this..
    Thanks,
    Nith

    This happens occasionally. If I relogin to workspace, it works fine.
    I think there is something wrong with the flex app.
    Hence closing this issue now.
    Nith

  • Java sha1 and PHP sha1

    Hello to everyone.
    When encoding with PHP using sha1 i do not get the same result as Java's sha1 encoding.
    For example encoding letter 'e' in PHP produces:
    58e6b3a414a1e0[b]90dfc6029add0f3555ccba127f
    whereas in Java it produces:
    58e6b3a414a1e0[b]3fdfc6029add0f3555ccba127f
    Below is the code i am using for both Java and PHP
    String password=pass;
              java.security.MessageDigest d =null;
              try {
                   d = java.security.MessageDigest.getInstance("SHA-1");
              } catch (NoSuchAlgorithmException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              d.reset();
              d.update(password.getBytes());
              String secret = new String (d.digest());
              secret.getBytes();
              StringBuffer sb = new StringBuffer(secret.getBytes().length * 2);
            for (int i = 0; i < secret.getBytes().length; i++) {
                 int b = secret.getBytes() & 0xFF;
    sb.append(HEX_DIGITS.charAt(b >>> 4)).append(HEX_DIGITS.charAt(b & 0xF));
    return sb.toString();     
    PHP Code:
    $str = 'e';
    $str2=sha1($str2);
    echo $str2;Anyone had similar problems and found a solution to them? I cannot see any mistake in the code so any help would be much appreciated.
    P.S: I am running Java 1.4 and PHP 5.1.6 configuration
    Kind Regards
    Christophoros

    Hi,
    I found your reply regarding "Java sha1 and PHP sha1" on the forum and would like to ask another related question.
    I use the following statement to insert username/password to the database:
    INSERT INTO [db_Report].[dbo].[tblLogin]
    ([USERNAME]
    ,[PASSWORD])
    VALUES
    ('test'
    ,HashBytes('MD5', 'password'))
    GO
    In my Java code, however, the following method always return false. I noticed that in the database
    HashBytes('MD5', 'password') returns "0x5F4DCC3B5AA765D61D8327DEB882CF99"
    while
    The the encrypted login password is "[B@13d93f4" in the Java code.
    In this case, how should I check the password, using MessageDigest or not ?
    Many thanks.
    ===============
         {code}private static boolean authenticateUser(String username, String loginPassword){
              boolean authenticate = false;
              Connection con = getDatabaseConnection();
              if (con != null){
                   StringBuffer select = new StringBuffer("");
                   select.append("SELECT password from [db_MobileDetectorReport].[dbo].[tblUserLogin] where username = '"+username+"'");
                   String strSelect = select.toString();
                   try {
                        PreparedStatement ps=con.prepareStatement(strSelect, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_UPDATABLE);
                        ResultSet rsResult = ps.executeQuery();
                        byte[] passBytes = loginPassword.getBytes();                    
                        MessageDigest md = MessageDigest.getInstance("MD5");               
                        byte[] encryptedLoginPWD = md.digest(passBytes);
                        System.out.println("encryptedLoginPWD="+encryptedLoginPWD.toString());
                        if (rsResult.next()) {
                             byte[] databasePWD=rsResult.getBytes(1);
                             authenticate=MessageDigest.isEqual(encryptedLoginPWD,databasePWD);
                   } catch (Exception e) {
                        //TBD
              } else {
                   //TBD
              return authenticate;
         }{code}
    Edited by: happy_coding on Dec 21, 2009 1:39 PM{code}{code}
    Edited by: happy_coding on Dec 21, 2009 1:40 PM

  • How to save data from a server log to the java dictionary table?

    Hi,
    I need a java dictionary and a program which will read data from the log file and save records into tables.
    Can somebody help how to achieve this? Please help!
    Thanks & regards
    Amita

    Hi folks, Give some inputs here....
    Thanks & regards
    Amita

  • Interested in your opinion about PPBM7

    Bill and I are working on a new site and a new test. It looks like it will not take much longer and is nearly ready for CS6.
    We have invested lots of time in designing the new website and adding functionality and there is still as long way to go, but we are making steady progress. Note that the subscription module in not operational yet, the download file is not up-to-date, the script is not included, etc. but we would like to get your opinion on our progress and hear your comments. Everything now is only based on our PPBM5 results.
    Please take a careful and critical look at PPBM6, take a look around the site and consider the navigation, layout, logic, design and - most importantly - how easy it is to find the info you are interested in and the way it is presented. Please be critical, so we can take your considerations and suggestions into account.
    After you have looked over this site, you would help us enormously by filling out this survey: Click here to take survey. Note we have only a basic subscription which allows for 100 responses only, so you may be out of luck if you wait too long.

    STRONG OPINION - Put Benchmark Results/Detailed Results (full table) by itself and label it "Benchmark Results Table" and move all other items in Benchmark Results section to "Benchmark Results Statistics"
    Done.
    Benchmark Results/Detailed Results table features don't work at all in Internet Explorer (I have IE v9); works fine in Firefox, but many Win7 users will be using IE
    Try with the new template, it may work now. Still some cosmetics to adjust though.
    Would like to see new columns in Benchmark Results / Detailed results table: CPU die size (nm), # cpus (like in PPBM5), chipset (i.e. X79, C602, etc.), User Comments (i.e. so DeeDigital could explain why identical hardware went from score of 186 to 149), Disk Comments (i.e. many forum posts focus on where put scratch, projects, media, render outputs, etc.)
    That may be feasible when I get the parsing of Speccy.xml completed.
    STRONG OPINION - Menu design should be streamlined; This is not that large a site and When "Latest News" "Planning and Building" is up, I see 4 separate menus (at page top, Main Menu on Left, Latest News...All Pages on right, and Planning & Building a NLE System at lower left.
    Done.
    Suggestions to streamline:
    1) Only show "All Pages" for all areas; if you find you must have this level of sub-section, do it with a drag-down box at top and bottom of the section like many review sites do
    2) Have all menus at top; this is nicer too when someone wants to print something out
    Done.
    Need to clearly state what versions of CS the new benchmark is compatible with
    Will be done.
    Suggest adding a lifetime Platinum subscription option for say $100 or $150; that's the one I would select BTW if it were available
    Also suggest dumping the Bronze and Gold options; there too many options for new subscribers
    I'm looking into that.
    Update copyright to 2013 (i.e. bottom Methodology page)
    "Buy a subscription" should be "Select a Subscription" since entry level is free
    Remove the "We are volunteers!" banner to be consistent with new paid subscription fees; or, if the fees are purely going to internet fees, etc., explain that somewhere
    Done, but working on the template now for the footer.
    Font size selector is broken on Buy a Subscription page
    Suggest using www.ppbm6.com instead of www.ppbm7.com to reduce confusion (it seems that you also own this domain site)
    Will look into that.

  • Problem with Java 5 and Oracle 10g JDBC driver

    Hi All,
    Currently we upgrade our web application to Java 5 and Oracle 10.2 JDBC driver. And we encountered a bug, when the user entered the information through UI and data didn't store into database (Oracle 9i). The problem is that this bug is not happend so often maybe once a day and this did not happen before we upgraded to Java 5 and Oracle 10.2 JDBC driver. Does anyone encounter the same problem ? Is this Java 5 problem or Oracle JDBC driver problem ?
    Thanks,

    sounds like a database problem...
    Are you using a driver version that's supported for your database engine?
    What else did you change? We once ran into a major bug in our application that had for 5 years been masked by performance problems in our hardware and infrastructure.
    Once those were resolved the bug showed itself and caused tens of thousands of records to be erroneously inserted into our database every day.
    It's certainly NOT a problem with your JVM (if it's a decent one, like the Sun implementation).
    So it's either your database, your driver, your network (dropping packets???), or your application.
    The upgrade may just have exposed something that was already there.

  • I keep getting an error window about java since I updated to firefox 8, my tabs will flash, tabs will close and open in a new window, everything stops working, firefox is non responsive, please help

    Since I upgraded to firefox 8, I get this error window that pops up says something about java. My tabs flicker or flash, the tabs will close and open in a new window then everything stops. Then firefox does not respond. When I get this error message, I have to close all tabs wait a few seconds then open it back up it will work for a little while and then do the same thing. I have disabled plug-ins that I do not use, I have cleared my cache and cookies, I am not happy at all with this new version. I waited a while before updating. The first time I was going to update, firefox would not let me keep my anti-virus plug-in. PLEASE HELP

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Your opinion on:  BSP or Java Webdynpro or ABAP Webdynpro?

    Could you please give me your opinion on the business scenario we have here:
    We are implementing SRM 4.0 with backend R/3 4.6C, WAS 6.4 and Portal 6.0. SRM has its typical shopping cart applications mainly for procurement and the workflow trail displaying the approval. The client wants us to build a few custom forms on the web frontend of SRM (or may be in Portal). The idea is to store these forms and display when needed with the status info just like a shopping cart.
    <b>Now the requirements for these forms are as follows:</b>
    1. These forms will have multiple fields which need to have the F4 kind of help. (the F4 options will reside in SRM or R/3)
    2. The form should have some kind of a ALV grid  (autoexpanding feature) which will allow the user to put in multiple line items so that they could submit more items on one form.
    3. Users need to be able to attach a spreadsheet to the form which should not be editable once the form is submitted. The attached spreadsheet should be stored. (We are planning on using Archivelink Filenet for this)
    4. Upon submission, a workflow will be kicked off as per the defined Org structure for approval of the form.
    5. After submission, the user should be able to go and view the approval status of the form and also print the summary of the values that he entered in the form. (may be a smartform could be provided for this)
    We looked at different options to accomplish this task:
    <b>BSP:</b>
    Creating BSP pages and giving access as links to the user on the webfrontend of SRM. Now, if we go the BSP route, we need to develop in SRM as the R/3 4.6 c does not have BSP development capabilities. If we take this approach, I am not sure if all the above requirements (specially like attaching spreadhseets) will be met with BSP pages.
    SAP Webdynpro Java: 
    It seems that the Webdynpro is easier to use because of the graphical tools available. But the only problem if we go this route is that we will have to find a java guy.
    SAP Webdynpro ABAP:
    We currently have WAS 6.4. As per the documentation, the ABAP Webdynpro development tool is available from NW04s onwards. So, we are still not sure if we could use it. But, we want to push towards upgrading if necessary. Being an old time ABAPer, developing ABAP Webdynpro seems do-able. (i know it may not be that easy).
    Last but not the least, DIALOG Program:
    Creating a dialog program in R/3 or SRM seems fairly simple. Then, an iview could be created on the portal for this transaction, though at this point I am not sure how a spreadsheet could be attached and stored within a dialog program.
    The creation of the workflow may not be that bad after the original form is designed. The graphical display of the approval trail might be difficult, but we might get away with a report for that. For printing the details of the form, I guess I could develop a smartform and put out a button on the screen to print it out in the display view.
    Could you please give me your opinion /  best approach for accomplishing this task, keeping in mind the complexities of these new dimension products?
    Thanks
    Sri

    I would say that all four solutions to solving your tasks are technically feasible.  Here are some thoughts that I had however:
    First ABAP Webdynpro: it is true that ABAP webdynpro is only available with Netweaver04s.  04S is still in ramp-up which means that only a subset of the customer base is allow to implement it.  It will not become generally available until later this year (check the service marketplace for current release estimates).  That being said, it probably elimintes WDA as a possiblity for your project unless you are will to wait and to upgrade.
    However having worked with WDA for a while it is probably the best tool to custom develop what you describe.  It has excellent built-in F4 value help.  It also has a damn fine ALV grid implementation.  The spreadsheet could be just as simple as file upload in binary or your could try your hand at office integration.  Finally for the form you could use Adobe Interactive Forms which also has very nice integration into WDA. 
    Now to Dialog Programming: You could of course use dialog programming.  It seems a little bit of a waste to custom build something so large if WDA is in your near future.  There are obvious disadvantages (little OO structure, no MVC, etc).  You would have ALV grid, office integration and of course F4 help.  You could still use Adobe forms if you implement this on the 640 system.  However there are integration points with dialog and Adobe Interactive Forms.  You could still use printed forms however. If you did the dialog program on the 640 system, you could use the integrated ITS to expose it to the web.  The integrated ITS in my experience has quite nice performance although the look and feel remains just like the SAPGui.
    The Java Webdynpro route:  Well you hit the nail on the head - if you don't have a Java programmer already and you don't have the bandwidth to invest in learning Java, this can be a problem.  The Java Webdynpro environment is quite nice.  There are some things I like better than ABAP and some things that ABAP is defintely still better at.  However when it comes to heavy integration with an ABAP backend - ABAP Webdynpro is still the way to go.  Java Webdynpro does have a help feature (OVS), but it isn't "for free" or nearly as nice as the ABAP Webdynpro (perhaps it will get there some day).  That is one of the major advantages of WDA - its closeness to the business data brings several framework advantages like F4 and field help.  WebDynpro Java in 640 also doesn't have an ALV grid implementation.  I am sure that this is something both environments will eventually have, but right now ABAP has the advantage.  On the other hand, Webdynpro Java has equal support when it comes to office integration, file upload, and Adobe Forms support.  You would have a more difficult time integration SmartForms however.
    Finally we come to BSP.  Honestly if I were in your position I would probably choose BSP (unless you could wait for the ABAP Webdynpro upgrade).  You could build a nice MVC OO application using BSP (stateful or stateless).  The BSP product is mature and quite well documented thanks to SDN.  You have the BSP Extensions which when used in Design2003 use the Unified Renderer.  That means that your output will look nearly identical to the same UI elements in Webdynpro.  Also BSP supports portal integration (session management, eventing, and themes). 
    The downside to BSP is that it isn't a full framework (also one of its advantages).  You can insert all your own html and javascript (unlike webdynpro). But this also means that SAP doesn't delivery as many framework services.  For instance there is no ALV or Value Help.  There is no Office Integration or Adobe Forms integration.  There is some farily good Smart Forms integration.  Now the upside- many people have already hit these limitations and overcame them.  In the weblogs on SDN and in a certain SAP Press book (cough, cough) you will find out of the box solutions for many of these problems.  You can find ready to use solutions for Adobe Integration, Office Integration (using Microsoft Office Web Controls), and F4 help.  It will mean investing a little more time up front to get this "home grown framework" up and running - but it is perfectly feasible. 
    There is a learning curve to all these new technologies however.  This sounds like an abmious project.  I wouldn't want to try and tackle this project in any of these technologies if I was new to them.  With Webdynpro or BSP - consider giving yourself time to learn the environment and cut your teeth on some demo apps before jumping into such a huge development.

  • I cannot open any documents in Indesign after downloading Yosemite.  Says I need Java 6.  I have Java 8 and still doesn't work.  Please suggest.

    I cannot open any documents in InDesign after downloading Yosemite.  Says I need Java 6.  I have Java 8 and still doesn't open.

    It may seem strange indeed, but yes, you have to ALSO install the older version 6 for Apple's system; other applications will use your Java (which I believe is now even 9) and others will use that version 6.
    Download directly from Apple here:
    Java for OS X 2014-001

Maybe you are looking for