Servlet performance.  File or Db access?

Does anyone know which would be a faster method to access snippets of html code? Either open up a file and println it or grab the snippet from a database table? Also, where can I find a good tool to test the speed and performance of my servlets?

Does anyone know which would be a faster method to
access snippets of html code? Either open up a file
and println it or grab the snippet from a database
table? This heavely depends on what you do how many times and if you are caching or not. For snipplets i would think of putting it into a file and adding the file using ssi or RequestDispatcher.include() or jsp:include. Seems to be the easiest way to do.
Also, where can I find a good tool to test the
speed and performance of my servlets? jakarta.apache.org
Don't know the name at the moment, but they have a project that's purpose is to simulate clients to test performance. I never used it (since for most web apps performace is not a problem) but i read a lot about it and it seems to be very flexible to simulate entire sessions, not just sending simple requests over and over again.

Similar Messages

  • Newbie Question - Accessing Servlet Class file

    im trying to run my servlet class file but am not able to do so. I've compiled my servlet and the class file generated is under build...web-inf/classes as it should be. Now how i do access this through the browser , isnt it just not localhost:29080/MyWebApp/HelloServlet. Thanks
    -newbie

    Hi There,
    Are you using Java Studio Creator to develop your application? If so this tutorial will help you get started.
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/jscintro.html
    Please also visit the tutorials page at
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    Thanks
    K

  • Opening a file for write access [trailing spaces required]

    Hi,
    i am opening a file for write access using:
    OPEN DATASET W_FILENAME FOR OUTPUT IN TEXT MODE.
    However, when i perform transfer W_LINE to W_FILENAME, trailing spaces in W_LINE are trimmed off automatically. I have tried various methods without success.
    Appreciate if help can be offered. Thank You~

    haiiiiiii,
    OPEN DATASET OUTFILE FOR OUTPUT IN TEXT MODE encoding default.
    TRANSFER OUTREC TO OUTFILE.
    CLOSE DATASET OUTFILE.
    here out rec we are moving to the out put  file.
    for ur requrement concatinate all the fioelds to outrec and then move it to file.
    then u wont get any problems with spaces

  • Unable to open pst file error details access to the path is denied

    Hello,
    iam trying to do a mailboximport-request from a QNAP-nas that is member of the domain.
    When doing the mailboximport i am getting the following error : unable to open pst file error details access to the path is denied.
    Which permissions do i need to have on the folder/file on the qnap to import the .pst-file?
    Thx

    Move your PST files to a windows server.  Exchange Trusted Subsystem is a universal group in Active Directory.
    Read more here: http://technet.microsoft.com/en-us/library/ee633455(v=exchg.141).aspx#Pre
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • I transferred files from a NAS server to the Mac Mini Snow Leopard Server and now some of the files have Custom Access and can't  be opened by some users.  How do I fix this?

    We're setting up our Mac Mini Snow Leopard Server, and in the process transferred files that had been stored and accessed from our Blackarmor NAS server over to the Mac.  These files were all created on PC's and are Office Excel files, WordPerfect files or PDF's.  When you look at the files on the Mac from the Mac and bring up Get Info for the affected file, it says that the file has Custom Access.  The files that work properly don't have that configuration.  I can access and open the files on some computers, but some users can't open the files from their computer even though they can see it.  We're all using PC's and they get the Error:  Access Denied-Contact your administrator--or something similar.  I've seen on the web similar issues and it may have something to do with ACL permissions.  I don't know enough about Mac OS to understand this, but what is baffling is that they can be opened from some PC's but not others, and all of the Users have the same accessibility to the files.  Thanks for a solution!!

    Oh, on the losing Internet, try this...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
    For 10.5/10.6, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    Click OK.
    PS. Your English is quite good & completely understandable.

  • Root cause of error " Access denied. You do not have permission to perform this action or access this resource" - workflow - SharePoint 2013

    Good evening, technet community
    I hope you are doing well.
    When configuring my SharePoint workflow, I encounter the problem below:
    Problem Description:
    Let's say my domain is: test.com, my group user is: test\group , my user is: test\user1
    Except an admin account with full control at both "Web Application" and "Site Collection", all others account all have problem when creating a list item. After creating a list item, the workflow status is "cancelled" immediately
    with the following message:
    RequestorId: 262a35e4-99f4-40f0-929b-5d04b415f147. Details: System.ApplicationException: HTTP 401 {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["10"],"SPRequestGuid":["262a35e4-99f4-40f0-929b-5d04b415f147"],"request-id":["262a35e4-99f4-40f0-929b-5d04b415f147"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Thu, 06 Nov 2014 12:14:28 GMT"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}
    {"error":{"code":"-2147024891, System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to perform
    this action or access this resource."}}} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor,
    BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    - The workflow is still fail even I assign "full control" to my users group "test\group" – at Site Collection level.
    Surprisingly, I have successfully found a solution for this error message. However, I still have some points that I do not clearly understand. Let's start with my solution first.
    Solution:
    *** i. Assign permission policy at Web Application level – Central Admin site ***
    1. Central Administration ==> Application management
    ==> Manage Web application 
    2. Go to "permission policy", then create a new permission level. This permission level contains all "edit item" permission.
    3. Select "user policy", then I assign it directly to my user account: test\user1.
    *** ii. Assign "edit item" permission at Site Collection level ***
    1. Site Setting ==> Site permission
    2. Assign "Edit" permission to my test\group.
    (Actually I removed all permissions of my user group at Site Collection level. It seem my group has inherited permission from Web Application level, is that correct? )
    *** iii. Create a new list item and workflow runs ……. ***
    ==> My question is:
    1. Why I cannot assign permission to my users group - "test\group" -
     at "Web Application" level? Instead I have to assign permission policy for each users, one by one?
    2. Could you please let me know how to collect full detail error message of workflow status?
    Thank you very much! Have a nice weekend.

    Thank you for your very detail response.
    Point 1: Yes my 2 service: user profile & profile sync service are running. I performed "full synchronization" as well. Actually i've tried 3 another action plans before coming up with the solution i posted:
    *** Actions completed ***
    1. Activate the feature: workflow can use app permissions.
    Site actions > Site Settings > Site features >activate the feature below:
     Workflows can use app permissions
    2.
    Refresh trusted security token services metadata feed
    Get-SPTimerJob
    "RefreshMetadataFeed"
    | Start-SPTimerJob
    - then restart the machine.
    3. Start full user profile synchronization.
    Point 2:
    - Yes my user had Edit permission at workflow task list + list affected by workflow.
    I have just remove all permissions of my user at "Site Collection" level. However, when i show my user permissions at my workflow task list and my users still have "Edit" Permission ( assigned at Web Application level. These permissions
    still exist even after my workflow task list stop inheriting permission).
    ==> the problems probably belongs to "permission" at "Site Collection level". It seems "permission level at my Site Collection does not work". All users accounts are also suffer from the same issues except farm admin account
    ( which has full control at Web Application level).
    I would appreciate if your guys can guide me how to make "permission" at my "Site Collection level" work again?
    Thank you very much.

  • Getting error while installing the .p12 file in keychain access

    Hi i am trying to install the certificate.p12 file in Keychain Access's Login section on my mac mini. For each .p12 file it showing "This certificate was signed by an unknown authority". But when i tried to install the same .p12 file on other machine, its got install and showing "This is a valid certificate" Before installing this .p12 file, i was able to install the .p12 file. But to install the new .p12 file, i had deleted all the .p12 files and provisioning profiles. After that i was not able to install any .p12 file on my machine. Can anybody help me on this?

    Hi Gopi,
    Are you trying to add the hosts to your OEM 12c, and then choosing "Deploy Agent"?
    Please check this error message about the image file..
    The image file C:\oracle\core\12.1.0.2.0\jdk\bin\java.exe is valid, but is for a
    machine type other than the current machine.
    "Validating OMS_HOST & EM_UPLOAD_PORT failed."
    If the agents are deployed earlier from another OEM12c server, please undeploy them and then try.
    Thanks,
    Rajiv.

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

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

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

  • Storing image file in ms-access using jdbc

    Dear all,
    When i try to store a image file in MS-Access, I try it using OLE Object type in ms-access and object type in Java but i got following exception
    java.sql.SQLException: SQL Exception : Unknown SQL Type for PreparedStatement.setObject (SQL Type=1111
    So anyone please guide me that how to store an image file into ms-access database using the jdbc.
    ishan

    Do you want to store the text from the file? or the actual file?
    If you want to store large amounts of raw text, then you can use the MEMO type, but it will only store up to 64kb (65,535 characters). If you want to store the actual file, you'll have to use a field of OLE type.
    Does this answer your question? or were you asking something else?

  • Generating the JSP from the Servlet source file

    Hi,
    Does anyone out there know if there is any utility/class/program which will generate a JSP from the Servlet Source file (.java file) or indeed from the compiled Servlet file (.class file)
    If its possible to decompile a .class file into a .java file, surely it must be possible to convert the .java souce file into the .jsp file that created it.
    any comments would be appreciated
    Richard

    I am the author of the original JSP!
    But I want to run a script on the generated Servlet source file,
    changing its contents, and then generate the JSP that would have created the new Servlet source file.
    but I need to know if theres anything that will reverse engineer a Servlet source into the generating JSP.
    its a kind of of Jeopardy type thing!

  • Check if file is being accessed

    Vinothkp:
    I am trying to check if a file is open or not using Java. I did get a partial solution. It is:
    Take the filename.
    Rename the file to a different name
    If the new filename exists, then it is not being used by another program( which in turn means that the file is not open).
    If the file is accessed by some other program, then Windows (which is my target OS right now) is not letting the rename happen. So, if the new filename does not exist, it means the file is open.
    Now, the problem is here. If we try that for a Word Document, it works fine. For a pdf, it works great. And I guess it works for most of the files. But, I tried that out for a .txt document. Even if the file is open, it creates a new file under the new filename. So, the check does not work.
    Any comments, help?
    Related Thread: http://forum.java.sun.com/thread.jspa?threadID=662171
    Thanks.
    Ajaimes:
    What if you copy it and then try to delete the original file?
    ChuckBing:
    What are you wanting to do that causes you to want to know:
    a "file is open", whatever that means?
    Warnerja:
    Now, the problem is here. If we try that for a Word
    Document, it works fine. For a pdf, it works great.
    And I guess it works for most of the files. But, I
    tried that out for a .txt document. Even if the file
    is open, it creates a new file under the new
    filename. So, the check does not work.I'd bet the .txt file isn't "open" either. By "open" do you mean you have Notepad running with the contents of that file displayed in its window? That doesn't mean the file is "open" at all. That would just mean Notepad HAD opened it, read the contents into memory, and likely closed it. Then it showed the memory contents in a window.
    Vinothkp:
    >What if you copy it and then try to delete the original file?
    Message was edited by:
    ajaimesIn that case, the file will be deleted. Then, when you save the opened file, it will save as a new file. Then, how would you know if the file is being accessed or not?
    However, this could be the possible reason.....
    I'd bet the .txt file isn't "open" either. By "open"
    do you mean you have Notepad running with the
    contents of that file displayed in its window? That
    doesn't mean the file is "open" at all. That would
    just mean Notepad HAD opened it, read the contents
    into memory, and likely closed it. Then it
    showed the memory contents in a window.
    By: warnerjaYes. That is probably right. Now, I have some improvement in understanding what is happening. This does not happen with the other types of files like Word Documents, etc. Why? Dont they do the same thing? And Then, in the case of .txt files, how can we know if the file is open or not.
    I will reframe the title a little bit here: How can we check if a file is being accessed by other program or not?
    Any more comments or ideas.
    Thanks.
    Warnerja:
    Just because something like Notepad is displaying what it saw in the file doesn't mean the file is being accessed by anything.
    You have a weird 'requirement'.
    If you "print" the contents of the file and hand out copies to people to look at, do you need your application to know if anyone is currently looking at the paper too? It's being "accessed" just as much in that situation as it is when Notepad has it displayed on your screen.

    Well, let me explain more on what I m trying to do.
    I want to check if a file is being edited or not. If it is not being edited currently, I want to move the file to a different folder. If it is being, edited, the application will be rest assured that even after moving the file to a different location, the file will not be right. It will be an old copy.
    So, if I were to do this to Word documents, I am good. But, for text documents, I am not able to do this.
    I understand what Warnerja says:
    "Just because something like Notepad is displaying what it saw in >the file doesn't mean the file is being accessed by anything."But, when MS Word access a ".doc" file, it holds something and prevents renaming of the file. In that case, it is open and ALSO being accessed by an application right?
    Any more comments?
    Thanks.

  • Transfer Digital Performer files into Logic Express?

    I have some old recordings that are on a ADAT tape. A friend of mine said he could transfer them to Digital Performer. Does Logic open DP files?
    Paul

    Unfortunately, as was pointed out, Logic Express does not open Digital Performer files.
    Not does it import OMF files, nor Broadcast Wave files, which means you can't export time-stamped waves from DP and import into LE. If you know someone with Logic Pro, it DOES support Broadcast Wave. This could be one work around.
    Otherwise, you'll have two options.
    1) Import the ADAT recordings directly into LE using an interface that supports ADAT In (MOTU 828mkII comes to mind). This will only work if you can re-assign the inputs of the interface to be the first 8, since LE only "sees" the first 12. This is one of the major limitations of LE, and why it's not really suited for "pro" work.
    2) Import into DP, and then bounce the tracks in DP as separate WAVE of AIFF files, then import them directly into LE in the Audio Window. As long as each file starts (and ends, preferably) at the same time (i.e. as set in the DP bounce), you should have no problem aligning the tracks in LE7.
    Number 2 is probably the best solution. Just remember that each of the WAVE files created in DP should begin at the same time (i.e. 0 0 0 0). This will GREATLY simplify the import into LE and make aligning the tracks a painless procedure. You can edit later in LE.
    Hope this helps.

  • A form template .xsn file cannot be accessed. You may not have the required permissions to open the file

    Hi there,
    When a workflow task is assigned to a user, he cannot open a particular task. and
    sees this error in browser:
    A form template .xsn file cannot be accessed. You may not have the required permissions to open the file
    The ULS Log for Correlation ID has these errors:
    The XSN is null and its not a cross server issue. Most likely a permission issue
    The XSN is null after attempting to get it from SiteAndWebCache
    Please note:
    - This user can open all other forms in the same location.
    - If I increase his permission to Site Owner, he can open this form - but we cannot allow this.
    - He was able to open it earlier - I made minor changes in the form and republished the workflow - since then he is having the trouble. 
    Any help will be appreciated!
    Thanks.

    Hi ran009,
    Please check if that user has contributor permission on the list that the workflow associated and have Edit item permission on related task list/item.
    Also check if the workflow form or other workflow files has been checked out or not. If yes, check it in and test it again. Check Wayne Fan’s post in this thread if you have trouble to check the check-out/in status of the task form.
    http://social.technet.microsoft.com/forums/en-US/sharepointcustomizationprevious/thread/cc8dc07b-b73d-424a-a3d4-2a2d7ad84504
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • HT2914 Hello: I am very much a novice with Final Cut. I am trying to import some video files from my desktop but keep getting an error message that says, "File error 1 file recognized, 0 access denied, 1 unknown". The file type is .mov, 35MB, 1920 x 1080,

    Hello:
    I am very much a novice with Final Cut.  I am trying to import some video files from  my desktop but keep getting an error message that says, "File error  1 file recognized, 0 access denied, 1 unknown".  The file type is .mov, 35MB, 1920 x 1080, Codec MPEG-2 video linear PCM timecode, color profile HD (1+1+1).  Can someone help?  Thanks, Paul

    You can't import MPEG-2 files directly to FCP X.
    Can you play this file in Quicktime Player? If so, then you can use the free program MPEG Streamclip to convert this to Quicktime. Use the ProRes codec.

  • I have a digital performer file created on os9 that wont open in OSX the file looks like a unix file.

    Is there a way to convert old os9 files so OSX can use them? The only apps that will open it is Text edit and Terminal.
    jimi

    Many document types created in OS 9 apps are openeable in OS X, depending on the OS X version.
    For example, AppleWorks 6 documents are usable directly in OS X by using the OS X version of AppleWorks 6 (runs in all versions of OS X except Lion). In addition, AW6 text docs and spreadsheet docs can be opened in Pages and Numbers, respectively, in all versions of OS X.
    Image files from OS 9 (jpeg, tiff, etc.) are openable by most image-capable apps in OS X.
    As for a Digital Performer file, its format is probably proprietary; if that's the case, you'll need to acquire the OS X version of that app in order to open/use it in OS X.
    If it's the program itself you talking about, rather than a document created by it -
    No OS 9 app can be used directly in OS X, and such an app will often be reported by OS X as being a Unix executable.
    In some versions of OS X (OS X 10.4 and earlier) OS 9 (9.1 minimum, 9.2.x is best) can be used as Classic in order to provide an environment in which many (but not all) OS 9 programs can be used. OS X 10.5 and later do not support Classic.

  • Outlook 2010 Sending' reported error (0x8004010F): "Outlook data file cannot be accessed.'

    I recently moved my outlook directory to a different drive as my C: drive was getting full. 
    Everything went smoothly except for now I cannot send emails from any of my addresses with the error "Sending' reported error (0x8004010F): "Outlook data file cannot be accessed.'" that I've associated with outlook.   Recently I
    uninstalled all of Microsoft Office (student) and reinstalled it on the new drive, still getting the same error.  I've tried following the steps at http://support.microsoft.com/kb/2659085/en-us
    but when I go into the Control Panel to click on Mail (in this case Mail (32-bit) even though I run a 64-bit OS), the icon in the control panel is a piece of paper (leading me to believe it's broken) and when I click on it, nothing happens.  I don't
    mean my screen flickers or even thinks about doing anything with the swirly circle cursor... it does absolutely nothing.

    Hi Stintedvisions,
    Generally,
    “0x8004010f: Outlook data file cannot be accessed” error is occurred due to wrong configuration of Outlook profile. And as you said that you have been trying all Microsoft methods to resolve, but it’s still not working, then you should use
    the inbuilt utility of Microsoft called scanpst.exe. It can identify the bug and repair Outlook in minutes of times.
    Thanks
    Clark Kent

Maybe you are looking for

  • Cannot update Acrobat 8.0

    Hi. I have a problem.  I have installed Adobe CS3 Design Premium on my computer. (Windows XP SP3, 4GB Ram,250GB HD with 205 free space, Intel Core 2 6600 CPU) I cannot install the updates for Acrobat.  Everything else updated.  I had a corrupt profil

  • How to concatinate a string in AS 3.0

    newbie help needed. i am trying to post a few variables out of a flash page to an asp page through a string. current code below navigateToURL(new URLRequest("http://www.mysite.com/default.asp?var=" +userAnswer ),"_self"); i needed to add 2 more vars

  • In yahoo mail "outbox" and keyboard won't pop up !

    I changed my password today and I can't access my inbox unless I verify that I am a human being by going into my "outbox" and entering the alpha/numeric characters.  Well, this should be simple enough but my keyboard doesn't pop up and I am stuck wit

  • Sad icon = computer does not detect = cannot put into disc mode !

    hey, my ipod photo at the moment won't turn on. the best i can do is plug it in to either my pc or the electricity supply, or reset it, so the apple logo comes up, however it only lasts for a few seconds and the sad face icon appears, directing you t

  • Best file formats for graphics and photos for iWeb

    What is the best format to transfer files from PDF's, JPEGS, Illustrator CS3 & InDesign for best resolution display in iWeb