MDB cannot connect to JMS destination using Foreign Server

Hi everyone,
I have configured foreign jms server in weblogic but when MDB tries to connect to specific queue, it gets the following exception:
I would really appreciate if anyone could help me.
<Sep 28, 2012 5:23:34 PM CEST> <Warning> <EJB> <BEA-010096> <The Message-Driven EJB: SmsReceiver is unable to connect to the JMS destination or bind to JCA resource adapter: xcg2/smsInQueue. Connection failed after 2 attempts. The MDB will attempt to reconnect/rebind every 10 seconds. This log message will repeat every 600 seconds until the condition clears.>
<Sep 28, 2012 5:23:34 PM CEST> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: SmsReceiver is unable to connect to the JMS destination: xcg2/smsInQueue. The Error was:
[EJB:011010]The JMS destination with the JNDI name: jmsxcg.out could not be found. Please ensure that the JNDI name in the weblogic-ejb-jar.xml or corresponding annotation is correct, and the JMS destination has been deployed.
javax.naming.InvalidNameException: jmsxcg.out: [LDAP: error code 34 - Invalid DN]; remaining name 'jmsxcg.out' NestedException Message is :jmsxcg.out: [LDAP: error code 34 - Invalid DN]>
MDB annotation looks like this:
@MessageDriven(name="SmsReceiver", mappedName="xcg2/smsInQueue",
activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class SmsReceiverBean implements MessageListener
weblogic-ejb-jar.xml excerpt:
     <weblogic-enterprise-bean>
          <ejb-name>SmsReceiver</ejb-name>
          <message-driven-descriptor>
               <pool>
                    <max-beans-in-free-pool>10</max-beans-in-free-pool>
                    <initial-beans-in-free-pool>5</initial-beans-in-free-pool>
               </pool>
               <connection-factory-jndi-name>echoQueueConnectionFactory</connection-factory-jndi-name>
          </message-driven-descriptor>
          <transaction-descriptor>
               <trans-timeout-seconds>600</trans-timeout-seconds>
          </transaction-descriptor>
<dispatch-policy>MdbSmsWorkManager</dispatch-policy>
     </weblogic-enterprise-bean>
and the configuration of foreign-server:
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-jms xmlns="http://www.bea.com/ns/weblogic/weblogic-jms">
<foreign-server name="serverr">
<sub-deployment-name>Subdeployment</sub-deployment-name>
<foreign-destination name="sms queue>
<local-jndi-name>xcg2/smsInQueue</local-jndi-name>
<remote-jndi-name>jmsxcg.out</remote-jndi-name>
</foreign-destination>
<foreign-connection-factory name="Connection Factory">
<local-jndi-name>echoQueueConnectionFactory</local-jndi-name>
<remote-jndi-name>QueueConnectionFactory</remote-jndi-name>
</foreign-connection-factory>
<initial-context-factory>com.tibco.tibjms.naming.TibjmsInitialContextFactory</initial-context-factory>
<connection-url>tibjmsnaming://xx.xx.xx.xx:7222</connection-url>
</foreign-server>
</weblogic-jms>
PS. I'm able to connect to the weblogic jndi, get connectionFactory echoQueueConnectionFactory, then lookup queue and grab messages so that's i suspect there is something wrong with configuration

Hmm - I'm not sure what's going on. Two thoughts --
Thought 1 - According to my (admittedly minimal) research, Tibco is complaining about a syntax error in the lookup name. Perhaps the problem has something to do with your use of a "." in the queue name "jmsxcg.out": WL or Tibco JNDI might be interpreting the "." as a subcontext or some-such. Perhaps try renaming the queue to "jmsxcg_out" throughout (in Tibco and in your Foreign JMS reference).
Thought 2 - It probably won't make a difference, but you might want try specifying the source destination via the "destinationJndiName" config property instead of via "mappedName".
@MessageDriven(
  name = "MyMDB",
  activationConfig = {
    @ActivationConfigProperty(propertyName  = "destinationType",
                              propertyValue = "javax.jms.Queue"),
    @ActivationConfigProperty(propertyName  = "destinationJndiName",
                              propertyValue = "MyQueue") // Ext. JNDI Name
)HTH,
Tom

Similar Messages

  • New-Pssession client cannot connect to the destination specified

    I've used the following cmdlets to connect powershell to our tenant for months and now I cannot open a possession with the same commands.
    I've searched on some of the error text show below without any great progress. We have a pair of Hybrid servers and we get the same result on either.
    Any suggestions are appreciated.
    Bruce
    Import-module msonline
    $O365Cred = Get-Credential
    $O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection
    Import-PSSession $O365Session
    Connect-MsolService –Credential $O365Cred
    [email protected]
    working password at the MicrosoftOnline Portal
    $O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic –AllowRedirection
    WARNING: Your connection has been redirected to the following URI:
    https://pod51038psh.outlook.com/powershell-liveid?PSVersion=4.0
    New-PSSession : [pod51038psh.outlook.com] Connecting to remote server pod51038psh.outlook.com failed with the following error message : The client cannot connect to the destination specified
    in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service,
    run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic.
    + $O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUr ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : CannotConnect,PSSessionOpenFailed
    Import-PSSession $O365Session
    Import-PSSession : Cannot validate argument on parameter 'Session'. The argument is null. Provide a valid value for the argument, and then try running the command again.
    At line:1 char:18
    + Import-PSSession $O365Session
    +                 
    ~~~~~~~~~~~~
    + CategoryInfo         
    : InvalidData: (:) [Import-PSSession], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.ImportPSSessionCommand
    Connect-MsolService -Credential $O365Cred

    You are using the outdated URI string, which is known to cause problems. Should be: https://outlook.office365.com/powershell-liveid/
    Just follow the instructions in the TechNet article:
    https://technet.microsoft.com/en-us/library/jj984289(v=exchg.150).aspx

  • My Macbook Pro cannot connect to the internet using an ethernet cord.

    My Macbook Pro cannot connect to the internet using an ethernet cord. It was working fine for weeks, then all of a sudden just stopped. What could the problem be?

    Hi bean07670,
    If you are having an issue with the Ethernet connection on your MacBook Pro, you may find the following article helpful:
    Mac OS X: Troubleshooting a cable modem, DSL, or LAN Internet connection
    http://support.apple.com/kb/TS1317
    Regards,
    - Brenden

  • TS1368 I cannot connect to iTunes store using iTunes. 'Secure link to iTunes store failed'. Please help!

    I cannot connect to iTunes store using iTunes. I have version 11.0.2.26 on Win 7 pc. I have had no problems until recently. Can't say exactly the problem began as I don't normally use my computer to access the store but my last successful access according to iTunes diagnostics was 28th Feb 2013 (if thats useful?!)
    I've run the Network Connectivity Test in iTunes diagnostics and I got the following results:
    - Network interfaces verified.
    -Internet connection verified.
    -Secure link to iTunes failed.
    When I click the help button next to the 'Secure link to iTunes failed' message I get the following:
              ''iTunes Help is unavailable because your computer isn't connected to the internet.'
    My pc is connected to the internet. I've checked firewalls. Windows firewall is off. I'm running AVG internet security 2013. Iv've checked the firewall settings on that and iTunes is not being blocked.
    Getting kinda frustrated. Can anybody help please???

    I seem to have tracked down the problem. AVG Family Safety software was causing the issue somehow. I have uninstalled it and iTunes now working. I will contact AVG for a solution as I now have no way of blocking certain sites.

  • My pc cannot connect to iphone 4 using bluetooth,says no bluetooth driver.

    my pc cannot connect to iphone 4 using bluetooth,says no bluetooth driver.

    What exactly are you trying to achieve by connecting via bluetooth? If you have a tethering plan, that's the only thing that's supported via bluetooth to a computer. It cannot sync or transfer files via bluetooth. Those are not features of the iPhone.

  • Cannot connect to the net using my wi fi on my blackberry curve

    hi there, i cannot connect to the net using my wi fi on my blackberry curve 8520. wen i go in to settings and click on to manage connections it as a tick at the side of wi fi  and says TALKTALK- 3B0BD4 and a tick at the end. if i turn my mobile network of my signal goes,  and when i try to connect to the net a message comes up saying  unable to connect to the internet, please try again later. if the problem persists please contact your service provider.when i try to set up a new wi fi connection and scan for networks it comes up with TALKTALK-3B0BD4 and undernieth it says connected and the signal is full at the side of it? many thanks maria

    i cannot browse the internet thru wifi using bb curve 9360..when i checked  my wifi settings it  says that im already connected but when im trying to browse it says cannot connect contact your service provider

  • Cannot connect to FMS 4 using rtmfp

    Hi people,
    I was try to connect my FMS 4 development server (Redhat linux OS) in live which was not connected, but the same setup in local windows is connected.
    I do know whats the exact problem. Also i will stop the iptables in linux but no use. Please any idea, its worthful.
    thanx and regards
    Suresh

    Hi Nikhil,
    Appreciate your reply.
    Both Firewall and the SELinux are disabled. But still cannot access the FMS
    Server using http://ip-address. Windows installation works perfectly. But
    still I can Telnet to port 80,1935 and 111 in the Linux installation. This
    is weird. I don't know why the only the Linux setup is not working. Any
    idea that I need to change any configuration in the Linux setup? Here is
    the Linux version I've installed,
    Re: Cannot connect to FMS 4 using rtmfp# uname -a
    Linux GSMedia 2.6.18-274.12.1.el5 #1 SMP Tue Nov 8 21:37:35 EST 2011 x86_64
    x86_64 x86_64 GNU/Linux
    Re: Cannot connect to FMS 4 using rtmfp# cat /proc/version
    Linux version 2.6.18-274.12.1.el5 ([email protected])
    (gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Tue Nov 8 21:37:35
    EST 2011
    Re: Cannot connect to FMS 4 using rtmfp# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.7 (Tikanga)
    Thank you.
    Viraj
    From:     Nikhil Pavan Kalyan <[email protected]>
    To:     Kularatnav2012 <[email protected]>
    Date:     01/05/2012 03:57 AM
    Subject:     Re: Cannot connect to FMS 4 using rtmfp Cannot connect to FMS 4 using rtmfp

  • Cannot connect statefully to AuroraServer using inst1_http

    I tested inst1_http using Net8 successfully. But when I run the url on the brower, I got "Cannot connect statefully to AuroraServer using inst1_http" message on the error.log file. Could some one let me know the cause?
    Where can I find the log information about mod_ose, and ose?
    Thanks,
    Lixin

    I am on Win 7 64 bit. iTunes and one other program I use could not make a secure connection although I was able to securely connect to online banking, etc. I tried ten different settings I read about in various posts under "Secure Connection" including the links about in your post. Nothing worked.
    What finally worked for me was going into Control Panel, then selecting Internet Properties, then going to the Advanced tab, and then scrolling down to the Security section and unchecking "Check for server certificate revocation*" Note that I undid trusted sites (e.g. no trusted sites needed) and undid all the special Norton IS 2009 firewall settings and everything still worked. This seemed to all start with the updates starting with iTunes rev 9 but I can't be sure as I recently upgraded to Win 7 Premium Home from Vista Ultimate.
    Hope it works for you. I will post this in a few other discussions on the same as I have not seen anything before that worked in my case.
    Good luck.

  • I cannot connect to the net using 3G, i have ipad2 16GB, i have tried resetting my ipad2, and resetting the network setting, my location is here in riyadh, everitime i try to connect to the net theres a pop message saying "could not activate cellular data

    i cannot connect to the net using 3G, i have ipad2 16GB, i have tried resetting my ipad2, and resetting the network setting, my location is here in riyadh, everitime i try to connect to the net theres a pop message saying "could not activate cellular data network, please help me guys thanks.....

    Thanks for the quick response. No, I did not get any error messages or any terms-of-usage screen. The employee I told my problem to was not computer savvy either. She just suggested I move to different spots w/in the library to see if that would make a difference. It didn't. When I connected to the library WiFi it did change the Verizon 3G that is usually in the upper left corner to iPad with two to three emanating arcs. I may have to go to the library in the next town. I was able to connect to theirs in the past when I had to download something greater than 20 MB. Unless I really want it, I will probably not even try to download something more than 20 MB due to the hassle. Yeah, I may have been better off getting a normal desktop or laptop and getting WiFi at home. To do that now would mean having my iPad 2 and a desktop computer, which I feel is extravagant. (I know there are a lot of big spenders out there who got the iPad as additional gadget for fun. This is a rich country.) A Verizon rep told me I couldn't set up a WiFi router at home just using an iPad. So it seems like a person who just uses 3G is limited to surfing the net (not even much YouTube because it eats a lot of data) and using email. I read about an app that helps print wirelessly using 3G, but a reviewer said you had to be an engineer to get it done right. BTW, I like the Steelers. I'm old enough to remember Franco Harris and that blond guy whose name escapes me back in the '70s. Since I live in North Jersey I feel I have to support the Giants. But I know football about as well as computers.

  • I cannot connect to the internet using apps but im connected to the internet!

    i cannot connect to the internet using apps but im connected to the internet!

    What makes you think that you are connected to the internet then?
    Try:
    - Resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    - Reset ntwork settings: Settings>General>Reset>Reset Ntwork Settings.
    - iPhone and iPod touch: Troubleshooting Wi-Fi networks and connections

  • My iphone 4s cannot connect the internet sometimes using the 3G, but sometimes it does work. i do not know what is wrong ?

    my iphone 4s cannot connect the internet sometimes using the 3G, but sometimes it does work. i do not know what is wrong ?

    5.0.2 has not been released, thus you can not upgrade.
    Stedman

  • Cannot connect to database master at SQL server at SERVERNAME

    I have installed SQL 2008 R2 in a fresh win 2008 R2. I’m running the sharepoint configuration Wizard using the database server name with the correct domain
    credentials but I get the following error message. “Cannot connect to database master at SQL server at
    SERVERNAME. The database might not exist, or the current user does not have permission to connect”
    I‘m able to login to the new SQL server using the “SQL server management studio” with no problems. I used the sa account and a domain account.
    The sharepoint server is also a new installation. And both servers have the firewall disabled.
    Thanks in advance for your help.
    Simon

    Hi,
    What is your SharePoint server’s version?
    Please make sure you use the farm admin account to launch SharePoint configuration wizard. If not, please log in with this account, then check the effect.
    In addition, check if you create a named instance, such as, servername\sharepoint, however, you only specify the servername in the configuration wizard. If this is
    the case, change to servername\sharepoint, then check the effect.
    Thanks,
    Rock Wang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Regards, Rock Wang Microsoft Online Community Support

  • OSB to MQ, using Foreign Server

    Hi All,
               I am working on OSB to MQ connectivity, using Foreign Server. I was able to establish the connectivity using Sun JDK 1.6. However when I JRockit 1.6 is used, connectivity is not working. There are stuck threads in Weblogic, when weblogic has to invoke the MQ Jars. Any suggestions, will be greatly appreciated.
    Regards.

    Hi
    Thats very strange behavioural diffrerence between Sun & Jrockit.
    Take it you have gone through the stuck threads and realised threads were marked stuck when trying to invoke / load MQ jars? can you copy the stuck threads referring that please.
    Have you tried loading those MQ jars in the classpath of the server .. That way all the necessary jars/classes will be available local to the instance
    and can be located by classloader without much delay.
    HTH
    Sri

  • Cannot  connect to file shares on Yosemite server v4.0

    I have a fairly new installation of a Mac Mini Server.  As a Linux specialist I find some of the things frustrating but the rest of the office has a much easier life as things just work. Except for file sharing. If I use finder, use the shared section of the to display the network, find my server and double click to open up file share options, it refuses and says it cannot connect. I then use Finder>Go>Connect to Server and enter the SMB Server name as smb://[SERVER_NAME]/ and it immediately connects and I can connect to all drives successfully.
    When I check the system.log after after the unsuccessful connect attemt using Finder, The following is in the log:
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: label: default
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: dbname: od:/Local/Default
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: mkey_file: /var/db/krb5kdc/m-key
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: acl_file: /var/db/krb5kdc/kadmind.acl
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: uid=0
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: netr probe 0
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init request
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init return domain: BRTSRV00-IDENTI server: BRTSRV00 indomain was: <NULL>
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: uid=0
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init request
    Feb 11 09:08:11 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init return domain: BRTSRV00-IDENTI server: BRTSRV00 indomain was: <NULL>
    Feb 11 09:08:13 brtsrv00.identitylabs.uk kdc[25915]: Got a canonicalize request for a LKDC realm from local-ipc
    Feb 11 09:08:13 brtsrv00.identitylabs.uk kdc[25915]: Asked for LKDC, but there is none
    Feb 11 09:08:13 brtsrv00.identitylabs.uk sandboxd[582] ([25915]): kdc(25915) deny file-read-data /private/etc/krb5.conf
    Feb 11 09:08:13 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: uid=0
    Feb 11 09:08:13 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init request
    Feb 11 09:08:13 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init return domain: BRTSRV00-IDENTI server: BRTSRV00 indomain was: <NULL>
    Feb 11 09:08:13 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: uid=0
    Feb 11 09:08:13 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init request
    Feb 11 09:08:13 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: init return domain: BRTSRV00-IDENTI server: BRTSRV00 indomain was: <NULL>
    Feb 11 09:08:13 brtsrv00.identitylabs.uk digest-service[27507]: digest-request: uid=0
    Feb 11 09:08:14 brtsrv00.identitylabs.uk digest-service[27507]: digest-request od: ok user=BRTSRV00-IDENTI\\ghorne proto=ntlmv2 flags: ENC_128, NEG_VERSION, NEG_TARGET_INFO, NEG_NTLM, NEG_TARGET, NEG_UNICODE
    Feb 11 09:08:14 brtsrv00.identitylabs.uk rpcsvchost[27362]: passwd entry for uid=1031 homedirectory invalid
    If I connect using Finder>Go> Connect to Sever I get the same error but the difference is the file shares are visible in the "Select the volumes you want to mount box" and I can mount the shares with no additional errors successfully. Please excuse me I am not very graphically savvy with OS-X (or OS-X for that mater). (Happy with Solaris, OpenBSD or Linux) I am a command line junkie (deep linux dude). Struggling to find my way around some of the things Apple DO. I am not sure I like people taking some of my toys and levers away.
    Any clue how to solve this issue?

    I am using fully qualified domain names for all servers on my network.  I have multiple domains untold virtual machines etc and services everywhere as it is a dev environment.  I use smb://brtsrv00.identitylabs.uk/ and it works without fault. Still no authentication from the Finder discovery.  Sorry I am a bit knew to to OS-X even though I have used different MacBook's for over 7 years.  DO a lot of VMware Fusion server development so don't touch OS-X much.  By the way, the name is provided by DNS and both the forward reverse lookup is correct. (dig brtsrv00.identitylabs.uk and dig -x 10.0.1.3)

  • Error when deploying MDB : when connecting to my destination

    I am getting this followin error in my webLogic server 7.0 log:
    The Error was:
    The Message-Driven EJB attempted to connect to the JMS destination with the JNDI
    name:
    multiPub1. However, the object with the JNDI name: multiPub1 is not a JMS destination
    , or the destination found was of the wrong type (Topic or Queue).>
    <May 18, 2003 11:13:34 AM PDT> <Warning> <EJB> <010096> <The Message-Driven EJB:
    simpl
    eMDB is unable to connect to the JMS destination: multiPub1. Connection failed
    after 2
    ,592 attempts. The MDB will attempt to reconnect every 10 seconds, this log message
    wi
    ll repeat every 600 seconds until the condition clears.>
    <May 18, 2003 11:13:34 AM PDT> <Warning> <EJB> <010061> <The Message-Driven EJB:
    simpl
    eMDB is unable to connect to the JMS destination: multiPub1. The EJB container
    will au
    tomatically attempt to re-establish the connection with the JMS server. This warning
    m
    ay occur during WebLogic Cluster start-up if the JMS destination is located on
    another
    server. When the JMS server connection is re-established, the Message-Driven
    EJB will
    again receive JMS messages.
    I have the destination defined. I am working with multiple JMS providers. I am
    not using startup class. I read the white paper and am following directions. It
    can recognise my Connection Factory but not my destination. I defined the destination
    in the JNDI tree using the weblogic Admin console. I also have the destination
    defined in my SUN's JNDI provider. The bean is deployed but I keep getting this
    error.
    PLEASE HELP!
    sheela

    There are a lot of reason to caused it,but the fact reason is that your destination doesnot exist in weblogic server jndi tree.

Maybe you are looking for