Experiences around the nCo 3.0 RfcDestinationManager

Hello everyone,
I'm very interested in your application architecture around the .NET connector 3.0.
For example I just don't manage to be friends with the RfcDestinationManager
Example 1:
Okay so there's this MAX_POOL_SIZE and POOL_SIZE setting. According to the developers manual it's exactly the same(?). Whatever. And some piece of documentation I found (some SAP blog) says we cannot grab and manage a connection ourselves and we have to rely on the RfcDestinationManager to return one. That's a good thing. In theory. Indeed this is where it gets complicated.
I wrote a small multi threaded console application to simulate parallel connections. All the console application does is to Ping() the target SAP system. With MAX_POOL_SIZE set to 5 (default value?) I sooner or later run into a SAP.Middleware.Connector.RfcResourceException: Unable to allocate client in pool [NAME=xxx USER=xxx CLIENT=xxx LANG=xxx ASHOST=xxx ASHOST=xxx SYSNR=xxx SYSID=xxx]. MAX_POOL_SIZE [5] exceeded
   at SAP.Middleware.Connector.RfcConnectionPool.GetClient()
   at SAP.Middleware.Connector.RfcDestination.GetClient(Boolean forRepository)
   at SAP.Middleware.Connector.RfcDestination.Ping()
   at CA4MultiThread.SapClient.Ping() in D:\workspace\xxx\SapDotNetConnector\CA4MultiThread\SapClient.cs:line 104
   at CA4MultiThread.Program.SapPing() in D:\workspace\xxx\SapDotNetConnector\CA4MultiThread\Program.cs:line 98
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Bad. On one hand I cannot manage the connections myself (because the connector takes care of the connection pool) and on the other hand there's no way to check whether it's safe to submit a request to SAP. Either the connector should implement a queue to handle those scenarios or offer a possibility to check if a connection is present or can be opened.
Of course I can set the MAX_POOL_SIZE to 100 - but what's the point of MAX_POOL_SIZE then?
Example 2:
Another thing that bugs me is the registration of destination configurations.
SAP.Middleware.Connector.RfcInvalidStateException: destination configuration already initialized
   at SAP.Middleware.Connector.RfcDestinationManager.RegisterDestinationConfiguration(IDestinationConfiguration config)
   at CA4MultiThread.SapClient..ctor() in D:\workspace\rsom\SapDotNetConnector\CA4MultiThread\SapClient.cs:line 81
   at CA4MultiThread.SapClient.get_Instance() in D:\workspace\rsom\SapDotNetConnector\CA4MultiThread\SapClient.cs:line 57
   at CA4MultiThread.Program.SapPing() in D:\workspace\xxx\SapDotNetConnector\CA4MultiThread\Program.cs:line 96
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Typically you register your destinations only once. Okay. But in multi threaded scenarios you might very well run into situations where two threads are trying to register their destinations at just the same time and there's your exception. First of all I think the RfcDestinationManager should be aware of its state and know whether it has already a configuration present or not. And the worst thing is... you cannot even check for the RfcDestinationmanager's state yourself. The only public method which comes somewhat close to that purpose is RfcDestinationManager.GetDestination()... but that throws an exception if the destination doesn't exist - so it's not exactly a solution.
So I'm tracking RfcDestinationManager's state - thread safe - in my own application now (which is not a good thing, but I prefer this approach to having some startup code in global.asax or something like that). What's your approach here?

