Unable to start connection on remote JMS server

          HI
          I have a setup in which I try to connect to a remote JMS Server (running on a
          remote WLS 8.1 SP1). It is able to get the named QueueConnectionFactory, fails
          to start the connection. The stack trace is
          weblogic.jms.common.JMSException: Connection not found
               at weblogic.jms.dispatcher.InvocableManager.invocableFind(InvocableManager.java:136)
               at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:596)
               at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:153)
               at weblogic.jms.client.JMSConnection.start(JMSConnection.java:567)
               at uk.co.concise.payments.event.EventProcessorServiceAsynchBD.(EventProcessorServiceAsynchBD.java:82)
               at uk.co.concise.payments.state.ejb.ObjectStateServiceXDBean.ejbCreate(ObjectStateServiceXDBean.java:213)
               at uk.co.concise.payments.state.ejb.ObjectStateService_1th3um_Impl.ejbCreate(ObjectStateService_1th3um_Impl.java:135)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:324)
               at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:172)
               at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:110)
               at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
               at weblogic.ejb20.internal.BaseEJBLocalObject.preInvoke(BaseEJBLocalObject.java:229)
               at weblogic.ejb20.internal.StatelessEJBLocalObject.preInvoke(StatelessEJBLocalObject.java:54)
               at uk.co.concise.payments.state.ejb.ObjectStateService_1th3um_ELOImpl.createAndGetStateForObject(ObjectStateService_1th3um_ELOImpl.java:273)
               at uk.co.concise.payments.state.ObjectStateServiceBD.createAndGetStateForObject(ObjectStateServiceBD.java:123)
               at uk.co.concise.payments.submission.ejb.SubmissionServiceXDBean.createSubmission(SubmissionServiceXDBean.java:92)
               at uk.co.concise.payments.submission.ejb.SubmissionService_o0dxp8_ELOImpl.createSubmission(SubmissionService_o0dxp8_ELOImpl.java:162)
               at uk.co.concise.payments.submission.SubmissionServiceBD.createSubmission(SubmissionServiceBD.java:42)
               at uk.co.concise.payments.submission.webapp.SubmitPaymentFileAction.execute(SubmitPaymentFileAction.java:216)
               at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
               at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
               at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
               at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
               at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
               at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
               at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
               at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
               at uk.co.concise.payments.logon.filter.LogonFilter.doFilter(LogonFilter.java:38)
               at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
               at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
               at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
               at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
               at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
               at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
               at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
               at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
          Any ideas on what could be wrong
          thanks
          jaz
          

          Thanks Tom
          It fixed the problem.
          Jaz
          Tom Barnes <[email protected]> wrote:
          >Hi,
          >
          >I think "Connection not found" may be a symptom of a name
          >conflict. Make sure:
          > All JMS servers are named differently
          > All WL servers are named differently
          > All JMS stores are named differently
          >All three above are needed for various reasons, although I think
          >it is only first that fixes your particular problem.
          >
          >A google search of this newsgroup would likely have yielded this
          >same answer.
          >
          >Tom
          >
          >jasmeet wrote:
          >
          >> HI
          >>
          >> I have a setup in which I try to connect to a remote JMS Server (running
          >on a
          >> remote WLS 8.1 SP1). It is able to get the named QueueConnectionFactory,
          >fails
          >> to start the connection. The stack trace is
          >>
          >> weblogic.jms.common.JMSException: Connection not found
          >>      at weblogic.jms.dispatcher.InvocableManager.invocableFind(InvocableManager.java:136)
          >>      at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:596)
          >>      at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:153)
          >>      at weblogic.jms.client.JMSConnection.start(JMSConnection.java:567)
          >>      at uk.co.concise.payments.event.EventProcessorServiceAsynchBD.(EventProcessorServiceAsynchBD.java:82)
          >>      at uk.co.concise.payments.state.ejb.ObjectStateServiceXDBean.ejbCreate(ObjectStateServiceXDBean.java:213)
          >>      at uk.co.concise.payments.state.ejb.ObjectStateService_1th3um_Impl.ejbCreate(ObjectStateService_1th3um_Impl.java:135)
          >>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          >>      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          >>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          >>      at java.lang.reflect.Method.invoke(Method.java:324)
          >>      at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:172)
          >>      at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:110)
          >>      at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
          >>      at weblogic.ejb20.internal.BaseEJBLocalObject.preInvoke(BaseEJBLocalObject.java:229)
          >>      at weblogic.ejb20.internal.StatelessEJBLocalObject.preInvoke(StatelessEJBLocalObject.java:54)
          >>      at uk.co.concise.payments.state.ejb.ObjectStateService_1th3um_ELOImpl.createAndGetStateForObject(ObjectStateService_1th3um_ELOImpl.java:273)
          >>      at uk.co.concise.payments.state.ObjectStateServiceBD.createAndGetStateForObject(ObjectStateServiceBD.java:123)
          >>      at uk.co.concise.payments.submission.ejb.SubmissionServiceXDBean.createSubmission(SubmissionServiceXDBean.java:92)
          >>      at uk.co.concise.payments.submission.ejb.SubmissionService_o0dxp8_ELOImpl.createSubmission(SubmissionService_o0dxp8_ELOImpl.java:162)
          >>      at uk.co.concise.payments.submission.SubmissionServiceBD.createSubmission(SubmissionServiceBD.java:42)
          >>      at uk.co.concise.payments.submission.webapp.SubmitPaymentFileAction.execute(SubmitPaymentFileAction.java:216)
          >>      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
          >>      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
          >>      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
          >>      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
          >>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
          >>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          >>      at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
          >>      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
          >>      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          >>      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          >>      at uk.co.concise.payments.logon.filter.LogonFilter.doFilter(LogonFilter.java:38)
          >>      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          >>      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
          >>      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          >>      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          >>      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
          >>      at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
          >>      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          >>      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
          >>
          >>
          >> Any ideas on what could be wrong
          >> thanks
          >> jaz
          >
          

