Problems in accessing Connection Factories in JMS

Hi
We are porting A J2ee application from weblogic to SAP Web AS.
Primarily in weblogic we always get a Connection Factory Instance from
the Connection Factory and then typecast it to either
QueueConnectionFactory or TopicConnectionFactory.(Pl. see the code
below)
ConnectionFactory factory = null;
QueueConnectionFactory queueFactory = null;
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
this.initialContextFactory);
env.put(Context.PROVIDER_URL, this.providerUrl);
context = new InitialContext(env);
factory = (ConnectionFactory)context.lookup
(this.JNDINameConnectionFactory);
queueFactory = (QueueConnectionFactory)factory;
this.connection = queueFactory.createQueueConnection();
this.session = this.connection.createQueueSession
(false, Session.AUTO_ACKNOWLEDGE);
this.queue = (Queue)context.lookup(this.queueName);
But in SAP WEB As there is not such facility provided.Is it that always
we need to lookup to the jmsfactory/default/QueueConnectionFactory for
a Queue and jmsfactory/default/TopicConnectionFactory or
jmsfactory/default/QueueConnectionFactory for Topic . Is it poosibel to
get a Connection factory Instance from where on I Could further
Typecast it to TopicConnectionFactory or QueueConnectionFactory
Instance , because this the way we normally do in Weblogic or JMS.
Also this is how the java JMS API accepts . Could you please let me
know as to are there any more configuration to be Done apart from the
JMS provider and JMS Connector in the Visual Admin for Accessing the
Topmost ConnectionFactory JNDI Instance . If no ,are there any other
workarounds , as approach for changing the code for accessing the
individual Connection Factories JNDI is not feasible for us
regards
rajesh kr

