Setting socket options server-side: when?

Hi!
I'm trying to implement a iperf ( http://dast.nlanr.net/Projects/Iperf/ ) -like bandwidth measurement tool in java, and I need to be able to set different socket options (window size, TOS byte etc.)
My question would be, when should I be setting these options on the server-side? Should I set them for the ServerSocket (whatever's applicable there- not much), or should I try setting them on the socket returned by accept() ?

Yes, but my point is that you can't set TOS in 1.4
regardless of where is should be set, so the point is
moot. And although you can do that in 1.5 that might
not meet your goals (and given that 1.5 is in beta and
that the feature is new, it might not work at all.)
And 1.5 might not do the other stuff that you want
either.That's strange, as I thought this one should do just that:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#setTrafficClass(int)
Even stranger, as I was actually able to set the TOS byte on outgouing packets, using 1.4.2 (Although I'm aware, that it does depend on the underlying implementation, so it's not certain, that it will be respected)
Right now I'm trying to figure out, why it's not working on my Gentoo Linux system - tryed it with three different JREs, but still nothing.
I was able to set the TOS byte of outgouing packets on a RedHat7.3, and on several Win2k, and WinXP hosts (after working a bit on their registry ... ).

Similar Messages

  • Implementation Options: Server Side Object Model & Client Side Object Model

    Hi All, I'm design a custom web application and it will be deploy on SharePoint 2010/2013 (to be confirmed) server, and I found some aritical as follows:
    http://consultingblogs.emc.com/sanjaypatel/archive/2011/09/17/comparison-between-server-side-object-model-client-object-model-rest-api-s-and-decision-matrix-on-what-to-use-when.aspx
    May I ask ask your advice for following items?
    1) Is the above URL still valid? e.g. Vice Versa for SharePoint 2013?
    2) Microsoft has a phase out plan for server side object model or not? (e.g. MOSS 202X)
    3) For programmatcally update of SharePoint permission: should I call client-side OM instead of server-side OM even I will deploy the web application to SharePoint server?
    Thank you very much.
    .NET Beginner 3.5

    In sharepoint 2013 I don't think this link is
    http://consultingblogs.emc.com/sanjaypatel/archive/2011/09/17/comparison-between-server-side-object-model-client-object-model-rest-api-s-and-decision-matrix-on-what-to-use-when.aspxis reliable at all.
    what is your say?
    ====================================================
     Hi All, I'm design a custom web application and it will be deploy on SharePoint 2010/2013 (to be confirmed) server, and I found some aritical as follows:
    http://consultingblogs.emc.com/sanjaypatel/archive/2011/09/17/comparison-between-server-side-object-model-client-object-model-rest-api-s-and-decision-matrix-on-what-to-use-when.aspx
    May I ask ask your advice for following items?
    1) Is the above URL still valid? e.g. Vice Versa for SharePoint 2013?
    2) Microsoft has a phase out plan for server side object model or not? (e.g. MOSS 202X)
    3) For programmatcally update of SharePoint permission: should I call client-side OM instead of server-side OM even I will deploy the web application to SharePoint server?
    Thank you very much.
    .NET Beginner 3.5

  • Port of the connection socket on server side

    Is it possible to choose the port of the socket that server creates after receiving a connection request on the ServerSocket?

    Is it possible to choose the port of the socket that server creates after receiving a connection request on the ServerSocket?Yes, but generally you don't need to. When people feel they need to it is because of a missunderstanding of how TCP/IP works.
    So how could I face the problem I described in a few places below thread?I had a look at your previous thread and could not find a related problem.
    Should I only retrieve the application data and send new packets with these data in?You can do this, but only you know if you need to do this or you need to change the data.

  • Problems with email set-up option 2 selected when option one needed ie add an email personal

    Hello All,
    My new 8520 arrived yesterday, I ask my daughter to set it up for me as she has one. Everything was going ok until I think she pressed the option for email as if I had a work email address which i dont i think option one should have been pressed ie add new email/personal home user email. I cannot seem to get back to that option all I get is has your blackberry admin given user name/number etc.
    Also on the setup box the only icons I have are set-up wizard set up wi-fi and set up bluetooth. Can anyone help me out please, do I need to reset-phone to factory settings or something??
    Thanks
    Jason

    Hi and Welcome to the Forums!
    Please do this:
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    After the boot-up, you should be able to again freshly launch the email setup wizard. If you are only presented with Enterprise, then you need to contact your carrier to ensure that you have the proper data account on your BB to enable the services you desire:
    http://www.blackberryfaq.com/index.php/What_do_I_need_a_Data_Plan_for%3F
    Best!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • User mailboxes have more server-side rule options then shared mailboxes?

    I was hoping to set up some server-side rules to keep a shared mailbox clean.  The goal was to have some rules to move incoming messages to specific folders based off words in the subject.  I opened the shared mailbox in OWA and found the action
    of moving the message to a folder was not available.  At first I figured that's an action that's only available in a client-side rule.  However, I then found that in my user mailbox that action is available server-side.  It would appear there
    are a number of other action that are available server side to user but not shared mailboxes.
    Anybody else notice this?  Is this a bug?
    Single Exchange 2013 SP1 server - nothing fancy.

    Hi,
    I have a test in my environment using Exchange 2013. We can use two methods to create rules in OWA. When I open shared mailbox via OWA to create rules, only one way is possible. I recommend you use this way to create rules in OWA and check the result. Here
    is the detailed steps for your reference.
    Click Setting icon (on the right corner) -> Options -> organize email -> New
    Hope it helps.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Is there any way to setup server side deferred delivery in Exchange 2013?

    We are utilizing 3rd party software to generate reports and email results.  Unfortunately, the software cannot be configured to execute at a specific time, date only.  This means that some reports are being processed and delivered at 12:00 am.
     For business reasons, management would prefer that those emails not be sent at midnight.
    We are looking for a solution that would allow the messages to be generated at midnight but not be delivered by Exchange until several hours later.
    Is there any way to set a deferred delivery option server side in Exchange?  It can be set through Outlook, but only applies to mail sent from Outlook.
    Any advise or recommendations would be greatly appreciated.
    Thanks

    I afraid that it can't be done in Exchange with native features. You might need to develop custom transport agent or need to utilize the 3rd party tool to achieve this...
    You can try in Development forum to see if you can get any help there...
    http://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrdevelopment
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • OIM 11g R2 -AD Provisioning -Connector Server side Error

    Hi,
    Following error is thrown on the connector server side when we attempt to provision an AD resource:
    11/15/2012 7:28:50 PM <VERBOSE>: Class-> ActiveDirectoryConnector, Method -> TranslateObjectClass, Message -> Returning the object class: ObjectClass: __ACCOUNT__ and exiting the method
    11/15/2012 7:28:50 PM <INFORMATION>: Class-> ActiveDirectoryConnector, Method -> Create, Message -> Committing the changes and creating the directory entry.
    11/15/2012 7:28:50 PM <ERROR>: Class-> ActiveDirectoryConnector Method -> Create, Message -> Encountered Excetion: Access is denied.
    11/15/2012 7:28:50 PM <ERROR>: Class-> ActiveDirectoryConnector Method -> Create, Message -> Stack Trace: at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.SetInfo()
         at System.DirectoryServices.DirectoryEntry.CommitChanges()
         at Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector.Create(ObjectClass oclass, ICollection`1 attributes, OperationOptions options) in c:\ADE\aime_oimcp\idc\bundles\dotnet\ActiveDirectory\ActiveDirectoryConnector\ActiveDirectoryConnector.cs:line 256
         ConnectorServer.exe Error: 0 : Org.IdentityConnectors.Framework.Common.Exceptions.ConnectorException: Access is denied.
         at Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector.Create(ObjectClass oclass, ICollection`1 attributes, OperationOptions options) in c:\ADE\aime_oimcp\idc\bundles\dotnet\ActiveDirectory\ActiveDirectoryConnector\ActiveDirectoryConnector.cs:line 368
         at Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.CreateImpl.Create(ObjectClass oclass, ICollection`1 attributes, OperationOptions options) in c:\ADE\aime_icf\icf\framework\dotnet\FrameworkInternal\ApiLocalOperations.cs:line 388
         at Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.ConnectorAPIOperationRunnerProxy.Invoke(Object proxy, MethodInfo method, Object[] args) in c:\ADE\aime_icf\icf\framework\dotnet\FrameworkInternal\ApiLocalOperations.cs:line 244
         at ___proxy1.Create(ObjectClass , ICollection`1 , OperationOptions )
         at Org.IdentityConnectors.Framework.Impl.Server.ConnectionProcessor.ProcessOperationRequest(OperationRequest request) in c:\ADE\aime_icf\icf\framework\dotnet\FrameworkInternal\Server.cs:line 609
    Am i missing any connector side configurations here?
    Thanks

    please perform these tests,
    1- check if the reconciliation is working with the same user provided in the connector configurations?
    2- check if the user reconciled can be updated modified through the IDM Admin console?
    after this
    check that you are providing the proper OU for the user to be provisioned?
    check the the Resource History and see where it is failing maybe some required information is missing.
    have you applied the patch 14190610 for AD connector?

  • Help setting up Leopard Server(Standard) and VPN

    Hello,
    Here is my set up:
    We have a static IP.
    ADSL Netgear Router takes in the internet connection. (Not sure what the version is, but it had a VPN wizard).
    Latest Aiport BS serves just the wireless.
    Leopard Server in Standard Mode.
    For the life of me I can't get the VPN working. I can't even make the server public. Granted I am out of my depth, but I am endeavoring to learn but there seems to be so many boxes to tick with servers that I never even know where I am up to.
    On the 3 items in my setup above, what should the settings be starting to look like.
    If I type our servers FQDN into Safari I am told that the server does not exist, but I can't work out how to make it available to the public. I am guessing that if I can't see the server via a browser then I am never going to be able to connect via VPN?
    If you know of any other questions that I should be asking too, please let me know. My googling is getting me no where. I have even been doing the lynda.com tutorials on Leopard Server. So I promise that I am trying.

    Hi
    Perhaps if I broke it down in these two ways.
    (a) There is nothing stopping you from using the built in Routing Services in Leopard Server. To make things clearer these 'Routing' Services would be VPN, Firewall, NAT, DHCP and possibly DNS. Basically and simply if your server (by that I mean the hardware you are using to be your server) has two ethernet ports and if your ISP supplied broadband service is by DSL Cable Modem then you don't need a 3rd-Party Router. You can simply connect the ethernet cable from your Cable Modem directly into one ethernet port (this would be the WAN/Public/External connection. The other ethernet port can be connected directly to your network switch/hub (switch would be better). This would be your LAN/Private/Internal connection. Running Gateway Assistant will help you configure the Server (simply to begin with) to 'share' the internet connection on your WAN port with any client computer configured to use your LAN port. It is NAT that basically fulfils this function. The Firewall Service will allow any request that comes from your 'trusted' LAN access to the Internet using the WAN port. Any 'untrusted' request trying to gain access to your LAN from the Internet is blocked by your Firewall unless you configure your Firewall to allow it through. The VPN Service along with the DHCP Service can be configured to allow trusted remote clients to access your Server as well as the private network as if that remote client was actually at your Server's location. Remote client access is achieved by simply keying in the fixed external IP Address that is used at your Server's location in Internet Connect as well as a name and password that is configured on the Server.
    (b) You purchase a 3rd Party Router to this all for you and dispense with the built in tools on the Server. Simply configure the Router to allow VPN passthrough. There are 3 basic VPN connection methods: PPTP, L2TP and IPSec (ISKAMP). Each of them offer increasingly more secure methods. Depending on which method you finally decide on may mean using additional 'client' software not available as standard on the client OS.
    Back to (a): If your internet connection is down a phone line then you would need to use an ADSL Modem Router anyway. For me it does not make much sense to connect the LAN side of this Router to your Server and to further configure the Server to do something the Router can already do for you in most cases better and simpler. Why complicate things trying to do this server side when by your own admission 'I am not getting it/anything'
    There is some excellent advice on these forums regarding VPN have you searched for them? If you have and you are still struggling to understand this then perhaps it may be more beneficial as well as being cost effective to get a professional in to do this for you. You would benefit enormously as not only will you see how it gets done but you will also be able to ask questions that may make the whole concept of VPN and networking in general more understandable.
    Hope this helps, Tony

  • Server Side Load Balancing Testing

    Hi,
    Can any one tell me about any test case for server side load balancing in an 11.1.0.7 RAC?
    I have a 2 nodes RAC with local_listener and remote_listener set properly (for server side load balancing). For testing, i have create a TNS at my client side which points to only one node of RAC (a single ADDRESS entry pointing to node 1 of my RAC). So, from this client, when ever i connect, it always connects me to the node 1 which i have mentioned in the TNS. Does it mean that server side load balancing works in conjunction with client side load balancing only and i should add ADDRESS entry in my TNS for the second node also? If yes, then how can i create a test case to check server side load balancing?
    Thanks
    Salman

    Thanks Rajeysh but i already have seen these documents after "googling" about server side load balancing but these documents don't give my any idea for testing the server side load balancing. My goal is actually testing the following scenario
    Creating a TNS entry to connect to a RAC database (with server side load balancing enabled) by using a single ADDRESS line in TNS which points to node1 to connect to service on node 1 (service_name is set to same value on all the nodes).
    Now, if i invoke 10 SQLPLUS windows to connect to the RAC database using this TNS, it always connects me to instance 1 running on node 1, where is server side load automatic load balancing? Why new sessions are not being directed to some other instance and why every time i always connect to instance 1?
    Salman

  • How RMI implements multithreading in Server-side?

    In [http://my.execpc.com/~gopalan/java/rmi_internals.html] says:
    "On the server side, when a client connects to the server socket, a new thread is forked to deal with the incoming call. The original thread can continue listening to the original socket so that additional calls from other clients can be made."
    I have traced Java source code (jdk-6u18-ea-src-b05-jrl-18_nov_2009.jar) , but i could not find where and how Java RMI do it.
    Could anyone give me some hint? Thanks!

    In [http://my.execpc.com/~gopalan/java/rmi_internals.html] says:
    The status of that site is zero. All you can rely on is the RMI specification.
    "On the server side, when a client connects to the server socket, a new thread is forked to deal with the incoming call. The original thread can continue listening to the original socket so that additional calls from other clients can be made."That accurately describes the Sun implementation of RMI as of 1.5, the latest source code I have looked at. It doesn't accurately describe the IBM implementation nor I suspect the Sun 1.6 implementation.
    I have traced Java source code (jdk-6u18-ea-src-b05-jrl-18_nov_2009.jar) , but i could not find where and how Java RMI do it. So? Why does it matter? The RMI specification tells you what the multi-threading guarantees of RMI are. They are all you can rely on.

  • Non-standard interfaces must be server-side before de-serializing?

    Classes which implement non-standard interfaces are a problem for de-serialization? In the below code SomeInterface is the problem. If the "SomeInterface.class" is not server-side when the de-serialization starts then the de-serialization can't happen? Please look at this test code:
    client
    public class Main {
      public static void main(String[] args) {
        try {
          Socket sok = new Socket("192.168.2.2", 1638);
          MyOOS moos = new MyOOS(sok.getOutputStream());
          moos.writeObject(new ClassA(222));
          try { Thread.sleep(3000); } catch(InterruptedException e) { }
          sok.close();
        } catch(Exception e) { e.printStackTrace() ; }
      private static byte[] getClassImage() throws Exception {
        InputStream in = new FileInputStream(new File("/dev/ClassA.class"));
        List<Byte> objClassImage = new ArrayList<Byte>();
        int b = in.read();
        while(b != -1) {
          objClassImage.add(Byte.valueOf((byte) b));
          b = in.read();
        byte[] classImage = new byte[objClassImage.size()];
        for(int i = 0; i < classImage.length; i++) {
          classImage[i] = ((Byte) objClassImage.get(i)).byteValue();
        in.close();
        return classImage;
            static class MyOOS extends ObjectOutputStream {
              MyOOS() throws Exception { super(); }
              MyOOS(OutputStream out) throws Exception { super(out); }
              protected void annotateClass(Class<?> cl) throws IOException {
                try {
                  byte[] classImage = getClassImage();
                  writeInt(classImage.length);
                  write(classImage);
                } catch(Exception e) { e.printStackTrace(); }
    // public class ClassA implements Serializable, SomeInterface  {  // <-- bad
    public class ClassA implements Serializable  { // <-- good
      int id;
      ClassA(int i) { id = i; }
      public void foo() {
        System.out.println("ClassA::foo--> id = " + id);
    public Interface SomeInterface { public void foo(); }
    server
    public class Hello {
      static MyClassLoader myLoader = new MyClassLoader();
      public static void main(String[] args) { new Hello().run(); }
      void run() {
        try {
          ServerSocket servSok = new ServerSocket(1638);
          Socket sok = servSok.accept();
          MyOIS mois = new MyOIS(sok.getInputStream());
          Object obj = (Object) mois.readObject();
          Method m = obj.getClass().getMethod("foo", null);
          m.invoke(obj, null);
        } catch (Exception e) { e.printStackTrace(); }
          static class MyClassLoader extends ClassLoader {
            byte[] classImage;
            // is this a normal way to program Java? Because I am unsure about how to handle the byte[] in
            // resolveClass(), I am jamming them in here. Would a good programmer do stuff like this?
            public Class<?> loadClass(String name, byte[] classImage) throws Exception {
              this.classImage = classImage;
              return loadClass(name);
            protected Class<?> findClass(String name) throws ClassNotFoundException {
              return defineClass(name, classImage, 0, classImage.length);
          static class MyOIS extends ObjectInputStream {
            private MyClassLoader myLoader = new MyClassLoader();
            MyOIS() throws IOException { super(); }
            MyOIS(InputStream in) throws IOException { super(in); }
            protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
              try {
                int classImageSize = readInt();
                byte[] classImage = new byte[classImageSize];
                read(classImage);
                return myLoader.loadClass(desc.getName(), classImage);
              } catch (Exception e) { e.printStackTrace(); }
              return null;
    }If a serialized object implements an interface that is not already on the de-serializing jvm end, then serialization is not possible? Am I suppose to put the SomeInterface object on the server (somehow) before de-serializing an object that actually implements SomeInterface .
    I have heard of object graphs. So, would not the implemented interfaces be part of an object's object graph? Thanks.

    ejp wrote:
    I have no idea what any of that means, if anything, but RMI comes with a dynamic codebase facility if that's what you're looking for.I successfully moved an object with a non-standard pure abstract class to a remote jvm:
    client
    public class Main {
      public static void main(String[] args) {
        try {
          Socket sok = new Socket("192.168.2.2", 1638);
          MyOOS moos = new MyOOS(sok.getOutputStream());
          DataOutputStream dos = new DataOutputStream(sok.getOutputStream());
          byte[] classImage = getClassImage("/dev/PureAbstractClass.class");
          dos.writeInt(classImage.length);
          dos.write(classImage, 0, classImage.length);
          moos.writeObject(new ClassA(5));
          try { Thread.sleep(3000); } catch(InterruptedException e) { }
          sok.close();
        } catch(Exception e) { e.printStackTrace() ; }
      private static byte[] getClassImage(String path) throws Exception {
        InputStream in = new FileInputStream(new File(path));
        List<Byte> objClassImage = new ArrayList<Byte>();
        int b = in.read();
        while(b != -1) {
          objClassImage.add(Byte.valueOf((byte) b));
          b = in.read();
        byte[] classImage = new byte[objClassImage.size()];
        for(int i = 0; i < classImage.length; i++) {
          classImage[i] = ((Byte) objClassImage.get(i)).byteValue();
        in.close();
        return classImage;
            static class MyOOS extends ObjectOutputStream {
              MyOOS() throws Exception { super(); }
              MyOOS(OutputStream out) throws Exception { super(out); }
              protected void annotateClass(Class<?> cl) throws IOException {
                try {
                  byte[] classImage = getClassImage("/dev/ClassA.class");
                  writeInt(classImage.length);
                  write(classImage);
                } catch(Exception e) { e.printStackTrace(); }
    public abstract class PureAbstractClass {
      public abstract void foo();
      public abstract void bar();
    public class ClassA extends PureAbstractClass implements Serializable {
      int id;
      ClassA(int i) { id = i; }
      public void foo() { System.out.println("PureAbstractClass::ClassA::foo id = " + id); }
      public void bar() { System.out.println("PureAbstractClass::ClassA::bar id = " + id); }
    server
    public class Hello {
      static MyClassLoader myLoader = new MyClassLoader();
      public static void main(String[] args) { new Hello().run(); }
      void run() {
        try {
          ServerSocket servSok = new ServerSocket(1638);
          Socket sok = servSok.accept();
          MyOIS mois = new MyOIS(sok.getInputStream());
          DataInputStream dis = new DataInputStream(sok.getInputStream());
          int classImageSize = dis.readInt();
          byte[] classImage = new byte[classImageSize];
          dis.read(classImage, 0, classImageSize);
          myLoader.myDefineClass("PureAbstractClass", classImage, 0, classImage.length);
          Object obj = (Object) mois.readObject();
          Method m = obj.getClass().getMethod("bar", null);
          m.invoke(obj, null);
        } catch (Exception e) { e.printStackTrace(); }
            static class MyClassLoader extends ClassLoader {
              byte[] classImage;
              public Class<?> loadClass(String name, byte[] classImage) throws Exception {
                this.classImage = classImage;
                return loadClass(name);
              protected Class<?> findClass(String name) throws ClassNotFoundException {
                return defineClass(name, classImage, 0, classImage.length);
              public Class<?> myDefineClass(String name, byte[] classImage, int x, int y) {
                return defineClass(name, classImage, x, y);
            static class MyOIS extends ObjectInputStream {
              MyOIS() throws IOException { super(); }
              MyOIS(InputStream in) throws IOException { super(in); }
              protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
                try {
                  int classImageSize = readInt();
                  byte[] classImage = new byte[classImageSize];
                  read(classImage);
                  return myLoader.loadClass(desc.getName(), classImage);
                } catch (Exception e) { e.printStackTrace(); }
                return null;
    }I hope this relates to understanding RMI. Moving objects that extend non-standard classes and implementing non-standard interfaces is not easy. Or, maybe there is an easier way. Anyway, thanks ejp. Yesterday I was extremely confused. Now, I am just a little confused but think I have basic understanding. I feel big progress was made.

  • User form: to execute some operation at server side for a command click

    jurajsiska Apr 11, 2006 7:56 AM
    I'm creating a customer user form. I want to do some thing at server side when a command is clicked, but don't want to save any modified value until user clicks "Save" button. There is property for command display class, named "command", but it just gives you opportunity to execute some pre-defined command, Save, Recalcuate, or Cance. How can I achieve this by customizing the event handler for command click?

    I just figured out a way myself. Create a hidden field in your user form, use the java script to set hidden field to some value for the "onclick" property of BUTTON, and to check this hidden value in the properties command of BUTTON to know if it's coming from click or refres/recalculate. Of course you need to reset the hidden value in the expression of command property.
    Hope it's helpful for somebody having the same situation,

  • PageMethod response returning whole page, unable to debug the server side method

    Hello Guys,
    I am unable to debug my method written on server side when a call is send to it through jquery using page method.
    In response , I get the whole page.
    code:
    ASPX page:
    PageMethods.MyMethod(p1, p2, function(response){
    ASPX.CS
    [System.Web.Services.WebMethod()]
    [System.Web.Script.Services.ScriptMethod()]
    publicstaticstringMyMethod(stringp1,
    stringp2){
    //Updating database
    I did ScriptModule entry in web.config, enabled tracing,have ScriptManager and EnablePageMethods is set to true.
    Still the server side method is not getting called.
    please help.
    Ng_TechFreak

    Hi Ng_TechFreak,
    For ASP.NET questions please post in
    ASP.NET forum where you'll get better help.
    Thanks for your understanding.
    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.

  • Bw web report plugin http session hangs at the server side

    Hi,
    I am having problems when closing the browser of a BW web report. After I closed the browser by going File->close, I ran SM04 and found out the Plugin HTTP session hangs at the server side.
    How can we terminate the Plugin HTTP session at the server side when user closes the internet browser?
    I did implement a logoff function at my web template, if user clicks on the logoff, the Plugin HTTP session is terminated at server side correctly. But As you know, 50% of time user will close the report by closing the internet browser instead of clicking the logoff. That leaves lots of hanging Plugin HTTP sessions at our server side.
    By the way, we actived our BEX service at the SICF.
    Thanks for help!
    JA

    Hi
    If you want to avoid a blank page with logoff button, add opener=0
    <a href="<SAP_BW_URL CMD='LOG_OFF' ~command='logoff'
    >" onClick="javascript:window.close(opener=0);">Log off</a>
    If you want to close the session via X, use this code:
    create a sapscript function
    function closeSession()
    logoff()
    window.unload=CloseSession()
    However, the Plugin HTTP session isn't killed.
    Regards

  • How to set Java options in Linux?

    Dear all, I'm using Ubuntu, Java version is 1.6.0.3
    I want to run Java with some options changed, such as this in command line:
    java -server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62 -classpath . HelloWorld
    This works well. However, I want to set the options "-server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62" as my java default options so that I only have to use
    java -classpath . HelloWorld
    And also I want the options to work on my HelloWorld.war file. (This is what I need finally)
    I changed catalina.sh in tomcat, but it seems like it doesn't help. Any suggestions? Thank you!!!

    aiGrace wrote:
    I want to set the options "-server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62" as my java default options so that I only have to use
    java -classpath . HelloWorldUse the *nix alias command
    alias java="java -server -Xms128m -Xmx512m -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=11.40.5.62"

Maybe you are looking for

  • Contracts with different Currencies

    Hi SAP experts,is it possible  to create a Contract with different currencies in line items for a vendor???.Thank you for any advice.

  • Help with Datagroup layout , resize items

    Hey everyone. I currently have a spark data group using a TiledLayout with a custom itemRenderer. The normal to hovered transition for the items in the datagroup is a scale effect , more specifically when you rollover an item , the item scales up by

  • Error at the time of MIRO

    Dear All,   Error at the time of MIRO  while doing invoice for customs and the error showing as Tax code VO country IN does not exist in procedure ZAXINN                VO i maintained for Non Taxable transactions and Imports PO wont have any tax pro

  • OracleBlob/LiteLob Length or GetBytes fails with S1000[POL-3314]

    Trying to access OracleBlob Length or GetBytes fails with S1000[POL-3314], has anyone found a solution to this problem? Oracle.DataAccess.Lite.OracleException: S1000[POL-3314] unknown error at Oracle.DataAccess.Lite.OracleConnection.OE(IntPtr stmt, I

  • Creating customer without maintaining common distribution channel and divis

    Dear all... can anybody tell me how to create a customer without maintaining common distribution channel & division.. sathsdn..