How does JMS Destination relates to a Connection Factory ?

Hello,
I am new to JMS but have experience since 1995 with IBM MQseries, I like to understand how Connection Factories and Destination related to each other. I have looked at JMS documentation and seen the graphical representation but in MQ world we create a Queue Manger and a Queue under it. I have looke all over but can not explain this to myself.
In Sun�s Java Application Server version 9, I have created a Connection Factory called �jms/ConnectionFactory_abc� and then have created a Destination called �jms/destination_abc� and successfully sent and received messages, what I do not understand is that there is no menu option in Sun�s web based screen to related the 2 together!! How do they relate? Do they related becuase of my program logic?
What if you like to have same Destination names under 2 different Factories?
---------Code fragment without TRY/CATCH
queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("jms/ConnectionFactory_abc ");
queue = (Queue) jndiContext.lookup(�jms/destination_abc �);
queueConnection = queueConnectionFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
queueSender = queueSession.createSender(queue);
message = queueSession.createTextMessage();
message.setText(input);
queueSender.send(message);
queueConnection.close();
Please advise
Thank You.
AA

I'll have a stab at this one, but may not be 100% right. Hopefully someone will point out anything I've got wrong.
A connection factory is used to obtain a connection to the JMS provider, which in the case of MQSeries is synonymous Queue Manager. The connection is used to initiate one or more conversations with the JMS provider / QM, which might include starting a new transactional session.
The destinations (Queues or Topics) are objects hosted by the JMS provider, however your client can only access these objects after establishing a connection / session, since it is the connection / session which determines the protocols and parameters to be used.
The JNDI lookups are just a way for your client to obtain a remote reference to the Connection Factory and Queue objects hosted by the JMS provider, without coupling your client with the underlying JMS implementation (i.e. MQSeries, JBossMQ, ActiveMQ etc). When these references are bound to the JNDI tree they are given names like "jms/ConnectionFactory_abc" and "jms/destination_abc", but are not related to each other. Attempting to bind two references with the same JNDI name (on the same JNDI server) will cause in an error. So while you can two identically named queues on separate queue managers, you would have to give them different JNDI names,
Hope this helps,
Steve

