Wls10.3 - JMS questions

Hi
What does it mean when you target a JMS module (and queues... in that module) to a cluster rather then to a specific JMS server ?
Is it perhaps deployed to all JMS servers in the instances in that cluster ?
Might help if i explain what i'm after. I want to create a JMS module containing two JMS queues and a connectionfactory and then deploy that module on all servers in a cluster.
So i created a JMS module and added the queues, cf and then targeted the module to my cluster. I used distributed queues and then set "default targeting".
But what about the JMS server(s)/persistant store then ? Thus, my questions above.
/Laban
Edited by: user1069472 on 2008-okt-29 04:16

Laban,
The recommended best practice is to use the "Advanced-Targeting" to create explicit sub deployments for the module resources and target those sub deployments to a specific (list) JMSServer, SAFAgent, WLS Server or to the Cluster appropriately. The "default-targeting", while it simplifies the targeting process, it might introduce some undesirable effects for resources such as "uniform-distributed-destination" that gets targeted to a cluster might end up having members all the available JMSServers in that cluster. Since this might not be a desirable in all the cases, it is not recommended as a best practice for module targeting.
Please look at http://e-docs.bea.com/wls/docs103/cluster/service_migration.html#wp1067914 for a list of best practices for creating/targeting JMS Modules/Resources (you can ignore the migration aspect of this page).
For more details on the JMS Modules /resource configuration, please look at http://e-docs.bea.com/wls/docs103/jms_admin/overview.html.
Thanks
Kats