Good Day.
I have an existing mobile project that connects to a webService. The webService connects to SAP using the .net connector 3.0. There are multiple concurrent users that make SAP calls, currently there is a random problem that occurs whereby a user gets an incorrect user for the transaction that they are trying to process. The call i make to get a destination is:
RfcDestination destination = RfcDestinationManager.GetDestination(_sapDestinationManager.Username);
_sapDestinationManager.Username being the user which if i compare to the returned destination isn't the same.
This is intermittent and have also tried to implement customDestination to try and fix this but i haven't been able to solve this as yet. I have added a code snippet below:
        private static RfcDestination GetSapRfcDestination(string authTicket, out RfcRepository sapRfcRepository,
                                                           ref string success)
                AuthenticationTicket authenticationTicket;
                if (string.IsNullOrEmpty(authTicket)) // Checks if the encrypted authTicket is null, if it is the SAP call is probably not important
                    authenticationTicket = new AuthenticationTicket();
                else
                    authenticationTicket = new AuthenticationTicket(authTicket); // Decryption of string to get the username and password
                if (_sapDestinationManager == null)
                    _sapDestinationManager = new SapDestinationManager();
                    RfcDestinationManager.RegisterDestinationConfiguration(_sapDestinationManager);
                if (authenticationTicket.UserName == null)
                    RfcDestination destination = RfcDestinationManager.GetDestination("OneMobile");
                    sapRfcRepository = destination.Repository; //Out parameter to method
                    success = "Login Successful"; //Ref parameter
                    Log.Trace("One Mobile connection: " + destination.Repository.ToString());
                    return destination;
                else
                    _sapDestinationManager.Username = authenticationTicket.UserName;
                    _sapDestinationManager.Password = authenticationTicket.Password;
                    RfcDestination destination = RfcDestinationManager.GetDestination("OneMobile");
                    RfcCustomDestination customDestination = destination.CreateCustomDestination();
                    customDestination.User = _sapDestinationManager.Username;
                    customDestination.Password = _sapDestinationManager.Password;
                    if (customDestination.SystemAttributes.Destination == null)
                        RfcDestinationManager.UnregisterDestinationConfiguration(_sapDestinationManager);
                        _sapDestinationManager = null;
                        success = "Name or password is incorrect"; //Ref parameter
                        sapRfcRepository = null; //Out parameter to method
                        return null;
                    else
                        sapRfcRepository = customDestination.Repository; //Out parameter to method
                        success = "Login Successful"; //Ref parameter
                    Log.Trace("CTM: " + customDestination.Repository.ToString()); //Loggin
                    return customDestination;