Hi Rajesh,
Here it is a code sample, that I was thinking about
  RajeshConnectionFactory implements QueueConnectionFactory, TopicConnectionFactory, Serializable {
   //SAP queue and topic factories that will be initialized during deserialization
   private QueueConnectionFactory sapQueueFactory;
   private TopicConnectiojnFactory sapTopicFactory;
   // will be invoked after deserialization, when performing lookup of this object
   private void readObject(ObjectInputStream stream) {
       sapQueueFactory = performLookup(PATH_TO_SAP_QUEUE_FACTORY);
       sapTopicFactory = performLookup(PATH_TO_SAP_TOPIC_FACTORY);
   //from the TopicConnectionFactoriesInterface
   TopicConnection createTopicConnection()  {
       return sapTopicFactory.createTopicConnection();
   //from the TopicConnectionFactoriesInterface
   TopicConnection createTopicConnection(String user, String password)  {
       return sapTopicFactory.createTopicConnection(user,password);
   //from the QueueConnectionFactoriesInterface
   QueueConnection createQueueConnectrion() {
       return sapQueueFactory.createQueueConnection();
   QueueConnection createQueueConnectrion(String user, String password) {
       return sapQueueFactory.createQueueConnection(user, password);
Then you will bind your RajeshConnectionFactory in the naming on the place your application is looking up, and your application after performing lookup can safely typecast it to whatever you want.
I hope that will solve your problems. If it works, I will not charge you for the code copyright :).
However I think it will be better if you fix the application to make it trully J2EE compatible instead of such magics.
Best Regards
Peter

Similar Messages

  • I have problem with Access Connections on L412 after that utilyty upgrade

    I have problem with Access Connections on L412 after that utilyty upgrade in early August. Windows 7 Ultimate/x64.
    It stops connecting to WPA2 Enterprise (AES-CCMP), Microsoft PEAP, no server cert, with any credentials I try to use. The same account(s) works with native Intel manager on other notebooks and on mobile devices. I lost the wireless connectivity to enterprise WiFi network.
    And, after deinstallation of Access Connections, the inability to connect keeped intact with native Win7 WiFi management.
    I think, something was broken in Access Connections 5.83 Build 83C753WW and some registry settings/ dll modules were altered but not returned to normal after deinstall.

    Access Connections is definitely broken for WPA encryption.  Both versions 5.02 and 5.84 fail for me.  If I use the Windows XP wireless configuration instead of Access Connections, everything works.
    Does anyone know how to report this to Lenovo?  I chased links around the web site but couldn't find a place.

  • Problem with Access Connection

    Hi there At the moment I am using Lenovo T61 with Vista Business & SP1. In addition I have got the Access Connection v 5.12 and Intel Wireless card number 4965agn.I saw that, when Wireless network is open my T61 can established connection with more than 130Mb transfer both by access connection and Vista systems settings.  Unfortunately when I set WPA/WPA2 security my T61 by vista settings can establish connection more than 130Mb but by access connection is established only 54Mb. I also saw that Access connection establish 802.11g standard (when the WPA is set) instead 802.11n. (When Wireless network is open then established 802.11n standard).Is possible to get any hotfix to Access Connection to solve this problem? RegardsPawel

    any idea?

  • T60p & Windows 7 Pro and Bluethoot problem with Access Connections.

    Hi,
    I reinstalled Windows 7 Pro (64bit) at my T60p laptop.
    I use Access Connections (v. 5.97) manage my wi-fi, lan connections.
    (installed with all features lan, wi-fi, modem etc.)
    So here is problem.
    When I start Access Connection. Bluethoot goes ON ...
    Trying disable Bluetooth via Access connectios (Power Off), but it's still going "ON" and stays "ON"...
    Any good solution to keep bluethoot off without disable it at bios?
    Earlier version of Access Connections keeps bluetooth OFF...
    /P

    If you are not using the Bluetooth and you want to disable it, the easiest way is to disable the device in the Device Manager.
    Go into the Device Manager by searching for Device Manager in the start menu, Open the Device Manager and select hardware, choose the Bluetooth device, right click, and finally choose 'disable'. If you want to use the Bluetooth device in the future you will have to return to the Device manager, right click and 'enable' the device.
    I hope this information has been helpful, please let me know if you have any further questions.
    Thank you for being a part of the Lenovo Family,
    Catie
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Donate KUDOS and Click "Accepted Solution"

  • Problem with Access Connections peer to peer comunity feature

    I am working on a project at work and would really like to use the P2P Community feature in Access Connections. In testing, I discovered that when using the P2P Community feature the software configures the wireless adapter to a static IP address and static DNS server. When the laptop disconnects from the P2P community and reconnect to a Wifi network, it can't because the IP/DNS defaults don't revert back to automatic.
    I could override the defaults by changing the settings in the location profile. But I work in a compay with 2000 laptops each has multiple connection profiles, not including the staff that have setup their own profiles. It would be unmanageable to update all the profiles.
    Is there a solution to this issue?
    thanks in advance

    Do your AC profiles have the Override TCP/IP and DNS Defaults box "ticked" on the Additional Settings tab on the profile?
    Also, are your current network settings on "Obtain an IP address automatically" and "Obtain DNS sevrer address automatically"?
    Cheers,
    Bill
    I don't work for Lenovo

  • Problem with Access Connections

    V100 with intel Wireless.
    The wireless is working perfect but when I press Fn F5 I get this error message:
    "No supported wireless adapter (802.11, WAN or Bluetooth) are installed in this system.
    And I cannot switch off the BT at all.

    Hi,
    this is not directly and error, but a message, that is present  usually also when you establish a correct internet connection.
    This is the information, that the IP address is worng, or was till now not received and thus the system should refresh the IP address.
    In this case I would advice to se the power mode to high performance of this one Wifi profile, that you are using, if this will make any change.
    Cheers

  • Access Connections Problem / AVG Problem connected

    I have been having a problem with Access Connections (henceforth AC) connecting to an Apple Router that supports 802.11 b/g/n.  It would take many many many attempts and after about 5 to 15 minutes of retrying - I'd finally connect.
    And I had a second problem with AVG.  AVG is the antivirus program I'm using. It's resident shield (avgrsx.exe) would take all of one of my processors on my SL500 laptop running Vista Home Premium.  It wasn't clear to be that this problem was connected with the first - but stay tuned.
    I had updated to the latest version of AC and saw no relief.  So I thought perhaps I'd uninstall it and start fresh - with a reinstall.  So I did the uninstall - keeping the profiles that I had defined.  But before I did the re-install, I thought I'd try it 'as is' and see what happened.
    What happened is that my system booted and connected to the Apple Router immediately.  And, where AVG's resident shield was running flat out before - now it was hardly running at all.  My conclusion:  1) AC has some serious problems, especially when combined with AVG. 2) It's not clear to me why we need AC at all, at least for 802.11.  The base Vista and Intel programs seem to be doing a good job for 802.11.  I cant say for Wireless WAN or WiMax, I'm not using either.
    Now this part if just speculation, but I'll offer it in case the owner of AC sees this.  It may provide a clue to what's ailing AC and s/he can fix it.  The clue is the problem with AVG.  The component with the problem was avgrsx - the resident shield.  That's the component that scans an exe file as it comes form the disk into memory.  That AVG was pegged (100% on one processor) indicates that something was fetching a lot of things from disk over and over again - that the problem went away when I uninstalled AC points the finger to AC at the problem.
    In support of this, with AC installed, after it had made the connection to the Apple router, I would see CPU utilization spikes at regular intervals (somewhere around 1 sec, i think, plus or minus quite a bit) even after the connection was made.  These too went away when I uninstalled AC.
    Sooo.....
    After this, I decided to not reinstall AC and just stick with the Vista/Intel approaches for my wireless.  At least that's where it is for now.
    Brassie

    I recently experienced the same problem using a current (2009/11) version of Access Connections and a Linksys router, plus AVG 8.5. Access Connections was extremely slow to start and there were regular (every second or 2) bursts of 100% cpu activity in 'avgrsx.exe'.
      I have opened incidents with both AVG and Lenovo concerning this but am not confident of a resolution being provided. However, in the meantime I have found a bypass I'd like to document for others to reference. It opens a small security hole though, so be aware.
      AVG's Resident Shield can be configured with 'exceptions' to its scanning range. If the directory containing the Access Connections executables (which I will not explicitly name in an Internet posting) is added to the exception path list, the CPU bursts cease.
      If additional information becomes available through my vendor incidents I will post that as well.

  • Access connect auto-switc​hing problem (v5.62)

    I have a problem with access connections in that it does not connect to the internet after automatically switching to a new network (proxy error perhaps?). I have to disconnect then reconnect to the network to get it to work (which kinda defeats the purpose). Has anyone had this problem or has a fix for this?
    Thanks in advance.

    Hi,
    this situation sound familiar.
    Make sure, that by bother Wifi profiles you have the option "Disable this wirelessa radio when switching to a different location" checked. You can find this in the profile configuration of AC.
    Once you have this, go to the "Wireless Settings" tab and hit Properties. A new window will open and make sure, that you have the option "Power save mode:" configured to "Low (best network performance)". This way you should be fine with the location switchings.
    Once this is done, go to the "Tools" tab of the main AC GUI and hit "Location switching". I assume, that you have this configured, but I just want to be sure, so here you make sure, that this is enabled and you have one (I would preffer the weeker) WIFI  profile selected in the "Preffered WLAN profile"
    BTW: in case one of the profiles uses static IP, then the location switching will not work at all.
    If all this is set and it still does not work, then I would say, that it would be goot to update all the application from lenovo.com.
    Cheers

  • X220 Tablet Access Connection IP/DHCP Problem

    I have following problem with Access Connections: Everything is working fine when the ip is set to DHCP. If I come frome home (static ip) and I am going to work (a different static ip) the ip gets not changed. Is there an option to reset the ip to dhcp automatically?

    hey SciLor,
    judging from your post over here, i'm guessing that if you have DHCP under auto-allocate you are not able to connect at home but you will be able to connect in the office ?
    in your Access Connection, i do believe you will be able to create two different profiles. In each profile, see if you can set the IP address in it.
    that way you just need to switch between profiles.
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    Have you checked out the Community Knowledgebase yet?!
    How to send a private message? --> Check out this article.

  • JMS Default connection factories

              Hi
              I have a evaluation version of Weblogic Server 7. When I start the examples server
              there are no default connection factories under JMS. The default connection factory
              is enabled. How can I view the default connection factory to use with the given
              examples?
              Thanks
              

              Hi
              You can look them up in the server's JNDI tree.
              In console, you can goto server (myserver) and click on the "View JNDI tree"
              link at the bottom, to get the JNDI tree, where you can find the default connection
              factories.
              Kats
              BEA
              "diptiman" <[email protected]> wrote:
              >
              >Hi
              >I have a evaluation version of Weblogic Server 7. When I start the examples
              >server
              >there are no default connection factories under JMS. The default connection
              >factory
              >is enabled. How can I view the default connection factory to use with
              >the given
              >examples?
              >
              >Thanks
              

  • Access connection​s wont show more than just the top bar.

    First of, hi everybody o/
    second, sorry if this isn't the right section, but isn't sure where to out it otherwise.
    I'm not sure what I might have done, but access connections now looks like this: 
    I haven't been able to find anyting to help, because honestly, I don't know how to describe the problem.
    It on a R500 with Win XP.

    I had this exact same problem with Access Connections 5.2 and Windows 7 (and have also had similar problems with Access Connections over the years) and it always boils down to updating the following and other drivers to the latest versions:
    Power Manager
    Wi-fi drivers
    Ethernet drivers
    Hotkey buttons and features
    NOTE: Don't rely on the Auto Update Utility and always do it manually - sometimes uninstall Access Connections and re-install after appying these updates. I did it and the problem is gone after reboot. 
    Maybe some other driversalso  need updating depending on the version of Access Conections so read the readme which for AC 5.72 in this case is
    NOTES
    - Before installing ThinkVantage Access Connections, it is required to install
      the following software.
      [For ThinkPad SL300,SL400,SL400c,SL500,SL500c]
      - ThinkPad Power Management Driver for SL Series for Windows 7/Vista/XP
          version 1.44 or higher
      - Hotkey Features Integration for Windows 7/Vista/XP/2000
          version 3.02.0000 or higher
      - ATK Hotkey Driver for Windows 7
          version 1.00.03.0 or higher.
      [For the other ThinkPad models]
      - ThinkPad Power Management Driver for Windows 98 SE/Me/2000/XP/Vista/7
          version 1.60 or higher
      - Hotkey Features Integration for Windows 7/Vista/XP/2000
          version 3.02.0000 or higher.
    - Update wireless LAN/WAN adapter software for each adapter, as follows.
    This should fix it 

  • Access Connection - detect WLAN encryption automatically?

    Hallo,
    I have a problem with Access Connection: When I want to connect to an encrpted WLAN Access Connection says, "Unable to connect to the selected wireless network. You may need to configure your system to support the authentication method that is in use. Do you want to configure now?". If I click "no" nothing happens and I am not connected. If I click "Yes" the Access Connection profile Editor shows up and asks me to select the proper encryption (WEP/WPA/WPA2 etc). That's not really very comfortable. Other tools (like the build-in Windows WLAN-Manager) can detect the right settings for the encryption automatically and just promt for the key.
    Why is Access Connection not able to detect the used WLAN-ecryption automatically and has to be configured by hand? is it supposed to be like that or am I doing something wrong?
    Help would be greatky appreciated! Thanks!

    Access Connections will normally attempt to connect to the last successfully connected profile (particularly if suspending or hibernating between locations).  If that fails, it will scan the local SSIDs and see if one matches your list of profiles (so hidden SSIDs can slow this down some).  It will then attempt to connect using the profiles it has based on the order in Location Switching.
    So be sure that Location Switching  is enabled and order your profiles (or even uncheck ones that aren't commonly used) to match where your are most often connecting wirelessly.
    So basically, let Access Connections try and connect on it's own.  If the pop-up connection window is annoying you, you can disable it under Global Settings and Notifications tab, uncheck the last box.

  • Access Connections / WLAN / Win7 x64 / 5300 AGN / connection loss

    Hi there,
    I'm experiencing some Problems with Access Connections. Most of the time I'm using my T500 with a dockin station and a wired network. No problems so far. But when i undock it and start using WLAN its only a matter of time until it looses Connection. Something about 5mins. Access Connections states its connected and the signal strength is perfect, but the small Network manager Icon from Windows says its not. And in fact, i can't ping the access point or my gateway. ipconfig shows the correct ip configuration, but there is no connection any more (access connection still claims to have a perfect connection).
    When I disconnect via Access Connections and try to reconnect it fails. Not completely but obtaining a new IP from the DHCP-Server fails. So my Nic is configureg with 169.x..x.x (aka crap)
    Restarting AcPrfMgrSvc and AcSvc did the trick for about 5min, then I had the same problem again.
    Looks like Access Connections and Windows aren't "best friends".
    The 5min problem seems to be caused  by some power saving function, but I don't want to disable them.
    Win7 x64 is a fresh installation ( btw. to get all the needed drivers is a nightmare!)
    Anybody knows this problem? Any fix from lenovo?
    Would be nice!
    Kind regards

    Yes basically you have to disallow Windows to turn off the device automatically.
    Because Access Connection doesn't replace Network and sharing center but works in addition with it, there is some settings have to be modified in windows.
    If not allowing windows to turn off the device is not enough to solve your problem, you can gon in access connections>tools>global settings and untick allow the wireless LAN radio to be turned off when inactive.
    With your comparision with an hybrid car, if your not allowed to switch to save fuel and you can't fix it you have to choices don't use it or use fuel.
    Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information on it.
    ThinkPad T510 4313-CTO Windows 8 x64 - Intel Core i7-620M - NVIDIA NVS 3100M - 8GB RAM - 240GB SSD- Intel Centrino Ultimate-N 6300 - Gobi 2000.
    ThinkPad Helix 3697-CTO Windows 8.1 x64 - Intel Core i7-3667U - Intel HD Graphics 4000 - 8GB RAM- 256GB SSD - Intel Centrino Advanced-N 6205 - Ericsson C5621gw

  • Power Manager and Access Connections crash, neither help nor solution from Lenovo!?!

    Hello
    I've already posted here on the forum several weeks ago about the obvious problem that Lenovo has with the latest version of the Power Manager and the Access Connections which both crash either on startup or while tryibg to open it.
    So far there has been neither an update, nor a solution nor an official statement from Lenovo about that problem that consists rightnow for over two month!
    When searching the forum I see the same all over again: Unanswered threads, solutions that don't solve anything at all and so on...
    And just if someone here comes up with comments like:
    "work's here" or "just rollback to the old version", what is the point of writing software that doesn't work?? And why not giving ANY SUPPORT AT ALL???!!!
     I really would at least like to see an official statement saying "we work on it". After buying one of the most expensive notebooks on the market (and in my opinion still one of the best) hat would be the least one could expect form a "award wining" company like Lenovo...
    Regards
    Martin Pauli

    Hello, I am a Help Desk Consultant at Rensselaer Polytechnic Institute and currently, we've had many problems with access connections, 4965 agn wireless card, and its drivers.
    Symptoms:
    1) Wireless card is detected my windows device manager
    2) Wireless card is NOT detected by access connections, intel wireless utilities/tests/etc
    Other related information:
    1)  Events with ID 7036 + source: NETw#v## (the # stand for numbers, I can't quiet remember which ones but the one after the v is a 5
    2) Rollback driver is NEVER an abailable option
    3) Every failure case with same symptoms came in starting mid September
    4) If you select "show hidden devices" in device manager, there is a huge number of devices, most of which seem to be repeats
    After many hours of debugging and fustrated complaints, I have determined that it could be one of many problems:
    1) Teredo tunnelling: Apparently, atheros/intel/access connections won't find the wireless card if teredo has been enabled or something
    2) Power management: A default setting is "let windows turn the wireless off it there's not enough power" in wireless properties>configure>power management
    3) Driver update combination conflict: between a update on 9/21 and present time, there's something horribly gone wrong
    If anyone has a definitie solution to this, please post. 

  • Lenovo Access Connection​s Program Dead

      Hi, and thanks in advance for any suggestions.
      I'm running Vista Business on a T500.  I've always used the Lenovo Access Connections program to switch wifi locations.  Access Connections now doesn't appear to work.  The program opens normally but there is now (hadn't noticed it before) a location profile named "Windows Wireless Service," and when I click the "Find" button Access Connections doesn't find anything the list and graphic screen show no networks even if there are a dozen WiFi routers.
      When I FnF5 the Wireless Radio window opens indicating that my Bluetooth is "on" and the 802.11 is "off."  If I click the "Power On" button nothing happens.
      But my internet works normally and it's even switching WiFi locations automatically!  Somehow the machine has switched to using the Windows WiFi manager - the only thing I can think of that could have precipitated this is that I plugged into my work ethernet.  First time in about a year that I've done this and these problems with Access Connection seemed to start shortly after that (no indication at the time - Access Connections seemed to work).
      If I go Control Panel > Network & Sharing > Connect to a Network I see a "find" window similar to the Access Connections list, but on this Windows program the routers are all "found."  I see in a few places that two network connection managers can't be running at the same time.  I tried turning off the service "WLAN AutoConfig" but that did not allow Access Connections to run.  Maybe I didn't shut off the right thing or maybe I didn't turn it off correctly.  Since Access Connections doesn't work I turned WLAN AutoConfig back on, but it would be nice to have Access Connections functioning.  I've looked everywhere and can't find an answer.  Any suggestions appreciated!
                                                      ​                            Ben

    I have Access Connections working in Windows 7 and had it working in Vista before that. I use it to change between wireless connections as well.
    If you want it working, try the following:
    1. Document your profiles (SSID, WEP or WPA, security key) in a small Notepad file.
    2. Download the latest copy (5.85 if I remember correctly).
    3. Uninstall Access Connections. When it asks, delete the profiles as part of the uninstall.
    4. Go to Windows Wireless Manager. Delete any left over profiles in it.
    5. Restart.
    6. Install Access Connections (use a wired connection first if you can).
    7. Now install the first wireless connection and ensure that it works.
    8. Assuming so, install the remaining wireless profiles.
    Good luck.

Maybe you are looking for

  • How do I capture a screen image on my MacBook Pro?

    I have had problems getting my MacBook Pro to back-up to my WD My Passport since updating to Mavericks. I am in email conversations with WD and require to email them a capture of the WD diagnostics Screen. Since there is no PRINT option in the WD men

  • Network users doesn't show up on snow leopard client

    Hello, I am having a weird problem with my snow leopard client that won't show a list of the network users. The server is a open directory server and other snow leopard client can show the list of the network users on login screen except one. I've tr

  • Using and loading newer java classes...

    Hi, I am trying to use a feature from the newest release of java in my application. Is it possible to find the exact class files within the jre and just put them amongst my application's classes? For example if I were to take the new transparency fea

  • Getting jeditorpane to scroll to a piece of text

    I am highlighting text in a JEditorPane and can't figure out how to get the pane to scroll so the hightlighted text is visible. Any ideas? Thanks

  • [svn:osmf:] 14453: DVR: unit tests, continued.

    Revision: 14453 Revision: 14453 Author:   [email protected] Date:     2010-02-26 07:30:14 -0800 (Fri, 26 Feb 2010) Log Message: DVR: unit tests, continued. Modified Paths:     osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as     osmf/trunk/framewo