Similar Messages

  • JMS question

    Hi,
    Can the blazeds messaging system subscribe AIR clients to a JMS one-to-many topic?
    for example, I have a java program that creates a JMS topic called latest news. Some java subsystem adds new news items to this topics. I would like Flex AIR apps Consumers to subscribe to this JSM topic via blazeds so that they all get the broadcasted message
    possible?

    Ok, so it should be something like this:
    MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
    AsyncMessage msg = new AsyncMessage();
    msg.setDestination(/*YourDestinationId*/);
    msg.setClientId(UUIDUtils.createUUID(false));
    msg.setMessageId(UUIDUtils.createUUID(false));
    msg.setTimestamp(System.currentTimeMillis());
    String messageBody = "Foo";
    msg.setBody(messageBody);
    msgBroker.routeMessageToService(msg, null);
    And the answer to your JMS question is yes. As long as you use JMS topics (not queues as a single queue is meant to be consumed by a single client), every Flex Consumer will get the message.

  • Distributed JMS Question

    Domain 1 (host1)
    =========
    I have 2 JMS servers target to 2 managed servers. I have Distributed Queues (distqueue1 & distqueue2) in a module targetted to both of the jms servers.
    Where Managed server 1 --> Host 1
    Managed server 2 --> Host 2
    Domain 2 (host2)
    ========
    I have an application deployed on the clustered environment.
    =============================================================-
    Till now I use to have my app connected to (Domain 1(host1)) to one jms server (targetted on ManagedServer 1), now I want my application to do lookup to the clustered JMS on both the servers.
    So my question is how we proceed with the application to talk to the clustered jms (on multiple managed servers (on multiple physical hosts))

    You can specify the distributed destination JNDI name for the destination. Weblogic provides cluster wide JNDI replication - so any object that is deployed to any of the managed servers or to the cluster will be visible in the global JNDI tree of all the managed servers in the cluster. So for the JNDI lookup you can connect to a single managed server, or, A better load balanced approach would be to use a dns lookup where your app connects to a dns name and the dns is resolved to different IP address ( man1 IP, man 2 IP etc) on each lookup.
    You will have to get the load balancing setup on the Connection factory and the CF has to be deployed to a cluster to avoid unwanted routing between the man servers.
    This has been discussed a lot in the jms forum. Please search and you will get more details.
    One good link I got with a quick search
    Clustering with a load balancer
    Edited by: atheek1 on 25-Mar-2010 01:02

  • WLS 6.1 JMS Questions

              A couple of questions:
              I'm using a user txn on a servlet to insert into a JMS queue, and update a field
              in the database. I'm using a Message-driven Bean (with container managed txn)
              to service said queue... When I rollback the txn in the MDB, it looks like it
              actually rolls back the servlet's txn as well! I was expecting this to result
              in the message being put back onto the queue only... Can I correct this behaviour?
              Is there a way for me (in the MDB) to take the message and place it back onto
              the queue for processing later (e.g., 5 minutes)?
              Thanks in advance, Chad
              

    Chad Stansbury wrote:
              > A couple of questions:
              >
              > I'm using a user txn on a servlet to insert into a JMS queue, and update a field
              > in the database. I'm using a Message-driven Bean (with container managed txn)
              > to service said queue...
              > When I rollback the txn in the MDB, it looks like it
              > actually rolls back the servlet's txn as well! I was expecting this to result
              > in the message being put back onto the queue only... Can I correct this behaviour?
              You are right, this is odd and incorrect behavior, but I can't imagine
              how it happening. Contact customer support.
              >
              > Is there a way for me (in the MDB) to take the message and place it back onto
              > the queue for processing later (e.g., 5 minutes)?
              >
              There are a couple of ways. You can configure a "RedeliveryDelay" on
              the destination via the console, this delays redelivery of rolled back
              messages. Or you can commit() the transaction, and resend the message
              to its originating queue using a
              ((weblogic.jms.extensions.WLMessageProducer)producer).setTimeToDeliver(5000);
              > Thanks in advance, Chad
              Your welcome,
              Tom
              

  • WLS10.3 JMS and BAM

    Hello,
    is there any way to use an Enterprise Message Source of Type: BEA WebLogic Server
    without utilizing Oracle BAM Enterprise Message Link
    We currently have
    1. defined one jms topic on WLS10.3
    2. defined an Enterprise Message Source with the same "Topic Name"
    but we cannot find documentation how to get the Enterprise Message Source into Data Objects
    except the things described in Tutorial: Oracle BAM Plans to collect data from JMS bus
    (Tutorial_5_BAM_CollectingDatafromJMS.doc) which require BAM Enterprise Message Link
    any help with links or documentation will be very appreciated
    thanx in advance
    ./ydes

    I configured Enterprise Link
    but now I get the exception
    IMessageSourceReceiver->Open: java.lang.UnsupportedClassVersionError: weblogic/jndi/WLInitialContextFactory (Unsupported major.minor version 49.0)
    as I am using wls 10.3 (dafaults to Java 6), I changed the weblogic.jar to wlfullclient.jar (for Java 1.5) on the External Source classpath
    but I still get the same error
    any hints?

  • File adapter to JMS question.

    Hi All,
    I have a file to JMS scenario.
    I wanted to know
    1.If PI is down and the messages are stacked in my file outbound folder.. when PI comes back up..
       incase if the filenames have a timestamp..is there a way for PI to pick them up in serial order.. oldest
       timesamp first?.
    2.If my target system is down, in this case my messages will be stuck in PI..but when my target
       system is back up.. and if the source sends a message at the same time.. this will get processed 
       before the messages that are in error state in PI and can be resubmitted. Is there a way to control
       this.. so that a new message is not processed before the old ones have been resent?.
       My Main aim is for the messages to go in the order of which they are sent according to the oldest
       timestamp first.
       Has anyone encountered a similar situation for serialisation?.
       Thanks a Lot!!.

    1. For setting the order
    For this you have to set the Quality of Service to Exactly once in order. and set a Queue Name.
    In this way all the messages picked up will go to the same queue. Only the first message entered has to get processed before the new messages
    2.For processing sequence
    Once that is done select the processing sequence as By Date. In this way the oldest will be picked up first.
    Here the problem is files created at same second will get picked up in any order. For minutes the order is preserved.

  • SAP XI JMS Question

    All,
    I have a database of data in SAP XI 3.0 (SP17).  I run a Function Module to extract this data and want to send it to the JMS
       Adapter to deliver it to WebSphere MQ to a remote MQ QManager on another System.  A return code from JMS Adapter indicating that
       the message was put on MQ is all that is needed.  I am not waiting for the remote MQ to reply.  There is no reply.
       Using Service Pack 17 SAP XI, can the Abap Code starting the XI JMS Scenario receive a reply from the JMS Adapter to know that MQ
       received the data?  Does this have to be a sync scenario or can the scenario be async?
       Does this type of Scenario require the use of a BPM with sync/async bridge?  I have tried this approach and, on too many occasions,
       the reply never comes back to the SAP XI Abap Stack.
       Any detailed help for how to accomplish this without upgrading to SP19 for the new sync/async JMS Adapter process would be greatly
       appreciated.
       Or is that the only alternative?
    Thanks in advance!
    Michael

    Michael,
    I am on XI 3.0 SP16.  In my scenario the JMS call is asynchronous
    The best way to determine if the message was sent successfully is to switch on debugging for JMS messages
    In Visual Administrator navigate to Cluster.Services.Log Configurator
    Select the locations tab and navigate to
    ROOT LOCATION.com.sap.aii.af.mp.jms.ejb
    Then set the severity level (eg to debug)
    Run your scenario then in Visual Administrator navigate to Cluster.Services.Log Viewer to view your trace.  Alternatively you can run the stand alone log viewer
    To access documentation for ‘Logging and Tracing’ to go to the following URL
    http://help.sap.com/saphelp_nw2004s/helpdata/en/64/0b59010a65de44be4f26cb57b9580d/frameset.htm
    To physically see if the JMS message has reached the MQ server I used two administration tools (1) log onto the MQ server and use the Websphere MQ Explorer tool or (2) a stand alone tool called rfhutilc.exe
    Regards,
    Mike

  • Two short Soap over JMS questions

    Hello everybody,
    ís it possible to call a SOAP Service over JMS with the Oracle BPEL Process Manager, when the SOAP Service uses a "non-Oracle" queue (e.g. Apache ActiveMQ)?
    Is the schema for the namespace "http://www.oracle.com/technology/oracleas/wsdl/jms" or documentation for the elements <jms:address> and <jms:propertyValue> available somewhere?
    Thank you for your time.

    Ok, then I think I am on the right track, but still I cannot get this scenario to work.
    JMS (SOAP)-> SAP PI(ccBPM) --> IDOC
    I put SOAP messages on the sender queue, those messages dissapear from that queue, so I would expect that I can see them back in PI, but no trace is left behind in the monitoring area... It is like they've never been read from the input queue.
    What is happenning with those messages? The definition of the SOAP envelope has been uploaded as an external definition and linked to a message interface in the repository.
    JMS Communication channel checked but it is also fine.
    Any clues where to look?
    Thanks.

  • SAP JMS Question

    I think I know the answer to this, but I have to check.
    Are there more than one kind of <b>Express</b> messages in SAP?
    Are there more than one kind of <b>Persistent</b> message type in SAP?
    Or are the message types pretty much JMS specifications only ?
    Thanks, John

    Hi,
      The messages which are used in JMS are the specifications of JMS only and not that of SAP.Two ways of sending messages in JMS as u know is "topic" & "subscribe".SAP WAS server which supports J2EE specifications supports JMS there by the msgs are pretty much JMS specifications only.
      If you want to store ur java objects as persistent in DB (not related to this q) then SAP WAS supports JDO,SQLJ,JDBC etc.
       Hope it helps.
    Rdgs,
    Guru

  • OC4J/JMS question

    Is there a possibility to send messages to OC4J/JMS queue from remote client program?

    Yes, exactly this way I obtain a connection factory. Here is piece of code, how I do it:
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
              env.put(Context.SECURITY_PRINCIPAL, "admin");
              env.put(Context.SECURITY_CREDENTIALS, "admin");
              env.put(Context.PROVIDER_URL, "ormi://localhost:23791/");
              Context context = new InitialContext(env);
              QueueConnectionFactory connectionFactory = (QueueConnectionFactory)context.lookup("jms/my/test.queueConnectionFactory");
    Then I obtain a connection, lookup my queue and create sender:
    QueueConnection connection = connectionFactory.createQueueConnection();
              QueueSession qSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
              Queue q = (Queue)context.lookup("jms/my/test.queue");
              QueueSender sender = qSession.createSender(q);
              connection.start();
    Then I try send my message and it fails on sender's send method:
    TextMessage message = qSession.createTextMessage();
    message.setText("Text message text");
    sender.send(message);
    And exception is:
    javax.jms.JMSException: Unable to connect to JMSServer (/127.0.0.1:9127)
         at com.evermind.server.jms.EvermindQueueConnection.connect(E[i]Long postings are being truncated to ~1 kB at this time.

  • JMS Questions

    I want to send sms from mobile to PC which should be collected in Sun Java System Application Server(9.1) queue.
    and in future I want the to send the sms back to mobile from JMS queue.
    Please inform me ragarding the softwares required, documentation as to how to configure Sun AS.
    Also is it possible for the JMS application to recieve emails???

    Hi,
    You can get the sample JMS application with the server installation..Weblogic, Websphere.

  • Basic JMS question

    We have weblogic 5.1 running on Server A and some java apps running on server B (in the same domain). If I want a Java program on server B to access JMS to get messages, Do i need an instanceof Weblogic installed on Server B and communicate with Server A? If not how do I get to JMS on Server A.
    Thanx

    The JMS services on your Server A are accessible via the JNDI context provided by server A. All you need is to connect to server A and lookup the JMS service by name. The following code snippet illustrates:
    // Firstly, setup the server A connection JNDI configuration
    Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "t3://serverA:8001/");
    env.put(Context.SECURITY_PRINCIPAL, "system");
    env.put(Context.SECURITY_CREDENTIALS, "weblogic");
    Context ctx = InitialContext(env);
    // Then access the server A JMS services.
    // Note: the jndi name will be configured in your weblogic config files.
    TopicConnectionFactory factory = (TopicConnectionFactory) ctx.lookup("<jndiName>");
    Hope this helps.
    Daniel

  • Newbie JMS Question

    hi,
              I am writing an client in Pascal (DELPHI) to Connect to JMS of Weblogic
              --

    FYI....
    I had the same problems and searched all around but to no avail...found that my problem was leading slashes in the jndi name.
    simple but hard to find.
    hth

  • Rookie JMS question.

    I'm trying to use WebLogic JMS as a Messaging Provider for another application server. I tried using the 'thin client' approach (wljmsclient.jar). That threw a ClassNotFoundException (weblogic.kernel.Kernel).
              Sure enough, that class is in weblogic.jar (which I did not use).
              Substituting the weblogic.jar is a non-starter since it 'clashes' some of the XML parsing classes (javax.xml.validation.Schema, etc.)
              Anyone have any ideas ?
              Edited by drusnak at 05/24/2007 12:01 PM

    Thanks for the reply, Tom....
              I have that doc. BTW, wlclient.jar was in the classpath. I was hoping for a 'magic bullet' revalation. This is what I find curious is that the 'client' throws a ClassNotFoundException (for weblogic.kernel.Kernel).
              This class is ONLY present in webLogic.jar. So it looks like it's trying to dynamically load a class that it (logically) shouldn't.
              [5/24/07 15:53:00:803 EDT] 000000c6 WebApp E SRVE0026E: [Servlet Error]-[JmsQueueWriter]: java.lang.Error: Call BEA Support
                   at weblogic.jms.dispatcher.JMSDispatcherManager.getJMSThreadPoolSize(JMSDispatcherManager.java:145)
                   at weblogic.jms.dispatcher.JMSDispatcherManager.initialize(JMSDispatcherManager.java:86)
                   at weblogic.jms.dispatcher.JMSDispatcherManager.getLocalDispatcher(JMSDispatcherManager.java:167)
                   at weblogic.jms.dispatcher.JMSDispatcherManager.getLocalDispatcherWrapper(JMSDispatcherManager.java:216)
                   at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:230)
                   at weblogic.jms.client.JMSConnectionFactory.createConnectionInternal(JMSConnectionFactory.java:299)
                   at weblogic.jms.client.JMSConnectionFactory.createQueueConnection(JMSConnectionFactory.java:179)
              Caused by: java.lang.ClassNotFoundException: weblogic.kernel.Kernel
                   at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
                   at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java(Compiled Code))
                   at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
                   at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
                   at java.lang.Class.forName1(Native Method)
                   at java.lang.Class.forName(Class.java(Compiled Code))
                   at weblogic.jms.dispatcher.JMSDispatcherManager.getJMSThreadPoolSize(JMSDispatcherManager.java:128)
              Edited by drusnak at 05/24/2007 2:18 PM

  • Embedded JMS question

    The JMS server that comes with the install of the Application Server is called OC4J, correct?
    And OJMS is part of the database product then?
    Trying to get the 2 different providers straight. I see where the documentation lists "OJMS has been integrated into OracleAS 10g using the JCA adapter while at the same time leveraging Advanced Queueing in the Oracle Database for persistence and recoverability."
    Does this mean that both are included in the Application Server, but in order to use OJMS you must use the JCA adapter and the separate Oracle Database?

    The reason I was asking was in this document:
    http://www.oracle.com/technology/tech/java/oc4j/904/collateral/OC4J-FAQ-JMS-904.html
    It says...
    "Oracle offers two JMS providers; Oracle JMS (OJMS) and OracleAS JMS. Which one should I be using?"
    And just below it...
    "Oracle offers two JMS providers; OJMS (AQ/JMS) and OC4J/JMS. Which one should I be using?"
    Those statements had lead me to believe that OJMS=AQ/JMS and OracleAS JMS = OC4J.
    Was this a typo, and shouldn't have used OC4J where it did?

Maybe you are looking for

  • "unknown error" message when trying to download apps on my iPod touch

    Today Ive been trying to download multiple apps but keep receiving an "unknown error" message I've tried restarting my iPod but that didn't help

  • My left shift key stopped working right one is fine

    my left shift key stopped working this morning. never had a problem tell I started using snapshot shift plus command

  • PO Release Procedure Setup

    I have configured the PO release procedure for PO with header value of more then 25000. In the process I have created the following - 1. Custom Characterstic 2. Custom class 3. Release group 4. Release code 5. Release indicator 6. Release strategy bu

  • Restore backup pieces from tape to disk

    Hello, I want to restore the backup pieces from tape to disk.   Is there any way of getting those bacup pieces to disk.  I have contacted storage team, that they can't copy the files, only through rman utility the files can be used. I just need to re

  • Problem to login

    Hi, How to resolve this problem, to login the database? Cannot connect to PC326VM01\SSEXPR12. ADDITIONAL INFORMATION: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Me