Monitor progress of through WebService DataHandler

Im trying again as my first post in the glassfish forums have not lead to any help/suggestions. I def dont like to repost but I need to expand my audience a bit.
I am building a web service to move files around. I am using a method that returns a @XmlMimeType("application/octet-stream") DataHandler to the client. I do have @MTOM and @StreamingAttachment enabled. S
I dont really know the details, but the call to the WebService that returns the DataHandler seems to actually move the file over? After the method returns, I get the DataHandler and any moving of the data on the client side takes no time at all. So if I call the service to move a 20MB file, the webservice call takes a few minutes, but after the call returns, moving the file through the dataHandler takes not time at all. Any ideas how to monitor this progress on the web service method call? Is there another way to monitor this? TIA.

Well I'm going to chalk my lack of feedback as a question that is hard to understand from my explanation,or I'm asking the wrong question. But I still believe I cannot be the only one hitting this problem. Simply put I cannot find away to view/handle the progress of a file transferred from a web service to the stand alone client, if that web service call returns a DataHandler. Now in this thread ... [http://forums.java.net/jive/thread.jspa?threadID=22481]
others have shown how monitor an upload to the server from the client side. I am after the opposite, ability to monitor the progress of file downloading from the server(GF v2.1) to the client.
Now, is it possible that there isn't a direct way of doing this. Surely Im not the only one to run into this type of situation. Is there a better way of moving a file from glassfish server, with ssl, to a user allowing the client app to monitor the progress?

Similar Messages

  • Queue Name is Initial while calling XI through webservice

    Hi All,
    While i am sending data to XIServer through webservice with Quality of service as EOIO i am getting the response
    <b>XIServerINTERNAL.ATTRIBUTE_INITIALQUEUE_NAMEAttribute QUEUE_NAME is initial</b>
    Due to this i cannot see any messages in SXMB_mONI..
    Can anybody give solution or suggestions...
    And also CCMS status is in red in component monitoring of Adapter engine for XISERVER...
    Thanks and regards,
    Sridhar

    Hi Michael,
    Thanks for u r reply,
    I am not using Soap Adapter, I am using XI adapter, and followed the Doc how to send XML data to BW using the doc
    http://service.sap.com/~sapidb/011000358700011142902001E/HOWTOSENDXMLDATATOBW.DOC
    My scenarion is XI-BW integration.
    Here I am trying to send XML data as mentioned in the doc.. i can see the messeges if i give the QOS as EO but if i give EOIO then the said response i am getting...
    Request u to give solution or suggestion...
    Regards,
    sridhar

  • Passing data through webservices.

    Hi All,
    I have two doubts.
    1. Can we call a webservice without calling creating an ABAP Proxy?
    2. If yes how can i pass my internal table through webservice.
    any code snippet or wiki link regarding this will be very helpful.
    TIA
    Vikash Singh

    Hi Vikash,
    Go through the below link, it has a simple example which will help you,
    just search for "Calling a web service in ABAP that validates an email id" and click on the link of saptechnicaldotcom
    or try this
    http://help.sap.com/saphelp_nw70ehp2/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
    Also, for transforming your internal table into XML, you can use the below piece of code
    CALL TRANSFORMATION ID  
       SOURCE root = ITAB
       RESULT XML xml_string.
    And you can pass the XML_STRING as input to the "CREATE_BY_URL_METHOD".
    But the XML_STRING will need to be in the format that the service can understand, you might have to modify it accordingly.
    Regards,
    Chen
    Edited by: Chen K V on Apr 26, 2011 1:04 PM
    Edited by: Chen K V on Apr 26, 2011 1:07 PM

  • Send the adobe form through webservices

    Hello all,
    i have a requirement in adobe form. When i click on submit button the total pdf form have to be sent through webservices and update as a string in a SAP ztable. so that i can retrieve the string and convert it into pdf again and reuse it.
    can anyone suggest, is it possible to do. Please suggest if anyone already worked on this scenario before or like.
    Thanks in advance,
    Prakash reddy .S

    Hello Sreelatha,
    I think we cannot hide a page.  as in, page is the main container.  In a container, we can hide any field using some scripting.  Even though if we hide the field, it is present on page but not visible. 
    but if some logic is there, please let me know.
    Thanks,
    Rakesh.
    Edited by: rakhi966 on Sep 8, 2011 8:54 PM

  • Facing Time out after 270 sec through webservice.

    Hello all,
    I am invoking PDF generator for Postscript through webservice along with a cofiguration xml which has timeout set to 10000. But the service doesnot recognise this value & always gets timed out at 270 sec which is its default value.
    I tried converting a PS file to PDF using the GUI by setting the timeout parameter to a higher value than 270 but it still got time out at the default value.
    Please help me solve this prob...
    Thanks in advance.
    -Vineesh.

    Which version of Java?
    Which web app server/db and version?
    Does it work for small (<10Meg files)?
    I've never needed a timeout over 4 minutes even for 500Meg+ PS files, although I'm interacting through the EJB interface, not the webservice.
    I believe there may be some way to increase the timeout further, although I think it involves editing configuration files within the ear/war/jar structure of the deployed libraries; the 270 second value does appear in native2pdfconfig.xml in the pdfg-all.ear on the professional version of PDFG, although I don't have time to test whether this value actually has an effect on the maximum timeout. It may appear elsewhere too. And I'm not sure if it will be in the same location in the postscript only version.

  • "Join" Objects through Webservices

    I'm trying to find a fast way to join objects through webservices.
    What do I need?
    -An extract of the recipients from a campaign joined with contacts
    What do I have?
    -I have an extract of the recipients of the campaign...
    What's left?
    -No I have the ID's of the contacts and I could get the information of the contacts 1 by 1. This means if I have 100 recipients, that I have 101 webservice calls.
    My question?
    Is there a way to get all the contacts with 1 webservice call, containg the needed info from recipients?

    Probably not, Campign - Contact is Many-to-Many relationship. You can query contacts where 'SourceCampaignName' field equals some camagin, but it not the same that you want.

  • Can SMC monitor storage st6140 through storeADE(CAM)?

    I want to monitor server and storage with a mangement console, and receive the warning events. I try to use SMC and CAM to do it. When I've setuped and configed it, CAM can get warning events, but SMC can not. I've also installed rasagent, but SMC can't receive warning messages all along. I don't know why. Can't SMC monitor the st6140 through CAM? Or I need to do more configuration? Maybe this solution isn't ok. Does sun have other solutions to do it? Thanks.

    I want to monitor server and storage with a mangement console, and receive the warning events. I try to use SMC and CAM to do it. When I've setuped and configed it, CAM can get warning events, but SMC can not. I've also installed rasagent, but SMC can't receive warning messages all along. I don't know why. Can't SMC monitor the st6140 through CAM? Or I need to do more configuration? Maybe this solution isn't ok. Does sun have other solutions to do it? Thanks.

  • Is there a sample to update/delete records in a database server through webservice?

    Hi group,
    There are many samples showing how to get/download the
    records/XML data from a database through webservice , however none
    of them talking about how to change the server data while user
    modify the Datagrid / List in the flash application through
    webservice.
    Is the webservice way to update server data is too slow, more
    complex, hardly implement? I am new to flex. Flex application does
    so exciting interface, but how can I get my data saved in server
    database through webservice.
    Thanks for guiding me to the right direction, any sample will
    be appreciated.
    Steve

    Are you able to select more than 100 through the Content and Structure manager?
    OR
    I found a technet article that uses powershell to perform a bulk-delete, it might be your best bet to start here:
    http://social.technet.microsoft.com/wiki/contents/articles/19036.sharepoint-using-powershell-to-perform-a-bulk-delete-operation.aspx
    Edit: is this you?
    http://sharepoint.stackexchange.com/questions/136778/is-there-a-way-to-bulk-delete-records ;)

  • Monitoring Progress of Loading an Application

    How do I Monitor progress of loading an application made in Java itself using Progressbar or ProgressMonitor?

    Hello Bharat,
    I think programming the ProgressBar is not the main problem, but having it
    displayed as soon as possible after launching the application. I at least
    have no idea how to guess/calculate the loading time. But to have an indeterminated ProgessBar quickly showing would already be nice.
    Joerg

  • JProgressBar - monitoring progress of a method in another Object.

    Hi all,
    I've been three days trying to make a JProgressBar work. I know how to use them but not in this case. I'll try to explain the code instead of making you read it.
    -I have a JProgressBar in a JDialog.
    -In the constructor of this class I create a new instance of a Object, call it Processor for example, and i run a method start() on it.
    -This method execute a number of SQL statment and i want to monitor them in the JProgressBar.
    I've followed the official tutorial but it doesnt work for me, I have no idea how to do it beacause i don't know how to refresh the Task process property from outside the doInBackgroundMethod. I also tried to create 2 SwingWorker, run the Processor.run() in one of them, an in run() update a "satic int progress" in each iteration, then from the other SwingWorker i check the Procesor.progress to invoke the setProgress() method.
    I have realised that when debugging sometime it works, so i supposed is something about concurrency, I don't know, please help.
    Thank you in advanced.

    the processor is a runnable, right? then:
    MyDialog extends JDialog{
    private final JProgressBar progressBar= new JProgressBar()
    MyDialog(){...}
    private void init(){
    new SwingWorker<Void,Object>(){
    public Void doInBackground(){
    String sql1=...
    Object o = execute sql1
    publish(o);
    ... do the same with other sql queries
    return null;
    public void process(List<Object> chunks){
    //update progressbar
    //this method will be called using coalescence, so maybe you execute 3 queries, and this method gets called just once, and in this case 'chunks.size()==3'
    public void done(){
    //make sure that the progress is complete, the last chunks may have not been processed through process() method
    progressBar.setValue(100%) // I dont remember the syntax for this
    Edited by: thrawnkb on Jun 3, 2009 3:36 PM

  • Monitor progress of data donwload

    Hi,
    I would like to build something like a progress bar that
    monitors the progress of downloading of data from a remote
    database, or XML using HttpService. Is this possible? are there
    examples that can be shared?
    Thanks!

    <mx:ProgressBar indeterminate="true" visible="false"
    label="Loading, Please Wait..." enabled="true"
    labelPlacement="top" id="waitBar" textAlign="center"
    fontStyle="italic" fontWeight="bold"
    fontSize="10" color="#127A9C" themeColor="#4dda08"
    width="200" height="5" bottom="30" right="20"/>
    <mx:WebService id="" wsdl="{}" concurrency="multiple"
    load="waitBar.visible=true">
    </mx:WebService>

  • Compressing Data Passed Through WebService

    Hi there...
    Before I start explaining the problem, I am not an expert in webservices and weblogic.
    1- I am having a webservice that accepts lots of textual information and responds with lots of textual information as well. Is there an option in weblogic setting that allows data compression automatically? or should I implement data compression on the client and server?
    2- also it seems that the parameters passed through the webservice get alot of XML overhead information. Is there a way to reduce the amount of overhead information passed?
    Notice that SSL is being used.
    3- Finally what are possible causes that could lead to slow response from the server? I am getting about 8 to 10 second average response time from the server. I don't think it is the weblogic server simply because the development environment uses local LAN and it the response is much faster. any ideas?
    thanks

    1- I am having a webservice that accepts lots of textual information and responds with lots of textual information as well. Is there an option in weblogic setting that allows data compression automatically? or should I implement data compression on the client and server?
    Not that I know of, I think you have to resort to zipping the messages.
    2- also it seems that the parameters passed through the webservice get alot of XML overhead information. Is there a way to reduce the amount of overhead information passed?
    A way to reduce your XML overhead is to define small messages in your WSDL (and XSD).
    3- Finally what are possible causes that could lead to slow response from the server? I am getting about 8 to 10 second average response time from the server. I don't think it is the weblogic server simply because the development environment uses local LAN and it the response is much faster. any ideas?
    Network overhead. As you already mentioned in the other two question you are sending large messages. Maybe your system administrator has some monitoring tool for the network
    which can give you some insight in the matter.
    Information concerning WebLogic and Web Services can be found here: http://download.oracle.com/docs/cd/E21764_01/web.1111/e14529/web_services.htm

  • How to monitor progress of web-service calculation?  And abort it?

    Hello. We're thinking of converting an existing Java radar calculation program into a web-service, so that it can be used by various interested parties. However, calculations can take some time (several minutes) and so we would like the client to be able to both show calculation progress and allow the user to abort the calculation if necessary. It is not obvious to us how to do this with a web-service. Are there any standard approaches to this problem? What's the best way of a client asking the web-service how a calculation is progressing? What's the best way for a client to abort a calculation? Any advice most welcomed.
    Kind regards
    Paul Howland
    NATO C3 Agency
    The Hague

    You can't estimate the duration withour running the gather_database_stats. You can monitor it while it is running. (e.g. count the tables that have got updated statistics based on DBA_TABLES)
    And if you run gather_database_stats, the default behaviour might well be to exclude tables which aren't "stale" while in the imported database the expectation is to gather stats on all tables.
    (Similarly, the behaviour to gather column histograms (method_opt) may differ in an existing database from a newly imported database)
    Hemant K Chitale
    Edited by: Hemant K Chitale on May 14, 2013 10:13 AM

  • Computer Monitor Progressive vs. HD progressive

    OK, so we all know that if a project is going to be broadcast, you have an NTSC monitor set up when you're editing, right? Because the computer monitor is a progressive display, it isn't the best when it comes to color correction or interlacing/deinterlacing issues (as seen in many a thread here when people say "XXXX looks really bad when I see it in the canvas" only to have someone say "Have you looked at it on a TV or NTSC monitor?). So we're all in agreeance (is that even a word?) that computer monitors (LCDs like the Apple's Cinema Display) are not the best to view this stuff, right?
    That said, how come all HD televisions (smaller than 52 inch plasmas) are LCD progressive? Isn't that just like watching something on a computer monitor?
    Just wondering.
    Jonathan

    Progressive plasma and LCD TV's have powerful de-interlacers built into them, they effectively take the 480i60 image and upscale, and interpolate it into a 480p60 image, in real-time, there is a delay in the picture because of this, and the sound has to be delayed to match - it is quite noticeable when playing rhythm action games on consoles (like Guitar Hero).
    Some do it better than others, and some don't do it at all (discard 1 field to make a 240p30 image, and blend).
    The same is true of 1080i60 images being turned into 720p60 or 1080p60 by HDTV's, again, some do it badly, or not at all.
    What I do on a computer, is use compressor to take i60 sequences and use the advanced format conversion to set the frame controls up to create a p60 sequence, for viewing on a monitor. It takes a long time to do, but looks pretty decent, and still maintains the fluid movement I expect from video (60 updates per second).
    For instance, taking 1080i60 HDV and making 720p60 DVCProHD seems to work quite well.

  • Drop Box - possible for  other user to monitor progress?

    Is it possible, for the user whose Drop Box I am tranferring files to, to monitor the progress so they can tell when an upload is complete to their Mac?
    I get the progress window on my end, but they have no idea what is going on on their end.

    Pretty difficult, iirc the Filesize required is reserved at the start, so Get Info wouldn't help.
    Perhaps they could use Activity Monitor to observe the Network IN activity?
    Most likely someway to monitor it with a Script, but beyond me at the moment... Maybe Sharepoints with AFP Monitor!
    http://www.hornware.com/sharepoints/

Maybe you are looking for

  • Can't save emailed photos to iPhoto

    The computer is an iBook G3, 900 MHz, 40 GB hard drive running OS X v.10.4.11 with Mail 2 and iPhoto 2. This is a computer which I am trying to set up for a friend. I recently posted a similar question in the iPhoto forum thinking the problem might b

  • G5 Quad - No Airport Reception After Upgrade - Software Issue

    Hi, I've just installed a 'wireless upgrade kit' in my quad (yes, I know it says AASP install only but I did in anyway). Bluetooth is working fine but airport gives me no reception at all. Now, after some poking around I became pretty convinced this

  • Is this the right program for me?

    I need a program that'll work very well with all of my audio equipment for recording. I need something that is easy to use, but still has nice results. I plan on uploading my recordings as MP3s to a musician myspace. Is this the right thing to purcha

  • Downloading shows form current DVR to laptop

    I want to download my current  shows on dvr to my laptop how do i do this? I have to install a new dvr & don't want to lose unviewed shows. Comcast person told me i can download my current shows to laptop but I don't understand how to do this.

  • Integer static valueOf(int) question

    Hi there. Im wondering is it at all possible for an Integer reference variable to be returned a null by invoking this method from the API: Integer myInt = Integer.valueOf(//some int);The reason I am asking this question is that my SCJP book asks a qu