Objective C, working with C++ API

How to include and use a C++ API in an Objective C app? Any idea, tutorial ... ?

Save all your files as .mm instead. They will then be Objective-C++ files that can understand both languages.

Similar Messages

  • Is it possible to create the adhoc network and get it work with WLAN APIs (WlanConnect) instead of netsh commands...?

    Hi All,
    I am facing issues in creating  adhoc network in Windows 8.1. After searching in internet, I found that adhoc works with 
    netsh commands.
    1. I have tried neths commands and able to get it work on windows 8.1, 
     but I want to do it through the WLAN APIs ie. WlanConnect ,
    2. I am able to initiate the adhoc network(on Windows 8.1) by using WlanConnect API and other device are also able to connect to the Windows8.1 initiated adhoc  network  but the DHCP is not working.
    -> clients are not able to get the IP address.
    Is it possible to create the adhoc network and get it work with WLAN APIs (WlanConnect) instead of netsh commands...?
    Thanks
    akhil

    Hi,
    Did you mean to write a program to implement that creating adhoc via UI? This should be development issue.
    But this is Windows 8.1 client forum and there is no professional on develop.
    To help you better, I suggest you submit a new case on MSDN forum to help to check your code as they will be more professional on your issue:
    This is the MSDN forum link.
    http://social.msdn.microsoft.com/Forums/ 
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    Kate Li
    TechNet Community Support

  • XML parser working with MediaWiki API

    I have a little helper for a MediaWiki server. It intended to work the following way:
    Client side [GWT] ←rpc→ Server side [GWT] — JWBF ←http→ MediaWiki API+
    GWT - Google Web Toolkit 2.0.4
    JWBF - Java Wiki Bot Framework 1.3.2
    MediaWiki 1.16 XML
    JDK1.6.0_21
    GWT sends and receive utf-8 data between client and server well. But the second half fails to work with its own xml traffic.
    JWBF gets the xml file via HTTP (log4j logging):
    [DefaultClientConnection  ] Receiving response: HTTP/1.1 200 OK
    [headers                  ] << HTTP/1.1 200 OK
    [headers                  ] << Date: Thu, 09 Sep 2010 17:36:34 GMT
    [headers                  ] << Server: Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8e PHP/5.2.4
    [headers                  ] << X-Powered-By: PHP/5.2.4
    [headers                  ] << Cache-Control: private
    [headers                  ] << Vary: Accept-Encoding
    [headers                  ] << Content-Length: 1177
    [headers                  ] << Keep-Alive: timeout=5, max=95
    [headers                  ] << Connection: Keep-Alive
    [headers                  ] << Content-Type: text/xml; charset=utf-8
    [DefaultRequestDirector   ] Connection can be kept alive for 5000 ms
    [wire                     ] << "<?xml version="1.0"?><api><query><pages><page pageid="103" ns="0" title="Bronenosets Potyomkin"><revisions><rev revid="503" parentid="502" user="Anton" timestamp="2010-09-09T09:26:34Z" comment="Undo revision 502" xml:space="preserve">[\n]"
    [wire                     ] << "The Battleship Potemkin ([0xd0][0x91][0xd1][0x80][0xd0][0xbe][0xd0][0xbd][0xd0][0xb5][0xd0][0xbd][0xd0][0xbe][0xd1][0x81][0xd0][0xb5][0xd1][0x86] [0xc2][0xab][0xd0][0x9f][0xd0][0xbe][0xd1][0x82][0xd1][0x91][0xd0][0xbc][0xd0][0xba][0xd0][0xb8][0xd0][0xbd][0xc2][0xbb]) is a film.[\n]"
    [wire                     ] << "[\n]"
    [wire                     ] << "The Odessa Steps sequence editing.</rev></revisions></page></pages></query><query-continue><revisions rvstartid="502" /></query-continue></api>"
    [SingleClientConnManager  ] Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@dfb098And Java XML parser fails to understand this xml and returns the string as it was ISO-8859-1. After the xml bases a class with SAXBuilder, name in brackets, the one within "rev" element, becomes:
    БроненоÑ&#65533;ец «Потёмкин»while it should be
    &#1041;&#1088;&#1086;&#1085;&#1077;&#1085;&#1086;&#1089;&#1077;&#1094; «&#1055;&#1086;&#1090;&#1105;&#1084;&#1082;&#1080;&#1085;»The whole system (Apache, MediaWiki plus JWBF, GWT, client HTML) is set to utf-8, but Java parser (default settings) still does not agree.
    Dear specialists, where could be the error?

    The problem's been found thanks to DrClap ( [XML converted to string - encoding lost?|http://forums.sun.com/thread.jspa?threadID=610257] ).
    JWBF read the HTTP stream using system's default encoding:
           +Line 216 in jwbf-1.3.2-262\src\net\sourceforge\jwbf\core\actions\HttpActionClient.java+
    BufferedReader br = new BufferedReader(new InputStreamReader(res.getEntity().getContent()));From here the whole chain got the wrongly encoded string, including XML parser.
    So, the solution is to define the encoding explicitly:
    BufferedReader br = new BufferedReader(new InputStreamReader(res.getEntity().getContent(), "UTF-8"));Thank to the community.

  • Sdk 3b Remote Objects not working with java 1.6.29

    So I am not sure if this is java specific or if there is anything in Flex I can do.
    I am working on a project that communicates with the java back end via the AMF channels / Consumer objects and Remote Objects. Usking SDK 3b
    In Java 1.6.26 and java 1.7 it works fine.  However in java 1.6.29 The remote objects seem to not get called/communicated/execute on the java server side. 
    Interesting thing to note is that the consumer/AMF feeds are still able to function.
    Was there any change that Adobe has documented that may have caused this to happen when they changed the java version? or any solution around this as a requirement is to use 1.6.29?

    So it aprears that it works via MXML however when I try to define it in actionscript it recieves no events, messages, etc.  Looking at the serverside print statements it appears the call never goes through.

  • Working with an API (PHP) question

    I am building a mini-app using an API into another back-end
    system. To
    extract data from this system, I can use PHP lines like this
    $stats = $q->campaignStats($cid);
    where the variable "$q" has been previously loaded with
    values.
    What I want to know is - can I programatically generate this
    line? What I'd
    LIKE to do would be something like this (analogous to the way
    that DW builds
    query strings) -
    $statsQuery = 'campaign' . $command . "($cid)"
    and then I can set $command to any of a number of different
    values, e.g.,
    "ClickStats", "Bounces", "Unsubscribes", etc.
    Now - what I don't know how to do is to then reference this
    string in a way
    that executes the command, as I'm fairly sure that -
    $stats = $q->$statsQuery; would fail (but I'm going to try
    it of course).
    Is there a special way to handle such things?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================

    Thanks, Micha! My earlier imagined way didn't work, not
    surprisingly!
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Michael Fesser" <[email protected]> wrote in message
    news:[email protected]..
    > .oO(Murray *ACE*)
    >
    >>I am building a mini-app using an API into another
    back-end system. To
    >>extract data from this system, I can use PHP lines
    like this -
    >>
    >>$stats = $q->campaignStats($cid);
    >>
    >>where the variable "$q" has been previously loaded
    with values.
    >>
    >>What I want to know is - can I programatically
    generate this line? What
    >>I'd
    >>LIKE to do would be something like this (analogous to
    the way that DW
    >>builds
    >>query strings) -
    >>
    >>$statsQuery = 'campaign' . $command . "($cid)"
    >>
    >>and then I can set $command to any of a number of
    different values, e.g.,
    >>"ClickStats", "Bounces", "Unsubscribes", etc.
    >>
    >>Now - what I don't know how to do is to then
    reference this string in a
    >>way
    >>that executes the command, as I'm fairly sure that -
    >>
    >>$stats = $q->$statsQuery; would fail (but I'm
    going to try it of course).
    >
    > The function name can be taken from a variable, so you
    can use something
    > like
    >
    > $statsQuery = "campaign$command";
    > $stats = $q->$statsQuery($cid);
    >
    > For other ways of calling such "dynamic" functions have
    a look at
    > call_user_func() and call_user_func_array() if
    necessary.
    >
    > Micha

  • Working with an API

    Hi, I am newbie in java programming, I am using a communication API. I am havin some problems so I post the errors I am getting waiting for your help. This are the errors:
    ../src/sampleapps/tutorial/PrimerApp.java:228: cannot resolve symbol
    symbol : method enableRecording (ch.ecma.csta.binding.DeviceID,boolean)
    location: class PrimerApp
    enableRecording(id, true);
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:257: addCallRecordingDeviceListener(ch
    .ecma.csta.binding.DeviceID,com.avaya.csta.callrecording.CallRecordingDeviceList
    ener) in com.avaya.csta.callrecording.CallRecordingServices cannot be applied to
    (ch.ecma.csta.binding.DeviceID,PrimerApp.MyCallRecordingDeviceListener)
    recordSvcs.addCallRecordingDeviceListener(id, callRecordListener);
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:273: removeCallRecordingDeviceListener
    (ch.ecma.csta.binding.DeviceID,com.avaya.csta.callrecording.CallRecordingDeviceL
    istener) in com.avaya.csta.callrecording.CallRecordingServices cannot be applied
    to (ch.ecma.csta.binding.DeviceID,PrimerApp.MyCallRecordingDeviceListener)
    recordSvcs.removeCallRecordingDeviceListener(id, callRecordListener);
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:545: PrimerApp.MyCallRecordingDeviceLi
    stener is not abstract and does not override abstract method removeCallRecording
    DeviceListener(ch.ecma.csta.binding.DeviceID,com.avaya.csta.callrecording.CallRe
    cordingDeviceListener) in com.avaya.csta.callrecording.CallRecordingServices
    private class MyCallRecordingDeviceListener extends
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:553: cannot resolve symbol
    symbol : variable getFileName
    location: class com.avaya.csta.binding.FileInformationUpdatedEvent
    String fileName = event.getFileName;
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:554: cannot resolve symbol
    symbol : variable getStartTime
    location: class com.avaya.csta.binding.FileInformationUpdatedEvent
    String startTime = event.getStartTime;
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:555: cannot resolve symbol
    symbol : variable getEndTime
    location: class com.avaya.csta.binding.FileInformationUpdatedEvent
    String endTime = event.getEndTime;
    ^
    Note: ../src/sampleapps/tutorial/PrimerApp.java uses or overrides a deprecated A
    PI.
    Note: Recompile with -deprecation for details.
    7 errors
    Code is attached for any doubts. I really need to solve this problem fast. Thank you very much!

    Thank you very much 4 your suggestions, I reviewed the methods and corrected 3 of the errors. I still have three that I dont know how to fix. I compiled with the -deprecation oprion and obtained the followin errors and warnings:
    ../src/sampleapps/tutorial/PrimerApp.java:73: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
    private CallRecordingServices recordSvcs;
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:543: warning: com.avaya.csta.callrecording.CallRecordingDeviceListener in com.avaya.csta.callrecording has been deprecated
    CallRecordingDeviceListener
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:158: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
    recordSvcs = CallRecordingServices.getInstance();
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:170: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
    recordSvcs = (CallRecordingServices) provider.getService(
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:171: warning: com.avaya.csta.callrecording.CallRecordingServices in com.avaya.csta.callrecording has been deprecated
    com.avaya.csta.callrecording.CallRecordingServices.class.getName());
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:225: cannot resolve symbol
    symbol : method enableRecording (ch.ecma.csta.binding.DeviceID,boolean)
    location: class PrimerApp
    enableRecording(id, true);
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:555: cannot resolve symbol
    symbol : variable getFileName
    location: class com.avaya.csta.binding.FileInformationUpdatedEvent
    String fileName = event.getFileName;
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:556: cannot resolve symbol
    symbol : variable getStartTime
    location: class com.avaya.csta.binding.FileInformationUpdatedEvent
    String startTime = event.getStartTime;
    ^
    ../src/sampleapps/tutorial/PrimerApp.java:557: cannot resolve symbol
    symbol : variable getEndTime
    location: class com.avaya.csta.binding.FileInformationUpdatedEvent
    String endTime = event.getEndTime;
    ^
    4 errors
    5 warnings
    The APi information about the methods related with the errors is:
    enableRecording
    public abstract void enableRecording(DeviceID device,
    Boolean immediatelyActive)
    throws CstaException
    public String getEndTime()
    Returns the value of field 'endTime'.
    Returns:
    the value of field 'endTime'.
    getStartTime and getFileName have the same structure. They are all methods of the class FileInformationUpdatedEvent.
    I want to have this information and I tried like this:
    public void recordingFileInformationUpdated (
              FileInformationUpdatedEvent event)
              //En este momento ha terminado la llamada y ya se puede
              //recuperar el archivo FileName
              String fileName = event.getFileName;
              String startTime = event.getStartTime;
              String endTime = event.getEndTime;
    And for the boolean error I used the method this way:
    enableRecording(id, true);
    Sorry if the post is too loong, I'll be waiting for your comments, thanks a lot!

  • Unable to work with Java APIs in MDM new version 5.5.42.65

    Hi,
    I developed few java applications using MDM Java APIs in the old version(5.5.41.70) of MDM.
    After  installing new version(5.5.42.65) of MDM  in my system, i tried to execute the java applications,am getting failed to execute the applications.
    Does the change in the Version not allowing the Java MDM application to execute or is there any other reason..?
    Regards
    Praveen K

    Praveen,
    Are you using the new jar files as well?  The api jars and the mdm server must be on exactly the same version.
    Hope this helps.
    Greg

  • Java API to work with Oracle Workflow

    Hi,
    I'm new to Oracle Workflow. Currently, I'm starting to work on a java front-end to work with some features of Oracle Workflow.
    The only thing I know, is that I should be using workflow 2.6.3, and someone gave me a jar which is supposed to be the java API to the workflow, and a link to some online info:
    http://download-uk.oracle.com/docs/cd/B19306_01/workflow.102/b15855/toc.htm
    The api I received, was a jar file named "wfapi.jar". It was sent to me by email, don't know where they got it from.
    And that's it ... it's the only info I received.
    Searching the web, I found this interesting article:
    http://www.oracle.com/technology/products/ias/workflow/release262/wfjavawp.pdf
    That teaches me how to work with the java API, but the document itself is intended for release 2.6.2 (november 2001). So I started doing the first coding, and found that I have no way of implementing the instruction: "import oracle.apps.fnd.common.*;"
    Seems I don't have the "common" part of the package ... that just pops up two reasons:
    1. I don't have the complete java API;
    2. This code is for version 2.6.2, and in version 2.6.3 of the API the "common" was removed (which I think it would be quite odd).
    So I endup with no way of testing, and don't know the product well enough to start working and learning with it.
    Anyone can give me some lights?
    Where can I find a complete and definite complete java API?
    What about some guide with some examples on how to start working with the API?
    Where can I search the demo java programs?
    If I download the Oracle Workflow 2.6.3 from oracle.com, will I be able to get that API? Will I need to install it to get the API? Do I need the Oracle DB to be installed first?
    I would appreciate some help on how I can startup using this, or what should I look for, and most importantly, where?
    Thank you very much.
    ----- code example -----
    To test using what I got, I've ran the following code:
              String sUser = "myuser";
              String sPass = "mypass";
              String sJdbc = "jdbc:oracle:thin:@";
              String sStrg = "myserver:1520:mysid";
              String sCharSet = null;
              WFDB myDB;
              WFContext ctx;
              myDB = new WFDB(sUser, sPass, sJdbc, sStrg);
              sCharSet = System.getProperty("CHARSET");
              if(sCharSet==null) {  //cannot be null
                   sCharSet = "UTF8";
    This just gives me the following message:
    [22-11-2005 14:58:54:328 GMT] 7b4542dd WebGroup E SRVE0026E: [Servlet Error]-[oracle/apps/fnd/common/VersionInfo]: java.lang.NoClassDefFoundError: oracle/apps/fnd/common/VersionInfo
         at      at oracle.apps.fnd.wf.WFDB.<clinit>(WFDB.java:27).null(Unknown Source)
    So it seems the "common" is needed after all ...

    Hi,
    Can any one Please Help me out am Stuck up with the following Exception While trying to invoke a External java Function.
    Step 1: Written the attached Java Class from "Oracle WorkFlow's Developers's" guide.
    Ref: http://www.stanford.edu/dept/itss/docs/oracle/10g/workflow.101/b10284/deffa02.htm#stdjfa
    Step 2: In builder created a process and created a Java Function
    <package-name>.<class-name>
    Step 3: Compiled the Java Class,and Created a jar file and included the jar and the required .jar files [which are required to make that class compile free] in the class path.
    Step 4: We modified the wfjvlsnr.bat by including the custom jar file which was created and the dependent jar files in the classpath and ran the Java Agent.
    Step 5: Invoked the Process from client, once the process is invoked we are getting
    Unable to load class gov.oracle.apps.fnd.wf.SampleWF
    java.lang.ClassNotFoundException: gov.oracle.apps.fnd.wf.SampleWF
    Tue Oct 10 14:33:38 GMT+05:30 2006 Enqueuing VAC02/VAC02 gov.oracle.apps.fnd.wf.SampleWF
    null
    Unable to load class gov.oracle.apps.fnd.wf.SampleWF
    : java.lang.ClassNotFoundEx
    ception: gov.oracle.apps.fnd.wf.SampleWF
    please do reply to my mail [email protected]

  • Working with directories in JFileChooser

    Ok as usual I do not want code done for me but a nudge in the right direction would be helpful.
    Essentially I want to use a JFileChooser to select and iterate through a directory, if there is a directory inside that I need to open it and iterate through it as well. I know a recursive function will probably do me jsut fine however, I cannot seem to be able to get my JFileChooser to select the directory in such a was as to let me work with it.
    Yes I do have the
    JFileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);I currently have the ability to copy files, etc... with no problem. But have not been able to figure out how to select a directory and then iterate through it calling my copy functions and whatnot.
    I can get the current directory just fine, I can return false from File.isDirectory when I have a file selected. Now how the heck do I declare a directory variable/object to work with? or is that the completely wrong approach?
    no I do not have an sscce to post as I have not figured out any code for the directory functions at all.
    I have read through the api and tutorials and did not see what I need nor has Google been much help. If one of you nice patient pro's could point me to the proper link to figure this out that would be great. or a very generic sample on how to select and manipulate a directory from JFileChooser. Please don't tell me it has to be done with a JTree as I will have to shoot myself in the both feet since that would require a rebuild of the entire project... lol Thanks in advance for your patience.

    lol nevermind teh last question that I just posted It hit me what the solution was. Der..
    if(myFile.isdirectory ==true)
    filechooser.setCurrentDirectory(myFile[i];thank you guys for your patience and help as usual. Sabr that link was in fact useful and I will be looking at it again for a later project.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Working with Amazon

    If there is anyone in this forum who is working with Amazon API's, I just wanted to say that I feel your pain.
    If there is anyone in this forum who is THINKING about working with Amazon API's..
    RUUUUUUUUUUUUUUUUUUUUN!  RUN AWAY AS FAST AS YOU CAN!  DON'T DO IT!  NO MATTER WHAT THEY ARE PAYING YOU, IT'S NOT WORTH IT!  SAVE YOURSELF FROM THE ULCERS AND STRESS-INDUCED BACK PAIN AND PATCHES OF MISSING HAIR FROM YOUR SCALP!  AVOID THE NERVOUS TICKS YOU'LL GET EVERYTIME YOU HEAR OR READ THE WORDS "AMAZON", "INVENTORY MANAGEMENT", OR "AMAZON WEB SERVICES"!  MUA-HAHAHAHAHAHA!!!
    What's that, mommy?  "Black & Decker"?  Are you sure?  Okay.

    HTTPS Everywhere was the problem add-on. It had a known incompatibility with Amazon.com and was automatically disabled for that. When, in addition, I disabled it for Amazon Web Services, the problem was solved.
    Thanks again for your guidance.

  • Embedded PDF object .postMessage doesn't work with Reader DC on IE

    In our application, we have PDFs embedded in the browser with an object tag such as this:
    <object id="pdfObject" width="100%" height="100%" type="application/pdf" data="#{url}"></object>
    There are HTML/Javascript controls on the page which communicate with the PDF via this syntax:
    document.getElementById("pdfObject").postMessage([arg])
    This has been working great with Adobe Reader versions 10+.  It actually still works with Reader DC on Firefox.  However, there is a problem with Adobe Reader DC on Internet Explorer version 11.
    All I can tell so far is the "postMessage" function isn't appearing.  Using IE dev tools:
    document.getElementById("pdfObject").postMessage
    Object doesn't support this property or method
    Any help with this would be amazing.  It is a critical part of our application here.

    My application has two-way communication between browser and embedded PDF.  Basically a user clicks a button on the browser and via Javascript the embedded PDF form is submitted.  Everything was working before the update to Reader DC, but now it fails in Internet Explorer, but not in Firefox (or Chrome, if the Reader plugin isn't disabled entirely by their new default disable-NPAPI plugin policy...)
    I originally was troubleshooting communication from the browser to the embedded PDF, which is done according to the Javascript for Acrobat API reference (page 358?), in the browser, as follows:  document.getElementById('pdfObject').postMessage([args])
    Whatever is happening, postMessage is not a valid property or method of the PDF object
    Then I found this other thread:
    Adobe Reader DC: hostContainer not worked on IE
    I confirmed that within the embedded PDF, when setting up communication from the PDF to the browser, it is not able to register the hostContainer (again, on IE only)
    I have this script on initialization within the PDF:
    <---
    this.disclosed = true;
    if (this.hostContainer) this.hostContainer.messageHandler.onMessage = onMessageFunc
    this.hostContainer.messageHandler.onDisclose = function() { return true; }; }
    ---->
    Problem is this.hostContainer is null.
    The main point here is all of this was definitely working before updating to Reader DC, and is still working with DC on Firefox, but not on IE.
    To complicate things further, I have now uninstalled DC and downgraded to Reader 11.0.10.32, and am having a new bug, this time hostContainer is detected and communication to and from the PDF works again, but the submitForm action is failing with "Unable to open URL to submit this form" and "External undefined: exec".  Testing the exact same version and script with Firefox works fine

  • Re: AQ/Referenceable Objects work with MDB on WebLogic

              Great work! So you don't have to touch any of Oracle's classes, correct?
              Do you have time to document the whole thing and post it here, including the source
              code of all your custom classes?
              Eric Ma
              "Diptanshu Parui" <[email protected]> wrote:
              >
              >Forgot to add an important point.
              >The extended classes have to in the oracle.jms package (not necessarily
              >in the
              >same jar) to extend the Oracle classes. And I have used aqapi13.jar.
              >
              >Dips
              >
              >"Diptanshu Parui" <[email protected]> wrote:
              >>
              >>Hi,
              >>
              >>After days of work on getting to integrate Oracle's AQ with WebLogic
              >>I have managed
              >>to get to a solution without making changes to the Oracle's AQ API.
              >>
              >>Eric Ma had managed to provide a solution about an year back changing
              >>Oracle's
              >>API and making the AQjmsConnection, AQjmsSession, AQjmsQueueConnectionFactory
              >>& AQjmsDestination NOT implement Referenceable. This solution worked
              >>with WebLogic
              >>but meant that this cannot be deployed on Production environment.
              >>
              >>There was a myth that WebLogic's JNDI didn't provide support to Referenceable
              >>objects like Oracle's AQjmsQueueConnectionFactory etc.
              >>
              >>This myth has been broken. Referenceable object CAN be bound and looked
              >>up from
              >>WebLogic's JNDI provided right Factory classes are written and the correct
              >>constructor
              >>for Reference is used in the getReference method of the Referenceable
              >>implementation.
              >>
              >>In case of Oracle's objects, I wrote classes extending AQjmsQueueConnectionFactory
              >>& AQjmsDestination. In the extended classes, I wrote toString method
              >>and set private
              >>String variable.
              >>This string variable is just special character separated concat of all
              >>parameters
              >>used to call the constructor of the extended class.
              >>Then, in the getReference method of the extended class, I used the following
              >>constructor
              >>of Reference.
              >>
              >>return new Reference( DipsAQQueueConnectionFactory.class.getName(),
              >new
              >>StringRefAddr("value",
              >>value), DipsAQConnectionFactory.class.getName(), null);
              >>
              >>DipsAQQueueConnectionFactory is my class extending AQjmsQueueConnectionFactory
              >>and DipsAQConnectionFactory is the factory class for DipsAQQueueConnectionFactory.
              >>The object value passed in the StringRefAddr above is nothing but the
              >>toString
              >>of the extended class which was stored in the private String variable.
              >>In the
              >>factory class, the string is taken out the StringRefAddr and stripped
              >>to get individual
              >>parameters which were separated by special characters. Once, the individual
              >>parameters
              >>are got back, the Factory class instantiates the Referenceable object
              >>and returns
              >>it back.
              >>
              >>Another important point is in the extended class DipsAQQueueConnectionFactory
              >>I wrote this method
              >> public QueueConnection createQueueConnection() throws JMSException
              >>
              >> {
              >>     return createQueueConnection("user","user");
              >> }     
              >>
              >>And then using a startup class I bound the DipsAQQueueConnectionFactory
              >>& DipsAQDestination
              >>Referenceable objects to WLS. The MDB deployed on WLS was made lookup
              >>for the
              >>bound QF & Q and it started reading AQ messages.
              >>
              >>Few other points to note.
              >>I have kept the user & pwd of WLS same as DB.
              >>I have used OCI driver.
              >>
              >>Please feel free to raise further queries/suggestions.
              >>
              >>Dips
              >
              

              Eric,
              This is the relevant part of the config.xml you were looking for.
                   <JMSDistributedQueue JNDIName="DQueue1" Name="DQueue1" Targets="ClusterTwo" Template="DQueue1">
                        <JMSDistributedQueueMember JMSQueue="Queue1" Name="DQM1"/>
                        <JMSDistributedQueueMember JMSQueue="Queue2" Name="DQM2"/>
                   </JMSDistributedQueue>
                   <JMSBridgeDestination
                        ConnectionFactoryJNDIName="AQJMSConnectionFactory" ConnectionURL="t3://ip:port"
                        DestinationJNDIName="AQJMSQueue" Name="AQJMSDest"/>
                   <JMSConnectionFactory JNDIName="ConnectionFactory" Name="ConnectionFactory"
                        ServerAffinityEnabled="false" Targets="IAServer,ClusterTwo" XAConnectionFactoryEnabled="true"/>
                   <JMSBridgeDestination ConnectionFactoryJNDIName="ConnectionFactory" ConnectionURL="t3://ip:port"
                        DestinationJNDIName="DQueue1" Name="Dest"/>
                   <MessagingBridge Name="MB1" QualityOfService="Duplicate-okay"
                        SourceDestination="AQJMSDest" TargetDestination="Dest"
                        Targets="IAServer,MS1 (migratable),MS2 (migratable),ClusterTwo"/>
              No, I haven't used Oracle's OC4J 10g's AQJMS XA TX support classes.
              cheers!
              Dips
              "Eric Ma" <[email protected]> wrote:
              >
              >Dips:
              >
              >Can you post your config.xml here to show how you set up WLS messaging
              >bridges?
              >
              >Also, have you played with OC4J 10g's AQJMS XA TX support classes?
              >
              >Eric
              >
              >"Diptanshu Parui" <[email protected]> wrote:
              >>
              >>The sample code is now available at
              >>http://dev2dev.bea.com/codelibrary/code/startupclass.jsp
              >>
              >>cheers,
              >>Dips
              >>
              >>
              >>"Diptanshu Parui" <[email protected]> wrote:
              >>>
              >>>Yes, no need to touch Oracle's code at all.
              >>>
              >>>I will post the whitepaper/code soon.
              >>>
              >>>
              >>>"Eric Ma" <[email protected]> wrote:
              >>>>
              >>>>Great work! So you don't have to touch any of Oracle's classes, correct?
              >>>>
              >>>>Do you have time to document the whole thing and post it here, including
              >>>>the source
              >>>>code of all your custom classes?
              >>>>
              >>>>Eric Ma
              >>>>
              >>>>
              >>>>"Diptanshu Parui" <[email protected]> wrote:
              >>>>>
              >>>>>Forgot to add an important point.
              >>>>>The extended classes have to in the oracle.jms package (not necessarily
              >>>>>in the
              >>>>>same jar) to extend the Oracle classes. And I have used aqapi13.jar.
              >>>>>
              >>>>>Dips
              >>>>>
              >>>>>"Diptanshu Parui" <[email protected]> wrote:
              >>>>>>
              >>>>>>Hi,
              >>>>>>
              >>>>>>After days of work on getting to integrate Oracle's AQ with WebLogic
              >>>>>>I have managed
              >>>>>>to get to a solution without making changes to the Oracle's AQ API.
              >>>>>>
              >>>>>>Eric Ma had managed to provide a solution about an year back changing
              >>>>>>Oracle's
              >>>>>>API and making the AQjmsConnection, AQjmsSession, AQjmsQueueConnectionFactory
              >>>>>>& AQjmsDestination NOT implement Referenceable. This solution worked
              >>>>>>with WebLogic
              >>>>>>but meant that this cannot be deployed on Production environment.
              >>>>>>
              >>>>>>There was a myth that WebLogic's JNDI didn't provide support to
              >Referenceable
              >>>>>>objects like Oracle's AQjmsQueueConnectionFactory etc.
              >>>>>>
              >>>>>>This myth has been broken. Referenceable object CAN be bound and
              >>looked
              >>>>>>up from
              >>>>>>WebLogic's JNDI provided right Factory classes are written and the
              >>>>correct
              >>>>>>constructor
              >>>>>>for Reference is used in the getReference method of the Referenceable
              >>>>>>implementation.
              >>>>>>
              >>>>>>In case of Oracle's objects, I wrote classes extending AQjmsQueueConnectionFactory
              >>>>>>& AQjmsDestination. In the extended classes, I wrote toString method
              >>>>>>and set private
              >>>>>>String variable.
              >>>>>>This string variable is just special character separated concat
              >of
              >>>>all
              >>>>>>parameters
              >>>>>>used to call the constructor of the extended class.
              >>>>>>Then, in the getReference method of the extended class, I used the
              >>>>following
              >>>>>>constructor
              >>>>>>of Reference.
              >>>>>>
              >>>>>>return new Reference( DipsAQQueueConnectionFactory.class.getName(),
              >>>>>new
              >>>>>>StringRefAddr("value",
              >>>>>>value), DipsAQConnectionFactory.class.getName(), null);
              >>>>>>
              >>>>>>DipsAQQueueConnectionFactory is my class extending AQjmsQueueConnectionFactory
              >>>>>>and DipsAQConnectionFactory is the factory class for DipsAQQueueConnectionFactory.
              >>>>>>The object value passed in the StringRefAddr above is nothing but
              >>>the
              >>>>>>toString
              >>>>>>of the extended class which was stored in the private String variable.
              >>>>>>In the
              >>>>>>factory class, the string is taken out the StringRefAddr and stripped
              >>>>>>to get individual
              >>>>>>parameters which were separated by special characters. Once, the
              >>individual
              >>>>>>parameters
              >>>>>>are got back, the Factory class instantiates the Referenceable object
              >>>>>>and returns
              >>>>>>it back.
              >>>>>>
              >>>>>>Another important point is in the extended class DipsAQQueueConnectionFactory
              >>>>>>I wrote this method
              >>>>>> public QueueConnection createQueueConnection() throws JMSException
              >>>>>>
              >>>>>> {
              >>>>>>     return createQueueConnection("user","user");
              >>>>>> }     
              >>>>>>
              >>>>>>And then using a startup class I bound the DipsAQQueueConnectionFactory
              >>>>>>& DipsAQDestination
              >>>>>>Referenceable objects to WLS. The MDB deployed on WLS was made lookup
              >>>>>>for the
              >>>>>>bound QF & Q and it started reading AQ messages.
              >>>>>>
              >>>>>>Few other points to note.
              >>>>>>I have kept the user & pwd of WLS same as DB.
              >>>>>>I have used OCI driver.
              >>>>>>
              >>>>>>Please feel free to raise further queries/suggestions.
              >>>>>>
              >>>>>>Dips
              >>>>>
              >>>>
              >>>
              >>
              >
              

  • Working with APIs for Dummies

    All,
    So I want to get into working with HFM and FDM APIs and am not sure the best place to start. I have great knowledge of VBA, C++, and javascript coding, but haven't dabbled too much into VB. The other day I was messing around with the FDM API example using Excel's Visual Basic editor and was able to get logged into the application based on building a form and referencing some DLLs. The errors began when trying to pull menus from the app through Excel.
    Some questions for you pros:
    1) Are there any reference documents available for those beginners wishing to use the API in HFM? (I have found a decent starter document for FDM)
    2) Do you need Visual Studio to write the code, or can you accomplish everything in the Excel editor (or is there some alternative which is less costly)?
    3) Would anyone be willing to share a simple example of code they've written and the issue it resolved? For example, I think it shouldn't be too difficult to create a program to Export FDM data for a certain location at a certain time if the data is in the Validate stage. Or, post all approved JVs in HFM for a certain period. Really just anything. As you know, once you have a little starter code it is much easier to get going.
    Thanks!

    You should be able to use excel's VBA, you just need to add references to the appropriate .DLL files from the server. The drawback being that it will only work on your computer. A true VB program will work on the machine of anyone who has the client installed.
    As for documentation, there is an HFM Object Guide that you can find somewhere on oracle's site. I forget where exactly, but it's probably in the same place you found the FDM API guide.
    I will say this though, FDM and HFM operate very differently when it comes to using VB. FDM involves directly calling data from the tables to get what you want. HFM has pre-built functions that accomplish almost everything for you(Retreiving journals, opening periods, pulling security, etc).
    The best advice I can give you is start with something simple. My first HFM program was more or less an attempt to replicate the functionality in the HFM Utilities Program only with a sorted user list box(drove me crazy since all our user ID's are numbers).
    Start simple, learn the basics, and from there you'd be amazed what you can do.

  • Sharepoint 2013 list view quick edit does not work with out remote API permissions

    sharepoint 2013 list view quick edit does not work with out remote API permissions.
    When I give Use Remote Interfaces  -  Use SOAP, Web DAV, the Client Object Model or SharePoint Designer interfaces to access the Web site it works which is not an ideal situation..
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    This is true. If you use Fiddler to watch the requests from the list view quick edit you can see CSOM calls. For example when changing a value in a cell, when you tab out you will see the SetFieldValue and Update method calls on the list item.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • What is the right sdk api to work with webi reports in BOXI Release 4?

    Hello,
    I just read in the omg model for rebean (sdk for working with webi report documents) that all functions to access the report structur and layout are no longer availabe beginning with Release 4.
    Can anyone confirm, that this is the case?
    Are those functions moved to a different SDK component?
    Thanks in advance,
    Bernd
    Dokumentation about rebean _omd
    u2022 The object model shows many funtions , classes in red which means:
    Note: The Classes, Interfaces, and Methods marked in red are no longer functional from the SAP
    BusinessObjects Business Intelligence Platform 4.0 release onwards.
    u2022 Among those functions are all !! We need to analyze the report layout
    u2022 No longer supported: DocumentInstance.getDictionary() , DocumentInstance.getOpenDocumentInfo(), DocumentInstance.getResourceManager(), DocumentInstance.getStructure()
    u2022 Classes no longer supported: ReportElement, ReportDictionary, Query, QuerySorts, DataSourceObject(s), SQLDataProvider,QueryNode, DPExpression, QueryContainer, Link,
    u2022 Classes no longet supported: ReportBody, ReportContainer, ReportStructure, ReportBlock, Graph, *Table
    u2022 Classes no longer supported: Cell, PageHeaderFooter

    Thank you for the information srrachna !
    Well, the point with the report engine sdk is a surprise. What is the sense of new functionality when you cannot use it (spoken for the api processing), and in addition when the new functionality eliminate functionality which was available before in the sdk.
    In my view this cut is to hard. The .pdf speaks from deprecated, but the blog and the information in the report engine api speaks a different language. The functionality is not just deprecated but no longer available.
    Hope SAP will address that before relase 4 becomes GA in May 2011.

Maybe you are looking for

  • Hp Photosmart C7280 all-in-one will not work with Snow leopard

    My nephew just installed Snow Leopard on my IMAC 2008. I cannot get to printer to work. I have tried uninstalling the HP software and reinstalling. I have updated the software thru Apple updates. It still won't print or scan any documents.

  • Web template changes are not saved.

    Hello Experts, I making a small change to an existing Web Template namely changing the tab page 1 to tab page 2 and  vice versa. I could see the message Changes are saved but at the end web template is same like as it was. Any idea why changes are no

  • Find the previous date

    Hello, If there are a lot of data from the datasource, the BW will provide many data package during extracting into data target in the SAP-BW. When data were in different data package, I wonder if there is any solution to distiguish the earlies date.

  • Want to take a Skype Indian Number

    Dear Team ,  I am looking to add Onlien number to my Account .  Need to clear soem points  1. If i am admin of my account and if i take any number in US, then do that number will be connected to all my agents of that account . 2. Can i take unlimted

  • How we enter text for materials in purchase order smartform

    hi guru how we enter text for materials in purchase order smartform my requirement is create smartform for purchase order. in this i have to create item-text, by using which tcode we can give item data plz give more expalnation for this plzzzzzzzzz