JNDI Protocol for Websphere MQ

Hi,
I am able to send/retrive messages to WebSphere MQ using filesystem-based implementation in simple java class. Now I want to send/retrive message from ODI JMS Queue technology. In Topology Manager, When I create Data Server for JMS Queue then JNDI Tab is aksing about JNDI Protocol. Please suggest me which protocol is suitable for filesystem-based implementation.
Or suggest me another way to doing this JOB.

It is plainly documented in the OC4J 9.0.4 Admin Guide:
http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10326/jms.htm#1020236
We have it running in production just fine. The only "gotcha" you have to watch out for is when MQ goes down, the OC4J container will throw NullPointerExceptions until you restart the MDB listening to MQ. In 9.0.4 Enterprise, this means bringing down your entire instance (since you can't stop an individual app, so caveat emptor).
HTH,
-- /v\atthew

Similar Messages

  • JAVA client JNDI lookup for EJB session in cluster in WLS 5.1

    The documentation says :
              to obtain a Context for JNDI lookup do the following :
              Hashtable ht = new Hashtable();
              ht.put(Context.INITIAL_CONTEXT_FACTORY,
              "weblogic.jndi.WLInitialContextFactory");
              ht.put(Context.PROVIDER_URL, "t3://mycluster:7001");
              try {
              Context ctx = new InitialContext(ht);
              // Do the client's work
              catch (NamingException ne) {
              // A failure occurred
              finally {
              try {ctx.close();}
              catch (Exception e) {
              // a failure occurred
              where "mycluster" is the DNS name of my cluster. My DNS server (Windows 200
              DNS server) use round robin
              to call alernatively all the wls server node in "mycluster" and it's OK. The
              two servers of my cluster
              are called alternatively for my EJB session stateless.
              Now I unplug one of the two nodes of my cluster and the remaining server is
              called only 2 times
              and not after.
              Questions :
              -is the load balancing between the nodes of mycluster only rely on DNS or
              is there an internal
              mecanism in EJB sub to try one server then an other ?
              - do I need to obtain a new reference on JNDI Context for each call ?
              Thank's a lot.
              Farid Bellameche.
              

              I too have the same problem. My scenario is :
              I have the web tier architecture away from cluster. All ejbs are in cluster
              running in two seperate machines. We have a factory class running in
              webtier(we use servlet in this tier) which obtains home interface only once
              and stores it for future reference. When ever we need the remoteobject stub,
              we ask the factory class and which in turn uses the stored home interface to
              get the same.
              In the webtier, I list all the servers in the cluster as a part of url as
              mentioned by you.
              I started the web tier as well as Object tier cluster. I could see the
              request coming in both the machines in the cluster for the ejb. But When I
              bring one the server in the cluster,
              1. Web tier throws an exception saying that it could not connect
              to server using t3.
              2. The other machine which is running the server, also says
              'failed to create socket to : -32323234324 sever name
              using protocol t3.
              It looks like I am able to get load balance. But I am not able to get the
              fail over to be working.
              In the weblogic-ejb-jar.xml, I added the following.
              <clustering-descriptor>
              <home-is-clusterable>true</home-is-clusterable>
              <home-load-algorithm>round-robin</home-load-algorithm>
              </clustering-descriptor>
              I compiled and added the .jar file. So the jar file now has replica aware
              stubs.
              Could any one of you help me for why the fail over is not working?
              Suersh
              "Giri Alwar" <[email protected]> wrote in message
              news:[email protected]...
              > Farid,
              > (1) Yes, the stub has the logic to perform load-balancing and
              fail-over.
              > (2) In almost all cases, no. You can get the context once, store it
              and
              > use it thereafter. Please refer to
              > http://www.weblogic.com/docs51/cluster/concepts.html#1025061 for more
              info.
              >
              > A couple of notes on your situation. From what you are describing, your
              > Windows DNS server is setup to serve only one IP from the cluster (using
              > round-robin) as opposed to a list of all IP's in the cluster. Hence, the
              > initial context you obtain is tied to a single server in the cluster (the
              > one returned by the DNS). The weblogic implementation on the client side
              has
              > no idea of the existence of the other servers in the cluster. This is not
              a
              > cluster aware context. To obtain a cluster aware context, either list all
              > the IP's in the URL like t3://server1,server2,server3:7001 or have
              > "mycluster" return a list of all servers in the cluster.
              >
              > Giri
              >
              >
              > "Farid Bellameche" <[email protected]> wrote in message
              > news:[email protected]...
              > > The documentation says :
              > >
              > > to obtain a Context for JNDI lookup do the following :
              > > Hashtable ht = new Hashtable();
              > > ht.put(Context.INITIAL_CONTEXT_FACTORY,
              > > "weblogic.jndi.WLInitialContextFactory");
              > > ht.put(Context.PROVIDER_URL, "t3://mycluster:7001");
              > > try {
              > > Context ctx = new InitialContext(ht);
              > > // Do the client's work
              > > }
              > > catch (NamingException ne) {
              > > // A failure occurred
              > > }
              > > finally {
              > > try {ctx.close();}
              > > catch (Exception e) {
              > > // a failure occurred
              > > }
              > > }
              > >
              > > where "mycluster" is the DNS name of my cluster. My DNS server (Windows
              > 200
              > > DNS server) use round robin
              > > to call alernatively all the wls server node in "mycluster" and it's OK.
              > The
              > > two servers of my cluster
              > > are called alternatively for my EJB session stateless.
              > > Now I unplug one of the two nodes of my cluster and the remaining server
              > is
              > > called only 2 times
              > > and not after.
              > >
              > > Questions :
              > > -is the load balancing between the nodes of mycluster only rely on DNS
              > or
              > > is there an internal
              > > mecanism in EJB sub to try one server then an other ?
              > >
              > > - do I need to obtain a new reference on JNDI Context for each call ?
              > >
              > >
              > > Thank's a lot.
              > >
              > > Farid Bellameche.
              > >
              > >
              > >
              > >
              >
              >
              

  • JNDI params for (default) J2EE naming service.

    Dear All,
    I am trying to get a client program to access a session bean using JNDI. Could anyone tell me how the naming context should be set up (i.e. what -D command line params to use).
    Assuming the server Sun's J2EE and beans are deployed using deploy tool;
    What parameters would be required to do a lookup on the naming service?
    i.e.
    java.naming.factory.initial=???
    java.naming.provider=???
    any others?
    The reason for this is so that EJB clients can be installed WITHOUT having to also install J2SDKEE too.
    In principle it should be possible to do the lookup using only only javax.naming and javax.rmi. (Which are in the standard SDK).
    Can anyone help???
    JNDI Code...
    /* What naming params will make this lookup */
    /* on an EJB running within J2EE */
    /* work?? */
    Context context = new InitialContext();
    Object obj = context.lookup ("crs472/SimpleConverter");
    // get a reference to the home interface
    CurrencyConverterHome converterHome =
    (CurrencyConverterHome)PortableRemoteObject.narrow(obj,
    CurrencyConverterHome.class);
    // create an instance of the currency converter EJB
    converter = converterHome.create();
    System.out.println("Got the home interface OK.");
    // Start calling methods...
    Regards,
    Jeremy Townson

    hi
    u have to pass a properties object or a hashtable while creating a IntialContext object
    this properties obj or hashtable should be having values for these keys
    javax.naming.Context.INITIAL_CONTEXT_FACTORY -class name provided by the naming service")
    for websphere its - com.ibm.ejs.ns.jndi.CNInitialContextFactory
    Similarly for weblogic , Sun J2EE
    the other key will u have to provide is the
    javax.naming.Context.PROVIDER_URL - ip address along with the port on whcih the naming service is listening for the request
    then u passs this properties obj or the hashtable to the
    Context context = new InitialContext(props/hash);
    regards

  • Error while passing ODI variable in JNDI Url for JMS Queue XML

    Hi,
    Facing a weird problem while passing ODI variable in JNDI Url for JMS Queue XML.
    Below is the JNDI Url configured under ODI Topology:
    JNDI Url: t3://<host_location>?d=#TEST.SCHEMA_FILE&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
    where,
    #TEST.SCHEMA_FILE --> ODI variable storing xsd name and location
    Issue Description:
    If we restart ODI server then for the first run of any ODI interface using JMS Queue XML, it is unable to get the value for ODI variable present in JNDI Url (d=#TEST.SCHEMA_FILE).
    It throws error message saying: No XSD found
    Temporary Resolution:
    As a temporary fix if we hard-code and pass the value in that ODI variable as shown below, it will successfully go through.
    eg: JNDI Url: t3://<host_location>?d=C:\XSD\test.xsd&s=<schema_name>&JMS_DESTINATION=jms/<queue_name>
    Reverting it back to variable later will have no issues and subsequent run will succeed.
    But again anytime later if server is restarted then first run will have this issue.
    Want to have permanent fix for it.
    Any one having idea on it please share. Appreciate your help!

    What ODI version are you using? It could be related to the bug in the older version as described in support note Doc ID 1290326.1

  • What's the proper protocol for a reset on my ipod touch 4g?  iOS 6 has totally jacked it up and it will no longer do anything but crash, and won't sync with itunes wirelessly or by cable.

    What's the proper protocol for a reset on my ipod touch 4g?  iOS 6 has totally jacked it up and it will no longer do anything but crash, and won't sync with itunes wirelessly or by cable.
    It's a 64G ipod touch and was fine till Apple told me to upgrade to ios 6.  Now most of my apps crash, my music won't play and I just get a white screen when I hit Music.
    When I try to sync to itunes it acts like it's going to sync and appears to recognize the ipod, but it's grayed out and has an update circle by it that spins for a while until itunes eventually freezes alltogether.  Is there a  way to go back to ios 5 after a erase and reset?

    iOS: Unable to update or restore

  • Problem in Jndi lookup for  ITaskService

    HI,
    I am trying to initiate oracle bpm Human task programatically by using Java remotely.
    for this I am using following JNDI lookup for ITaskService.
    Hashtable ht = new
                  Hashtable<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>();
              ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_INITIAL_CONTEXT_FACTORY, 
                     "weblogic.jndi.WLInitialContextFactory");
              ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://localhost:7001");
              ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "username"); 
              ht.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "password");
              Context ctx  = new InitialContext(ht);
    ITaskService taskService = (ITaskQueryService)ctx.lookup("ejb/bpel/services/workflow/TaskServiceBean");
    taskService.initiateTask(task);
    It the right approach or not.
    Please help.

    To access human workflow api remotely try using the following code :
    Map properties = new HashMap();
      properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://localhost:8001");
      properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "welcome1");
      properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "weblogic");
    IWorkflowServiceClient wfSvcClient =
      WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT, properties, null);
      //Get the task query service
      ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
      //Login as weblogic
      IWorkflowContext ctx = querySvc.authenticate("weblogic","welcome1".toCharArray(),null);
    after getting the workflow context, you can call any method like query task list. perform actions etc. just see the api doc.
    Regards,
    Anshul

  • Dynamic JNDI name for database adapter in BPEL

    Hi All,
    I am having some major issues trying to make the JNDI location for the database adapter dynamic (10.1.3.4). I already went through the followin link, but that didnt work for me: http://www.oracle.com/technology/pub/articles/bpel_cookbook/carey.html
    The below example works, but only the first run. Second time around the first runs JNDI value gets retained and connects to that database.
    This is what worked atleast the first time.
    I parameterized the JNDI with a variable defined in the partnerlink definition in the bpel.xml
    In Bpel. xml
    <partnerLinkBinding name="updatetbl">
    <property name="wsdlLocation">updatetbl.wsdl</property>
    <property name="CONN">eis/DB/na</property>
    <property name="retryInterval">60</property>
    </partnerLinkBinding>
    In the updatetbl.wsdl file
    <service name="updatetbl">
    <port name="updatetbl_pt" binding="tns:updatetbl_binding">
    <jca:address location="$CONN"/>
    </port>
    </service>
    At run time I change the partnerlink CONN variable in embedded Java.
    try
    Element targetAdapterElement =(Element)getVariableData("Invoke_getFromTbl_OutputVariable","getFromTblOutputCollection","/ns2:getFromTblOutputCollection/ns2:getFromTblOutput/ns2:SRC_JNDI");
    getLocator().lookupProcess("JndiIssueTest").getDescriptor().getPartnerLinkBindings().getPartnerLinkBinding ("updatetbl").setPropertyValue ("CONN",targetAdapterElement.getTextContent());
    ("updatetbl").getPropertyValue ("CONN"));
    catch(Exception ex)
    addAuditTrailEntry("Error is " + ex);
    This works fine the first time, but the second time I run it to look at a different CONN value, it somehow still connects using the first runs value!
    If I redeploy or clear the WSDL cache, it works. But we plan to run it multiple times from several environment so manually or programatically clearing WSDL is not the right solution.
    Can someone tell me what is the standard process of doing this so it works everytime?
    Thanks,
    Shaf

    Shaf,
    Please refer the mail thread for details. If you want I can send you(send me your email id) the sample BPEL process which uses Dynamic JNDI.
    Re: How to externalize JNDI name (setting JNDI name dynamically)
    Thanks,
    Sen

  • BPM Web Applications URL for Websphere

    Can anyone please let me know what's the url to access the BPM web application published in enterprise server 571 for Websphere.
    I've installed Enterprise edition 571 for websphere and I published a project using process admin page.
    Want to know how to view and start the process that I've published.
    Thanks

    Thanks For the reply.
    This is what I did
    1) installed Enterprise Edition(Standalone)
    2) Configured engine and deployed a project using admin
    3) Able to view the deployed project and start workflow using "Lauch Workspace" in Admin Center
    This is what I am trying to do.
    1) I've installed Enterprise for J2EE(Websphere)
    2) Configured engine and deployed a project using admin
    3) But I am not able to view the workspace, I am not seeing the "Lauch Workspace" in Admin Center.
    So I have to install Workspace Extension to view the deployed process and start the workflow? or anyother way to acheive this?
    Thanks

  • Best Protocol for GPRS Chat

    Hi Guys,
    I have to develop a GPRS Chat just like MSN or yahoo. Will Sockets be better or HTTP protocol is the best?
    I understand that if I develop it on Sockets, i need to have a Server Program running at all times. If its HTTP, then i need to have Servlet Program there which will act as a Server
    Also, whats the best way of developing User Interface?are we limited to TextBox and StringItem?Do we have ListBox?Also i noticed that the Display Class accepts only Item Objects
    guys pls help me out here
    cheers,
    Sac

    Hello-
    Couple of thoughts on the discussions here ...
    1) Http will be the easiest to implement although it will create the most overhead. If you are not planning on pushing "data" to the device, then I am assuming that your device will be polling. I dont know what sort of data plan you are assuming that people will have, but you could quickly get to a MB of data. using Http.
    2) If you are assuming that the devices will have a public IP then you can push data. This will be much more efficient (see Push Registry in your device api docs). You can also use UDP to send data both to and from the device. While this is not a "guaranteed" protocol for delivery, from my expierence, it has a 99.9% success rate which might meet your needs (you could have some handshacking there to make sure that packets to arrive which will be alot more efficient then any type of Socket or Http implementation)
    Good luck,
    Gil

  • Reports 9i/10g J2EE Thin Client for Websphere Application Server 5.x /6.x

    We are having Reports developed in 6i which needs to be migrated to Reports 9i/10G and we want to deploy these reports in web using Websphere Application Server 5.x /6.x without Oracle iAS.
    Do we have Reports 9i/10g J2EE Thin Client for Websphere Application Server 5.x /6.x and if so please let me know.
    Also if anybody has the configuration details please let me know?
    Thanks in Advance.

    No there is not. I don't think you can use reports services with Websphere - besides as far as I know it is not supported by Oracle (not anywhere in their support matrix).

  • Pls send the JCA rar file for Websphere

    Hi All,
    Is there any JCA rar file for IBM Websphere server? I want to access BAPI from through my application in Websphere. I dont have JCo. I want to use JCA only.
    Where can I find the JCA rar file for Websphere server?
    If you have the rar file that need to be delpoyed in WEbsphere pls send to : [email protected]
    Thanks In advance
    George

    Hi,
    When you configure the Connection Factory for FTP Adapter in Admin Console,along with the hostname, username, password, port; we also need to give the path of remote location as where
    you want to write the file in remote Server. While configuring the Connection Factory, find the attribute called ftpAbsolutePathBegin. Please fill this
    attribute with the path like /soa/ftp/file (example path)
    Also , try to bounce the server and test the same...
    Please try this and let me know...
    Thanks,
    N

  • Protocol for turning off conversation threads in hotmail cant be followed 'cos tools options doesn't display "more options" help!

    Don't want new conversation threading in hotmail. Suggested protocol for switching off says; Tools> options>more options etc. Well my tools
    button does not provide the facility "more options"! Help.

    If you want access to the console, try booting with a modified kernel command line. Add systemd.unit=multi-user.target, then you can modify your configuration, try startx, ...

  • Help needed on allocating a JNDI name for MYSQL on Glassfish

    Hi,
    I am trying to invoke my database (MYSQL) through a JNDI lookup on GlassFish Server. I copied the MySQL connector into the GLASSFISH_HOME/lib directory and went into Admin console (http://localhost:8080/login.jsf) to create a ConnectionPool. After this, I am not sure what I should do, inorder to associate a "jdbc/mysql" JNDI name for this pool. Can anybody point me to what has to be done?
    Thank you.

    Figured it. After you've setup your pool, you need to go to Resources -> JDBC -> JDBC Resources and then create an new mapping of the pool that you've just created to some name (ex: "java/mysql"); This should integrated Glassy with Mysql
    Thanks.

  • JMX configuration for Websphere in Process Administrator

    How to set up the security credential information for JMX configuration in Process Admistrator for Websphere clustered environment? Is there any document which give instructions on the key store/trust store set up for JMX?
    Thanks

    you have to call a WF during teh saving of the infotype, probably you need to code in tje standard programme
    no standard logic is there

  • JNDI lookup for UserTransaction

              Hi all,
              in Weblogic, in a typical scenario, do a client provide exactly
              one JNDI lookup for the UserTransaction object (interface) or do
              the client have to provide a JNDI lookup for each transaction?
              In some EJB implementations, a JNDI lookup for UserTransaction
              returns always the same reference. For example, in JOnAS, you can
              have one static reference which is set when the client starts.
              Then, more threads can simultaneously use the same static
              UserTransaction reference without any conflict, since the
              implementation of UserTransaction recognizes, which thread invoked
              a particular method.
              In other words, can I make an assumption that two different JNDI
              lookups for UserTransaction returns different references or not?
              Thanks a lot,
              Marek Prochazka
              Distributed Systems Research Group
              Department of Software Engineering
              Charles University, Faculty of Mathematics and Physics
              Malostranske namesti 25, 118 00 Prague 1, Czech Republic
              phone: +420-2-2191 4236
              http://nenya.ms.mff.cuni.cz/thegroup/
              

    Actually, UserTransaction is a singleton and it's not a transaction. It's just
              very mis-named.
              It should be called UserTransactionManager or UserInterfaceToJTA.
              The actual transaction is javax.transaction.Transaction.
              -- Rob
              Cameron Purdy wrote:
              > Within a transaction, it is different instances? For example, if you call
              > it two times one right after another?
              >
              > A transaction is a unit of work. I understand why the transaction object
              > changes from transaction to transaction, since a single transaction object
              > (UserTransaction) represents exactly one transaction. Why would it be a
              > singleton? It is not a transaction manager.
              >
              > Peace,
              >
              > --
              > Cameron Purdy
              > Tangosol, Inc.
              > http://www.tangosol.com
              > +1.617.623.5782
              > WebLogic Consulting Available
              >
              > "Sarita" <[email protected]> wrote in message
              > news:[email protected]...
              > >
              > > Hi Priscilla--
              > >
              > > This is not the behavior that I'm seeing, and I'm perplexed.
              > > Every time I request a UserTransaction from JNDI, I receive a
              > > a different instance. Should the value immediately returned by JNDI be
              > the singleton
              > > instance? If not, then how do I retrieve the singleton instance?
              > >
              > > I would like a session bean to start a transaction, and then call a method
              > on another
              > > session bean (which should operate under the same transaction). How does
              > the second
              > > session bean grab the correct transaction object? Is that possible?
              > >
              > > Thanks In Advance,
              > > Sarita
              > >
              > > "Priscilla Fung" <[email protected]> wrote:
              > > >
              > > >Hi Marek,
              > > >
              > > >In Weblogic 6.0, JNDI lookup of UserTransaction returns a reference to
              > the
              > > >singleton
              > > >Transaction Manager instance, which is thread-safe and can be used from
              > > >multiple
              > > >threads for transaction demarcations etc.
              > > >
              > > >-- Priscilla Fung, BEA Systems, Inc.
              > > >
              > > >"Marek Prochazka" <[email protected]> wrote:
              > > >>
              > > >>Hi all,
              > > >>
              > > >>in Weblogic, in a typical scenario, do a client provide exactly
              > > >>one JNDI lookup for the UserTransaction object (interface) or do
              > > >>the client have to provide a JNDI lookup for each transaction?
              > > >>
              > > >>In some EJB implementations, a JNDI lookup for UserTransaction
              > > >>returns always the same reference. For example, in JOnAS, you can
              > > >>have one static reference which is set when the client starts.
              > > >>Then, more threads can simultaneously use the same static
              > > >>UserTransaction reference without any conflict, since the
              > > >>implementation of UserTransaction recognizes, which thread invoked
              > > >>a particular method.
              > > >>
              > > >>In other words, can I make an assumption that two different JNDI
              > > >>lookups for UserTransaction returns different references or not?
              > > >>
              > > >>Thanks a lot,
              > > >>Marek Prochazka
              > > >>--------------------------------------------------------------
              > > >> Distributed Systems Research Group
              > > >> Department of Software Engineering
              > > >> Charles University, Faculty of Mathematics and Physics
              > > >> Malostranske namesti 25, 118 00 Prague 1, Czech Republic
              > > >> phone: +420-2-2191 4236
              > > >> http://nenya.ms.mff.cuni.cz/thegroup/
              > > >>--------------------------------------------------------------
              > > >>
              > > >
              > >
              

Maybe you are looking for

  • How to reference variable values in a BW Web Template

    Hi All, I'm having a problem which I hope someone can help me with. OVERVIEW I've developed a BW Web template with (among other things) a TEXTELEMENTS Web Item and a TABLE Web Item. I've enhanced the context menu so that when a user selects a row wit

  • How can I fix app downloading issues?  Can only load/update apps via sync with laptop.

    I cannot download, reload,or update my Apps via Wifi. I can only accomplish this by syncing the phone via iTunes and laptop via cable. When I choose to install or update I get a "waiting" message indefinitely.

  • (Org Model) Obtain Sales org's object id from position object id.

    Hi All, In the org model, I have the object id of a position and i want to find the object id of the sales org to which this position is assigned. Is there any FM that does this..? Thanks in Advance, Raviraj

  • Feedback on Walkman app

    I have scoured the net for places to post Walkman app feedback and not found anything better than here, so here goes. As of the most recent version of Walkman (8.0.A.0.4), here is my feedback: THE GOOD: * Walkman continues to be the best-looking musi

  • Accessing files on external TimeMachine drive under Windows XP

    Ok here is what I know: after installing MacDrive7 and enabling "backup/file transfer" file view I can see the folders of my TimeMachine drive on my Windows XP PC. BUT it almost impossible to access these files due to the crazy archiving structure of