How Client Browser Understand Server response

Hi Experts,
Iam new to java advance Technology. I hava a simple doubt, that "How Client Browser Understand Server response".
suppose if u open multiple Browsers and u typing same URL in all browser window(www.rediffmail.com). The server will generate response for requested resources. I dont no how the response will received by client browser without any conflit.
I need to know, whether the browser attach any ID to requested URL (or) any other machanism which helps the identification.
plz reply with example
Thank u

Hi praks_it,
"How Client Browser Understand Server response".
I dont no how the response will received by client browser without any conflit.
I need to know, whether the browser attach any ID to requested URL (or) any other machanism which helps the identification.
The answers to all the above of ur questions is the HTTP (Hyper Text Transfer Protocol).
It is a mechanism developed and documented by the W3C (World Wide Web Consortium) which specifies all needs for internet and browsers.
Check out the following links and u'll gain more on the subject :
1) http://www.google.co.in/search?hl=en&lr=&oi=defmore&q=define:HTTP
2) http://www.w3.org/Protocols/rfc2616/rfc2616.html (recommended).
Hope this helps.
Cheers !!
Sherbir

Similar Messages

  • How Client interact with Server in regular interval

    Hi friends,'
    I want to develop a chat server where the user should sent the request to server in background(as server can not sent response unless the request appears).So on regular request from the Client the server check the updation in database and sent the correspong message to user.
    How can i do this where the Client should interact with server in regular interval?
    Is there any other way to accomplish this ,any reference guide /tutorial to develop this ?
    Regards,
    Sachin Warang.

    You could add an <meta http-equiv="refresh" content="5;http://yourhost/context/servlet/"> to the HTML which will refresh the page every 5 seconds (change the 5 to 10 for every 10 seconds, etc.). The other way is to set up a JavaScript timer and use an XmlHttpRequest to make an asynchronous call to the server and update the HTML dynamically (using DOM) when a response is received (AJAX). Lastly, you could implement the client as an Applet, which gives you a much richer feature set and is a lot cleaner (having half of your app in JavaScript/DHTML is kind of messy).
    There are some vendors, such as IceSoft (http://www.icesoft.com/) producing JSF components that do the AJAX stuff transparently, so you just code a normal JSF app using their components and wire up to bean action methods where you need to.
    - Jesse

  • How can I get server response messages?

    Hi,
    I need to list every message what server sends back as response of my request.
    Thanks a lot.

    Thanks for taking your time.
    I've found the log file you mentioned. But I don't think that this file has all the information I need such as cookie string. You can see the lines belong to the time of the first request.
    127.0.0.1 - - [13/Jun/2003:17:50:19 +0200] "HEAD /waiting-for-a-404.html HTTP/1.1" 404 146
    <ip> - - [13/Jun/2003:17:50:23 +0200] "GET /sampleproject-context-root/sample.jsp HTTP/1.1" 302 958
    <ip> - - [13/Jun/2003:17:50:34 +0200] "GET /sampleproject-context-root/deny.html HTTP/1.1" 304 0
    <ip> - - [13/Jun/2003:17:50:34 +0200] "GET /sampleproject-context-root/index.html HTTP/1.1" 304 0
    <ip> - - [13/Jun/2003:17:50:35 +0200] "GET /sampleproject-context-root/top.html HTTP/1.1" 304 0
    <ip> - - [13/Jun/2003:17:50:35 +0200] "GET /sampleproject-context-root/welcome.html HTTP/1.1" 304 0
    <ip> - - [13/Jun/2003:17:50:35 +0200] "GET /sampleproject-context-root/left.jsp HTTP/1.1" 200 7964
    <ip> - - [13/Jun/2003:17:50:35 +0200] "GET /sampleproject-context-root/general.css HTTP/1.1" 304 0
    <ip> - - [13/Jun/2003:17:50:35 +0200] "GET /sampleproject-context-root/general.css HTTP/1.1" 304 0

  • How to display an html located in server to client browser?

    Hi,
    i want to display an html file located at the server to a client browser. how can i do it? and i want the user to select the particular file thru an open dialog box. will it be possible?
    regds,
    Abhi...

    in general about files :
    http://forum.java.sun.com/thread.jsp?forum=45&thread=522723&start=0&range=15#2502318
    simple for html: soemdecription

  • How to refresh a client's browser from server without using Timer !

    Hi,
    can anyone have the code for refreshing the client's browser from server side with out setting the timer . U can do this by setting the Timer from server. but we need some other solution for this problem.
    Thanks.

    There's a meta tag for it.
    Kind regards,
      Levi

  • KMS client activation failed, but got server response?

    I've been using KMS for several years. Generally there are no problems with KMS, but I have a single machine that is refusing to activate, and I cannot determine why. I've been doing extensive web searching but I'm not finding anything useful.
    Windows 7 Pro client is using the Windows 7 Pro KMS client key GPDD4 as usual.
    KMS Server is in Windows 2008 R2
    The event log says the client is getting a response from KMS server (see below).
    ============================
    Server: slmgr /dlv
    Name: Windows Server(R), ServerStandard edition
    Description: Windows Operating System - Windows Server(R), VOLUME_KMS_R2_B channel
    Partial Product Key: 7GCM2
    License Status: Licensed
    Key Management Service is enabled on this machine
        Current count: 50
        Listening on Port: 1688
        DNS publishing enabled
        KMS priority: Normal
    Key Management Service cumulative requests received from clients
        Total requests received: 444
        Failed requests received: 297
        Requests with License Status Unlicensed: 0
        Requests with License Status Licensed: 86
        Requests with License Status Initial grace period: 12
        Requests with License Status License expired or Hardware out of tolerance: 2
        Requests with License Status Non-genuine grace period: 0
        Requests with License Status Notification: 47
    ===============================
    Client ability to find KMS Server: 
    C:\Users\foo>nslookup -type=srv _vlmcs._tcp
    Server:  UnKnown
    Address:  172.20.0.8
    _vlmcs._tcp.XXXXXXXXXXXX        SRV service location:
              priority       = 0
              weight         = 0
              port           = 1688
              svr hostname   = dc3.XXXXXXXXXXX
    dc3.XXXXXXXXX        internet address = 172.20.0.11
    ===============================
    Client: slmgr /dlv
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Software licensing service version: 6.1.7601.17514
    Name: Windows(R) 7, Professional edition
    Description: Windows Operating System - Windows(R) 7, VOLUME_KMSCLIENT channel
    Activation ID: b92e9980-b9d5-4821-9c94-140f632f6312
    Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00371-00170-868-000000-03-1033-7601.0000-2092014
    Installation ID: 011751536521019726056115618440708701492313365893152065
    Partial Product Key: GPDD4
    License Status: Initial grace period
    Time remaining: 43200 minute(s) (30 day(s))
    Remaining Windows rearm count: 1
    Trusted time: 7/28/2014 9:36:41 AM
    Please use slmgr.vbs /ato to activate and update KMS client information in order to update values.
    =========================
    Client:    slmgr /ato
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    Activating Windows(R) 7, Professional edition (b92e9980-b9d5-4821-9c94-140f632f6312) ...
    Error: Product activation failed.
    =========================
    Client: Application Event log
    Security-SPP Event ID 12288
    The client has sent an activation request to the key management service machine.
    Info:
    0x00000000, 0x00000000, dc3.XXXXXXXXXX:1688, 637b796e-5348-4ce1-b0b5-4d750e9d471e, 2014/07/28 14:43, 0, 2, 43200, b92e9980-b9d5-4821-9c94-140f632f6312, 25
    Security-SPP Event ID 12289
    The client has processed an activation response from the key management service machine.
    Info:
    0x00000000, 0x00000000, 1, 0, 50, 120, 10080, 2014/07/28 14:43
    Security-SPP Event ID 1033
    These policies are being excluded since they are only defined with override-only attribute.
    Policy Names=(IIS-W3SVC-MaxConcurrentRequests) (Microsoft.Windows.Smc-Enabled) (Shell-InBoxGames-FreeCell-EnableGame) (Shell-InBoxGames-Hearts-EnableGame) (Shell-InBoxGames-Minesweeper-EnableGame) (Shell-InBoxGames-PurblePlace-EnableGame) (Shell-InBoxGames-Shanghai-EnableGame)
    (Shell-InBoxGames-Solitaire-EnableGame) (Shell-InBoxGames-SpiderSolitaire-EnableGame) (Shell-MultiplayerInboxGames-Backgammon-EnableGame) (Shell-MultiplayerInboxGames-Checkers-EnableGame) (Shell-MultiplayerInboxGames-Spades-EnableGame) (Shell-PremiumInBoxGames-Chess-EnableGame)
    (Telnet-Client-EnableTelnetClient) (Telnet-Server-EnableTelnetServer) (TiffIFilterLicensing-EnableTiffIFilter) (WindowsAnytimeUpgrade-CanUpgrade) 
    App Id=55c92734-d682-4d71-983e-d6ec3f16059f
    Sku Id=b92e9980-b9d5-4821-9c94-140f632f6312
    Security-SPP Event ID 1003
    The Software Protection service has completed licensing status check.
    Application Id=55c92734-d682-4d71-983e-d6ec3f16059f
    Licensing Status=
    1: 4de78642-0f7f-4b61-9392-8add86d70ae8, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    2: 50e329f7-a5fa-46b2-85fd-f224e5da7764, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    3: 5a79ecd8-d33f-406c-a619-7785899b5d59, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    4: 770bc271-8dc1-467d-b574-73cbacbeccd1, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    5: 90a61a0d-0b76-4bf1-a8b8-89061855a4c9, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    6: 92f9d22a-65f5-49a7-90fe-06491b4fc379, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    7: 9abf5984-9c16-46f2-ad1e-7fe15931a8dd, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    8: 9ccffaf9-86a2-414e-b031-b2f777720e90, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    9: b92e9980-b9d5-4821-9c94-140f632f6312, 1, 0 [(0 [0xC004E003, 0, 0], [( 1 0x80070057 30 0 msft:rm/algorithm/volume/1.0 0x00000000 0)(?)( 1 0x80070057 30 0 msft:rm/algorithm/volume/1.0 0x00000000 0)(?)(?)(?)])(1 )(2 [0x00000000, 0, 1], [(?)( 5 0x00000000 30
    43200)( 1 0x00000000 0 0 msft:rm/algorithm/flags/1.0 0x00000000 0)(?)(?)(?)])]
    10: c1027486-8ae8-4633-9cf9-9658ed80504d, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    11: c1e88de3-96c4-4563-ad7d-775f65b1e670, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    12: c33001fc-5e9c-4f27-8c05-e0154adb0db4, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    13: cf3c5b35-35ff-4c95-9bbd-a188e47ad14c, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    14: cff07cac-7534-4cc3-b3f3-99e1a0aa3c20, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    15: d188820a-cb63-4bad-a9a2-40b843ee23b7, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    16: d8e04254-f9a5-4729-ae86-886de6aa907c, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    17: da22eadd-46dc-4056-a287-f5041c852470, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    18: e120e868-3df2-464a-95a0-b52fa5ada4bf, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    19: e838d943-63ed-4a0b-9fb1-47152908acc9, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    20: 4a8149bb-7d61-49f4-8822-82c7bf88d64b, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    21: afd5f68f-b70f-4000-a21d-28dbc8be8b07, 1, 0 [(0 [0xC004F014, 0, 0], [(?)(?)(?)(?)(?)(?)])(1 )(2 )]
    Security-SPP Event ID 1003
    The Software Protection service has completed licensing status check.
    Application Id=55c92734-d682-4d71-983e-d6ec3f16059f
    Licensing Status=
    1: b92e9980-b9d5-4821-9c94-140f632f6312, 1, 1 [(0 [0xC004E003, 0, 0], [( 1 0x80070057 30 0 msft:rm/algorithm/volume/1.0 0x00000000 0)(?)( 1 0x80070057 30 0 msft:rm/algorithm/volume/1.0 0x00000000 0)(?)(?)(?)])(1 )(2 [0x00000000, 0, 1], [(?)( 5 0x00000000 30
    43200)( 1 0x00000000 0 0 msft:rm/algorithm/flags/1.0 0x00000000 0)(?)(?)(?)])]
    ============================
    Client MGA output:
    Diagnostic Report (1.9.0027.0):
    Windows Validation Data-->
    Validation Code: 0
    Cached Online Validation Code: N/A, hr = 0xc004f012
    Windows Product Key: *****-*****-J8D7P-XQJJ2-GPDD4
    Windows Product Key Hash: xgsndMkYdJsYmUng0qIJ/thx+HI=
    Windows Product ID: 00371-868-0000007-85411
    Windows Product ID Type: 1
    Windows License Type: KMS Client
    Windows OS version: 6.1.7601.2.00010100.1.0.048
    ID: {5A310AE8-BFD2-49F1-A8BF-688D339981E8}(3)
    Is Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: N/A, hr = 0x80070002
    Signed By: N/A, hr = 0x80070002
    Product Name: Windows 7 Professional
    Architecture: 0x00000009
    Build lab: 7601.win7sp1_gdr.140303-2144
    TTS Error: 
    Validation Diagnostic: 
    Resolution Status: N/A
    Vista WgaER Data-->
    ThreatID(s): N/A, hr = 0x80070002
    Version: N/A, hr = 0x80070002
    Windows XP Notifications Data-->
    Cached Result: N/A, hr = 0x80070002
    File Exists: No
    Version: N/A, hr = 0x80070002
    WgaTray.exe Signed By: N/A, hr = 0x80070002
    WgaLogon.dll Signed By: N/A, hr = 0x80070002
    OGA Notifications Data-->
    Cached Result: N/A, hr = 0x80070002
    Version: N/A, hr = 0x80070002
    OGAExec.exe Signed By: N/A, hr = 0x80070002
    OGAAddin.dll Signed By: N/A, hr = 0x80070002
    OGA Data-->
    Office Status: 100 Genuine
    Microsoft Office Professional Plus 2007 - 100 Genuine
    OGA Version: N/A, 0x80070002
    Signed By: N/A, hr = 0x80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005_E2AD56EA-765-b01a_E2AD56EA-766-0_E2AD56EA-148-80004005_16E0B333-89-80004005_B4D0AA8B-1029-80004005
    Browser Data-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default Browser: C:\Program Files\Internet Explorer\iexplore.exe
    Download signed ActiveX controls: Prompt
    Download unsigned ActiveX controls: Disabled
    Run ActiveX controls and plug-ins: Allowed
    Initialize and script ActiveX controls not marked as safe: Disabled
    Allow scripting of Internet Explorer Webbrowser control: Disabled
    Active scripting: Allowed
    Script ActiveX controls marked as safe for scripting: Allowed
    File Scan Data-->
    Other data-->
    Office Details: <GenuineResults><MachineData><UGUID>{5A310AE8-BFD2-49F1-A8BF-688D339981E8}</UGUID><Version>1.9.0027.0</Version><OS>6.1.7601.2.00010100.1.0.048</OS><Architecture>x64</Architecture><PKey>*****-*****-*****-*****-GPDD4</PKey><PID>00371-868-0000007-85411</PID><PIDType>1</PIDType><SID>S-1-5-21-3521851180-3244512111-2218252725</SID><SYSTEM><Manufacturer>Dell
    Inc.</Manufacturer><Model>Inspiron 546 </Model></SYSTEM><BIOS><Manufacturer>Dell Inc.</Manufacturer><Version>A09</Version><SMBIOSVersion major="2" minor="5"/><Date>20090808000000.000000+000</Date></BIOS><HWID>095F3D07018400F6</HWID><UserLCID>0409</UserLCID><SystemLCID>0409</SystemLCID><TimeZone>Central
    Standard Time(GMT-06:00)</TimeZone><iJoin>1</iJoin><SBID><stat>3</stat><msppid></msppid><name></name><model></model></SBID><OEM><OEMID>DELL  </OEMID><OEMTableID>FX09
      </OEMTableID></OEM><GANotification/></MachineData><Software><Office><Result>100</Result><Products><Product GUID="{90120000-0011-0000-0000-0000000FF1CE}"><LegitResult>100</LegitResult><Name>Microsoft
    Office Professional Plus 2007</Name><Ver>12</Ver><Val>1208E0A87E81D86</Val><Hash>FlQRxKwAwaRad03SQZkKxNggIRU=</Hash><Pid>89409-707-0082056-65245</Pid><PidType>14</PidType></Product></Products><Applications><App
    Id="15" Version="12" Result="100"/><App Id="16" Version="12" Result="100"/><App Id="18" Version="12" Result="100"/><App Id="19" Version="12"
    Result="100"/><App Id="1A" Version="12" Result="100"/><App Id="1B" Version="12" Result="100"/><App Id="44" Version="12" Result="100"/></Applications></Office></Software></GenuineResults>
    Spsys.log Content: 0x80070002
    Licensing Data-->
    Software licensing service version: 6.1.7601.17514
    Name: Windows(R) 7, Professional edition
    Description: Windows Operating System - Windows(R) 7, VOLUME_KMSCLIENT channel
    Activation ID: b92e9980-b9d5-4821-9c94-140f632f6312
    Application ID: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00371-00170-868-000000-03-1033-7601.0000-2092014
    Installation ID: 011751536521019726056115618440708701492313365893152065
    Partial Product Key: GPDD4
    License Status: Initial grace period
    Time remaining: 43200 minute(s) (30 day(s))
    Remaining Windows rearm count: 1
    Trusted time: 7/28/2014 9:31:36 AM
    Please use slmgr.vbs /ato to activate and update KMS client information in order to update values.
    Windows Activation Technologies-->
    HrOffline: 0x00000000
    HrOnline: 0xC004C533
    HealthStatus: 0x0000000000000000
    Event Time Stamp: 6:23:2014 07:16
    ActiveX: Registered, Version: 7.1.7600.16395
    Admin Service: Registered, Version: 7.1.7600.16395
    HealthStatus Bitmask Output:
    HWID Data-->
    HWID Hash Current: MgAAAAEABAABAAEAAAACAAAAAQABAAEAJJRe04hAjl+cEVTyEDPMabbK6kXsLQilArQ=
    OEM Activation 1.0 Data-->
    N/A
    OEM Activation 2.0 Data-->
    BIOS valid for OA 2.0: no, invalid Windows marker
    Windows marker version: N/A
    OEMID and OEMTableID Consistent: N/A
    BIOS Information: 
      ACPI Table Name OEMID Value
    OEMTableID Value
      APIC DELL  
    FX09   
      FACP DELL  
    FX09   
      HPET DELL  
    OEMHPET 
      MCFG DELL  
    OEMMCFG 
      SLIC DELL  
    FX09   
      OSFR DELL  
    FX09   
      OEMB DELL  
    FX09   
      SSDT A M I
    POWERNOW
    ================================
    Windows 7 Pro was installed on this machine using Microsoft's volume activation media, and is a standard image applied via Windows Deployment Services to some 200 other computers with no problems. 
    We also use a variety of surplus/off-lease machines, usually Dell brand, never with any activation problems.

    It's a Dell Inspiron desktop. Apparently a "for the home" system? Yet it was bought with Win 7 Pro OEM installed, and so I had hoped I could roll it into the KMS easily. Tried updating the BIOS but still acts the same.
    How can a "home edition" BIOS that's incompatible with KMS come with Win 7 Pro OEM?
    Oddly, we have several Dell XPS systems that are using KMS just fine. Those are almost exclusively marketed as "power gamer" systems for home use. I should see if there's some way to figure out which specific Dell products do this so they can be avoided.
    Fortunately it seems Windows 7 Pro edition software does not care if I use the OEM key from the sticker, so I typed that in and it activated.
    (Great, one weird machine that has to be treated specially from everything else we've got.)
    Probably a question for Dell to answer. For whatever reason, Dell have not performed all the necessary OEM Activation (OA) configuration tasks on this machine, perhaps due to their manufacturing/marketing strategy for this model, or perhaps due to a defective
    configuration pass in the factory. Perhaps the mainboard in this machine was repaired or replaced at some stage, and wasn't correctly re-configured. Only Dell can resolve the missing marker, since it requires OEM tools.
    Activating using the COA sticker product key, doesn't depend on the marker being present.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Async tcp client and server. How can I determine that the client or the server is no longer available?

    Hello. I would like to write async tcp client and server. I wrote this code but a have a problem, when I call the disconnect method on client or stop method on server. I can't identify that the client or the server is no longer connected.
    I thought I will get an exception if the client or the server is not available but this is not happening.
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    How can I determine that the client or the server is no longer available?
    Server
    public class Server
    private readonly Dictionary<IPEndPoint, TcpClient> clients = new Dictionary<IPEndPoint, TcpClient>();
    private readonly List<CancellationTokenSource> cancellationTokens = new List<CancellationTokenSource>();
    private TcpListener tcpListener;
    private bool isStarted;
    public event Action<string> NewMessage;
    public async Task Start(int port)
    this.tcpListener = TcpListener.Create(port);
    this.tcpListener.Start();
    this.isStarted = true;
    while (this.isStarted)
    var tcpClient = await this.tcpListener.AcceptTcpClientAsync();
    var cts = new CancellationTokenSource();
    this.cancellationTokens.Add(cts);
    await Task.Factory.StartNew(() => this.Process(cts.Token, tcpClient), cts.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
    public void Stop()
    this.isStarted = false;
    foreach (var cancellationTokenSource in this.cancellationTokens)
    cancellationTokenSource.Cancel();
    foreach (var tcpClient in this.clients.Values)
    tcpClient.GetStream().Close();
    tcpClient.Close();
    this.clients.Clear();
    public async Task SendMessage(string message, IPEndPoint endPoint)
    try
    var tcpClient = this.clients[endPoint];
    await this.Send(tcpClient.GetStream(), Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async Task Process(CancellationToken cancellationToken, TcpClient tcpClient)
    try
    var stream = tcpClient.GetStream();
    this.clients.Add((IPEndPoint)tcpClient.Client.RemoteEndPoint, tcpClient);
    while (!cancellationToken.IsCancellationRequested)
    var data = await this.Receive(stream);
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(NetworkStream stream, byte[] buf)
    await stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive(NetworkStream stream)
    var lengthBytes = new byte[4];
    await stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await stream.ReadAsync(buf, 0, buf.Length);
    return buf;
    Client
    public class Client
    private TcpClient tcpClient;
    private NetworkStream stream;
    public event Action<string> NewMessage;
    public async void Connect(string host, int port)
    try
    this.tcpClient = new TcpClient();
    await this.tcpClient.ConnectAsync(host, port);
    this.stream = this.tcpClient.GetStream();
    this.Process();
    catch (Exception exception)
    public void Disconnect()
    try
    this.stream.Close();
    this.tcpClient.Close();
    catch (Exception exception)
    public async void SendMessage(string message)
    try
    await this.Send(Encoding.ASCII.GetBytes(message));
    catch (Exception exception)
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.SafeInvoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    private async Task Send(byte[] buf)
    await this.stream.WriteAsync(BitConverter.GetBytes(buf.Length), 0, 4);
    await this.stream.WriteAsync(buf, 0, buf.Length);
    private async Task<byte[]> Receive()
    var lengthBytes = new byte[4];
    await this.stream.ReadAsync(lengthBytes, 0, 4);
    var length = BitConverter.ToInt32(lengthBytes, 0);
    var buf = new byte[length];
    await this.stream.ReadAsync(buf, 0, buf.Length);
    return buf;

    Hi,
    Have you debug these two applications? Does it go into the catch exception block when you close the client or the server?
    According to my test, it will throw an exception when the client or the server is closed, just log the exception message in the catch block and then you'll get it:
    private async void Process()
    try
    while (true)
    var data = await this.Receive();
    this.NewMessage.Invoke(Encoding.ASCII.GetString(data));
    catch (Exception exception)
    Console.WriteLine(exception.Message);
    Unable to read data from the transport connection: An existing   connection was forcibly closed by the remote host.
    By the way, I don't know what the SafeInvoke method is, it may be an extension method, right? I used Invoke instead to test it.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How many cpus on server are allocated to client

    hello,
    its not an issue rather doubt which is hunting me from last 2-3 days.
    My 10gR2 Oracle database running on
    Widows server 2008 R2 Enterprise
    Processor ----> intel Xeon cpu [email protected] GHz (4 processor)
    RAM------>8GB
    its a dedicated server.
    Actually i was going through the AWR report whn one of the client came to me with slow database performance during some time interval.
    when i had a look at the Top 5 Timed Events in Report it showed me the
    Sql*net message from client      834.35si told them to run their query so that i can have trace of that.
    then time event showed me something nearer to above and our database was taking only 15 sec to carry out the task.
    i told them that
    "you application/client is taking 834 sec to tell our database to do something.But once the database got your application's request to carry out something, the database is taking only 15 sec to provide you with the result"
    so they asked me to justify that the problem is with application side/machine side.
    After digging in a lot on the internet ground, chatting with my colleges on cell phone and running through many threads specially Asktom.oracle.com, i got really confused.
    They came up with varied opinions which kept me thinking again & again over the same thing.
    In one of his(Thomas kyte) thread the discussion was as follows.
    The output of tkprof when the developers run the same program on their PC shows a big difference in
    SQL*Net message from client.
    The SQL*Net message from client from my tkprof is almost 4-5 times theirs.
    Could you please advise what might be the cause of that?
    Thanks
    Followup   August 25, 2009 - 9am Central time zone:
    that could mean.....
    your machine is slow (their desktop cpus blow your server cpus away) as much as anything.
    since their code is not instrumented, try SQL*Net trace (with TIMESTAMPS) can be helpful to check out the time in the network between the client and server. See Note 16658.1 - see if you experience radically different response times on the various machines.
    4 stars   August 25, 2009 - 2pm Central time zone
    Bookmark | Bottom | Top
    Reviewer: Jaklin Ekdawi
    My Database server is T5120 with 4 core 1.2 GHz Ultra SPARC T2 processor (from O/S it is seen as 32
    CPU * 1.2 GHz).
    Their PC has 2 CPU * 4 Ghz.
    Based on the above, How come their PC is more powerful than my server?
    The ASH Report for the execution period of the program shows ¿CPU + Wait for CPU¿ is the top event,
    however, tkprof shows ¿SQL*Net from client¿ is the top event waited on.
    Top User Events
    Event        Event Class    % Activity    Avg Active Sessions
    CPU + Wait for CPU     CPU             81.66        0.14
    log file sync             Commit             5.92        0.01
    db file scattered read     User I/O     2.37        0.00
    Can you please explain why there is a difference between tkprof and ASH report?
    Thank You
    Followup   August 25, 2009 - 8pm Central time zone:
    I only care about a single cpu, your client program is not using more than one.
    I often downloaded stuff from my big bad sparc to my desktop because my desktop was many times faster than the sparc.
    look further down in the ash report - sqlnet message from client is an idle wait, we tend to ignore it as it is the time we spent WAITING FOR THE CLIENT.
    Their pc looks a lot faster than your server since you are only using a single cpu - your client is not multi-process. It only uses a single cpu.
    4 stars   August 25, 2009 - 2pm Central time zone
    Bookmark | Bottom | Top
    Reviewer: Jaklin Ekdawi
    Sorry, I forgot to say that during the execution time the cpu on the server was 98-99% idle based
    on (using top and sar).
    Thanks
    Followup   August 25, 2009 - 8pm Central time zone:
    I agree, because you could not use 31 out of 32 cpus, I would expect it to be almost idle.
    97% idle would mean a single cpu was 100% used. So, it sounds like you were using almost 100% of that single cpu you had access to.
    and it isn't as fast as their pc.
    4 stars   August 25, 2009 - 10pm Central time zone
    Bookmark | Bottom | Top
    Reviewer: Jaklin Ekdawi
    The tkprof from the developer's PC is below
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse      122      0.39       0.68          0        403          0           0
    Execute    122      0.00       0.00          0          0          0           0
    Fetch      396      0.09       0.11          0      25354          0         274
    total      640      0.48       0.80          0      25757          0         274
    Misses in library cache during parse: 122
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                     763        0.00          0.00
      SQL*Net message from client                   763       14.71        312.91
      SQL*Net more data to client                   122        0.00          0.00
    The tkprof for the running the same process on Solaris DB Server
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse      124      0.06       0.03          0          0          0           0
    Execute    124      0.04       0.01          0          0          0           0
    Fetch      400      0.07       0.10          0        802          0         276
    total      648      0.17       0.15          0        802          0         276
    Misses in library cache during parse: 1
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                     774        0.00          0.00
      SQL*Net message from client                   774       43.65        964.23
    - On Solaris DB server, the CPU is 0.17, however, "SQL*Net message from client" is 964.23.
    - On the developer¿s PC, the CPU is 0.48, however, "SQL*Net message from client" is 312.91.
    Based on that, how I can approve it is CPU issue?
    Followup   August 26, 2009 - 7pm Central time zone:
    how about this.
    have the developers write something that mimics what they do without the database in it. Same sorts of loops and processing they do in the code in the client.
    run it on their machine
    run it on yours
    You'll find your big bad server has cpu's that are extremely slow compared to the desktop machine.
    Hence - the time spent waiting for sqlnet message from client is - time spent in YOUR client on YOUR server processing the data returned from the database.
    saying "the cpu 0.17 on one and 0.48 on the other" is meaningless, they are completely different cpus with completely different performance characteristics.
    And that you have 32 of them - no use to you, you use one..
    It looks like your server is about 2-3 times slower then their test machine.
    5 stars SQL*Net Message from client may not be an issue from the app   May 28, 2010 - 8am Central time zone
    Bookmark | Bottom | Top
    Reviewer: Thierry B from Paris, France
    Hi,
    I just read your post as I experienced the exact same problem. I found something that fixed this
    problem for me, my sqlnet.ora contained that line after an oracle upgrade:
    TRACE_LEVEL_CLIENT=16
    I don't know how it came there. But it was the cause of my problem (too long idle time). I simply
    removed it and no more wait events.
    I hope it can be of any help for anyone.
    Followup   May 28, 2010 - 8am Central time zone:
    that is a client side issue though, isn't it. It is an application side issue, not a database side issue.
    5 stars   April 15, 2011 - 10am Central time zone
    Bookmark | Bottom | Top
    Reviewer: A reader in this thread Tom insisted that the client has access to only 1 CPU on the server even though the questioner told him that his machine is having around 32 CPU'S.
    so this thread was the source of my confusion.
    i kept asking myself "if the client application has access to one cpu out of 32 cpu's on the server on which the database server is running,then What is the use of multiprocessor? my oracle/client application has access to only one cpu on the server(like Tom said), what other 31 cpu's on the server machine are upto?if one cpu is getting exhausted by the client Application request, then what the other processor are doing ? are they not meant for load balancing?"
    when i had a chat on cell phone with my colleagues regarding the oracle access to the cpu's on the server, then they told me that if there are more number of cpu's then the the response time would be fast cause workload is divided among the multiple processor to carry out the task in parallel.
    Again i got confused with the deferring opinion..
    so just want to have clarification on
    * how many processes do i have access to on server machine where my oracle is installed?*
    how many processes do the client applicaiton S/W/client machine have access to out of 32 processors?
    is workload devided among the cpus on the server ,in case of huge request from the client application?
    thanks & i hope my doubt would be cleared

    Look at it in basic terms (forgetting for the moment about Oracle and SQL*Net and specific s/w itself).
    A process is loaded into memory. This process contains machine code instructions. How many CPUs can execute these instructions?
    Only 1.
    Simplistically. The process has a single execution pointer and set of CPU registers. A single CPU executes the instruction (as indicated by the execution pointer). The registers are used and updated.
    The same CPU may not be used each time around. So a single process can during its lifetime, be executed by a number of CPUs. But a single CPU at a time.
    A process can thread. This basically means that a second copy of the execution pointer and registers set are created. Each such copy will be executed by by a single CPU at a time.
    An Oracle client is serviced by an Oracle server process (either dedicated or shared). On Linux/Unix systems, this will be a unique physical process. On Windows, it will be a unique thread.
    This process is executed by a single CPU. Thus that client is serviced by a single CPU.
    This changes when Oracle can use parallel processing and there are PX slave processes available. In that case, the client is serviced by a single process - but that process has in turn enlisted the assistance of helper processes. Thus the client is now serviced by multiple processes (or threads on Windows) and thus by multiple CPUs.
    However, it is not that simple either. It is "cheaper" for the kernel to run threads on the same CPU than on different CPUs. The reason is the same memory is used by both and access to that memory by different CPUs is more complex (and thus more expensive and slower) than from the same CPU.
    So depending on a number of factors, that client may still be serviced by a single CPU despite the fact that PX slaves are used. And from a client process perspective, this does not really matter. The crux of the issue in this regard is the CPU utilisation/footprint of that client process on the server.
    If the clock time for a client process says "+running for 60s+" and the server says "+CPU time is 10s+", you cannot say that the process was not serviced by multiple CPUs. You do not know whether than 10s CPU time was for 5 processes each spending 2s to service that client.
    However, when the server says "+CPU time is 70s+" - a longer period that the wall clock time of the client, then it is reasonable to assume that multiple server processes (and thus CPUs) are servicing that client process.
    As for exactly how many CPUs are in fact used by the server? That has no real bearing on this. It does not change client-server behaviour.
    Even Oracle does not know and does not care which CPU is servicing it. The correct piece of s/w to deal with that, is the kernel. Yes, you can bind a thread or process to a specific server CPU, but the reasons for this is quite technical and is always an exception. Let the kernel deal with which CPU to use. It is of no concern to the server s/w (like Oracle), and even less to the client process being serviced by that server s/w.

  • How Redirect browser(client) based on non-negotiable SSL/TLS protocol or cipher

    Hi guys,
    we have a security requirement wherein we have to  force the browsers accessing our asp.net application hosted on windows server 2012 to have atleast tsl 1.1 , but we don't want to simply block the request, instead we would like to redirect the request
    to a unsecured static html page with the instructions on how to get them onto tsl.
    can any one help me here?>? actually i found a similar and exactly same thread on stackoverflow but i think that is probably directed towards linux family.   http://serverfault.com/questions/591188/redirect-browser-based-on-non-negotiable-ssl-tls-protocol-or-cipher
    please help me guys..
    ps: i have posted the same question on IIS forum (http://forums.iis.net/t/1223352.aspx?How+Redirect+browser+client+based+on+non+negotiable+SSL+TLS+protocol+or+cipher+from+IIS)
    and got a reply saying that it can be done at windows kernel level(possibly).

    Hi,
    As far as I know, once SSL handshake fails, no subsequent communication would occur between the server and client.
    Therefore, as the way I see it, the goal cannot be achieved.
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • How to validate a server in client-server application

    I am considering a client server application for a masters project. One of the core requirements for this application would be to ensure that the server could not be replaced. This would be easy to do using public/private keys. The client creates a message and encrypts using servers public key, then sends to the server. The server decrypts, processes, creates response, and encrypts using its private key. This works, however the public and private keys need to be in the source code. It looks like keystores may fix that problem, however the password to the key store would then be required. For this application to be usefull, I need to find a way to embed a password or encryption key in a .classfile in a way that it can not be retrieved by decompiling or parsing for strings. Anyone have ideas on how this could be done, or a different method I could use to guarantee that the response coming from a server process is from my server program and not a fake program?

    More detail. The program is a network license server (not web based). We need a simple license server for internal use, so that we can track usage and limit concurrent users for custom software. We also need some security so that people can not take the software home and use it. We have looked at commercial applications, however they are very expensive and we can not justify the cost since this is for internal software. There are 3 main pieces to a license server, the client libraries, the server, and the key generator. For the license server to be usefull, it should be impossible (or very very difficult) for someone to generate their own keys and add them to the license server. It should also be very difficult for them to create a fake license server that will grant licenses to clients without needing keys. If public/private key encryption is used, then the client would need to know the servers public key and their private key. These keys would need to be compiled into the program, stored in a key store, or looked up at run time from some other resource. The server would need to know its private key, and the clients public key. Since this is internal software, we can limit access to the server software, so it would be ok to compile the keys into the code (not ideal but secure enough for out use). However if I use this program as my Masters project, I would need to figure out a better way to secure it. The generic problem is how to give someone two programs that talk to each other, and be able to ensure that they do not fake one of the programs?

  • The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

     try
                    MailMessage mail = new MailMessage();
                    SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
                    mail.From = new MailAddress("[email protected]");
                    mail.To.Add("[email protected]");
                    mail.Subject = "Test Mail..!!!!";
                    mail.Body = "mail with attachment";
                    System.Net.Mail.Attachment attachment;
                    attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
                    mail.Attachments.Add(attachment);
                    SmtpServer.Port = 587;
                    SmtpServer.UseDefaultCredentials = true;
                    SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
                    SmtpServer.EnableSsl = true;
                    SmtpServer.Send(mail);
    Catch(Exception exception)
    When i m run this part of code it throw an Ecxeption                                                          
            Given Below is the Error.. 
        The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
    Bikky Kumar

     try
                    MailMessage mail = new MailMessage();
                    SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
                    mail.From = new MailAddress("[email protected]");
                    mail.To.Add("[email protected]");
                    mail.Subject = "Test Mail..!!!!";
                    mail.Body = "mail with attachment";
                    System.Net.Mail.Attachment attachment;
                    attachment = new System.Net.Mail.Attachment(@"C:\Attachment.txt");
                    mail.Attachments.Add(attachment);
                    SmtpServer.Port = 587;
    SmtpServer.UseDefaultCredentials = true;    ///Set it to false, or remove this line
                    SmtpServer.Credentials = new System.Net.NetworkCredential("userid", "Password");
                    SmtpServer.EnableSsl = true;
                    SmtpServer.Send(mail);
    Catch(Exception exception)
    Given Below is the Error..      The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
    Solution:
    The error might occur due to following cases.
    case 1: when the password is wrong
    case 2: when you try to login from some App
    case 3: when you try to login from the domain other than your time zone/domain/computer (This
    is the case in most of scenarios when sending mail from code)
    There is a solution for each
    solution for case 1: Enter the correct password.
    Recomended: solution for case 2: go to
    security settings at the following link https://www.google.com/settings/security/lesssecureapps and
    enable less secure apps . So that you will be able to login from all apps.
    solution 1 for case 3: (This might be helpful) you need to review the activity. but reviewing the activity will not be helpful due to latest security
    standards the link will not be useful. So try the below case.
    solution 2 for case 3: If you have hosted your code somewhere on production server and if you have access to the production server, than take remote
    desktop connection to the production server and try to login once from the browser of the production server. This will add exception for login to google and you will be allowed to login from code.
    But what if you don't have access to the production server. try
    the solution 3
    solution 3 for case 3: You have to enable
    login from other timezone / ip for your google account.
    to do this follow the link https://g.co/allowaccess and
    allow access by clicking the continue button.
    And that's it. Here you go. Now you will be able to login from any of the computer and by any means of app to your google account.
    Regards,
    Nabeel Arif

  • How Redirect browser(client) based on non-negotiable SSL/TLS protocol

    Hi guys,
    we have a security requirement wherein we required to force the browsers accessing our application to have atleast tsl 1.1 , but we don't want to simply block the request, instead we would like to redirect the request to a unsecured static html page with the
    instructions on how to get them onto tsl.
    can any one help me here?>? actually i found a similar and exactly same thread on stackoverflow but i think that is probably directed towards linux family.   http://serverfault.com/questions/591188/redirect-browser-based-on-non-negotiable-ssl-tls-protocol-or-cipher
    ps: i have posted the same question on IIS forum (http://forums.iis.net/t/1223352.aspx?How+Redirect+browser+client+based+on+non+negotiable+SSL+TLS+protocol+or+cipher+from+IIS) and got a reply saying
    that it can be done at windows kernel level(possibly by making use of
    http.sys, ksecdd.sys and schannel).
    can any one help me here guys.
    Thanks,
    Haroon 

    Hi,
    As far as I know, once SSL handshake fails, no subsequent communication would occur between the server and client.
    Therefore, as the way I see it, the goal cannot be achieved.
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • How to trap client browser window closing thru JSP or servlets

    How to trap client browser window closing thru JSP or servlets?
    Gunjan

    Hi
    Though some JavaScripts may provide you with solutions , yet there is no reliable way to detect the closing of the browser by the servlet. One way to achieve detection of user quitting a session is setting session timeouts ion the server side. This can be done either through the web.xml file or programatically by setting the session.setMaxInactiveInterval().
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems Inc
    http://www.sun.com/developers/support

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • How to get Client(browser) current date/time in BIP report

    Hi,
    I need to display report generated date in BIP report and this should be client(browser) current date/time. I tried the following things.
    1. have used MS Word Native Date/time using Insert->Date/Time. And we have chosen the M/d/yyyy h:mm:ss am/pm format. but it is printing BIp server date/time, not client date/time.
    2. <?xdofx:sysdate?>, <?xdoxslt:sysdate_as_xsdformat()?> and <?format-date:xdoxslt:sysdate_as_xsdformat();'SHORT_TIME'?> are giving GMT Date/Time, but we need client Date/Time.
    3.<?xdoxslt:sysdate('DD-MON-YYYY HH12:mi:ss')?> is giving the system date/time of the machine where BIP server is installed.
    Could you provide some help in this??
    Thanks
    Hari

    Hello, Hari,
    what would return something like this:
    Execution date:
    <?xdoxslt:current_date('ja-JP', 'Asia/Tokyo')?>
    <?xdoxslt:current_time('ja-JP', 'Asia/Tokyo')?>
    @Vetsrini,
    for my opinion,
    in the countries where time is switching (winter/summer) using the hard coded time zones in the format-date() cause a problem:
    for example:
    if we enter the date in date prompt in summer it will return PM_DT = 2010-07-20T00:00:00.000+04:00
    in winter 2010-07-20T00:00:00.000+03:00, so,
    using <?format-date:PM_DT;'DD.MM.YYYY';'GMT+3'?> return 2010-07-20 in winter and 2010-07-19 in summer.
    regards,
    Eldar A.

Maybe you are looking for

  • How can I make move podcasts to the same folder?

    I want my "RadioLab" and "This American Life" audio podcasts to show up in the same folder. I want this because when I plug my iPod into my car radio the next button in my car stereo will advance to the next iPod cast of the series, but it will not a

  • Offline File | Zero KB CRW's | "Photoshop does not recognize this file"

    The first symptom was when I got the dialogue "The file named "CRW_0004.CRW" is offline or missing. I located the file using spotlight only to get a "Could not complete your request because Photoshop does not recognize this type of file." when trying

  • User define function for SQL Server

    Hi all, it's possible to write an UDF for SQL Server in Java? I know that it is possible with DB2 and Oracle. My main goal is to write an UDF that works well with all of these DB. Thank's

  • Uploading Photos from database.

    I want to upload employees photos saveed in database as blob. Now I want see them in my reports and forms. I want to see the photos in attendance form. I mean when some body gives its id. Its photo should be fetched and displayed on the screen. How t

  • Tracking email failure in BPEL 11g

    Hi All, I am working with email activity in Oracle BPEL 11g and its working fine.But i want to handle the failure of emails. Like whenever i send an email to a wrong email-id then it must bounce back to the From email-id with same subject line as spe