Similar Messages

  • I want to relocate my iTunes library on a NAS drive and stream to apple tv2 and DLNA tbs around the house is this possible and if so which is the best NAS drive to buy???

    I want to relocate my iTunes library on a NAS drive and stream to apple tv2 and DLNA tbs around the house is this possible and if so which is the best NAS drive to buy???

    ged2001 wrote:
    I want to relocate my iTunes library on a NAS drive and stream to apple tv2 and DLNA TV's around the house is this possible and if so which is the best NAS drive to buy???
    i don't have any experience with DLNA TV's but i recently moved my iTunes library to a NAS. streaming content to airport express remote speakers and TV2 works great. however, i have all my gear hardwired to my time capsule (except the airport express) so i'm not sure how well streaming e.g. HD movies to TV over wifi works.
    i have a Synology DiskStation 411j and am very happy with it.

  • Your heat experiences with the MBP 13 2012

    Looking to buy a new machine, actually I already picked one, I'm going for a MPB 13.3inch i7 (2012).
    Even though, I read a lot of people saying around the internet, that this machine tends to heat a LOT.
    I want to know your personal experience with the mbp13 (2012 please, i7 experience would be even better). All kind of people welcome to share, from web-browsing like facebook, to word processing and even video edition or gamers (if you managed to play something on this ).

    Good, because I have the Mid 2012 MacBook Pro 13-inch Non-Retina. I would say this computer really doesn't get hot at all. With your average Internet browsing with nothing else opened this computer is relatively cool and the fan is quiet. If you have multiple applications opened such as Safari, iTunes, Notes, and iPhoto for example, it gets a little warm but the fan is still just as quiet. Now video editing/gaming. When I am editing a YouTube video or playing a game (depending on how graphic intensive/big the game is) alone with nothing else opened, the computer gets fairly warm and the fan is louder. Now if I am editing a video/gaming and have other applications opened the fan can get really loud and the computer can get really hot. When I say 'really hot' I mean REALLY hot, because this is made out of aluminum the outside surface of the MacBook Pro can get even more hot then the inside. Keep in mind that the heat is different depending on what surface I'm on because on my pants, bed, couch, etc. it would be hotter but on a table it would be substantially cooler.
    Hope this helps,
    - Daniel 

  • I have similar problem, but mine doesn't sound like a loose screw, more like the battery or vibration component is loose. When I shake the phone left to right abit I can feel that it's around the top area.  Very annoying, besides that it works fine. Gonna

    I have similar problem, but mine doesn't sound like a loose screw, more like the battery or vibration component is loose. When I shake the phone left to right abit I can feel that it's around the top area.  Very annoying, besides that it works fine. Gonna go to apple tomorrow maybe to ask.

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Designer users around the world

    Hello Guys,
    I'd like to know how many users uses Oracle Designer around the world?
    Somebody can give me approximate number.
    Best regards,
    Anderson

    The early versions of Data Modeler were lacking. The latest release (3.0 in Jan 2011), with the exception of generators, does provide very similar functionality to Designer across the board. I have been using CASE tools since SQL Design Dictionary (SDD) and the latest version of Oracle Designer is the best in the relational - forms and reports world. It was lacking in true PL/SQL support for database packages, procedures and functions as well as support for object types.
    The newest DM 3.0, released a couple of weeks ago, does a number of things easier than Designer did. In the area of DFD and building and assigning data flows much easier than using the matrix diagrammer. There is also a scripting engine area that allows us to add multiple columns or attributes to tables or entities from a template. In Designer we had to use Pl/SQL and the API which could be intimidating. Now to add those housekeeping columns or modifying application prefixes is much easier.
    It looks like Oracle took the team that was building and maintaining Designer and pt them on the Data Modeler team. If this is the case, no pun intended, then all those years of experience on how build a CASE tool come with them as well as where to improve it.
    Things like domains maintenance is much easier now as well being able to capture PL/SQL in the database. Object Type support is hugely better in DM 3.0 than Designer ever had and it looks like Oracle is going to keep the tool up to date with what the database provides for object types. The glossary editor is new and opens a new door for the maintenance and standardization of names, abbreviations at the entity, attribute, table, column, (PK, UK and FK) key levels, etc... The scripting engine along with the design rules and the glossary does make life much easier for us that we had in Designer
    Now that DM 3.0 is out, you should take a look. They have some pretty good stuff.
    ScottK

  • What accessories are needed to connect my Apple TV to my LCD projector (VGA connectors) in the classroom so that I can mirror my iPad for around the class teaching?

    I have been wanting to project my iPad to my class and the only way I have found is to use the connector. However, I would like to remove myself from in front of the classroom and move around the classroom. This encourages students to take notes and not pass notes. This also encourages them to engage in questioning of the lesson, because the teacher is not far removed from them if they're in the back of the classroom. How can I connect? I've read some forums that discuss converters and many who say it needs to be active or powered, but some of these powered converters are nearly two times the amount of the Apple TV. I wouldn't mind paying if this is the suggested way and it works. I don't want to go through several failed and expensive experiments.

    There are hardware converters that will convert HDMI to various other types of output, however there are some issues with doing so that you should be aware of.
    HDCP
    HDCP compliant converters will not allow you to watch HDCP protected content such as that from the iTunes Store. Non compliant converters exist but we cannot discuss them under the Terms of Use for these communities.
    Resolution and aspect ratio
    I'm not aware of any converters that will scale the output from the Apple TV, any TV or projector which is used will need to be widescreen and support resolutions of 720p (if you are using the Apple TV 2)

  • PS CS5 Extended on Windows -  When trying to use the clone stamp and/or healing brush as soon as I move the cursor over the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  W

    PS CS5 Extended on Windows
    When trying to use the clone stamp and/or healing brush as soon as I move the cursor from the toolbar over to the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  This just started tonight.  What's causing this weird behaviour?

    What are the settings in Window > Clone Source?

  • I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login.

    I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login. I tried the method where you go into single user mode and type in commands, however that method uses some of the letters that are not working on my laptop.

    You didn't mention which version of OS X your running but there are password reset utilities provided OS X: Changing or resetting an account password (Snow Leopard and earlier) - Apple Support  or  OS X: Changing or resetting an account password - Apple Support
    Alternately you can use an external keyboard to log in and change the password. Make a backup if you don't have one, it's likely that your problems aren't over. If that water continues to migrate downward and fries the logic board your macbook will be toast.

  • Right way to add graphic sidebars around the container or any div for that matter?

    *** Note sidebars maybe the wrong term and confuse you here
    If i want graphical sidebars around both sides of the main
    container div..... so that if i had a margin of say 20px on each
    side and the sidebars are maybe 8px in width, well i can create a
    small maybe 8px x 5 px image and repeat it the height of the
    conatiner div.
    Is there a done way to inset the graphic into the div and
    then have it scale to the height of the div.. Here is a pic example
    of what i am trying to do,
    http://i44.tinypic.com/1zdbr78.jpg
    Or look at this site, see the gradient faded red sidebar
    graphics around the whole contaner, they do a similar thing inside
    the conent div boxs as well.
    http://www.mayfindesign.com/

    Do you mean a border? When I need to do this, I use three
    graphics:
    1. A top capping graphic
    2. A vertically tiling center graphic
    3. A bottom capping graphic
    In ASCII art the three would look like this -
    |=================|
    | |
    |=================|
    where "|" is the vertical part of the border, and "=" is the
    horizontal part
    of the border. Since the middle graphic tiles vertically, it
    expands to
    fill the height of the container perfectly. The markup for
    this would look
    like -
    /* CSS */
    #topCap, #bottomCap, #middleContainer {
    width:300px;
    margin:0 auto;
    #middleContainer {
    background-image:url(/images/middleBackground.jpg);
    background-repeat:repeat-y;
    HTML
    <body>
    <div id="topCap><img src="/images/topCap.jpg"
    width="300" height="20"></div>
    <div id="middleContainer">....</div>
    <div id="bottomCap"><img src="/images/bottomCap.jpg"
    width="300"
    height="20"></div>
    </body>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "rams30" <[email protected]> wrote in
    message
    news:gjidto$ku$[email protected]..
    > *** Note sidebars maybe the wrong term and confuse you
    here ****
    >
    > If i want graphical sidebars around both sides of the
    main container
    > div.....
    > so that if i had a margin of say 20px on each side and
    the sidebars are
    > maybe
    > 8px in width, well i can create a small maybe 8px x 5 px
    image and repeat
    > it
    > the height of the conatiner div.
    >
    > Is there a done way to inset the graphic into the div
    and then have it
    > scale
    > to the height of the div.. Here is a pic example of what
    i am trying to
    > do,
    >
    >
    http://i44.tinypic.com/1zdbr78.jpg
    >
    > Or look at this site, see the gradient faded red sidebar
    graphics around
    > the
    > whole contaner, they do a similar thing inside the
    conent div boxs as
    > well.
    >
    >
    http://www.mayfindesign.com/
    >
    >

  • My iPad has to be really really close to the router for it to have internet. How can I make it so I can go around the house with it?

    My iPad has to be really really close to the router for it to have internet. How can I make it so I can go around the house with it? My iPad has been like this for a couple of months, and it has really irritated me. My friend came over and he had to download iTunes for something on the computer. He needed my iPad, he tried it and it wasn't really near the router.

    I'd begin by reviewing the following:
    http://support.apple.com/kb/TS1398

  • Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please

    Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please!

    What exactly are you trying to do?

  • My experience with the Z2

    Hi there!
    I decided to register on this forum as to be able to share my personal experience with the Sony Xperia Z2 thus far.
    To start i want to make it clear that i personally believed this phone offered a rather good experience at first, unfortunately like some other users i too started to notice the phone had its issues which needless to say take away from this 'great' experience it has to offer.
    So lets begin.
    The first Sony Xperia Z2 i received had a lot of issues, this one was a 14w20 version:
    - The device had quite a few scratches on the sides OUT of the box, which nearly made it impossible for me to return it .......
    - The MicroSD flap was not leveled and would stick out very noticeably
    - The Camera lens was not centered
    - The phone had gaps in the upper right corner and the lower left corner which were also very noticeable
    - The phone would not record 4k longer than 2 minutes before it would heat up ( tried multiple times )
    - The pictures would have a very strange colour to them, sort of neon'ish
    - Charging was extremely slow, i specifically used your standard usb cable and i used the Z2 dock, neither had effect
    - The back side would make a very annoying squeeking sound when pressed, even slight pressure would do so
    - The WiFi would be terrible, since i travel a bit i tried it on different networks with pretty much the same results at home and at the office, my other devices have no issues whatsoever nor have they ever had any issues like this device
    - The call quality was rather mediocre, quite a few contacts noticed during calls that they had to concentrate more in comparison to my other devices as to understand what i was saying
    - The 'close cover message' which pops up once you open your flaps would appear out of nowhere, whilst my flaps were closed properly
    To be honest with you there were other issues as well but i think the upper list is rather enough to understand the interest for a replacement.
    And so i did, i had this one replaced for another one, i was barely able to convince my supplier to replace this one due to the scratches it had which they would not believe were present on the device out of the box.
    The second Sony Xperia Z2 was also a 14w20 and.. unfortunately.. it too has issues :
    - The gap issue is present on this one as well, same locations as aforementioned but a tad smaller
    - Recording in 4k now has increased up to 4 minutes before it stops recording, i find this unacceptable
    - The mechanism for open flaps is a good idea were it not for the fact that this device also keeps saying the flaps are open. When they are not I could configure it to stop notifying me but what if some day i go swimming and i believe the flaps are closed since the device does not say they are open and i take a dive? I find this very inconvenient ..
    - Call quality has not improved, my contacts say it sounds muffled and after asking my partner to switch our phones and try calling i totally agree it sounds muffled and one has to concentrate as to understand what the other side is saying ....
    - The WiFi issue is present on this device as well, now i noticed that i have to shut it down and power it back on again as to 'fix' the issue with streaming, i experience it on YouTube, Netflix, Facebook videos and others.
    I also noticed that it d/c's often than not, i tried downloading a 10gb file as to see what happens and it literally stopped
    more than i can count. My other devices do not have this issue... tried this at home and at the office as well.
    - The battery charging issue continues on this one as well, to be sure that it is not related to the electricity at home i took the dock with me everywhere i went and charged it where i could, needless to say it did not matter at all
    I encourage people to test their phones and decide for themselves and not just buy into what i am saying, remember this is my experience with it and yours can be different.
    For me, unfortunately.. i will be returning this one as well and will consider purchasing something else but nowadays it seems personally that quality is hard to find..
    /xiLuS

    I'm far from impressed with mine. Very similar issues and also a cracked bezel. Unless my issues are resolved I'll be going back to an iPhone. At least if there is a hw problem they swap it out there and then. None of this sending away and being without you phone rubbish.

  • How do I export a PDF without the print bleed extra "stuff" around the edges?

    I know my question wording sucks, but I didn't know how else to put it.
    I created a document in ID for print with a bleed.  When I export to PDF, the image is not cropped to the finished size of the page, but includes the excess background images that I extended beyond the page bounds for a bleed.  I am now trying to export a PDF that can be sent in email and will not be printed, and so I would like to export a PDF file that does not have any of that extra stuff (I have turned off the printer's marks) around the edges.  But my PDF has the excess stuff and a red outline around the actual page dimensions.  How do I export a PDF that is cropped to the correct page size (8.5" x 11")?
    I have attached the PDF I have created with the excess stuff and the red outline around the page size so you can see what I mean.
    Thanks!
    Bryan

    Hello,
    i have a problem exporting as a PDF also, i have done this before successfully and i have unchecked all the boxes to turn off bleeds etc, etc... however the bleed area is still coming through. I have tried saving the file under another name, closing down and reopening - nothing seems to work. I'd be very grateful if someone could offer some advice on this.
    Thanks!
    John

  • Is there a way to create menus without boxes around the text?

    I'm fairly new to Muse, but I'm hung up on this one issue.  I'd like to insert a text menu without the boxes around the text.
    What I have tried:
    Dragged in a horizontal menu from the Widget Library to my header for my master menu.  I've spent over an hour trying to find a way to make the surrounding boxes go away, but can't.  I realize that I can insert text, and link the text to particular pages, but I don't want to have to do this if at all possible.
    Thank you!

    Hi
    You can use No Fill for menu items and define same for all states :
    Also if there is stroke value, you can lower down to 0 which would remove any border weight.
    Let me know if I am missing something here.
    Thanks,
    Sanjit

  • I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong black box

    Hi - I'm not only having trouble waking up my MBP from sleep and having to restart repeatedly which is a pain in itself, but now when it restarted, I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong resizable black box sitting on top of anything.  The content changes depending on the actions I take.  Right now it says, "You are currently on a close button.  To click this button, which closes the current window, press Control-Option-Space."  Right now I'm open in Firefox, but it doesn't matter if only Finder is open, it's still there.  I've tried closing all my applications and restarting and I also reset the PRAM.  It won't go away.  It's probably something simple, but I don't know how to get rid of it.  Any suggestions are welcome.
    Thanks,
    Janet

    Thanks so much.  I saw this on "desktop strangeness" immediately after I posted and tried to retract my question.  It worked perfectly.  I'm not sure how VoiceOver got turned on unless something happened when I was trying to wake up the computer.  I open the lid and it flashes whatever is open and then the screen goes black and I can't wake it up.  Still looking for the resolution to this.

Maybe you are looking for