Similar Messages

  • How does trade promotion relate to campaign

    hi,expert,
    I am a new-hand in crm. to my knowledge, trade promotion & campaign is different function for CRM. trade promotion deal with our traditional trade promotion such as discount, free goods etc., while campaign is about  arranging some kind of activity for the channels letter, e-mail, and lead. when marketing in an concrete enterprise, it seems impossible that trade promotion & campaign just do their own business and have no relation. so my question is how does trade promotion differ from campaign,& also how they cooperate in marketing.
    besides, since trade promotion also has its own trade promotion planning, so how  does trade promotion planning differ from marketing plan? if they two co-existed, what's the relation between them?
    your response will be warmly welcome.
    thanks a lot.
    lisa

    Hi Lisa
    Diff betn Campaign and TPM
    Campaigns are the ways and mediums which helps in communication, increasing awareness, increase sales and wide range of activities. It can be done through mailing list, product promotions, telecalling etc. So in nutshell as an organisation, you are trying to reach your customers for increasing customer base or sales or product awareness.
    Examples of campaign:
    1)You give $2 off on the purchase of every pack of Beer bottle.
    2) Set up a stall in the Expo and register the queries to generate the leads.
    3) Telecalling to all the individuals in the city with more than USD 100,000 p.a. income and then create leads.
    However Trade Promotion Management is an activity which is done with the help of your channel partners. The check here is "trade", which means distributors, retailers, wholesellers, re-sellers etc. The purpose remain the same like to increase customer base or sale revenues but here the incentives are given to your channel partner.
    Ex. Organisation sells products through Distributors in the market. If Organisation devise a scheme whereby distributor will get US $ 1000 extra he sells more than 100 cartons/month then it is a TPM.
    Campaign : You can create Campaign without BP master data, you can run Campaign for External email id to generate lead and opportunity. but
    Trade Promotion : You need to have BP master data. Mostly TP functionalities is used in Consumer Durables, FMCG where distributors or retailers as their BP.
    Campaign : can be automated
    TP : not possible
    Campaign : You can use Bounce Management to track and analyse your campaign
    TP : It will be based on the Cutomer Approval status. Normally will be done by key account manager.
    From deal you can create TP
    Hope this will calrify some of your queries...
    Rgds
    Mallikarjun

  • How does these all related?

    hi all,
    i have some question tat i wish to clearify,
    1. why do we put <%@Page include =...%>
    2. does the <%@Page include =...%> has any effect on the current page, how does it affect it?
    3. how about <%@Page import =...%>? how does it differ to the question 2?
    thanks all

    To my knowledge, there is no:
    <%@ page include="..." %>
    <%@ page import="some.pack.class"%>
    is used to import Java classes so they are available to the JSP page. It works just like the import statements at the top of a normal Java file (as a matter of fact, that is what they are turned into when the JSP is translated to a Servlet...)
    As for the <%@ page include="..." %> directive.... it doesn't exists. You may be thinking of <%@ include file="..." %> in which case it copies the content of the file to the translated JSP page at the location of the include directive.
    For more information, see the links at:
    http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html
    for Page directive (<%@ page ... %>)
    and Include directive (<%@ include ... %>)

  • How does PDF/VT relate to 'V'ariable data and 'T'ransactions

    Could someone explain to me how PDF/VT 'supports' Variable and Transactionsl data ?  I'm new to PDF/VT and I'd expected that it somehow made it easier to insert variable and transactional data, but I haven't found anything of that nature.  I do see that VT supports Document Part Hierarchy and metadata.  Is this the improvement related to VT - better ability to manage the documents within a single PDF file?
    There also appear to be a number of other improvements, such as direct ripping of PDF without translating to Postscript first,  JDF-aware metadata, etc.  These improve print operations, but I don't see how they improve variable data handling.
    Any pointers would be appreciated.
    Thanks,
    bob

    Good questions. I'll endeavor to provide a response.
    The most important thing to understand about PDF/VT is that in and of itself, it is a final form file format. It represents the fully composited output stream of a VDP job. There are no “variables” in PDF/VT itself. PDF/VT provides the protocols for final form PDF to optimally respresent such an output stream.
    PDF/VT-1 is built on top of PDF/X-4. All PDF/VT-1 files are totally valid PDF/X-4 files. PDF/VT-2 is based upon PDF/X-4p, PDF/X-5pg, and PDF/X-5g files - in the latter two cases possibly referring to Reference XObjects in external PDF/X-4 files.
    There are two major areas in which PDF/VT supports VDP (and so-called “transpromo”) print streams:
    Data optimization - space and RIP performance. Repeating objects, whether considered “fixed” or “variable” by whatever generates the PDF/VT, are represented via Image XObjects, Forms XObjects, and for PDF/VT-2 also Reference XObjects. Objects are defined once and then referenced many times. This can dramatically cut down the size of PDF files used for VDP. Furthermore, in conjunction with RIP technology optimized for processing PDF/VT files, such as the technology provided by products using the Adobe PDF Print Engine, use of XObjects is automatically recognized and triggers caching mechanisms that allow the RIPed results of XObjects to be cached in the RIP's high speed memory avoiding unnecessary repeated RIPing of common content. PDF/VT metadata also provides for “hints” to assist the RIP in such caching. This type of optimization makes it possible to use PDF for printing extremely graphically-rich color VDP jobs on very high speed (hundreds of pages per minute) digital presses now being developed and released to the market by digital printer manufacturers.
    Metadata.In addition to providing caching hints, PDF/VT provides metadata support for tagging pages or sets of pages for operational considerations. For example, one could tag each “set” of pages associated with the statement for each customer of a financial institution and via such metadata be able to directly access the pages associated with one statement (“view or print the statement for Jane Doe of Anywhere, New Jersey”) or multiple statements (“view or print the statements for all left-handed, herniated, Californians who own a Toyota” assuming of course you have all that metadata on the pages associated with particular account statements). As another example, you could tag via metadata for pages of certain types such as “front covers,” “inside pages,” and “rear covers” where each page type is printed on a different paper stock or size and possibly on a different printer (one could print “all front covers” for “all statements for accounts in ZIP codes 11010 through 11199”). For printing purposes, typically these types of selective printing requests are handled via JDF which instructs the RIP to select and process pages based upon such PDF/VT metadata and other JDF commands.
    Direct printing of PDF without conversion to PostScript has been occurring for a number of years now, especially starting with traditional offset print platemaking and now becoming much more prevalent for high-end digital presses, typically those used for VDP jobs. (Direct PDF isn't yet on typical desktop devices. PDF is still printed to PostScript from Acrobat on most such low-end devices.) PDF/VT really forces the need for direct PDF RIPs, but wasn't the only requirement for same. PDF/X-4 and PDF/X-5 were defined very much as a response to the needs for content at the highest level of abstaction (live transparency, color management, layers, etc.) for direct PDF printing.
    Hopefully this has begun to answer your questions. Let me know if there is further detail that you want or need.
              - Dov Isaacs (Chair, ISO TC130/WG2/TF2 PDF/X and Co-Chair, ISO TC130/WG2/TF3 PDF/VT)

  • What is "Arrow" and how does this programs relate to Windows/BootCamp?

    Hi Everyone,
    On the following YouTube video:
    http://www.youtube.com/watch?v=DxMFCksO0Ps
    When he is talking of the official bootcamp support, he mentions Arrow and other programs alike.
    Could someone inform me of these programs and what their roles are?
    Thanks
    Helooooo

    Hi,
    sounds to me like he's talking about the 'Eye Candy' stuff of Windows 7.
    http://www.windows7home.net/how-to-remove-the-arrows-on-the-desktop-shortcut-in- windows-7/
    But then again I might be wrong.
    Regards
    Stefan

  • How does font size relate to font height

    Hi,Im getting confused about font size.
    If I use a font of say font size 12. Does that mean
    - its maximum height is 12
    - its maximum ascent above the baseline is 12 but it can also go below (descent) below the baseline making total height something else.
    - something else.

    The short answer is: "No".
    The font size is APPROXIMATELY equal to the ascent, or probably more accurately, the ascent is approximately equal to the font size. But if you check font metrics for any given font you will see that they are not exactly equal. Perhaps there is some definition somewhere that specifies a precise relationship, but if so, I don't know what the formula is. Even the font metrics are only something of a general hint: according to the API documentation, some characters can be taller than the ascent or drop lower than the descent. And of course character widths vary widely.
    My practice is to get the font metrics object and ask what I've got, rather than relying on anything.

  • Confused: how does a videocard relate to my director work environment

    hello;
    I am about to buy a laptop and I am discovering that most
    laptops (affordable)
    have integrated videocards (ex: Intel GMA X3100 w/ 384mb
    allocated ram
    OR ATI Radeon X1250 w/ 512mb allocated ram );
    I understand that these integrated videocards use the
    machine's ram via 'sharing';
    QUESTION: is this an issue for me? I author in director10
    with a cast full of dozens of scripts, usually one .w3d file (
    created in lightwave with somewhere between 5000-20000 points ), a
    flash file that streams in flvs for animated textures;
    thanks
    Shannon

    Yes it does. The shared RAM isn't so much an issue. More RAM
    will equate to better handling of texture maps on those 3D objects.
    However, the Intel GMA graphics processor (aka GPU) are not
    up to par compared to a ATI or NVidia GPU. When it comes to
    rendering 3D objects you need fast floating point calculations and
    polygon rendering/fills. That is what an ATI card or NVidia card in
    a desktop or laptop will buy you. Both excel and will render
    DirectX (the 3D driver) faster and better then the Intel GPU.
    The downside is that they consume more power. You will seldom
    find a ATI or NVidia card built into say a Tablet laptop computer.
    Most Tablets tend to lean towards consuming less power for more
    portability in the hand of the user and thus ship to the less power
    consuming (and weak) Intel GPU.
    Also, if you do alot of transparency in Director (and
    especially Flash within Director), the Intel GPU will come to a
    crawl.

  • UCCX 5/7 or 8 - Database access - How does the UCCX engine use the DB connection

    I was asked the following question by a customer:
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:Calibri;
    mso-fareast-theme-font:minor-latin;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    "How does UCCX manage it’s database connections – a connection pool manager / single connection / single connection for each call"
    Does anyone actually know ?  Is it documented anywhere?
    Based on how the steps work I'd guess that the UCCX engine makes a new single DB connection each time the DB step reaches out the DB for a read/write. I assume it would do this independently for every instance of a script running.  Hence the importance of the DB release step I'm guessing.
    I know in the DB subsystem you can configure the maximum number of DB connections to be used but this doesn't imply how they are used.
    I'm not a DB guy, but I think the concern stems from the potential load on a DB server with the constant opening and closing of the DB connections.  I'm assuming that if it used a connection pool the UCCX engine would open, and keep open, a group of DB connections to be used by the UCCX engine. This would lessen the load on the DB server I'm assuming.
    Is there any fundamental difference with UCCX 8 and the DB access ?  It obviously not ODBC anymore.  It JDBC right ? But again how does the UCCX engine use the DB connection?

    To my knowledge, this is not documented; however, at least through 7.0 the MIVR subsystem will open a pool of ODBC connections equal to the maximum you defined and keep them open. If you set it to 50, you will see 50 open connections on the SQL server. Each script that is triggered will attach to one of the available connections as soon as you use a DB-related step and keep it until you use a DB Release step. Once that script instance releases it, the connection is available for another script.
    The behavior should not change with 8.0 as it is the same MIVR subsystem that is doing the work. My first CCX 8.0 project that needs database integration is still about 30 days away so I can't guarantee that though.

  • JMS proxy and XA connection factory

    Hi all,
    I would like to ask you what is the best practice to adopt about the scenario described below.
    A JMS proxy retrieves a message and processes it.
    Any error could occurr during processing it and, in case of errors, the JMS proxy error handler publishes the message on ad hoc recovery destination D.
    (later another app will check failed messages for fixing & republishing them into ALSB).
    In that scenario we have the JMS proxy and the jms business service that, in case of errors, publishes on destination D.
    Should the JMS proxy and the business service use both a XA connection factory in order to perform all the above steps in one transaction ?
    Otherwise if the business service itself fails publishing on destination D, the message retrieved by the JMS proxy is lost and not re-delivered to the JMS proxy.
    Or XA connection factory is not needed and could I use
    Routing Options with exactly once or both are needed ?
    Thanks
    ferp

    Hi all,
    I did some tests and follow what I've achieved.
    Scenario 1.
    - Precondition
    -- A JMS proxy with XA factory + Error Destination (MyRecoveryQueue)
    -- A business service BS with XA factory that publishes into MyOutboundQueue
    -- No "exactly once" routing option used calling BS
    -- an error is forced in the pipeline
    - Flow
    -- proxy retrieves a message and try to publish it using BS
    -- an error is forced in the pipeline:
    --- transaction is rolled back, message redelivered to proxy
    --- the message is posted to the error destination after all the retries failed
    Scenario 2.
    - Precondition
    -- As 1. but no error is forced in the pipeline
    -- the MyOutboundQueue destination queue is paused
    - Flow
    -- proxy retrieves a message and try to publish it using BS
    -- BS fails to publish it on MyOutboundQueue (because it is paused)
    --- transaction is rolled back, message redelivered to proxy
    --- the message is posted to the error destination after all the retries failed
    Scenario 2A.
    - Precondition
    -- As 2. with MyOutboundQueue paused and resumed
    - Flow:
    -- proxy retrieves a message and try to publish it using BS
    -- BS fails to publish it on MyOutboundQueue (because it is paused)
    --- transaction is rolled back, message redelivered to proxy
    --- before all the retries failed the queue is resumed
    --- BS succeeds to publish the message
    Scenario 3.
    - Precondition
    -- A JMS proxy with NO XA factory + Error Destination
    -- A business service BS with NO XA factory
    -- No "exactly once" routing option used calling BS
    -- an error is forced in the pipeline
    - Flow
    -- proxy retrieves a message and try to publish it using BS
    -- an error is forced in the pipeline:
    --- transaction is NOT rolled back, message NOT redelivered to proxy
    -- so
    --- no message delivered to MyOutboundQueue2 destination
    --- no message delivered to MyRecoveryQueue2 destination
    --- message consumed from MyQueue2 and now is lost!
    To publish message into MyRecoveryQueue2 a proxy error handler has to be added and here added explicit publish to MyRecoveryQueue2.
    But naturally in that case if in the proxy error handler, the explicit publish fails or any error occurrs no message is delivered to recovery queue.
    So if I'm not using an XAFactory the message is auto-acknowledged as soon as it is read and I've to use XA factory if I want the message to be put back in the queue in case of errors and the retry to happen.
    So both my proxy service and business service use an XA factory.
    Regards
    ferp

  • How does Essbase deals with multi-users

    How does Essbase deals with multi-users connecting for reading and writing in the same time? How the global coherence of the database is controlled when users are updating dimension and data all together?

    For reading, Essbase handles multiple requests concurrently. For metadata (outline) only one user at a time can make and save changes.For data, Essbase uses a block level locking mechanism, which implies that an update to a block can only be done by a single update request, but other blocks in the database are still updateable by other users.Hope that helps.Regards,Jade---------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • JMS5007: Illegal connection factory access

    Hi,
    I'm getting this warning when my MDB is creating a connection to a queue to start consuming messages (onMessage method). The application works, but I'd like to know what this message really means and how to avoid it:
    JMS5007: Illegal connection factory access to [jms/InteractionTrackerQCF]. J2EE Components should access JMS Connection Factories through a resource-ref in java:comp/env
    My ejb-jar.xml is as follow:
    <ejb-jar>
    <display-name>InteractionTrackerJAR</display-name>
    <enterprise-beans>
    <message-driven>
    <display-name>InteractionTrackerEJB</display-name>
    <ejb-name>InteractionTrackerEJB</ejb-name>
    <ejb-class>com.xxxxxx.InteractionTrackerBean</ejb-class>
    <transaction-type>Bean</transaction-type>
    <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    <resource-ref>
    <res-ref-name>jms/InteractionTrackerQCF</res-ref-name>
    <res-type>javax.jms.QueueConnectionFactory</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    <resource-env-ref>
    <resource-env-ref-name>jms/InteractionTracker</resource-env-ref-name>
    <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
    </resource-env-ref>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    and my sun-ejb-jar.xml is
    <sun-ejb-jar>
    <enterprise-beans>
    <ejb>
    <ejb-name>InteractionTrackerEJB</ejb-name>
    <jndi-name>jms/InteractionTracker</jndi-name>
    <resource-ref>
    <res-ref-name>jms/InteractionTrackerQCF</res-ref-name>
    <jndi-name>jms/InteractionTrackerQCF</jndi-name>
    </resource-ref>
    <resource-env-ref>
    <resource-env-ref-name>jms/InteractionTracker</resource-env-ref-name>
    <jndi-name>jms/InteractionTracker</jndi-name>
    </resource-env-ref>
    <mdb-connection-factory>
    <jndi-name>jms/InteractionTrackerQCF</jndi-name>
    </mdb-connection-factory>
    <jms-max-messages-load>1</jms-max-messages-load>
    <is-read-only-bean>false</is-read-only-bean>
    <gen-classes />
    </ejb>
    </enterprise-beans>
    </sun-ejb-jar>
    In my application server instance, I've created a Connection Factory entry and a Destination Resource with the correct jndi names (and the imqDestinationName property).
    Does anyone know how to resolve this problem?
    Thanks
    miki

    Hi Isa,
    thanks a lot for your reply. I've tried to change the way I'm looking up for things in the jndi context but I had no success.
    If I update the client code, that's the code that creates the messages and I put the complete java:comp/env/jms/InteractionTrackerQCF and java:comp/env/jms/InteractionTracker I get an exception (javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/InteractionTrackerQCF)
    If I update the ejb deployment descritptor to use java:comp/env/jms/InteractionTracker as <jndi-name> element of the <mdb-connection-factory> tag I get the following exception:
    javax.naming.NamingException: invocation exception
    at com.sun.enterprise.naming.NamingManagerImpl.getComponentId(NamingMana
    gerImpl.java:990)
    at com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.
    java:789)
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.j
    ava:107)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at com.sun.ejb.containers.MessageBeanHelperBase.checkConnectionFactoryOb
    ject(MessageBeanHelperBase.java:490)
    at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperB
    ase.java:374)
    at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContain
    er.java:206)
    at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(Container
    FactoryImpl.java:173)
    at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:34
    5)
    at com.iplanet.ias.server.ApplicationLoader.load(ApplicationLoader.java:
    81)
    at com.iplanet.ias.server.AbstractManager.load(AbstractManager.java:134)
    at com.iplanet.ias.server.ApplicationLifecycle.onStartup(ApplicationLife
    cycle.java:147)
    at com.iplanet.ias.server.ApplicationServer.onStartup(ApplicationServer.
    java:269)
    at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:162)
    Any other idea on what I can do about this?
    Thanks
    miki

  • How does BPEL connect to JMS??

    Hi All,
    I have a BPEL process which basically logs a message into a JMS Q..This process runs forever and when ever a new message is to be logged we return the same instance instead of a new instace..
    Now a couple of questions I have on this is -
    How does the connection to JMS work,is it like there is 1 conncetion for the entire BPEL process which is used every time I wanna add a new message,or is it like a new connection is created and destroyed with every invioke to the JMS..
    I need to make sure a instance of this process already exist so that I can return the same,is there any way my parent process can chek if there is an instance of the child process and if yes it will call that instance ,if No then it will create a new instance..
    Is there any way I can initiate a BPEL process through ant?
    It would be grt if any 1 can throw some light on these.. thnx..
    Regards,
    Akshatha

    Each JMS queue/topic has a single persistent image. Any reference to that queue through the relevant connection factory returns the reference to the same instance.
    There may be many different queues, but each is uniquely identified by its jndi name.
    Name each of your JMS queues differently for each separate endpoint you wish to consume messages from.
    You could use ant to initiate a process by invoking the web-service sending a soap message to the url for the processes web-service. I use soap-ui or the BPEL Console to manually do the initiation, and to determine what makes up the soap packet that is forwarded to the web service. I am not aware of any task that does this for you so you would have to construct a http type target yourself.

  • How does application connect/commincate to Message Broker + JMS

    With reference to JMS,
    I am wondering how does my application (consumer or producer) communicate to Message Broker(in my case it is ActiveMQ).
    if the consumer is at HostA, producer is at HostB and ActiveMQ=message broker is at HostC
    ???

    Each JMS queue/topic has a single persistent image. Any reference to that queue through the relevant connection factory returns the reference to the same instance.
    There may be many different queues, but each is uniquely identified by its jndi name.
    Name each of your JMS queues differently for each separate endpoint you wish to consume messages from.
    You could use ant to initiate a process by invoking the web-service sending a soap message to the url for the processes web-service. I use soap-ui or the BPEL Console to manually do the initiation, and to determine what makes up the soap packet that is forwarded to the web service. I am not aware of any task that does this for you so you would have to construct a http type target yourself.

  • MDB not connecting to Foreign JMS destination

    I'm running WL 9.2 MP3 on Windows machine. I'm deploying a rudimentary MDB congured against as Foreign Service JMS provider against MQ V6.0 with local queue running on the same local machine.
              I'm using Maven2 to build all the sub-projects - including my ejb project and enterprise application project. The EAR file deploys successfully without any errors (one minor warning about lack of explicity transactionsi in onMessage() method...). I don't see any errors but my MDB Connection Status is "disconnected" - I've enabled Debug for key sections under default and weblogic sections - still not errors of any kind but it does not connect! What can I do to find the problem?!
              Here is my EJB definition:
              public class AnotherBean extends GenericMessageDrivenBean implements
                        MessageDrivenBean, MessageListener {
                   private static final long serialVersionUID = 1L;
                   /* When the bean is activated, this method will be invoked
                   * @see javax.jms.MessageListener#onMessage(javax.jms.Message)
                   public void onMessage(Message msg) {
                        System.out.println("\n=========================================");
                        System.out.println("=> Message received!");
                        if (msg instanceof TextMessage) {
                             try {
                                  System.out.println("=> Message: "
                                            + ((TextMessage) msg).getText());
                             } catch (JMSException e) {
                                  e.printStackTrace();
                        // Place the message on to the reply queue (WLReplyQueue)
                        System.out.println("=========================================");
              Here is my ejb-jar.xml:
              <ejb-jar
              xmlns="http://java.sun.com/xml/ns/j2ee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
              version="2.1">
              <enterprise-beans>
              <message-driven>
              <ejb-name>AnotherBean</ejb-name>
              <ejb-class>com.ibm.myclient.gems.ejb.AnotherBean</ejb-class>
              <transaction-type>Container</transaction-type>
              <activation-config>
              <activation-config-property>
              <activation-config-property-name>destinationType</activation-config-property-name>
              <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
              </activation-config-property>
              </activation-config>
              </message-driven>
              </enterprise-beans>
              </ejb-jar>
              Here is my weblogic-ejb-jar.xml:
              <weblogic-ejb-jar
              xmlns="http://www.bea.com/ns/weblogic/90" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
              <weblogic-enterprise-bean>
              <ejb-name>AnotherBean</ejb-name>
              <message-driven-descriptor>
              <destination-jndi-name>jms/WLReceiverQueue</destination-jndi-name>
              <connection-factory-jndi-name>jms/WLReceiverQCF</connection-factory-jndi-name>
              </message-driven-descriptor>
              </weblogic-enterprise-bean>
              </weblogic-ejb-jar>
              WL JMS module is setup like this:
              <weblogic-jms xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schema
              Location="http://www.bea.com/ns/weblogic/920 http://www.bea.com/ns/weblogic/920.xsd">
              <foreign-server name="MQTestForeignServer">
              <default-targeting-enabled>true</default-targeting-enabled>
              <foreign-destination name="ReceiverDetails">
              <local-jndi-name>jms/WLReceiverQueue</local-jndi-name>
              <remote-jndi-name>MQSenderQueue</remote-jndi-name>
              </foreign-destination>
              <foreign-destination name="ReplyDetails">
              <local-jndi-name>jms/WLReplyQueue</local-jndi-name>
              <remote-jndi-name>MQReceiverQueue</remote-jndi-name>
              </foreign-destination>
              <foreign-connection-factory name="ReceiverCF">
              <local-jndi-name>jms/WLReceiverQCF</local-jndi-name>
              <remote-jndi-name>MQSenderQCF</remote-jndi-name>
              </foreign-connection-factory>
              <foreign-connection-factory name="ReplyCF">
              <local-jndi-name>jms/WLReplyQCF</local-jndi-name>
              <remote-jndi-name>MQReceiverQCF</remote-jndi-name>
              </foreign-connection-factory>
              <initial-context-factory>com.sun.jndi.fscontext.RefFSContextFactory</initial-context-factory>
              <connection-url>file:/ C:/JNDI-Directory</connection-url>
              </foreign-server>
              </weblogic-jms>

    Thanks for the tips - I solved the problem. I first recreated my .bindinds file making sure that both QCF objects are in there (it turned out that only ONE of them was there and not the other). Next, I also removed an extra space " " from the URL reference in the Foreign JMS service setup in the console:
              was like this initially:
              <connection-url>file:/ C:/JNDI-Directory</connection-url>
              and I changed it to this - removing single space after first "/":
              <connection-url>file:/C:/JNDI-Directory</connection-url>
              Restarted the whole thing and it worked! Thanks again.

  • How does JavaFX connect to Web Servers?

    Recently,I was learing about JavaFX and confused with the way that
    1.how does JavaFX connection to Web Servers?
    2.Is there anything related to SOAP protocol?
    Please help me.Thanks.

    I don't understand very well...
    in the Web service style, is this Java code ? or JavaFX code
    How can I use JavaFX to call a web service (not REST, just pure web service)
    I did it by this article
    http://netbeans.dzone.com/news/javafx-client-invoking-metro-e
    But i have two problem.
    1. when deploy as applet, there is security issue, how can i resolve ?
    2. my application invoke easy web service is ok, but when invoke some complex type web service, there is error like this...
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
    at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
    at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
    at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
    at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
    at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
    at java.lang.Class.initAnnotationsIfNecessary(Class.java:3072)
    at java.lang.Class.getAnnotation(Class.java:3029)
    at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:183)
    at com.sun.xml.ws.model.RuntimeModeler$1.run(RuntimeModeler.java:182)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.ws.model.RuntimeModeler.getPrivClassAnnotation(RuntimeModeler.java:181)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:217)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:683)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:340)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:323)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:305)
    at javax.xml.ws.Service.getPort(Service.java:92)
    at allan.EasyWSService.getEasyWSSoapPort(EasyWSService.java:56)
    at javacode.Test.go(Test.java:11)
    at conferenceclient.Main$1.lambda(Main.fx:36)
    at conferenceclient.Main$1.lambda(Main.fx:36)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at conferenceclient.Main$1.invoke(Main.fx:31)
    at javafx.ext.swing.SwingAbstractButton$1ActionListener$anon13.actionPerformed(SwingAbstractButton.fx:150)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6134)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5899)
    at java.awt.Container.processEvent(Container.java:2023)
    at java.awt.Component.dispatchEventImpl(Component.java:4501)
    at java.awt.Container.dispatchEventImpl(Container.java:2081)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
    at java.awt.Container.dispatchEventImpl(Container.java:2067)
    at java.awt.Window.dispatchEventImpl(Window.java:2458)
    at java.awt.Component.dispatchEvent(Component.java:4331)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Maybe you are looking for

  • UPK 3.6.1 Gkn.OnDemand.Library.OfflineException - Possible solution

    Hi all, Apology if this has been posted already, but I search Oracle articles/forums/support and various websites and couldn't find any solution until I just happen to stumble upon it by chance. I thought I'd try and share this solution in case someo

  • Output device unavailable

    HI Gurus,     I have a doubt in Printer addition to SAP.     I am trying  to add a new printer to SAP , after entering all the required entries in SPAD , saved the printer.     When i try to give a print to that printer it is  saying that Output Devi

  • Object Selection Frustrations

    I am experiencing the following, very frustrating, usabilities issues relating to object selection: 1) More often than not when I click on an object in the slide editing pane in order to select it, I end up moving or resizing it slightly. This is qui

  • Adobe flash payer installer keeps popping up even after I eject it (it's already installed)

    Adobe Flash Player installer keeps putting itself on the desktop and every once in a while when I try to open something esle, it pops up too (usually it's either another small drive, or it's over my network when it pops up).  It's already installed a

  • Erratic behavior in pages

    I am a constant user of Pages. All my software is up to date. Yesterday, my Pages document on which I have spent considerable time and is quite long, began acting weirdly. I cannot select more than one character. The Styles drawer would not open by a