Problem JMS-c api for message Acknowledgement

Hi,
          I am working in a project that uses bea-JMS C api for
          Communictions.In my project i am using topic messaging for message reciving and sending..Here i am using durablesubscriber for receiving and client Acknowledgement to Acknowledge the message.
          In receiving function I store the message in another JmsMessage for Client-Acknowledgement.
          Here comes one problem that, while i Acknowledge on the receive function each and every message Acknowledge correctly.But while i Acknowledge that message from some other function it return -1 as , that it cannot Acknowledge.The other function is working in another thread.
          Wheather the seprate thread will make the problem for confirmation.

Similar to JDBC connections, JMS sessions and their related child producers and consumers are not thread-safe (with the one exception of the session.close() method).
          For example, without added application level locking, its not safe to acknowledge a message from one thread while another thread receives or produces a message. This has special implications for asynchronous consumers, as once the asynchronous consumer is created, access to the session and objects is limited to code within the "onMessage()" and "onException()" callbacks.
          This behavior is detailed in the JMS specification.
          Tom

Similar Messages

  • JMS C API for AIX

              Hi,
              Is there a version for JMS C API for AIX ? Where can I find it ?
              Thanks,
              Ziv
              

    If your willing to use an untested binary, I suppose you
              might be able to get BEA to compile one for you (the
              majority of work in a new platform port is often just making sure
              that it passes all tests, even if, as is often happens,
              there is a 100% pass rate.) Again, I recommend making
              sure you make a request through customer support and
              make sure that JMS product manager Frazier Miller sees it.
              z wrote:
              > Our project is maintaining few platforms: HP, Solaris, AIX, etc ...
              > Can we have the source of the C API implementation, so we would build it in any
              > requested
              > platform ?
              >
              > Tom Barnes <[email protected]> wrote:
              >
              >>No, just HP, Solaris, and Windows - with official
              >>support (and more platforms) coming in the next
              >>release. If you want an AIX version now, you
              >>can contact customer support and file an enhancement
              >>request. This request should then be forwarded to
              >>the product manager for the JMS C API (Frazier Miller).
              >>
              >>As a work-around for C on AIX you can use rmi-iiop and
              >>a C-based IIOP client - post to the rmi-iiop
              >>newsgroup for details. There are other work-arounds as well.
              >>
              >>z wrote:
              >>
              >>
              >>>Hi,
              >>>
              >>>Is there a version for JMS C API for AIX ? Where can I find it ?
              >>>
              >>>Thanks,
              >>>Ziv
              >>>
              >>>
              >>>
              >>
              >
              

  • JMS C API for linux

              Hi,
              I need the JMS C API for Linux to connect to WLS(WebLogic Server).
              Please let me know whether it is available for linux or not.
              Thanking you in anticipation.
              regards,
              Subodh
              

              Hi Tom,
              Thanks a lot for the reply ,actually customer has a deadline ,earlier they were
              using JMS C api for windows for using WebLogic JMS ,now they are moving to Linux
              ,so they need JMS C api urgently.
              Please help me ,if possible try to escalate it.
              Again,thanks a lot.
              regards,
              Subodh
              Tom Barnes <[email protected]> wrote:
              >Also note that there are several ways to contact
              >WL from C without using JMS.
              >
              >Subodh Kumar wrote:
              >> Hi,
              >>
              >> I need the JMS C API for Linux to connect to WLS(WebLogic Server).
              >>
              >> Please let me know whether it is available for linux or not.
              >>
              >> Thanking you in anticipation.
              >>
              >> regards,
              >> Subodh
              >>
              >>
              >
              

  • Where can I download the JMS C API for WLS 12c?

    Where can I download the JMS C API for WLS 12c? It doeesn't appear to be bundled with the standard or supplemental WLS zip files, nor obvious as a separate download bundle. Searching oracle.com finds plenty of documents which reference its existence, but not how to obtain it (unless I missed something). Pointers appreciated, thanks.

    Thanks. Unfortunately, that's just a reference to the documentation. As I said, there's lots of reference to the C API in the documentation but I need the source code (I have an existing application running against WLS8.1/Solaris that I want to port to WLS12c/linux).

  • Jms c api for weblogic

    How to access jms queue of weblogic server from c/c++ application.Can any one provide example for this.I have tried to download jmscapi from
    http://dev2dev.bea.com/resourcelibrary/utilitiestools/environment.jsp#jmscapi
    but the page is not available.
    Details:-
    WLS: Weblogic server 10.x
    Linux / Windows XP OS
    VC++ 2008
    ++JMS server on WebLogic server 10.x
    OSB 10g R3
    Please provide where it can be downloaded or if any one can share it.Any help regarding this would be appreciated.

    For 8.1, the unofficial dev2dev JMS C-API download is all that I know of. There's also now an official version now packaged with 9.0. Since the official 9.0 version is very close to the unofficial version, I imagine it would work - and would be a bit more up-to-date. But while I'm fairly sure that BEA "officially" supports using the official 9.0 version with a 9.0 client to communicate with 8.1, I don't know if BEA would support using the 9.0 version with an 8.1 client.
              I recommend contacting BEA through channels to get the full story (either through sales or support).
              Tom

  • Problem with adobe api for LC

    Hello to all,
    I'm trying to write code that retrive a file from registry but I ALWAYS get the following error:
    root cause
    java.lang.NoClassDefFoundError: com/adobe/ebxml/registry/services/query/filter/Clause
    java.lang.Class.getDeclaredConstructors0(Native Method)
    java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
    java.lang.Class.getConstructor0(Class.java:1930)
    java.lang.Class.newInstance0(Class.java:278)
    java.lang.Class.newInstance(Class.java:261)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja va:72)
    org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275 )
    org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java: 78)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11P rotocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    java.lang.Thread.run(Thread.java:534)
    What about this?
    I'm using Eclipse 3.1 (adobe has advised to me) and jboss 3.2.
    I'm very very tyred to see this error :-(((
    Any help?
    Thank you!!!!!
    I'm goind to became crazy.. ;-P
    Sorry for my poor english.
    Roberto.

    Ok, I have discarded eclipse :-) now I use Netbeans 5.0 and I don't see that error any more.
    By thw way I have some problems with adobe-registry-api.jar;
    Do anyone use this API write programs that use liveCycle registry?
    I would like get the document from registry, the version of them, and so on.
    I found some example from adobe, but also these examples have problem with data type, classes and so on.
    Every problem leads back to adobe-registry-api.jar and whichever other class is correctly used from Netbeans.
    Someone have any idea or suggestion?
    Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you, Thank you! :-)
    Bye,
    Roberto.

  • Problem creating Physical Destination for Message Driven Bean example

    I am trying to create a MDB application. in which i want to distribute the workload using messages.
    I am using SUN j2ee application server8.2 and netbeans 6.5 on windows xp professional.
    I referred the j2ee 1.4 tutorial to create the mdb's.
    I am able to create queue's and connection factories.
    the tutorial says
    To create the physical destination, perform the following steps:
    •.In the tree component, expand the Resources node, then expand the JMS Resources node.
    •.Select the Physical Destinations node.
    •.On the Physical Destinations page, click New. The Create Physical Destination page appears.
    •.In the Physical Destination Name field, type PhysicalQueue.
    •.Choose queue from the Type combo box.
    •.Click OK.
    but i am not able to find out this Physical Destination node in admin console. So when i execute my MDB project the messages are created but the onMessage() method is not invoked.
    Please help!!!

    Hi,
    but this example was in guide to this version.
    Ok, in case it is not possible to use MDB, how should i handle long time consumpting functions in EP enviroment?
    (customer has only EP6SP2 and he need to send a lot of mails after user request and i dont want to leave user waiting till that function ends. - should i start new thread in portal?)
    JJ

  • Problem LSMW + IDOC method for message type : MATMAS

    hi friends,
      I am using LSMW + IDOC method Message : MATMAS , idoc type : MATMAS03 .Setting every thing are fine. Finally Material is not created with error "message have been issued number : <idoc number>".
    data : material, industry type, material type, description, Basic unit of mesure.
    Please  help me.
    Balaji.T.

    Hi,
    I have nothing found regarding your issue. But maybe a look at SAP note 638058 will give you a hint.
    Regards,
    Klaus

  • JMS C API

              Hi Tom,
              Thanks a lot for the reply ,actually customer has a deadline ,earlier they were
              using JMS C api for windows for using WebLogic JMS ,now they are moving to Linux
              ,so they need JMS C api urgently.
              Please help me ,if possible try to escalate it.
              Again,thanks a lot.
              regards,
              Subodh
              

    I've been told that customers should place this request
              directly through BEA customer support, and have them
              them forward it to Frazier Miller (BEA's product
              manager for JMS). Since you are a BEA employee,
              you should actually place the request directly with
              Frazier (as we discussed off-line).
              Subodh KUmar wrote:
              > Hi Tom,
              >
              > Thanks a lot for the reply ,actually customer has a deadline ,earlier they were
              > using JMS C api for windows for using WebLogic JMS ,now they are moving to Linux
              > ,so they need JMS C api urgently.
              >
              > Please help me ,if possible try to escalate it.
              >
              > Again,thanks a lot.
              >
              > regards,
              > Subodh
              >
              >
              

  • JMS C API 8.1 sp4

    hi, i need to uptate a software build using JMS C API for weblogic 8.1 sp2 to sp4 .there is any new jms c api for this? how can i download it?
              ix exist, what are the changes?? thanks

    For 8.1, the unofficial dev2dev JMS C-API download is all that I know of. There's also now an official version now packaged with 9.0. Since the official 9.0 version is very close to the unofficial version, I imagine it would work - and would be a bit more up-to-date. But while I'm fairly sure that BEA "officially" supports using the official 9.0 version with a 9.0 client to communicate with 8.1, I don't know if BEA would support using the 9.0 version with an 8.1 client.
              I recommend contacting BEA through channels to get the full story (either through sales or support).
              Tom

  • JMS C API - Retention Of Non-Acknowledged Messages

    I am sending messages via the JMS C API from a session created using CLIENT_ACKNOWLEDGE option in JmsConnectionCreateSession() call. Yet, if I receive a message and do not acknowledge it, then I shut down and bring back up my app, the message is not there.
    Shouldn't it be there on startup of app? Is there a special API call to retrieve messages that weren't acknowledeged?
    Thanks.
    Moshe

    I got it to work, i had to reorder the path directories.. which is kind of strange!
    here is how i sat up the environment to get the C API to work based on : "JmsContextCreate" return -3 (JMS_JVM_ERROR)
    CLASSPATH:
         <somepath>\lib\weblogic.jar
    NLSPATH:     
         <somepath>\lib
    PATH:
         <somepath>\lib;                              // : jmsc.lib, LIBJMSC_CAT, weblogic.jar or wlfullclient.jar
         <somepath>\bin                              // : jmsc.dll
         C:\Oracle\Middleware\weblogic92\common\lib          // : jni.dll
         C:\Oracle\Middleware\jdk160_18\jre\bin;               // : java.exe++
         C:\Oracle\Middleware\jdk160_18\jre\bin\client;          // : jvm.dll
    Directories in ENV->PATH should be ordered like this:
    1. <somepath>\lib;                              // : jmsc.lib, LIBJMSC_CAT, weblogic.jar or wlfullclient.jar
    2. <somepath>\bin;                              // : jmsc.dll
    3. C:\Oracle\Middleware\weblogic92\common\lib;                         
    4. C:\Oracle\Middleware\jdk160_18\jre\bin;
    5. C:\Oracle\Middleware\jdk160_18\jre\bin\client;

  • JMS Message Acknowledgement

    Hi,
    In my application I am using a Pub/Subscribe mode for JMS. I am using a durable subscriber. In the Subscriber side, I am opening a non-transacted TopicSession with Acknowledgement mode CLIENT_ACKNOWLEDGEMENT.
    I have a Message listener which processes the message.
    In my Message listener, I want to achieve the following...
    Process the message, if processing succeeds, acknowledge the message. I am not acknowledging messages if the processing fails due to any reason..
    Once, all the messages have been consumed, the program exits. While exiting the program, I am calling Message.recover() to put back unacknowledged messages back into the Topic...But I have observed the following problem...Say I receive the messages in the following order Message1, Message2, Message3.
    Now if i don't acknowledge the Message3, and acknowledge the Message1 and 2...and the program exits...Then when the subscriber starts again, Message3 is still there in the Topic as it was not acknowledged...This is all goo...
    Where is creates a problem is, say if I don't acknowledge the Message1 and acknowledge Message2 and 3 and the program exits...Now when the program exits, Message1 which was not acknowledged it also not present in the Topic...So acknowledging a message basically works like acknowledging all messages received prior to the particular message?? Is there a way to get around this problems? When I consume the messages in the Listener, can I put the messages that I don't want to acknowledge in a group or something like that? What I want to achieve is any message that is unacknowledged should be redelivered...How to achive that?
    Thanks
    surajit

    As you assert, when you acknowledge Message2, you are also acknowledging all messages not previously acknowledged on the given session (I.E. Message1). That is, per the JMS Specification, how message acknowledgement works. There is no workaround as this is how it is designed.

  • Call of API for IBase contains errors Message no. CRM_IB050

    Call of API for IBase contains errors
    Message no. CRM_IB050
    Diagnosis
    No import data was entered for one of the function modules (APIs) for Installed Base Management. Therefore, the function cannot be executed.
    System Response
    The system terminates processing.
    Procedure
    If the APIs are called in customer-specific programs, check the call for the APIs and change the call accordingly.
    Can anyone help me in the above issue.
    Regards,
    Mirza Kaleemulla Baig

    Hi Sai,
    This is too late to reply this post, but to let everyone know about the issue I am posting here.
    Start new UI session and put breakpoint at BUPR_EMPLO_DELETE and check parameter IV_X_SAVE everytime, till you get the error message. The parameter IV_X_SAVE should be same/consistent (either ' ' or 'X') in whole Logical Unit of Work. It should not change in between.
    I faced the same kind of problem and found that standard was passing IV_X_SAVE = ' ' and in our custom code we were passing IV_X_SAVE = 'X'. I changed it to IV_X_SAVE = ' ' and my problem got resolved.
    You can try the same. Please post the alternate solution if you find it.
    Best Regards,
    Rahul Koshti

  • I have an old iPhone 3Gs with software version 4.3.5,  I am trying to use it again, and it works fine, but I have not been able to update the software.  Every time I try, I get the following message: "there was a problem downloading the software for the i

    I have an old iPhone 3Gs with software version 4.3.5,  I am trying to use it again, and it works fine, but I have not been able to update the software.  Every time I try, I get the following message:
    "there was a problem downloading the software for the iPhone, the network connection could not be established".  This happens even though I have a working internet connection.
    Besides that, all the other functions work properly, even synchronize apps and library.
    Will I be able to update the software?

    look around the forum tons of people repport that they can't update
    makes you suspect that apples update servers can't meet the depand of too many users
    trying to update at once

  • I receive the following error message when trying to download and update my software on my iPod touch and iPad - "there was a problem downloading the software for the iPad/iPod "Mikki's iPad". T

    When trying to download and update the operating system software for my iPad and iPod I get the following message - "ERROR MESSAGE" There was a problem downloading the software for the iPad "Mikki's iPad". The network connection timed out. Make sure your network settings are correct and your network connection is active, or try again. later." Is this a setting on my computer - my network is working fine.  I didn't have any trouble before but have just started having trouble.  Please help...

    Hi Robertfrom Denver.
    Did you try the solution given, and if yes, did it work?
    I have done several "attempted downloads, and see the full file download, typically taking 30 minutes to complete, and then something goes wrong.
    I am happy to suspend AV and FW software, but would like to know if it is a good fix or not first?
    HelenfromBroughton Astley

Maybe you are looking for

  • How do I delete stuff in iCloud

    How do I view and delete files in icloud

  • Access Safari history (back and forward) with keyboard command

    Is there a keyboard command to access the back or forward history in Safari? The VO third level commands keyboard map (a pdf file I downloaded) shows VO + Command + [ is for the previous web spot and VO + Command + ] is for the next web spot. But it

  • Muse vs Wordpress for Real Estate site?

    I need to make a fairly complex site for a real estate developer who has several subdivisions and offers extensive services.  I would love to use Muse for the design flexibility, but I can't find how I can make a searchable database of properties tha

  • Dynamically change text field type

    Hello all I have a form which displays a decimal field. However when certain conditions are met, I need to change its type to Text, so the user can enter any alphanumeric character. How do I achieve that with Javascript code? Is it even possible?

  • Will Ethernet fix my problem?

    There is a saga to this, but I will cut a long story short and just say, up till last week I was using a USB BT Voyager modem to connect to the internet with my G4 iMac!!! I have now treated myself to a Macbook pro so want to go wireless. I've moved