How to configure JMS listener in separate jvm

Hi Guys,
I am new to this forums so please let me know if iam making any mistake.
I have 2 instances of tomcat running on different port numbers. I am using apache ActiveMq as my message broker for sending the jms message using queue. Code for sending the message is present in a servlet. So when I run that servlet message gets sent.
In my other tomcat i retrieve this jms message. But for me issue is this messsage gets retrieved only if i write this code in a servlet and I run that servlet.
Is there any way where i can configure a listener for my class present in tomcat 2. So that when message gets sent that piece of code gets triggered automatically and I can read that message.

Sounds like you want basic JMS message consumer functionality.
http://docs.oracle.com/javaee/1.4/tutorial/doc/JMS4.html#wp79145

Similar Messages

  • How to configure JMS queue on OC4J server. Development in JDeveloper 10G

    Hi there,
    I have to configure a JMS for an Asynchronous process in my Application which will be running in Oracle 10G Application Server. Development Environment is Oracle JDeveloper 10G.
    I am facing a problem on how to configure JMS queue.
    Steps Followed are:
    in the <JDevloperHome>/j2ee/home/config
    1. Made the new queue and connection factory's JMS entry in jms.xml.
    2. Specifed the queue in oc4j-connectors.xml.
    3. played around with application.xml
    and tried all combinations, but the message producer always failed to lookup the queue.
    Need help on the steps to follow so that the producer can post the message in the queue.
    Also please help how to configure the MDB to listen to the queue.
    Thanx and Regards
    Subham

    If you were dealing with Oracle 10g app server as opposed to standalone, I might be better able to help you.
    One thing though, when you are configuring your MDB in the orion-ejb-jar.xml file, do not forget to specify attribute listener-threads, otherwise no matter how many beans you have in your MDB pool, only one bean will be listening to the queue. Many listener-threads equal to max number of beans in pool.

  • How to configure oracle listener profile for multiple oracle database

    Hi,
    I am going to install solution manager system in the same server of ERP EHP4 on Windows. Both DB are oracle.
    I'd like to know how to configure listener in this kind of envirnmonent.
    a. use two listener and different ports
    b. use same listener but different ports
    c. use same listener and same port
    Which is the correct mothed?
    And, after installation, there seem three set of profiles of listten, one for ERP, one for SLM, and the other for OS?(%windir%system32), which one is functional?
    Please advise.
    Thanks a lot.
    Regards,
    Alex

    Hi,
    standard installation is creating new configs for listener for each instance.
    I would recommend to use one listener per each instance.
    YOU CAN NOT HAVE one port number for two differnet systems!
    If you want to use one listener than you must adapt tnsnames.ora, listener.ora and ensure that both systems will use different port numbers.
    For example PORT= 15<system number>
    Peter

  • How to configure JMS services in CQ

    Hi,
    I would like to know, is there any outofbox services where i can configure JMS Services in CQ. Please let us know.
    if no such services exists in CQ, How can I do a JSM Services requirements in CQ.
    Thanks
    thummapuru

    Hi thummapuru,
      AFAIK In CQ we have 3 eventing layers: workflows, OSGi, CRX/JCR & need to utilize those.
    http://sling.apache.org/site/eventing-and-jobs.html
    Thanks,
    Sham

  • How to Configure JMS MQ In WeLogic?

    Hello. I am new to this forum. Can anybody gives instructions on how to create or configure JMS MQ in WebLogic ?
    Thanks.

    I recommending starting by reading through the [ Integrating Remote JMS Providers | http://download.oracle.com/docs/cd/E12839_01/web.1111/e13727/interop.htm#JMSPG553 ] FAQ, in order to assess the various options.
    You may also want to look at "[ Integrating WebSphere MQ 6 with BEA Weblogic Server 10 using Weblogic Server Foreign (JMS) Server feature | http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html ]".
    If you need exactly-once (transactions), and the MQ server is on a different machine than WebLogic, then you will need to use the MQ Extended Transactional client from IBM (http://publibfp.boulder.ibm.com/epubs/pdf/csqzar00.pdf). I think IBM still requires a license for this client.
    Finally, you might find some useful information in the following white-paper: "[ Integrating an Oracle Service Bus Cluster with an IBM WebSphere MQ Cluster in a Service-Oriented Architecture | http://www.oracle.com/technology/products/integration/service-bus/docs/osb-websphere-whitepaper.pdf ]".
    Tom

  • How to configure JMS server in weblogic

    Hi,
    I want to configure JMS server in weblogic.So please send me needful link.
    Regards
    Anup

    Hi Anup,
    1. The first thing you have to do is create a filestore where messages will be stored. Look at the below link for more detailed instructions:
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/stores/CreateFileStores.html
    2. Next create a JMS server. Look at the below link for more detailed instructions
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/jms_servers/ConfigureJMSServers.html
    3. Now, create a JMS System Module to hold the JMS resources like Queues, Topics, Connection Factory, SAF agents etc..
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/jms_modules/modules/ConfigureJMSModules.html
    4. Now, create a resource like connection factory OR queue etc.
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/jms_modules/modules/ConfigureJMSModuleResources.html
    For now, lets stick to the basics and create a basic queue using the below documentation unless you exactly know what resource you want to create
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/jms_modules/queues/CreateQueues.html
    5. You will also need to create a connection factory to use the resource. See below documentation
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/jms_modules/connection_factories/CreateConnectionFactories.html
    Please go through the below JMS architecture diagram as well as documentation that will tell you what JMS on WebLogic is all about in terms of configuration
    http://docs.oracle.com/cd/E23943_01/web.1111/e13738/overview.htm#i1084283
    Arun

  • How to configure different listener for each database in 11gR2 RAC

    Hi Friends,
    Current Prod Setup :
    11gR2 (11.2..0.2) RAC on RHEL 5.5 with 3 SCAN Listeners on default 1521 port.
    Having 4 databases which are using SCAN-IP and listening on default port only.
    As per policy, we have to create separate listeners (on different port) for each database.
    like,
    DB1 - 1522
    DB2 - 1523
    DB3 - 1524
    DB4 - 1525
    Even If I configure 4 listeners using NETCA, how my failover & load balancing will happen using SCAN & Newly Created Listeners ???
    Thanks in advance..
    Regards,
    Manish

    Hi,
    I tried on 11gR2 TEST RAC Server to have different listener with different port (1529) for SCAN & Node Listener & tested failover, load-balancing which was successful.
    [oracle@ravish5 admin]$ cat listener.ora
    LISTENER_A=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))) # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_A=ON # line added by Agent
    [oracle@ravish5 admin]$ ps -ef | grep lsnr
    oracle 1985 1 0 00:46 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER -inherit
    oracle 1988 1 0 00:46 ? 00:00:00 /11g_database/11.2.0.2/product/home_1/bin/tnslsnr LISTENER_A -inherit
    oracle 2928 1 0 01:00 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER_SCAN1 -inherit
    [oracle@ravish5 admin]$ lsnrctl status LISTENER_A
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 02-MAY-2012 03:19:35
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))
    STATUS of the LISTENER
    Alias LISTENER_A
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 02-MAY-2012 00:46:42
    Uptime 0 days 2 hr. 32 min. 54 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /11g_database/11.2.0.2/product/home_1/network/admin/listener.ora
    Listener Log File /11g_database/11.2.0.2/diag/tnslsnr/ravish5/listener_a/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_A)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.5)(PORT=1529)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.16)(PORT=1529)))
    Services Summary...
    Service "TEST" has 1 instance(s).
    Instance "TEST2", status READY, has 1 handler(s) for this service...
    Service "TESTXDB" has 1 instance(s).
    Instance "TEST2", status READY, has 1 handler(s) for this service...
    Service "srvc_test.clover.com" has 1 instance(s).
    Instance "TEST2", status READY, has 1 handler(s) for this service...
    The command completed successfully
    SQL> show parameter listen
    NAME TYPE VALUE
    listener_networks string
    local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
    DRESS=(PROTOCOL=TCP)(HOST=192.
    168.3.16)(PORT=1529))))
    remote_listener string ravish-scan:1529
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    [oracle@ravish5 admin]$ srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521,1529
    [oracle@ravish5 admin]$ srvctl config scan
    SCAN name: ravish-scan, Network: 1/192.168.3.0/255.255.255.0/eth0
    SCAN VIP name: scan1, IP: /ravish-scan.clover.com/192.168.3.22
    [oracle@ravish5 admin]$ srvctl config listener
    Name: LISTENER
    Network: 1, Owner: oracle
    Home: <CRS home>
    End points: TCP:1521
    Name: LISTENER_A
    Network: 1, Owner: oracle
    Home: /11g_database/11.2.0.2/product/home_1
    End points: TCP:1529
    [oracle@ravish5 admin]$ srvctl config service -d TEST -s srvc_test.clover.com
    Service name: srvc_test.clover.com
    Service is enabled
    Server pool: TEST_srvc_test.clover.com
    Cardinality: 2
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: true
    Failover type: SELECT
    Failover method: BASIC
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: TEST1,TEST2
    Available instances:
    TEST_NEW =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ravish-scan.clover.com)(PORT = 1529))
    (LOAD_BALANCE = yes)
    (FAILOVER = ON)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = srvc_test.clover.com)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    Actually different ports for different databases are required to have separation of duties. Once Firewall enabled betwen Client & DB Server only privileged users would have access to particular database.
    Regards,
    Manish

  • How to configure virtual hosts and separate tiers

    The configuration we require with WLS must:
    1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
    2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
    3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
    4) the ejb layer must be clusterable
    5) DNS round robin is sufficient protection for web layer failover
    I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
    Thanks

    The configuration we require with WLS must:
    1) provide virtual hosts that can operate under their own SSL environments (some one way, some two way, with different certs)
    2) perform all XML parsing of received message objects in the web layer in order to (a) offload CPU from ejb layer to web layer and (b) prevent any malformed message from penetrating to the ejb layer - reject in the web layer
    3) the web tier must be physically separate from the ejb tier - an integrated WLS server is not acceptable for security reasons
    4) the ejb layer must be clusterable
    5) DNS round robin is sufficient protection for web layer failover
    I do not see clearly how to accomplish this configuration using the WLS suite. Would appreciate guidance on this prior to plunking down big dollars for licenses.
    Thanks

  • How to set JMS clients to use JVM Invocation layer

    Hi,
    I'm not sure if this JBoss specific (but I'm assuming it's not) so I'll be asking it here. How can I set my JMS clients and Message-Driven Beans to use JVM Invocation layer since the clients and queues will reside in the same JVM.
    Thanks in advance.

    May be that explains why I couldn't successfully integrate ActiveMQ with JBoss. I was using the 3.0 version. I'll try again once I find the time.
    Anyway, do you know how to set JBoss JMS clients and MDBs to use JVM invocation or transport layer instead of UIL2?
    I'm not sure if what I've done is correct But here's what I've done.
    For jvm-il-service.xml, I changed the JNDI reference from "ConnectionFactory" to "JVMILConnectionFactory" since the default service uses "ConnectionFactory". Then I used that reference as my JNDI look up in my JMS client. I'm just not sure how to do this with MDBs. I think I should add an entry in the ejb descriptor file but I need someone to confirm.
    Thanks.

  • How to configure tns listener to access remote application?

    Hi all,
    Hope doing well,
    sir i am trying to access host database in my client system. both are connected with the same network through LAN.
    i have installed oracle client in client system. but when i running web application getting this error: ORA-12541: TNS:no listener
    i have googled for that and i got that if in tns.ora file we set the ip address of client system instead of localhost it will work.
    i changed that in my tns.ora file which is here
    # tnsnames.ora Network Configuration File: C:\app\securax\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    GRAND1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = Grand1)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    LISTENER_GRAND1 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    but still getting same error.
    how to come out from this error?
    thanks

    952646 wrote:
    Hi sir,
    this is my tns.ora file
    # tnsnames.ora Network Configuration File: C:\app\securax\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    GRAND1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = Grand1)
    and this is my listener.ora file
    # listener.ora Network Configuration File: C:\app\securax\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = Grand1)
    (ORACLE_HOME = C:\app\securax\product\11.2.0\dbhome_1)
    (SID_NAME = Grand1)
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = C:\app\securax
    when i am using this command "lsnrctl start Grand1"
    it is telling the listener of the name LISTENER is already started.
    means it's telling about that listener which is in listener file not in tns.ora file.
    so this is correct or not?
    thanksits wrong you don't have listener with name called Grand1 , your listener name is LISTENER

  • How to configure JMS-Server to use username and password

    Hi
    Maybe this is a real stupid question, but please help me, I'm not very experienced using JMS:
    I'm using JMS (provided by OC4J / Application Server 10.1.3). I configured a ConnectionFactory (without username and password) and a Queue and there is also a application, which successfully opens the JMS-Connections.
    This works well as long as I do not provide a username und password in the ConnectionFactory (EnterpriseManager: OC4J/Admin/Services/JMS-provider...). If I do this, my application terminates with the following stacktrace:
    javax.jms.JMSSecurityException: JMSServer[aplora2:12602]: failed to authenticate "myuser/mypassword", no such user.
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1034)
         at com.evermind.server.jms.JMSUtils.toJMSSecurityException(JMSUtils.java:1090)
         at com.evermind.server.jms.JMSServer.getJMSServer(JMSServer.java:1237)
         at com.evermind.server.jms.JMSServer.getJMSServer(JMSServer.java:1213)
         at com.evermind.server.jms.InContainerProxy.getJMSServer(InContainerProxy.java:93)
         at com.evermind.server.jms.EvermindConnection.<init>(EvermindConnection.java:103)
         at com.evermind.server.jms.EvermindQueueConnection.<init>(EvermindQueueConnection.java:62)
         at com.evermind.server.jms.EvermindQueueConnectionFactory.unprivileged_createQueueConnection(EvermindQueueConnectionFactory.java:98)
         at com.evermind.server.jms.EvermindQueueConnectionFactory.access$000(EvermindQueueConnectionFactory.java:42)
         at com.evermind.server.jms.EvermindQueueConnectionFactory$1.execute(EvermindQueueConnectionFactory.java:78)
         at com.evermind.server.jms.InContainerProxy.doSecureOp(InContainerProxy.java:157)
         at com.evermind.server.jms.EvermindQueueConnectionFactory.createQueueConnection(EvermindQueueConnectionFactory.java:75)
         at com.evermind.server.jms.EvermindQueueConnectionFactory.createQueueConnection(EvermindQueueConnectionFactory.java:66)
         at sam.model.messages.MessageManager.<init>(MessageManager.java:74)
    where "myuser" and "mypassword" are the username and password I entered in the ConnectionFactory. (My Application certainly uses the same username and password)
    I expected, that by entering username and password here I would configure my Queue to be protected by them. But obviously there are some very basic things I didn't understand. Can anyone give me a hint, how I can protect the (OC4J-) JMS-Server or the Queue by username and password?
    Thanks for your help
    Frank Brandstetter

    Hey Frank -
    Assuming you've set up users in the "Security Manager" for your application, you can specify what JNDI resources they can "read" (and thus also connect to) via the orion-application.xml file. Look at the following snippet from the orion-application.xml file:
         <namespace-access>
    <read-access>
    <namespace-resource root="jms/firstQueue">
    <security-role-mapping impliesAll="false" name="jmsSecurity">
    <user name="scooter"/>
    </security-role-mapping>
    </namespace-resource>
    </read-access>
    <read-access>
    <namespace-resource root="delme">
    <security-role-mapping impliesAll="false" name="jmsSecurity">
    <group name="messagingUsers"/>
    </security-role-mapping>
    </namespace-resource>
    </read-access>
    </namespace-access>
    This would say that only the user "scooter" that you've set up would have access to the Queue whose JNDI name begins with jms/firstQueue. Anyone you've set up and added to a messagingUsers group would have access to any Queues whose JNDI name begins with "delme". (I'm honestly not sure what exactly this line does: <security-role-mapping impliesAll="false" name="jmsSecurity">)
    This is the only way I've found to limit access to a particular Queue.
    HTH.
    Scott

  • How to configure multiple cluster on multiple jvm

    Hello all,
    I have 15 caches and 6 servers with 8 processors each.
    I wish to split the 7 Caches on 3 servers as first cluster and remainig 8 caches on 3 servers as second clsuter.
    Can somebosy please provide the sample configuration.
    Thanks
    Vinay

    Hi Gary,
    clusters are separated from each other by their multicast cluster address and cluster port.
    Just choose two clusteraddress-port pairs in which both the ports and the cluster addresses are different (different ports are necessary, I believe, because you want to have multiple clusters on the same machine).
    You can specify the cluster address to the JVM with the Java property -Dtangosol.coherence.clusteraddress=... and you can specify the port with -Dtangosol.coherence.clusterport=....
    Specify the appropriate address and port to all the JVMs according to which cluster you want the JVM to be a member of.
    Alternatively you can specify an override file containing this information (you can read more about this on the wiki or in the users guide in the zip file (which is an export of the wiki).
    Best regards,
    Robert

  • How to configure one Listener for 2 databases on the same server

    Hello all,
    Please, I am stuck as with my application server which requests the port 1521. I want to configure the repository to make use of the port 1521 which is also shared by another database on the server.
    Regards,
    Nadine

    Maybe it is worth mentioning here that am installing it with two different users as to have two ORACLE_HOME independent of each other.
    Below are the configuration files for the Listener.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = test.appstech.local)
    (ORACLE_HOME = /d02/app/oracle/product/10.2.0/db_1)
    (SID_NAME = test)
    (SID_DESC =
    (GLOBAL_DBNAME = testing.appstech.local)
    (ORACLE_HOME = /d01/app/oracle/product/10.1.2/ora_infra)
    (SID_NAME = testing)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ebs.appstech.local)(PORT = 1521))
    TRACE_LEVEL_LISTENER = USER
    TEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = test.appstech.local)
    TESTING =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.15.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = testing.appstech.local)
    Regards,

  • How can a JMS Listener Notified get when a Topic Server Goes Down?

    I'm in the process of looking into pub/sub model for a centeralized data source where vertical applications subscribe to a topic to get updates on person demographic information.
              I was playing with the JMS topic examples and noticed that when I have a Durable Subscriber listener (java main) and the topic Server goes down. It never gets notified. When I restart the Topic server and send msgs to the topic, the Durable Listener doesn't get them.
              Once I restart the Durable Listener (java main), it receives all the messages that were pending.
              I implemented the ExceptionListener and it never gets a shutdown msg either. I shutdown the Topic server via Ctrl-C, Graceful Shutdown and Forced Shutdown.
              Is there a way for the client listener to determine when the Topic Server went down, came backup, and restore the connection to it automatically? Or do we have to implement some type of ping mechanism on the client listener and re-create the connection ourselves?
              Thanks. Later...
              - Wayne
              Edited by wlau1000 at 03/07/2007 8:34 AM

    Hi Wayne,
              I think the exception listener should have fired. Some comments/questions:
              - Does your app call "connection.setExceptionListener" in addition to implementing ExceptionListener?
              - Which version and maintenance/service pack are you using?
              - Is the client using the wl* "thin" client jars or the "thick" client jar?
              - Version 9.2 provides an automatic reconnection capability for consumers. This behavior isn't enabled by default due to natural side effects that some apps might not be prepared to handle (needles to say, I recommend reading the doc thoroughly).
              http://edocs.bea.com/wls/docs92/jms/recover.html#wp1320125
              Tom

  • How to configure a listener to listen on a different port rather than 1521 and register it on the database

    Hi Everyone,
    I have used 11gR2 RAC for a couple of years and now I've got this issue because I have tried to setup more than one database on RAC infrasturcture:
    I have an existing database on my RAC. (lets call it orcl) which is listening on port 1521 and is functioning properly. Now I want to create anoher database (call it test) which is going to listen on port 1526. I am able to create a listener using netca, (as oracle recommended, I've created it with grid user). I am also able to create a database using dbca (with dba user). My problems stem from when I want to configure listener to register with the new database. If i set local_listener to my newly configured database, it won't be able to tnsping and therefore login. If I create tnsnames.ora file on local or remote server, I am able to ping the database, but when I want to connect using sql*plus (or any other client) I receive TNS-12514 error. By the way, I am using AIX 7.1 as my machine.
    Let me know if any more info is required on this topic.

    > Now I want to create anoher database (call it test) which is going to listen on port 1526.
    Why? What is the purpose of using another listener? An Oracle Listener was designed to service multiple databases running on the same server. In all my years of working with Oracle and running multiple databases on the same machine, I have yet to be required to run more than one listener. And almost every single time I've seen someone try to provide rationale for multiple listeners, the technical reasons have no merit.
    > If i set local_listener to my newly configured database
    The LOCAL_LISTENER parameter does not point to a database...it points to a LISTENER!
    LOCAL_LISTENER=(ADDRESS = (PROTOCOL=TCP)(HOST=hostname)(PORT=1526))
    Cheers,
    Brian

Maybe you are looking for