JPQL Query for specific usecase, help needed

Does anyone knows how to write the JPQL query for this specific use case.
Take 3 tables,
Table 1 contains bids for many auctions (Bid table)
Table 2 Contains many auctions (Auction Table)
Table 3 contains many users (User Table)
I need a query to retrieve all the highest bids per auction for a particular user.
For example if the user has bidded on 10 auctions., but for each auctions has placed 3 bids each. Following the query, I would expect to get 10 bids back, each being the highest per auction.
A Bid has a bid value that can be used for filtering.
Thanks
Peter

It would be something like the JPQL version of 'select * from bids join auctions using (auction_id) where bids.userid = ? group by auctions.auction_id order by bids.amount desc'. But this is primarily an SQL question, and only secondarily a question as to how to translate that into JPQL, which should be straightforward.

Similar Messages

  • Help,just  entered registration code for quicktime pro,help needed

    Help,just  entered registration code for quicktime pro,help needed,cant seem to see the quicktime pro screen i saw on internet with all the edit and extra things at the top,i dont understand this,any help,Dave

    I hope this helps http://support.apple.com/kb/ht2240 good tips on your prob here..good luck

  • Create POWL query for specific user (not self)

    Hello All,
    was wondering if anyone had an idea on how to create a POWL query for a specific user. Even the low level method in class CL_POWL_QUERY_ACCESSOR seem to assume that you either are creating an administrator query for any/everyone or just for yourself.
    One option is to create multiple queries (for each selection criteria that I want) and assign these directly to user (rather than the role) in the config - but that's config that I'd need to transport up - for what is essentially user level personalisation.
    My strong favourite at the moment is to throw a breakpoint in CL_POWL_QUERY_ACCESSOR and manually change the user name as I save new queries in directly in production - but that's not exactly the cleanest solution.
    Surely someone has had a need to actually create queries for users, not just delete them as per program POWL_D01?
    Many thanks for any hints and tips
    Cheers,
    Chris

    Well - I should point out that you don't have to transport those user assignment of queries - tables are production maintainable. However, you do have to transport up the query itself - so not ideal.
    Oh well - don't think this one has an answer => closing it to open another question.
    Cheers,
    Chris

  • How to query for specific filename

    I'm using a modified folder_action script to ftp files up to a server once they're finished being created.
    Is there a way to query for a specific filename to be present in the folder prior to passing it to the actual ftp function? The catch is that the filename will always be in the format of <mmddyy>.mp4. During the process that is creating the actual file to be ftp'd, various temp files are created prior. I'd like to ensure that only the final version of the mp4 is acted upon, which is the one with the mmddyy as the filename.

    The folder action already has the folder and the item paths passed to it, so you can get the individual file name by using something like:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on adding folder items to this_folder after receiving added_items
    repeat with AnItem in added_items
    if text (count (this_folder as text)) thru -1 of (AnItem as text) is "<mmddyy>.mp4" then
    -- whatever
    end if
    end repeat
    end adding folder items to
    </pre>
    There are also temporary folders that the system provides, so you shouldn't have to use the folder with the attached action at all:
    get path to temporary items
    get path to temporary items from user domain

  • SQL Query Sorting Order issue - Help needed

    Hi All,
    I am using the following query in my project to display the records in the grid.
    /* Formatted on 04-09-2013 PM 8:01:51 (QP5 v5.149.1003.31008) */
      SELECT eol,
             status_msg,
             relation,
             building_name,
             device_id id,
             CEIL (SYSDATE - updated_date) duration,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             TO_CHAR (updated_date, 'YYYY-MM-DD HH24:MI:SS') updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             LISTAGG (TESTBED_ID, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_id_ref,
             LISTAGG (NAME, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_names,
             spname || '-' || ip_address || '-' || port AS child_asset_group
        FROM DEVICE_TESTBED_VW
       WHERE lab_id IN
                ('7099849',
                 '10769617',
                 '4258712',
                 '10513562',
                 '10515074',
                 '5882676',
                 '8330925')
    GROUP BY eol,
             status_msg,
             relation,
             device_id,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             building_name
    ORDER BY building_name ASC,
             LOWER (child_asset_group) ASC,
             LOWER (relation) DESC
    The problem is , if any one sorting with any column  , the order is not correct
    In this below code , i have done sorting by port . But the result data order is not correct .
    /* Formatted on 04-09-2013 PM 8:07:02 (QP5 v5.149.1003.31008) */
      SELECT eol,
             status_msg,
             relation,
             building_name,
             device_id id,
             CEIL (SYSDATE - updated_date) duration,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             TO_CHAR (updated_date, 'YYYY-MM-DD HH24:MI:SS') updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             LISTAGG (TESTBED_ID, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_id_ref,
             LISTAGG (NAME, ',') WITHIN GROUP (ORDER BY TESTBED_ID)
                AS testbeds_names,
             spname || '-' || ip_address || '-' || port AS child_asset_group
        FROM DEVICE_TESTBED_VW
       WHERE lab_id IN
                ('7099849',
                 '10769617',
                 '4258712',
                 '10513562',
                 '10515074',
                 '5882676',
                 '8330925')
    GROUP BY eol,
             status_msg,
             relation,
             device_id,
             lab_id,
             aisle_id,
             aisle_location_id,
             ip_address,
             port,
             slot_num,
             hostname,
             pid,
             description,
             sl_num,
             eitms_code,
             status,
             dnd_flag,
             aisle,
             aisle_location,
             spname,
             os_version,
             user_id,
             updated_date,
             isterm_svr,
             net_type,
             DEVICE_GROUP_REF,
             cmd_id_ref,
             building_name
    ORDER BY PORT ASC
    Can some one help me to fix this issue?

    Hi,
    Sorry, it's not clear what you want.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved, so that the people who want to help you can re-create the problem and test their ideas.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    Simplify the problem as much as possible. For example, if you really need to GROUP BY 28 columns, post a problem where you need to GROUP BY only 2 or 3 columns.  (Just explain that you really have 28, so people will give solutions that are sure to work for all 28).)
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Collection query for specific SCCM client version - Parameters?

    Good morning,
    I need to upgrade my older clients as I recently upgraded SCCM to SP2.  I can't seem to find the parameters in query builder to populate a collection with a specific SCCM client version.  Can anyone help me out or point me in the right direction?  I can't find anything using "The Google".  You'd think lots of people would want this that there'd be a default query in SCCM already.  Thanks.

    Here is a query of all clients running sp1 version:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System inner join SMS_G_System_SMS_ADVANCED_CLIENT_STATE on SMS_G_System_SMS_ADVANCED_CLIENT_STATE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_SMS_ADVANCED_CLIENT_STATE.Version = "4.0.6221.1000"
    JonL

  • Product Specific Form - Help Needed

    I have a client who will be selling firearms and ammunition on a hunting site, along with other hunting products.
    I need to have a form specific for firearms and ammunition products that will be required to be filled out before that product firearm and or ammunition can be added to the cart. The laws in Canada are very strict about purchases of such product on the internet.
    How do I do this or is it even possible to have a form specific to these products pop up when add to cart is clicked?
    Thanks in advance

    Hello river east,
    I'm just spitballing here, but here is one option for this to work.
    Basically you would create a secure zone and if the user isn't signed in they wouldn't see the Add to Cart button.
    The js would look like this - http://jsfiddle.net/chaddidthis/uDmXj/1/
    As a part of signing up for the secure zone they have to accept the gun and ammo purchasing terms. You could have the link to the form on the large product page, sends them to either log in or sign up via the form they need to fill out. After then fill out the form they are sent back a page sending them back into the large product view they were on, and since they are signed in now the product will be able to add to cart.
    Maybe this will spark others to add on to this, but that is pretty much the only way I could think to accomplish the desired results.
    Hope it helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Query for specific registry key

    hi all,
    could someone,help me on how to query sms DB about specific registry key.
    i need to create collection based on this query:
    all machines that have on the HKLM\software\microsoft\sms\mobile client\software distribution\execution history\system
    path a specific package ID entry.

    Look at Program Rerun behavior setting on an advertisement
    http://technet.microsoft.com/en-ca/library/bb694016.aspx
    Program rerun behavior
    Specifies whether the advertised program will be rerun on the client computer if it has previously been run before the scheduled mandatory time.
    Always rerun program: The program will always be rerun on the client when the advertisement is scheduled, even if the program has already
    been successfully run. This is particularly useful when using recurring advertisements in which the program is routinely updated, as with some virus detection software.
    http://www.enhansoft.com/

  • Specific Batch Help Needed

    I batch 100's of images and have sets of actions I use for
    different objectives. I'm looking to tie them together to eliminate
    all manual effort. Some things I do Fireworks makes me do them
    manually (or I don't know how to do it through batching). If
    someone is willing to lend extensive help or if I need specific
    code written to help me I'm willing to pay. Here are my issues:
    1. During my process I paste one image (a copyright image) on
    top of the image I'm batching. This makes me batch halfway through
    my process, open all images, manually copy and paste the copyright
    image on the images I'm working with, re-save, then continue the
    batching process. Is there a way to paste a separate consistent
    image on top of another through batching so I don't have to stop
    and do this manually?
    2. I start with a jpg file and during the process save edited
    files as png. Currently, I batch the save as command but have to
    click OK to save the file just you would if you were doing save as
    with one file. This slows down the batching plus I have to sit here
    and hit enter every 10 seconds. Can this be automated?
    3. In one process I apply a mask to an image that already has
    a mask. During batching a box pops up and asks if I want to
    replace, add or cancel the mask since the image already has a mask.
    Can this be automated so I don't have to click replace for every
    image?
    Thanks for your help. If I need to speak with a developer
    feel free to pass on info and I will contact you or them.

    Hello river east,
    I'm just spitballing here, but here is one option for this to work.
    Basically you would create a secure zone and if the user isn't signed in they wouldn't see the Add to Cart button.
    The js would look like this - http://jsfiddle.net/chaddidthis/uDmXj/1/
    As a part of signing up for the secure zone they have to accept the gun and ammo purchasing terms. You could have the link to the form on the large product page, sends them to either log in or sign up via the form they need to fill out. After then fill out the form they are sent back a page sending them back into the large product view they were on, and since they are signed in now the product will be able to add to cart.
    Maybe this will spark others to add on to this, but that is pretty much the only way I could think to accomplish the desired results.
    Hope it helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • Group Policy Item level targeting LDAP Query for specific AD Sites

    Hi Everyone,
    I'm looking to try and take advantage of Group Policy Preference Item Level Targeting to publish user Proxy settings based on what AD Site a user is located in.
    The company I work for has multiple proxies (for multiple regions). We have hundreds of AD Sites listed within our AD S and S setup. I know that I could potentially list every AD Site that requires a particular proxy, but this would generate additional admin
    overhead each time a new site is commissioned, as well as each time a site is decommissioned (this is a construction company, so may "sites" can fluctuate rapidly).
    Due to this, I would like to know if it is possible to filter by LDAP query, and filter for each proxy, based on a portion of the text/name of the AD Sites (as we use a specific naming convention for our sites, this could be dynamic enough for us to not
    have to add or remove additional AD sites).
    Is this possible, and, if so, how would I write the LDAP Filter/Query??
    Right now I would assume I would do it in the following manner:
    (&(objectCategory=site)(objectClass=site)(cn=AU-*)
    Any assistance would be greatly appreciated.
    Cheers,
    Simon

    > Right now I would assume I would do it in the following manner:
    >
    > (&(objectCategory=site)(objectClass=site)(cn=AU-*)
    Sites do NOT reside in the domain partition, but in the configuration
    partition... You can verify your LDAP filter with
    dsquery * -filter "(your filter here)"
    This query will return all matching objects' distinguished names (DN).
    But why don't you use the "Sites" ILT instead? This ILT supports ? and *
    as wildcards, so it might be sufficient.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Delivery Creation for an STO - Help needed!!

    I have a requirement to update an STO ( quantities etc) , subsequently create a Delivery for the changed STO .... Now , the processing is, of an Inbound IDoc by a Custom Function Module .... Initially I was creating the delivery with a BDC on VL10B ... it was working fine whenever we processed an IDoc template in WE19 or reprocess an IDoc using BD73... Now, whenever an actual IDoc is received from the external system , the VL10B transaction fails ( GUI exception is raised).... According to OSS note 310022 , VL10* transactions do not have GUI support .. the note also mentions that the solution to the problem is to call the background program RVV50R10C ....
    I used a SUBMIT within my function module to RVV50R10C supplying the necessary selection parametes ... but the problem still persists .... In ST22 .. the dump for the rfc user is appearing as:
    "The termination occurred in the ABAP program "CL_GUI_CUSTOM_CONTAINER=======CP"
    in "CONSTRUCTOR".
    The main program was "RVV50R10C ". "
    Please help !!! Top priority problem!!!

    Try using the function module BAPI_DELIVERYPROCESSING_EXEC instead:
    Ex:
    form bapi_create_deliveries tables gtab_data structure zre029_crea_del
                                using  gw_ebeln
                                gw_tcode.
      data: ptab_request type  bapideliciousrequest occurs 0 with header line,
            ptab_items   type table of bapideliciouscreateditems,
            ptab_return  type table of bapiret2,
            pwa_request  type bapideliciousrequest.
      data: pw_error_occured,
            pwa_return type bapiret2,
            pwa_data   type zre029_crea_del.
    *        gw_frgzu   TYPE ekko-frgzu.
      constants: begin of pw_msgty,
                   error      like syst-msgty value 'E',
                   abend      like syst-msgty value 'A',
                   warning    like syst-msgty value 'W',
                   info       like syst-msgty value 'I',
                   success    like syst-msgty value 'S',
                 end of pw_msgty.
      clear gtab_data.
      loop at gtab_data into gwa_data.
        ptab_request-document_type          = 'B'.
        ptab_request-delivery_date          = sy-datum.
        ptab_request-document_numb          = gw_ebeln.
        ptab_request-document_item          = gwa_data-ebelp.
        ptab_request-quantity_sales_uom     = gwa_data-menge.
        ptab_request-sales_unit             = gwa_data-meins.
        ptab_request-document_type_delivery = 'NL'.
        append ptab_request.
      endloop.
      call function 'BAPI_DELIVERYPROCESSING_EXEC'
        tables
          request      = ptab_request
          createditems = ptab_items
          return       = ptab_return.
    * check protocol
      loop at ptab_return into pwa_return.
        if pwa_return-type = pw_msgty-error or
           pwa_return-type = pw_msgty-abend.
          message id pwa_return-id type pwa_return-type
                                  number pwa_return-number.
          pw_error_occured = 'X'.
          message e001(vl) with 'Unable to create deliveries, errors with BAPI!!!'.
          exit.
        endif.
      endloop.
      if pw_error_occured is initial.
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
      endif.
    Leonardo De Araujo

  • Issue for self consumption - Help needed

    Hi,
    We need to urgently issue a finished material (produced by us) for building wall construction.
    MY excise dept says that i need to pay duty as well as i can claim Cenvat Credit as input material.
    So how to map this process in SAP.
    Regards
    all answers will be suitably rewarded.

    If the matter is only creating Excise Liability, It can be done through Excise JV, through T.Code: <b>J1IH</b>. You can use the Tab <b>Additional Duty</b> or <b>Other Adjustment</b>. Document Number is Text Field & ant text can be maintained in It. Fill all other relevant details. In next screen, you will be able to maintain the relevant Excise Duty with or without material. Ofcourse, no Invoice can be generated for the same.
    Regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • Table Names for CIN transactions -Help needed

    Hi,
    "Please teach us the table names which are updated with below transaction. Since it will be necessary for add-on development.
    1. J1IH
    2. J1IIN
    3. J1IJ
    4. J1IS
    5. J1IEX
    6. J1IG
    Please help me..
    Thanks
    KB

    With help of ABAPer, try using trace (ST05) and find the tables used in these t-codes.

  • Class com.ibm.jsse.be configured for a TrustManagerFactory : Help needed

    Hi
    I am getting the following runtime error when trying for a HTTPS connection from my java code.
    Runtime Error : Class com.ibm.jsse.be configured for a TrustManagerFactory: not a TrustManagerFactory Action: 4 Class: com.americanexpress.teen.common.fis.FISInterface Method: getFISTestData(String fisURL) Exception:java.net.SocketException: Class com.ibm.jsse.be configured for a TrustManagerFactory: not a TrustManagerFactory
         at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.b(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bs.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bs.o(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.<init>(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.p.b(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.p.connect(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getInputStream(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getHeaderField(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getResponseCode(Unknown Source)
         at com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection.getResponseCode(Unknown Source)
         at com.americanexpress.teen.common.fis.FISInterface.getFISTestData(FISInterface.java:2238)
         at org.apache.jsp._fisTestPage._jspService(_fisTestPage.java:112)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    My application is trying to a https://xyz.com from java code and i am getting the above exception.
    I tried connecting to "https://xyz.com " from my workspace via Websphere 5.1 server and my server is throwing the above exception. I have extened the ibmjsse provided by WAS 5.1 and using it for connecting to the HTTPS URL.
    I feel the above problem might be due to network issues. Please help me in resolving the same.
    Thanks in advance !!!!!

    Steps i have done to ensure the connectivity :
    Method A :
    1) I imported the pfx and CA certificates given by xyz.com in my web browser (IE)
    2) After that, I tried connecting to "https://xyz.com" from browser and getting a proper response.
    Method B :
    1) I updated the jre cacert with CA certificate given by xyz.com
    2) Loaded the pfx keystore from my java client code program and ran it as a java standalone code and got the proper response.
    My java code
    import java.io.*;
    import java.net.*;
    import javax.net.ssl.HttpsURLConnection;
    import javax.net.ssl.*;
    import java.security.*;
    import java.sql.Time;
    public class HTTPSConnect{
         public static void main(String[] args)
                   URL url;
                   StringBuffer buffer;
                   String line;
                   int responseCode=0;
                   HttpsURLConnection connection = null;
                   InputStream input;
                   BufferedReader dataInput;
                   //FIS Sample URL
                   String fisURL = "https://xyz.com";
                   String fisResp = "";
                   try
                   Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                   System.setProperty("javax.net.debug", "all");
                   String path = "F:\\MyCertificate.pfx";
                   String type = "pkcs12";
                   String password = "abc123";
                   System.setProperty("javax.net.ssl.keyStoreType", type);
                   System.setProperty("javax.net.ssl.keyStore",path);
                   System.setProperty("javax.net.ssl.keyStorePassword",password);
                        url = new URL(fisURL);
                        //Create the connection
                        connection = (HttpsURLConnection) url.openConnection();
                        connection.setUseCaches(false);
                        //Get the response code for the HTTPS connection
                        responseCode = connection.getResponseCode();
                   if (200 == responseCode)
                        buffer = new StringBuffer();
                        //Getting the FIS Response XML using the Stream reader
                        input = connection.getInputStream();
                        dataInput = new BufferedReader(new InputStreamReader(input));
                             while ((line = dataInput.readLine()) != null)
                                  buffer.append(line);
                                  buffer.append('\n');
                        fisResp = (String) buffer.toString().trim();
                   else
                        System.out.println("HTTP Status-Code : " + responseCode);
                   catch (MalformedURLException mue)
                        System.out.println("Exception in URL : " + mue.getMessage() );
                        mue.printStackTrace();
                   catch (IOException ioe)
                        System.out.println("IO Exception : " + ioe.getMessage() );
                        ioe.printStackTrace();
                   catch (Exception e)
                        System.out.println("Exception : " + e.getMessage() );
                        e.printStackTrace();
                   System.out.println("FIX XML Response : " + fisResp);
                   System.out.println("Response Code of HTTPS Connection : " + responseCode);
    Please let me know if i am missing something :)

  • Volunteer in Uganda struggling for iTunes update, help needed!

    I cannot connect my iphone 3GS to the macbook I have been issued with because the version of itunes on it is too old.  When I attempt to update it I get a message saying that the server cannot be verified, I select the option to continue anyway only to then by told that the server cannot be contacted.
    I am on a satelite uplink system in rural south western Uganda.  There is almost no music on this macbook but I have authorised this macbook and I want to sync with it.  Any advice?

    I think you are stuck for a bit Norman. iTunes 11.1.1 and is not working with my 3GS which can not be updated to iOS 7. You can not get iTunes 11.0.5 as a download from Apple, and it worked fine with the 3GS.
    You can use PhoneView from eccam or Senti to copy the music from the iPhone to your Mac, where you should be able to play then through iTunes then.
    Either is a lot smaller than an iTunes update, so should help with the satelite link.

Maybe you are looking for

  • My bill is almost double my plan each month and I never talk on my phone....

    I have a $60 per month plan.  I never go over my minutes for talking because all I do is text.  I use my phone for smart phone services obviously but NEVER go over my allowed usage.  But every month my bill is between $110 and $115, even though my pl

  • Help if you can please!! deleted ical....

    hey everyone, my friend has a huge problem and if anyone can shed some light, it really would be most apreciated!! anyway, here's the problem.... my mate uses ical for her job, keeping her appointments for her buisness and such like. another person u

  • WEBUTIL_C_API Demo Form

    A number of people have asked me about WEBUTIL_C_API, and I have offered to contribute a simple form that demonstrates how one can use this built-in to access the Windows API. I have prepared a reasonably simple and straight-forward example, but I am

  • How do i start a program with the window maximized

    Hi, i have a couple of programs that i have created launchers for. The slight bother is i have to click on the maximize buttons for the programs to fully resize and fit the screen. Was wondring if there is a flag i can add to the command to ensure it

  • Grafiktablett Trust Kompatibel ?(Pinselspitze)

    Hi, in der Suchfunktion war nix zu finden.. falls falsch oder schon beantwortet bitte verschieben - bzw. verlinken. In einigen Tuts wird mit solchen Pinselspitzen gearbeitet: http://www.forstpage.de/Spitze1.jpg (hier das Tut: http://static.animexx.de