Similar Messages

  • MDB unable to listen anymore after remote JMS server crashed and restarted

    I'm running Weblogic Server 8.1 SP4 on a Win 2k server. My remote JMS server is running Sonic 6.0 on a Win 2k server. Both are connected in the same network. My problem is that whenever I restart the JMS server after it crashes (improper shutdown), my MDBs will not be able to listen to any messages sent to the topic/queue. WL console does not display any error about MDB unable to connect to the topic/queue as if the JMS server was never down. I have to re-deploy my apps in order to get the MDBs working. Is there a workaround or patch for this 'bug'?

    The options I can think of are:
              (1) Configure a WebLogic messaging bridge that runs in "synchronous" mode for forwarding messages from Sonic to a WL destination. Then change MDB to refer to the WL destination. Alternatively, if you haven't already, try using a transactional MDB - which may or may not use synchronous receives to get messages from Sonic (depends on the version of Sonic I believe). The reason I think this might help in either method is that I think the use of synchronous receives may yield a better chance of detecting failures in Sonic.
              (2) See if Sonic itself requires a patch.
              (3) Try out WL 9.2 instead of WL 8.1 (it may be that the Sonic work-around I vaguely recall isn't in 8.1???)
              (4) Contact customer support.

  • MDBs failed to connect to remote JMS server

    Hi,
              We currently have 2 clusters: one is a regular cluster (cluster1) and the other is JMS cluster (cluster2). Our JMS server and filestore are targeted to a migratable server in JMS cluster.
              In our weblogic-ejb-jar.xml, we added element <provider-url> to the <message-driven-descriptor> to allow JMS remote connection as follows:
              <weblogic-enterprise-bean>
                   <ejb-name>MyBean</ejb-name>
                   <message-driven-descriptor>
                        <destination-jndi-name>MyTopic</destination-jndi-name>
              <provider-url>t3://myhost:19009,myhost:19011</provider-url>
              <connection-factory-jndi-name>MyConnectionFactory</connection-factory-jn
              di-name>
                   </message-driven-descriptor>
              </weblogic-enterprise-bean>
              When we deployed our application, the Connection Status of MyBean showed "disconnected". I have tried different values (t3://myhost:19009;t3://myhost:19011) and
              (t3://myhost:19009) but got the same result.
              When I re-targeted the JMS server and filestore to a regular server (instead of migratable server), I was able to connect remotely. But because we want to be able to migrate our JMS server (auto and manually), I have to target it to a migratable server.
              I could not figure out why my MDBs failed to connect to a remote JMS server when it is targeted to a migratable server? Is there a restriction that we have to target to a regular server in order to connect remotely or I'm doing something wrong?
              Any help would be greatly appreciated.
              Thanks,
              Thao

    I'm using WL9.2 and my migratable server is actually up and running (is that what you mean about booted?).                    I meant checking your log files to make sure that the JMS server itself actually booted, not checking that the host WL server was up. (For example you should see INFO messages indicating that the JMS server has loaded "X" records from its persistent store).
              >>> Could you elaborate on the known problem?
              9.x MDBs have special code for enhanced handling of remote distributed destinations. I'm guessing that this code is somehow causing problems when the remote JMS server is migratable. I don't have enough information to elaborate further than that.
              >>> What else I can try?
              Beyond contacting customer support, I'm not sure.
              Tom

  • Connecting to remote JMS server

    I am running Flex2/FDS using Tomcat, and want to create a
    Producer/Consumer to message via a JMS application (Sonic ESB) on a
    different host. We have successfully done this with Flex 1.5 using
    a java servlet, but I cannot get it to work via Flex2/FDS
    messaging.
    Here are (I think) the essentials:
    We have the sonic jars on the server available to FDS, I also
    put them in tomcat's common/lib directory
    in mxml, I have:
    <Producer id="p" destination="sonicDestination" />
    in messaging-config.xml I have (relevant part):
    <destination id="sonicDestination" >
    <adapter ref="jms"/>
    <channels>
    <channel ref="my-rtmp">
    </channel>
    <properties>
    <jms>
    <destination-type>Queue</destination-type>
    <message-type>javax.jms.TextMessage</message-type>
    <connection-factory>java:comp/env/jms/connectionFactory</connection-factory>
    <destination-jndi-name>java:comp/env/sonicDestination</destination-jndi-name>
    <destination-name>targetSonicQueue</destination-name>
    <delivery-mode>NON-PERSISTENT</delivery-mode>
    <acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
    <transacted-sessions>false</transacted-sessions>
    </jms>
    </properties>
    </destination>
    in web-xml I have:
    <resource-ref>
    <res-ref-name>jms/connectionFactory</res-ref-name>
    <res-type>javax.jms.ConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-ref>
    <res-ref-name>sonicDestination</res-ref-name>
    <res-type>javax.jms.Destination</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    AND in context.xml I have:
    <Resource name="jms/connectionFactory" auth="container"
    type="progress.message.jclient.ConnectionFactory"
    brokerURL="tcp:_ipaddress_:2506"
    username="_username_" password="_password_"
    defaultUser="_username_" defaultPassword="_password_"
    />
    <Resource name="sonicDestination" auth="container"
    type="progress.message.jclient.Queue"
    queueName="targetSonicQueue" />
    ... this all seems to deploy OK... in the mxml... when I
    create a message and try to have the producer send it...
    I get an error on the server (which is passed back as an
    exception to the client)... the relevant part of all that is:
    javax.naming.NamingException: Cannot create resource instance
    at
    org.apache.naming.factory.ResourceFactory.getObjectInstance()
    at javax.naming.spi.NamingManager.getObjectInstance()
    at org.apache.naming.NamingContext.lookup()
    _several layers of calling NamingContext_
    at javax.naming.InitialContext.lookup()
    at
    flex.messaging.services.messaging.adapters.JMSProxy.getDestination()
    at
    flex.messaging.services.messaging.adapters.JMSQueueProducer.start()
    ..._more
    It looks to me like it is finding Tomcat's JNDI service and
    getting to the point where its trying to instantiate the
    connectionFactory or the sonicDestination...
    and that's failing...
    do you have or know of someone who knows how to connect to
    from Flex 2.0.1 / FDS via Tomcat to a Sonic MQ (7.0) server on
    another host ?
    Thanx much

    My current code is:
    env.setProperty(Context.PROVIDER_URL, "iiop://localhost:2809");
    env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    InitialContext initCtx = new InitialContext(env);
    System.out.println("Getting connection factory....");
    // Finding the WAS QueueConnectionFactory
    javax.jms.ConnectionFactory qcf = (javax.jms.ConnectionFactory) initCtx.lookup(JMSCF_JNDI_NAME);
    System.out.println("qcf="+qcf);
    // Finding the Queue Destination
    Destination q = (Destination) initCtx.lookup(JMSQ_JNDI_NAME);
    I am getting exception as:
    Oct 26, 2005 4:10:11 PM com.ibm.ws.naming.java.javaURLContextFactory
    SEVERE: javaAccessorNotSet
    javax.naming.ConfigurationException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
    at com.ibm.ws.naming.java.javaURLContextFactory.isNameSpaceAccessable(javaURLContextFactory.java:98)
    at com.ibm.ws.naming.urlbase.UrlContextFactory.getObjectInstance(UrlContextFactory.java:73)
    at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:579)
    at javax.naming.spi.NamingManager.getURLContext(NamingManager.java:528)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:275)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at sender.Main.main(Main.java:29)

  • Flex mobile connect to remote secure server!!

    Hi guys
    I'm a beginner with flex mobile.
    i'm trying to create an appllication flex mobile. and i have to connect to remote secured server (apache) to get some services deployed.
    i did it and when i try with emulator from flash builderit's worked, a pop up window started to enter a login and password for connect to the remote server. it's okay, i get a result.
    but now when i try this application with my mobile phone, application launched correctly but i can't connect to remte server ( i dont have anythig like a popup to enter the login and pssword).
    i need your help.
    thanks

    Did you ever figure this out? I'm having the same issue.

  • Oracle 10.2 on AIX -- need to connect to remote SQL server by dblink

    oracle 10.2 on AIX -- need to connect to remote SQL server by dblink
    i didn't see a odbc diectory in our oracle home path. how do i know odbc driver is installed in the oracle on our AIX server.
    If it is there, do i just need to modify the odbc.ini and then the inithsodbc.ora, linster.ora, tnsnammes.ora files, or am I missing something
    Appreciate your response
    Edited by: user10876711 on May 12, 2011 9:18 AM
    Edited by: user10876711 on May 12, 2011 9:18 AM

    when you want to connect from Oracle to a SQl Server you need the Oracle Gateway (HSODBC or even better Dg4ODBC) and a FOREIGN ODBC DRIVER for your foreign database - a SQL Server ODBC driver. You have to get this driver from a 3rd party vendor - Oracle does not offer any foreign ODBC drivers.
    So before being able to use DG4ODBC/HSODBC you need to install from a 3rd paryt vendor a SQL Server ODBC driver. Commercial vendrs are for example Data Direct, Openlink or Easysoft.
    On Unix ODBC drivers commonly also require a driver manager. If the ODBC driver vendor does not ship one with the ODBC driver you can get it from www.unixodbc.org

  • Unable to initialize connection to remote target

    The device is NI PXI-1010, I can ping the device but I cannot connect it through MAX.  I am using version 4.5.  Whenever I try to set up a new remote system, it cannot find the remote device.  I have tried using both the computer name (which is resolved to an IP address in the hosts file) and the just IP address.  I get this error:  "Unable to initialize connection to remote system(s)."
    I am able to ping the remote computer and but I cannot browse to it in Windows Explorer.

    The PXI-1010 is just a chassis.  What controller are you using?  How is it configured?  What OS does it have?
    If you have a Windows controller, then you probably need to setup sharing, domains, and other network settings.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Php connection to remote mysql server

    Hi,
    I've stragne problem using php 4.3.10 with Sun One 6.1 on Solaris 9. The connection to a remote mysql server fail. I've correct grants in both servers and the php.ini is setting to permit no limit connection to databases. the code:
    $host='my-remote-server.com';
    $link1=mysql_connect($host,"bla","blabla");
    if$db1 = mysql_select_db("LOGIN",$link1);
    $link = mysql_connect("localhost","bla","blabla");
    $db = mysql_select_db("LOGIN",$link);
    The remote connection fail but the local one works. When i work with another server Sun One 6 in Solaris 8 , everthing work wonderfull with the same deffinitions, it can connect the remote databases but the others machines can't connect the solaris 8 machine. i think there is something wrong in the solaris 9 or/and sun one 6.1 deffinition it avoid remote connection. The problem i don't know what may be wrong, which setting may affect tcp connections from web application in solaris 9/sun one 6.1 plataform.

    we found the problem finally and may be useful for someone. Using the solaris 9 network snifer (snoop) we found that the default php timeout connection for mysql doesn't work ,this value is 60 in the php.ini . After 4 or 5 miliseconds php application closes the connection when it runs from the webserver , running from the shell it doesn't happen.The answer from the other server arrived after 20 or 30 milisecods then the connection to the databases fails. The solution is to put unlimited tiemout , mysql_connection_timeout=-1 then it success to connect the remote mysql server correctly. May be problem without timeout connection in case the other server doesn't answer, then application may wait forever or untill the system or webserver take out the application. I didn't check this posibilty, mainly i'm interesting the applications can work and write in the remote databases. If this definition cause problem as application waiting connection we always can try with another value greater than 60.

  • JMS Adapter to remote JMS Server in ESB??

    Has anyone successfully setup a JMS adapter in the ESB to talk to a JMS server on a remote host?
    We are using OC4J JMS and so I followed the instructions in section 5.2.1.7 in the Adapters guide on this. I updated the oc4j-ra.xml file. The guide didn't state which version of oc4j-ra.xml to update, but I've been told to use the one in:
    $ORACLE_HOME/j2ee/<oc4j>/application-deployments/default/
    So, I added the XML block as specified in this section and made the JMS Connection JNDI name match that of my JMS Adapter. However, the Adapters guide then states the following:
    In addition, you must have the file META-INF/application-client.xml in the
    classpath. The contents of the file can be the following:
    <application-client/>
    To put this file in the classpath, put the specified contents into the file at Oracle_
    Home\bpel\system\classes\META-INF\application-client.xml and
    restart Oracle BPEL Server.
    This is a problem for me because I have an advanced installation with ESB and OWSM on top of OC4J, but I do not have BPEL installed in this location. As such, the file $ORACLE_HOME/bpel/system/classes/META-INF/application-client.xml does not exist. I did a search and did find an application-client.xml at the following location:
    $ORACLE_HOME/j2ee/oc4j_esbdt/connectors/JmsAdapter/JmsAdapter/META-INF
    But at this point, I don't know what to do with it to ensure it is in the classpath. The Adapters guilde says to cycle the BPEL Server, so I cycled the ESB for good measure, then deployed my project, but no luck! It is still listening to the local jms server and not the remote one.
    Has anyone successfully set this up? What am I missing or doing wrong?

    The above classpath requirement should only ensure that BPEL module can access the JMS adapter. Otherwise it should be OK.
    I would reccommend to try to establish the JMS connection and see if some parts of the Oracle AS will throw any exception or something. It might start working as well.
    As I understand, you are trying to access OC4J JMS from another server. As JMS is purely TCP level protocol there should be no problem accessing it from anywhere. Only the addresses and ports must be reviewed and ensure that they point to correct place, that usernames and passwords are correct and that there is a JNDI connectivity available as you use JNDI to get the connection factories.
    Rein

  • How to create a JMS queue linked to external (remote) JMS server?

    Hello,
    I'm trying to receive messages from a remote JMS queue. I found some information on the Internet on how to create an external JNDI resource (my remote JMS queue connection factory is bound to LDAP context on remote box). I was able to configure JNDI resource that points to remote queue connection factory, but I don't know what to do next.
    How can I create a local JMS destination (queue) that will be the image of the remote queue? At least I'm guessing this is what needs to be done in order to deploy MDBs.
    I would appreciate it if someone could tell me how to get this working. Maybe the steps I took were not in the right direction - the bottom line is that JMS queue and queue connection factory are deployed on a remote server, and I need to get messages sent to them on the local server. I'm using Sun App Server from J2EE 1.4.
    Thank you,
    Mark

    Please refer to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6377822, particularly the evaluation. Could your situation be the same too (i.e server ip address changing dynamically)? Also, which OS are you using and do you have any firewalls setup that prevents access to port 3700?

  • MDB connecting to Foreign JMS server in WL8.1

    Hello,
              I have this problem that I am hoping someone can help me with. There is a
              MDB deployed in a local WL8.1 that is trying to connect to a Foreign JMS
              Server which is also a WL8.1 running in a remote server. This MDB is
              attempting to subscribe to a topic hosted by that foreign server. In the
              local WL8.1 I created a Foreign JMS Server via the adminconsole and mapped
              the connection factory as well as destinations to the Foreign JMS Server.
              The MDB (via its deployment descriptor) only refers to the local JNDI names
              of the ConnectionFactory and Topic. Here are the scenarios concerning
              security:
              1) When security is turned off (user is in group everyone) everything works
              fine. Messages published to the foreign Topic are received by the MDB in
              the local WL8.1 server and processed.
              2) When a security policy is applied to the Topic (via the remote
              adminconsole), the MDB in the local server gets a 'permission denied'. I
              now have to get around this by defining a principle for the MDB to run as
              and to map the credentials of this principle to that of the user in the
              remote environment with access permissions to the Topic.
              3) When I specify the security identity of my MDB, its JNDI lookup of the
              Topic fails with 'not found'.
              4) Even when the security policy in the remote server is reverted back to
              'everyone' (effectively turning security off) but leaving the MDB running as
              the security principle, it still cannot find the Topic.
              I hope this is something that people have seen and dealt with before.
              Thanks for any and all help anyone can provide. I have also included the
              deployment descriptors for this MDB:
              <ejb-jar>
              <enterprise-beans>
              <message-driven>
              <ejb-name>MDB</ejb-name>
              <ejb-class>sample.class.MDB</ejb-class>
              <transaction-type>Container</transaction-type>
              <message-driven-destination>
              <destination-type>javax.jms.Topic</destination-type>
              </message-driven-destination>
              <security-identity>
              <run-as>
              <role-name>OutsideJMSUser</role-name>
              </run-as>
              </security-identity>
              </message-driven>
              </enterprise-beans>
              <assembly-descriptor>
              <security-role>
              <role-name>OutsideJMSUser</role-name>
              </security-role>
              </assembly-descriptor>
              </ejb-jar>
              <weblogic-ejb-jar>
              <weblogic-enterprise-bean>
              <ejb-name>MDB</ejb-name>
              <message-driven-descriptor>
              <pool>
              <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
              </pool>
              <destination-jndi-name>ForeignTopic</destination-jndi-name>
              <connection-factory-jndi-name>ForeignConnectionFactory</connection-factory-j
              ndi-name>
              </message-driven-descriptor>
              <jndi-name>MDB</jndi-name>
              </weblogic-enterprise-bean>
              <security-role-assignment>
              <role-name>OutsideJMSUser</role-name>
              <principal-name>OutsideJMSUser</principal-name>
              </security-role-assignment>
              </weblogic-ejb-jar>
              

    Thanks for the suggestion Greg. I have enabled trust between the two
              domains and that has certainly cut down the variations of SecurityExceptions
              that I get. Now I am consistently only getting a JMSSecurityException with
              a access denied to the topic. I believe I have the credential mapped
              correctly between the run-as local user and the remote authorized user.
              Unfortunately the exception does not specify what username was rejected, it
              would have been useful in determining the next debugging step to take.
              I think you're right, I should engage the security forum for this. Thanks
              again for the help.
              "Greg Brail" <[email protected]> wrote in message
              news:[email protected]...
              > Hmm. The security people (on weblogic.developer.interest.security) might
              > have to help you here, too. When you set the "runAs" identity for the MDB,
              > it's doing everything, including the JNDI lookup, under that identity. So
              if
              > that identity is one that's recognized by the remote domain, then you
              should
              > be OK. One way to make your local identity recognized by the remote domain
              > is to make your domains trusted, but you may wish not to do that.
              >
              > greg
              >
              > "Steve Chan" <[email protected]> wrote in message
              > news:[email protected]...
              > > Hello,
              > >
              > > I have this problem that I am hoping someone can help me with. There is
              a
              > > MDB deployed in a local WL8.1 that is trying to connect to a Foreign JMS
              > > Server which is also a WL8.1 running in a remote server. This MDB is
              > > attempting to subscribe to a topic hosted by that foreign server. In
              the
              > > local WL8.1 I created a Foreign JMS Server via the adminconsole and
              mapped
              > > the connection factory as well as destinations to the Foreign JMS
              Server.
              > > The MDB (via its deployment descriptor) only refers to the local JNDI
              > names
              > > of the ConnectionFactory and Topic. Here are the scenarios concerning
              > > security:
              > >
              > > 1) When security is turned off (user is in group everyone) everything
              > works
              > > fine. Messages published to the foreign Topic are received by the MDB
              in
              > > the local WL8.1 server and processed.
              > >
              > > 2) When a security policy is applied to the Topic (via the remote
              > > adminconsole), the MDB in the local server gets a 'permission denied'.
              I
              > > now have to get around this by defining a principle for the MDB to run
              as
              > > and to map the credentials of this principle to that of the user in the
              > > remote environment with access permissions to the Topic.
              > >
              > > 3) When I specify the security identity of my MDB, its JNDI lookup of
              the
              > > Topic fails with 'not found'.
              > >
              > > 4) Even when the security policy in the remote server is reverted back
              to
              > > 'everyone' (effectively turning security off) but leaving the MDB
              running
              > as
              > > the security principle, it still cannot find the Topic.
              > >
              > > I hope this is something that people have seen and dealt with before.
              > > Thanks for any and all help anyone can provide. I have also included
              the
              > > deployment descriptors for this MDB:
              > >
              > > <ejb-jar>
              > > <enterprise-beans>
              > > <message-driven>
              > > <ejb-name>MDB</ejb-name>
              > > <ejb-class>sample.class.MDB</ejb-class>
              > > <transaction-type>Container</transaction-type>
              > > <message-driven-destination>
              > > <destination-type>javax.jms.Topic</destination-type>
              > > </message-driven-destination>
              > > <security-identity>
              > > <run-as>
              > > <role-name>OutsideJMSUser</role-name>
              > > </run-as>
              > > </security-identity>
              > > </message-driven>
              > > </enterprise-beans>
              > >
              > > <assembly-descriptor>
              > > <security-role>
              > > <role-name>OutsideJMSUser</role-name>
              > > </security-role>
              > > </assembly-descriptor>
              > >
              > > </ejb-jar>
              > >
              > > <weblogic-ejb-jar>
              > > <weblogic-enterprise-bean>
              > > <ejb-name>MDB</ejb-name>
              > > <message-driven-descriptor>
              > > <pool>
              > > <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
              > > </pool>
              > > <destination-jndi-name>ForeignTopic</destination-jndi-name>
              > >
              > >
              >
              <connection-factory-jndi-name>ForeignConnectionFactory</connection-factory-j
              > > ndi-name>
              > > </message-driven-descriptor>
              > > <jndi-name>MDB</jndi-name>
              > > </weblogic-enterprise-bean>
              > >
              > > <security-role-assignment>
              > > <role-name>OutsideJMSUser</role-name>
              > > <principal-name>OutsideJMSUser</principal-name>
              > > </security-role-assignment>
              > >
              > > </weblogic-ejb-jar>
              > >
              > >
              >
              >
              

  • Flex 3 and connection to remote ubuntu server

    Good morning,
    I'm trying to retrieve the result from a SQL query to populate a datagrid.
    My server is a Ubuntu server on a virtual machine. I created the tables I want to extract information from using MySQLWorkbench and put them on my ubuntu server. Flex is running on my Mac.
    I have the following code in the mxml file of my Flex project:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="rest_service.send()">
        <mx:HTTPService id="rest_service" url="http://192.168.56.101/testhtml.php"/>
        <mx:DataGrid left="0" right="0" top="0" bottom="0"
            dataProvider="{rest_service.lastResult.people.person}">
            <mx:columns>
               <mx:DataGridColumn headerText="Test ID" dataField="userid"/>
               <mx:DataGridColumn headerText="Name" dataField="username"/>
               <mx:DataGridColumn headerText="Email" dataField="emailaddress"/> 
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    The testhtml.php file is on the server (in the /var/www/ folder) and looks like this:
    <?php
       require ("Connection.php");
    $db_handle = mysql_connect($server, $user_name, $password);
    $db_found = mysql_select_db($database, $db_handle);
    if ($db_found) {
    $Query = "SELECT * from users";
    $Result = mysql_query( $Query );
    //print "allo?" . "<br/>";
    echo htmlspecialchars('<?xml version="1.0" encoding="utf-8"?>')."<br/>";
    echo htmlspecialchars('<people>')."<br/>";
    //print '<people>';
    // Iterate through the rows, printing XML nodes for each
    while( $Row = mysql_fetch_object( $Result ) )
      echo "      ";
      echo htmlspecialchars('<person>') . "<br/>" ;
      echo "            ";
      echo htmlspecialchars('<userid>'.$Row->userid.'') ;
      echo htmlspecialchars('</userid>') . "<br/>";
      echo "            ";
      echo htmlspecialchars('<username>'.$Row->username.'');
      echo htmlspecialchars('</username>') . "<br/>";
      echo "            ";
      echo htmlspecialchars('<emailaddress>'.$Row->emailaddress.'');
      // echo htmlspecialchars('<emailaddress>"'.$Row->emailaddress.'"');
      echo htmlspecialchars('</emailaddress>') . "<br/>";
      echo "      ";
      echo htmlspecialchars('</person>') . "<br/>" ;
    echo htmlspecialchars('</people>');
    mysql_close($db_handle);
    else {
    print "Database NOT Found ";
    mysql_close($db_handle);
    ?>
    I tested the php file by typing http://192.168.56.101/testhtml.php in my web browser and I get the xml code expected. The problem is that I don't think Flex is actually connecting to the server.... I have noticed that when you create a new project you can select an application server type but I have no idea what to put for the web root and the root url (I picked php in the list of options for the server type).
    My server is not hosted on my machine but on a virtual machine. Is there something I need to install on my server, and if yes, on which folder?
    Your help would be greatly appreciated. I'm a newbie and have lots to learn and I have been stuck on this for a while now.
    Thank you again,
    supernous

    Forget it. I'm an idiot.
    I forgot to active the "Allow remote admin" setting again

  • Can't connect to remote SQL Server 2014 Standard with VS 2012

    Hi all,
    I am trying to create a development environment using SQL Server 2014 (not Express).  The SQL server instance is on a Windows 8.1 Pro machine in a non-domain environment.  I have Visual Studio 2012 installed on the same machine which can connect
    to the SQL server instance without problems.  I have another machine with VS 2012 that cannot connect.  SQL server is configured for mixed authentication.  The SSDT on the remote machine can see the SQL server networked instance, but will not
    connect with SQL authentication. 
    I have rounded up all the usual suspects;
    - The SQL server service is running
    - Remote connections are enabled on SQL server and the relevant firewall ports are open.
    - TCP/IP and named pipes are enabled
    - Remote connections are enabled in Management Studio
    - SQL Server Browser service in enabled and running
    What am I missing?  I have been out of developer mode for a few years and all of the tools have changed, but I seem to be missing something obvious.
    Many thanks in advance,
    Tim
    Tim in Dublin

    Hello,
    Have you configured the Windows Firewall on the Visual Studio computer too? Is there any other security software on those
    2 computers?
    Can you ping between both computers by computer name? If not, try connecting using the IP address. For example:
    10.0.0.10,1433
    1433 is the default SQL Server port number.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • How to connect to remote sql server database?

    Hallo,
    I am a new member, so please excuse me if my questions are dummy.
    I am using CR2008 SP2 to make reports from sql server 2005 databases.
    Localy there is no connection problem and everything works perfect.
    I would like to establish a connection with a remote sql server 2005,
    but i am not familiar with remote data retriving. which driver should i use? static ip? vpn? server ports?
    Any answer will be really appreciated

    Hello,
    This is more a question for Microsoft to see what and how they support remote connections to databases. As long as you have the connection made CR will not have any problems. You may find it is slow so optimizing your queries is highly recommended. Passing a million records through your web connector is going to take time.....
    I've personally used a VPN connection and then set the ODBC or OLE DB connection info to my test server here at work and it worked fine. But they were small data sets.
    Thank you
    Don

  • Connecting to remote oracle server from asp

    Hi All
    How can I access remote oracle server from asp?. I'm using the following connection string.
    " Provider=MS Remote;Remote Provider=MSDAORA;Data Source=XYZ;Remote Server=http://DBServersIP;User Id=id;Password=pw"
    Both the web server and DB server has oracle client. I can tnsping, connect using sql * plus from the webserver.
    But when I try to do simple connection & query , I get the following error.
    " Microsoft ADO/RDS(0x80072EFD)
    Internet Client Error: Cannot Connect to Server.
    All the permission settings are given correctly (after referring Microsoft & Oracle websites)
    Can someone throw some links or help.?
    Your replies much appreciated.
    Thank you
    Arum

    why do you have http://DBServersIP as the remote server?
    Your connection string should look like:
    "Driver={Microsoft ODBC for Oracle};Server=MY_SID;Uid=my_user;Pwd=my_pwd;"
    There are other variations, but none of them should include HTTP anywhere.

Maybe you are looking for

  • Sender jms adapter-archiving before processing the message

    Hi, Do we have any option in Sender JMS adapter to archive the message before processing the message? I have searched in sender JMS adapter (XI7.0) settings, but couldn't find any option. My assumption is whether any option provided in configuration

  • Photo slideshow not working on Apple TV

    I have two ATV - one ATV2 running 6.2.1 and one ATV3 running 7.0 and I am sharing photos from iPhoto through iTunes.  When I go to "computers=>Photos" they both go to the photos screen where I can chose "Events/Photos/Face".  If I chose events or Fac

  • Hooking up multiple I-pods to Itunes

    We have 2 ipods but need to use one computer to hook up to but not all at once. Is there a way to use one I-tunes and have 2 seperate accounts on it. Everytime I hook my I-pod up it want to put my wifes songs on it. Any help would be appreciated.

  • Offline Team/Number Portability

    My phone line and boardband was due to be connected on Friday 1st October, the order was placed on Tuesday 21st September and I was told the additional time required was because I was bringing the number over from Virgin Media. As I was told that the

  • How to split TOs

    Hi, I need to split TOs I found exit EXIT_SAPLL03A_012. As parameter I have table T_LTAP_VB and I would like for example split 2 lines into 5 TOs but don't know how. Could someone give an example how to do this. Please help. Best regards, Greg.