Could anyone provide sample code to replace JMSQueueMBean usage in WL10 api

Hi,
I am working for a Weblogic Server Application Migration project from Weblogic 8.1 to Weblogic 10.3, we need to get rid of all weblogic 8.1 deprecated code. But I am not able to find any equivalent code using Weblogic 10.3 api for the following on google:
Context initCtx = ServiceLocator.getInstance().getInitialContext();
MBeanHome home = (MBeanHome)initCtx.lookup(weblogic.management.MBeanHome.ADMIN_JNDI_NAME);
//eGenera Application Migration Changes starts
/*Set beans = home.getMBeansByClass(weblogic.management.configuration.JMSQueueMBean.class);*/
Set beans = home.getMBeansByType("JMSQueue");
//eGenera Application Migration Changes ends
for (Iterator i = beans.iterator(); i.hasNext(); ) {
JMSQueueMBean queue = (JMSQueueMBean)i.next();
this.setRetryCount(queue.getName(), queue.getRedeliveryLimit());
Can anyone please help me out and provide equivalent code for the above using weblogic 10.3 strategy?

This code works for 10.3
http://weblogic-wonders.com/weblogic/2010/01/21/jms-resources-using-jmx/

Similar Messages

  • Could anyone provide sample of WebDynpro Java TableFilter for Dynamic Table

    Hi
    I have a dynamic table I have given a context node as a data source and it executes a Web Service and populates itself based on the resultset of query this node contains no of columns and rows
    The table changes dynamically everytime the user selects different table type
    When I created a TableFilter I used IWDTableColumn from the current view and looped though the context elements and binded the values of attributes of each context element to this column inside a loop. TableSort works, But I  am not able to get the Filter working for the Dynamic Table , when I click on Filter Button the Filter does not filterand  just sorts.
    Not sure what is wrong but if someone can give some inputs,leads I will highly appreciate if some one has  a  sample of WebDynpro Java TableFilter for Dynamic Table
    Thanks in advance,
    Ragu.

    Hi Ragu,
    Please check the link for table filtering.
    http://wiki.sdn.sap.com/wiki/display/WDJava/GenericTableFilter+Code
    since your dynamic table uses webservice I assume it has fixed context attributes, just put the filter into wdDoModify method everytime you execute/trigger the webservice.
    Regards,

  • Could anyone provide the complete manual of SAP Query Creation

    Hi,
    Now I am learning to create SAP Query.
    I viewed many questions and answers about SAP Query.
    Some mentioned this,and some did that...
    Could anyone provide a complete manual of SAP Query Creation for developers.
    I can create SAP Queries step by step with it.

    http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Step-by-step guide for creating ABAP query
    http://www.sappoint.com/abap/ab4query.pdf
    ABAP query is mostly used by functional consultants.
    SAP Query
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
    ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
    To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly
    use either SQ02 ans SQ01
    or SQVI tr code
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
    useful
    http://www.erpgenie.com/abap/code/abap47.htm
    regards,
    Prabhu
    reward if it is helpful

  • Could anyone provide an easy ADF tutorial to go through from end to end

    Could anyone provide an easy ADF tutorial to go through from end to end retrieving a table with parameter and display result as a table on web page. would like to learn EO, VO, AM page generation with this easy example.
    Thanks

    I've been using these
    http://www.oracle.com/technology/products/jdev/11/cuecards111/index.html
    I've done this one all the way through a couple times.
    http://www.oracle.com/technology/obe/obe11jdev/bulldog/ria_application/developriaapplication_long.htm

  • Can anyone provide Error code list and causes for OBIEE10g/11g ?

    Hi
    Can anyone provide Error code list and causes for OBIEE10g/11g ?
    Regards
    Srini
    Edited by: Srini on Feb 18, 2012 10:41 AM

    Hi,
    List of Bug Fixes Included In OBIEE 11.1.1.5.0
    Admin Tool
    •7538753 SAP BW IMPORT DOES NOT RETRIEVE UNIQUE NAME FOR MEASURE COLUMNS
    •10012297 ADMIN TOOL CRASH ON VERY LARGE EXPRESSIONS – OVERFLOW AT APPROX 3200 CHARACTERS
    •10032385 TABLE MISSING IN SQL “FROM” CLAUSE – FWD PORT 8308443 TO 11G
    •10045212 EQUALITY EXPRESSION IN LTS “WHERE” CAUSES INTERNAL SQORRQLIST ERROR ON QUERY
    •10264475 ADMINISTRATION’S “SHUTDOWN SERVER” MENU SHOULD BE REMOVED
    •10265121 ADMIN TOOL EXPRESSION BUILDER CRASHES ON DOUBLE-BYTE LOGICAL COLUMN NAME
    •10394725 ON-LINE MODE CHECK-IN OF DYNAMIC INIT BLOCK CAUSES [43058] REFRESH LOCK FAILURE
    Answers
    •6521146 ERROR: “NO FILTER” WHEN USING “COMBINE WITH SIMILAR REQUEST” – UNION
    •7534635 INACTIVATING DRILLDOWN ON COLUMN VALUE ALSO INACTIVATES COLUMN HEADER LINK
    •9026854 CLARIFICATION REGARDING DATA FORMAT WHEN COMBINING REQUESTS
    •9107277 KEEP THE NUMBER PRECISION IN DATABASE WHEN “DOWNLOADING TO EXCEL”
    •9524080 PIVOT TOTAL DIFFERENT TO TABLE TOTAL WHEN REPORTAGGREGATEENABLED TRUE
    •9697529 JAPANESE CHARACTER SET NOT PASSED CORRECTLY TO DRILL REPORT IN FIREFOX BROWSER
    •9871470 SORTING ON A NULL VALUED COLUMNS GIVES ASSERTION ERRORS
    •9886904 CORRECT DOC FOR ADDING CUSTOM DATE FORMAT STRING
    •9918283 CORRECT DASHBOARD FORMATTING PROBLEMS WITH SCROLLING
    •9928318 ROW HEADER MISSING AT PIVOT TABLE VIEW FOR MIGRATED REPORTS IN 11G
    •9968574 SOME UPGRADED 10G CHARTS SHOW UP JAVA EXCEPTION
    •10023165 MAPS DO NOT WORK IN MAP VIEWS WHEN JOIN COLUMN CONTAINS A “&” CHARACTER
    •10065166 GAUGE RANGE IS NOT UPDATED WHEN IT CHANGES THE FIELD VALUE
    •10078041 ACTION LINK DOES NOT WORK WHEN COMPOUND LAYOUT ONLY HAS A MAP VIEW
    •10091354 “SCALE MARKERS” OPTION IS MISSING IN VERTICAL AXIS 2
    •10147762 CANNOT SET GAUGE FOOTER (TITLE), KEEPS SHOWING “UNDEFINEDUNDEFINEDUNDEFINED”
    •10182955 BUBBLE CHART IS NOT BEHAVING AS EXPECTED
    •10213761 CONDITIONAL DASHBOARD SECTIONS (GUIDED NAVIGATION) ALWAYS RUNS REPORTS
    •10229397 CANNOT SAVE REQUEST USING STANDARD DATE FORMATS.
    •10282140 CELL IMAGE AT BLANK CELL OF PIVOT TABLE IS NOT DISPLAYED WHEN USING COND FORMAT
    •10296730 UNABLE TO USE PRESENTATION VARIABLE IN SCALE MARKERS
    •10312496 CHARTS. MEASURE LABEL IN GRAPH PROMPTS DOES NOT CHANGE CONTENT OF THE CHART
    •10312795 ACTION LINK ON COLUMN HEADING NAVIGATION DOES NOT CONSIDER PROMPT VALUES
    •10329343 CLICKING A LINE GRAPH BETWEEN TWO DATA POINTS DRILLS TO LAST VALUE IN HORIZONTAL
    •10337649 PIVOT TABLE SHOWS BUTTONS FOR SORTING ON CALCULATED ITEMS.
    •10402102 INCORRECT RESULT WHEN USING [NEW CALCULATED ITEM] PROP IN PIVOT TABLE
    •10414887 DRILL DOWNS NOT WORKING IN CHART PIVOTED TABLE SELECTED FROM VIEW SELECTOR
    •10418875 CHART SIZE IS CHANGING AFTER WEBCAT UPGRADE FROM 10G
    •10634175 GRAPH ENGINE IS NOT RESPONDING
    •10639913 COMPLETE TEXT IS NOT SAVED IN DB IF CURSOR IS MOVED AWAY DURING INSERT
    •11711658 FILTER NEEDS TO SUPPORT UNTYPE LITERAL FOR RANK OPERATOR AS 10G DOES
    •11805468 CUSTOMIZED GAUGE VIEW IS NOT CONSISTENT WHEN EXPORTED AS PDF,HTML AND XLS
    •11817696 INCORRECT FILTER IS BUILT IF FILTER IS CONTRUCTED BEFORE SELECTING REQ. COLUMNS
    •11845286 PIVOT TABLE WITH PERCENTAGES, GRAPHED PERCENTAGE VALUES DISPLAYED ARE INCORRECT
    •11894921 GRAPH LABEL OPTIONS NOT AVAILABLE IN 11G
    •11895279 INCORRECT FILTER VALUE WHEN USING ACTION LINK WITH GRAPH
    •12412666 ALL PAGES LOSES CONDITIONAL FORMATTING
    •12561361 PSE FOR BASE BUG 10295403 ON TOP OF 11.1.1.5.0 FOR GENERIC OS
    CHARTING
    •8990756 MISLEADING INFORMATION IN DOC REGARDING PIVOT TABLE SETTINGS
    DASHBOARDS
    •7459700 ABILITY TO SPECIFY FIXED COLUMN WIDTH TO A DASHBOARD PROMPT
    •10177865 OBIEE 11G : DEFAULT VALUES CANNOT BE DE-SELECTED FROM MULTI SELECT PROMPT
    •10279722 DASHBOARD SLIDER PROMPT SHOWS THUMB VALUES WITH TWO DECIMAL PLACES FOR INTEGERS
    •10279829 DASHBOARD SLIDER PROMPT SHOWS WRONG VALUES FOR “ALL COLUMN VALUES” OR “SPECIFIC
    •10310511 “REQUIRE USER INPUT” MESSAGE APPEARS THE FIRST TIME ONLY FOR THE REQUIRED PROMPT
    •10389799 DASHBOARD NAVIGATION MAY CAUSE GETELEMENTBYTAGNAME ERROR IN IE
    •10411545 PROMPT WITH BETWEEN OPERATOR AND SQL DEFAULT VALUES ARE NOT UPGRADED PROPERLY
    •11056057 ERROR WHILE UPGRADING THE DASHBOARD WITH CERTAIN FILTER FUNCTIONS
    •11076452 ABILITY TO CONSTRAIN PROMPTS AGAINST A SLIDER PROMPT
    •11717024 ERROR 500 OCCURS WHEN SETTING ACCESSIBILITY MODE TO ON
    •12620143 PSE FOR BASE BUG 12561330 ON TOP OF 11.1.1.5.0 FOR LINUX X86 [46] (PSE #602152)
    INSTALL
    •9459177 PREREQUISITES FOR DEPLOYMENT ON SEPARATE MACHINES
    •9540009 UNIXCHK.SH ENCOUNTERS HOST NOT FOUND ERROR WHEN DNS IS NOT AVAILABLE.
    •10071302 ENTERPRISE INSTALL: CONFIGURE PORTS : FORMAT OF INI FILE
    •10126542 OBIEE 11G INSTALATION FAILS AT AS INSTANCE CREATION DUE TO PERM SIZE ERROR
    •10287335 CANNOT START BISERVER1 . SWITCH TO JSSE FRAMEWORK REQUIRED
    •10302421 OBIEE 11G WINDOWS PROMPTS FOR USERNAME / PASSWORD AFTER ENCRYPTING CREDENTIALS
    •11849674 SAG: DISCREPANCY IN DOCUMENTED ORACLE DATABASE REQUIRED FOR MAPVIEWER
    MIGRATION
    •7432799 ORACLE EUL CONVERTER CRASHED WHILE GENERATING A REPOSITORY
    REL_NOTES
    •12604761 TWO STEPS OF THE UPGRADE TO 11.1.1.5.0 ARE NOT CLEARLY DOCUMENTED
    SCHEDULER
    •10036466 “RE-RUN INSTANCE(S) NOW” MENU IS NOT AVAILABLE FOR COMPLETED JOB INSTANCES
    SECURITY
    •8996295 PROVIDE DETAIL INFORMATION TO SETUP WNA(KERBEROS) FOR OBIEE AUTHENTIFICATION
    •9216995 PROVIDE LATEST DETAIL INFORMATION ABOUT HOW TO SETUP LDAP SSL FOR OBIEE
    •10194154 TECHNOTES- PROVIDE DETAIL INFORMATION TO SETUP WNA(KERBEROS) FOR OBIEE AUTHENT
    •10198837 BIEEHOME LOGIN PAGE IS NOT DISABLED EVEN AFTER ENABLING THE SSO
    •10218031 USING EXTERNAL DB TABLE TO SET ROLES SESSION VARIABLE DOESN’T ACCEPT LONG NAMES
    •10373788 IF OBJECTGUID PUBLISHED AND SAMACCOUNTNAME CHANGED USER CANNOT CONNECT ANYMORE
    •11731080 QA:SECURITY GUIDE NEEDS UPDATE FOR DEFINING A USER SESSION VARIABLE
    SERVER
    •6510747 NETWORK FAILURE DURING PHYSICAL QUERY HANGS END USER WITHOUT ERROR MESSAGE
    •6836444 OBIEE SERVER SYSTEM DATE IS WRONG AND DOES NOT MATCH MACHINE SYSTEM DATE
    •8371912 BI SERVER CRASHES ON NAVIGATION SPACE MAP RACE – SR 3-887711721
    •9433198 DOCUMENT SYSLOG ENTRIES IN SYSTEM ADMINISTRATOR’S GUIDE
    •9696424 DOC INSTANCECONFIG PARMS ALLOWEDLANGUAGES & ALLOWEDLOCALES IN SYSADMIN GUIDE
    •9954411 PSR:MOD_SUPPORTED NOT ENABLED FOR TERADATA AND CAUSES CAMPAIGN SLOW PERFORMANCE
    •10258683 REQUEST WITH COMPLEX FILTER IS CONSUMING ALMOST ALL CPU & NO SESSION IS CREATED
    •10258755 EXCEL FAILS TO CONNECT TO 11G BI SERVER USING ODBC DSN
    •10335924 REPORT-BASED TOTALS FAIL ON MEASURES CONTAINING AGGREGATION EXPRS SUCH AS FILTER
    •10374571 NEED FLEXIBILITY TO OVERRIDE HOSTNAMES WHEN CUSTOMER DNS IS INCORRECT OR BROKEN
    •10650122 PIVOT VIEW WITH UNION OF NON – COMPATABLE TYPE ERROR IN OBIEE 11G AFTER UPGRADE
    •11804596 NQQUERY LOG LEVEL 2 IS TOO VERBOSE – BACKPORT 10308263 TO 11.1.1.5
    •11809295 NQUDMLGEN NOT GENERATING UDML FILE IN UTF FORMAT
    UPGRADE
    •9886765 ERRORS ENCOUNTERED WHEN UPGRADING WEB CATALOG USING UA.BAT
    •10121344 ERROR IN LOG USING UA TO UPGRADE BI SCHEDULER SCHEMA ON SQL SERVER DATABASE
    •11069928 UPGRADE SHOULD HANDLE PROMPT WITH INCONSISTENT VALUES AS 10G DOES
    WEB_ADMIN
    •8564456 SHARED FOLDER ACCESS PERMISSION ISSUE
    •9381764 CATALOG MANAGER COPY FUNCTION NOT WORKING AS EXPECTED
    •9739865 EXITING MANAGE SESSION RESULTS IN HTTP ERROR
    •10016252 LACKING INFORMATION ON FORCEABSOLUTECOMMANDURL FOR ABSOLUTECOMMANDURLPREFIX
    •10144989 WEB CATALOG DOES NOT UPGRADE TO 11.1.1.3.0
    •10218524 VALIDATION ERROR AFTER THE UPGRADE OF WEBCATALOG TO OBIEE 11G
    •11723425 INCORRECT DEFAULT VALUE OF DEFAULTROWSDISPLAYED IN THE INSTANCECONFIG.XML
    •11827202 OPMN NOT STARTING AFTER SETTING UP THE REPLICATION AGENT
    WEB_GNRL
    •10191078 FILTER VALUES ARE RESET IN GO URL WHEN COLUMNS ARE SORTED OR RE-ARRANGED
    •10360461 NEED ABILITY TO CONTROL NEW, DASHBOARD AND OTHER HEADER LINKS
    •11780508 10G COLUMN FILTER PROMPT WITH PROMPTCAPTION ATTR NOT UPGRADING
    •12416695 TOOLTIP EMPTY IN MAPVIEWER
    WEB_INTGRT
    •10294759 FMAP-REFERENCED IMAGES IN ANALYSIS HEADERS DON’T APPEAR IN DOWNLOADS TO EXCEL
    WEB_MKTG
    •8692820 DIRECT DATABASE CAMPAIGN LOAD FORMAT COMBINED LISTS FAILS
    •9908019 SAW SERVER CRASH WHEN LOADING A PARTICULAR CAMPAIGN
    •9935859 UNGROUP OF SEGMENT BLOCKS CORRUPTS SEGMENT DEFINTION AND BAD COUNTS
    •10331355 MOVING CRITERIA WITHIN A SEGMENT’S GROUP CORRUPTS THE INCLUSION OPTIONS
    Thanks,
    RM

  • Could anyone provide me step by step testing process using Quality Center ?

    Hi,
    Could anyone provide me step by step testing process using Mercury Quality Center ?
    Recently i got one object need to tested using Mercury Quality center. I do not know how to do that. I have to deliver the object in 3 days
    Treat this is urgent ....
    Thanks in advance....
    Akki

    Hi Akash,
    But this is Solution Manager forum.
    Do you want to integrate Solution Manager & Mercury Quality Center?
    Or is it a pure Mercury Quality center related task?
    best rgds,
    Alagammai.

  • Could anyone provide your experience in cdma testing with LabView??

    CDMA testing with LabView is a project I am involved with now. I would like to hear from anyone who has had experience and can provide whitepapers, sample code, etc., on this subject. What about interfacing TestStand with TTCN-3??

    There is also example code demonstrating Successive Interference Cancellation with CDMA that you may be interested in.
    Attachments:
    README.txt ‏4 KB
    UPLINK_CDMA_WITH_SIC.llb ‏2474 KB

  • Urgent help!  does anyone has sample code to do encry in c & decry in java

    Does anyone has a very simple code to encrypt a string in c (openssl for example) and then decrypt the same string in java?
    it should be very simple but i just can get the ball rolling. i always get different data (even in hex string representation) using the same key and plain text (all in hex) to even just do encryption (not even decryption yet). To my understanding, DES is just bits manipulation. So the output bit pattern should be the same regardless C or Java, right?
    for example, in openssl, when i do ecb:
    the key:
    0123456789ABCDEF
    the plain text:
    0101010101010101
    the in:
    0101010101010101
    the out:
    B4FD231647A5BEC0
    but doing the same in java i got
    3A2EAD12F475D82C as the encryption output
    It is very strange.
    Hope someone could help me.
    Thanks
    -- Jin

    whew! i finally get the base64 working. Here is my data from openssl run using DES with ECB mode and no padding: (the des_ecb_encrypt function is des/ecb/nopadding, right?)
    thanks alot
    -- jin
    0123456789ABCDEF
    the key in base64 encoding is:ASNFZ4mrze8=
    the plaintext in hex:
    0101010101010101
    the plaintext in base64 encoding is:AQEBAQEBAQE=
    the encrypted output in hex:
    B4FD231647A5BEC0
    the encrypted output in base64 encoding is:tP0jFkelvsA=
    the decrypted text in hex:
    0101010101010101
    the decrypted text in base64 encoding is:AQEBAQEBAQE=
    here is the code. see if you see the same thing. it works fine alone but just not the same result i use the SUN JCE ... that is the frustration part.
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <ctype.h>
    #include <openssl/des.h>
    #define Assert(Cond) if (!(Cond)) abort()
    static const char Base64[] =
            "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
    static const char Pad64 = '=';
    int main(int argc, char *argv[])
            int i;
            des_cblock in,out,outin;
            unsigned char base64EncodedText[255];
            unsigned char temp[255];
            size_t targsize;
            size_t srclength;
            des_key_schedule keySchedule;
            unsigned char plainText[8] = {0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01};
            unsigned char key[8] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF};
            // now create the key schedule
            if(DES_set_key(&key, &keySchedule) != 0) {
              // something is wrong, unable to create key schedule
              printf("Unable to create the key schedule.");
              return 1;
            // now the key schedule is created, encrypte the data
            // in block contains the plain text, the out block contains the encrypted cyphertext,
            // and outin contains the decrypted plain text (should be the same value as in)
            memcpy(in,plainText,8);
            memset(out,0,8);
            memset(outin,0,8);
            // ecb mode is the simplest mode, takes in only 8 bytes (a cblock) and output a cblock
            des_ecb_encrypt(&in, &out, keySchedule, DES_ENCRYPT);
            des_ecb_encrypt(&out, &outin, keySchedule, DES_DECRYPT);
            printf("\nthe key in hex:\n");
      for(i = 0; i < 8; i++) {
        printf("%02X", key);
    printf("\nthe key in base64 encoding is:");
    memcpy(temp, key, 8);
    temp[8] ='\0';
    targsize = base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("\nthe plaintext in hex:\n");
    for(i = 0; i < 8; i++) {
    printf("%02X", in[i]);
    printf("\nthe plaintext in base64 encoding is:");
    memcpy(temp, in, 8);
    temp[8] ='\0';
    targsize = base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("targsize is %d", targsize);
    printf("\nthe encrypted output in hex:\n");
    for(i=0; i<8; i++) {
    printf("%02X", out[i]);
    printf("\nthe encrypted output in base64 encoding is:");
    memcpy(temp, out, 8);
    temp[8] ='\0';
    targsize = base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("\nthe decrypted text in hex:\n");
    for(i = 0; i < 8; i++) {
    printf("%02X", outin[i]);
    printf("\nthe decrypted text in base64 encoding is:");
    memcpy(temp, outin, 8);
    temp[8] ='\0';
    targsize= base64encode(temp, 8, base64EncodedText, targsize);
    printf("%s", base64EncodedText);
    printf("\n");
    return 1;
    int base64encode(unsigned char *src, size_t srclength,
    char *target, size_t targsize)
    size_t datalength = 0;
    unsigned char input[3];
    unsigned char output[4];
    size_t i;
    while (2 < srclength) {
    input[0] = *src++;
    input[1] = *src++;
    input[2] = *src++;
    srclength -= 3;
    output[0] = input[0] >> 2;
    output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4);
    output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6);
    output[3] = input[2] & 0x3f;
    Assert(output[0] < 64);
    Assert(output[1] < 64);
    Assert(output[2] < 64);
    Assert(output[3] < 64);
    if (datalength + 4 > targsize)
    return (-1);
    target[datalength++] = Base64[output[0]];
    target[datalength++] = Base64[output[1]];
    target[datalength++] = Base64[output[2]];
    target[datalength++] = Base64[output[3]];
    /* Now we worry about padding. */
    if (0 != srclength) {
    /* Get what's left. */
    input[0] = input[1] = input[2] = '\0';
    for (i = 0; i < srclength; i++)
    input[i] = *src++;
    output[0] = input[0] >> 2;
    output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4);
    output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6);
    Assert(output[0] < 64);
    Assert(output[1] < 64);
    Assert(output[2] < 64);
    if (datalength + 4 > targsize)
    return (-1);
    target[datalength++] = Base64[output[0]];
    target[datalength++] = Base64[output[1]];
    if (srclength == 1)
    target[datalength++] = Pad64;
    else
    target[datalength++] = Base64[output[2]];
    target[datalength++] = Pad64;
    if (datalength >= targsize)
    return (-1);
    target[datalength] = '\0'; /* Returned value doesn't count \0. */
    return (datalength);
    [code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Where I could find the sample code for Pan and Zoom?

    hello all:
    I saw a demo for showing how to implement Pan and Zoom in java. If I remember correctly it should be included in JAI, however I cannot find it in JAI sample demos any more.
    THe only samples it included are
    * JAIDemo
    * JAIExampleApp/SampleDescriptor
    * JAIFileBrowser
    * JAIWarpDemo
    * JAIImageReader
    * FormatDemo
    Does anyone know where I could find that demo back?
    Thank you
    -Daniel

    Hi,
    I think this document will help you to develop your own modules.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e?quicklink=index&overridelayout=true
    later version pi71
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true
    regards,
    francis

  • Could anyone check this code for errors for me??

    Hi! Could someone please tell me if you see any problems with this code?? a friend wants me to check it for errors, but can't find any. I just wanted to make sure, because there are probably a lot of better scripters than me reading this. Please answer soon!!
    heres the code:
    stop();
    addEventListener(Event.ENTER_FRAME, preLoad);
    function  preLoad(e:Event):void{
    var bytestoLoad):Number = loaderInfo.bytesTotal; 
    var numberLoaded:Number = loaderInfo.bytesLoaded;
    if (bytestoLoad ==  numberLoaded) {
    removeEventListener)Event.ENTER_FRAME, preLoad) 
    gotoAndStop(2);
    }else {
    preLoader.preLoaderFill.scaleX =  numberLoaded/bytestoLoad;
    preLoader.bytePercent.text = Math.floor  (numberLoaded/bytestoLoad*100) + "%";
    Thanks!!
    -Sammy

    I ran it on debug mode and changed it to this? see any problems now? or are they fixed? It looks to me like it took some actions out, I hope that doesn't
    effect it....
    stop();
    addEventListener(Event.ENTER_FRAME, preLoad);
    function preLoad(e:Event):void{
    var bytestoLoad):Number = loaderInfo.bytesTotal;
    var numberLoaded:Number = loaderInfo.bytesLoaded;
    if (bytestoLoad == numberLoaded) {
    removeEventListener)Event.ENTER_FRAME, preLoad)
    gotoAndStop(2);
    i'm kinda new to flash ((I started as a lua scripter (on Roblox)) so I'm a little confused about this. Thanks for the help!!

  • Could you provide example code for interactive form

    Dear all.
    I have got document at link below
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    In that document it has some part of abap code.
    Could you have full example code for interactive form online and offline?
    Thank you very much.

    Hi,
    Go to the following link to know more about adobe interactive form.
    http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/bwp_interactive_forms_adobe.pdf
    The following link contains a offline application in ABAP. You can try it.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    For further questions, check the follow
    https://www.sdn.sap.com/irj/sdn/adobe
    Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
    Interactive Forms Based on Adobe Software: Overview
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
    Adobe Interactive Forms
    http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
    Taking interactive forms to next level
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
    Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
    http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
    Creating Interactive forms in webdynpro for java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    PDF-Based Print Forms/SAP Interactive Forms by Adobe
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
    Date Objects in Adobe Designer
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    Checking and Testing a PDF-Based Print Form
    http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
    Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
    http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf
    Hope this helps!!
    Regards,
    Arafat

  • Please provide some code for my problem..Thanks

    Hi friends,
    How to pick words starting with some sort from a word document and write the data to a text file..for example
    we have many words in document starting with PGOT..
    Now i have to pickup words starting with PGOTXXXX and write to a text file..
    How to achieve this with pl/sql..
    pls provide sample code...
    Thanks in advance
    asp

    A small change in the code will work. It goes like this..
    CREATE OR REPLACE PROCEDURE rw_demo IS
    InFile utl_file.file_type;
    OutFile utl_file.file_type;
    vNewLine VARCHAR2(4000);
    StartPos number;
    EndPos number;
    searchword varchar2(100);
    BEGIN
    InFile := utl_file.fopen('CTEMP', 'in.txt','r');
    OutFile := utl_file.fopen('CTEMP', 'out.txt', 'w');
    IF utl_file.is_open(InFile) THEN
    LOOP
    BEGIN
    utl_file.get_line(InFile, vNewLine);
    StartPos := 1;
    loop
    StartPos := INSTR(vNewLine,'PGOT',StartPos);
    exit when StartPos = 0;
    EndPos := INSTR(vNewLine,' ',StartPos);
    If EndPos = 0 then
    SearchWord := substr(vNewLine,StartPos);
    ELSE
    SearchWord := substr(vNewLine,StartPos,EndPos-StartPos);
    END IF;
    end loop;
    utl_file.put_line(OutFile, searchword);
    utl_file.fflush(OutFile);
    END;
    END LOOP;
    COMMIT;
    END IF;
    utl_file.fclose(InFile);
    utl_file.fclose(OutFile);
    END rw_demo;
    If you see my solution, i have a variable EndPos will contain the position of ' ' (a space) starting from the position of the string 'PGOT'. E.g. the line is "PGOTRFG ABC". Now as per the procedure StartPos will be 1 and EndPos will be 8. So the substr() will fetch PGOTRFG. Incase if the line is "PGOTRFG" then StartPos will be 1 and EndPos will be 0 and so the substr (in if part) will fetch PGOTRFG. you got it?

  • How to create the Sap script & Layout Set (wants sample code)

    Hi All ,
    Can you please provide me the step by step procedure
    to create the Sap script & Layout Set .(please provide sample
    code/links /docs for layout & print program).
    Regards
    Rahul

    hi,
    go through the following links  what i found to create sap script.
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    how to create a  scripts?give steps?
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links

  • Request for sample code of hr_ex_employee_api.actual_termination_emp

    Hi,
    I need sample code for hr_ex_employee_api.actual_termination_emp . anyone who worked on this api or who have knowledge of this api,Please send the sample code
    Thanks and Regards
    Dixit

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

  • Request for sample code, Validating XML Schema

    Does anyone have some sample code to validate
    an XML Schema with the Oracle parser?
    Also, the classgen code seems to have more XML Schema classes in it. There is an xschema.jar full of XML Schema related code. Would it be possible to use this code?
    I've tried DOMSample.java with the v2 parser. It seems to happily echo Schema based XML files that are obviously wrong. (I use Tibco's XML Authority to verify the XML file and XML Schema).

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

Maybe you are looking for

  • Importing adobe illustrator files into powerpoint. (Vector)

    How can I import vector Illustrator files into Powerpoint, so I can edit them later. I have tried PDF (won't work), WMF text breacks up and scaling makes the text crap! EPS looks rubbish. Any ideas? Thanks

  • GPS tracking in labview.

    I work with GPS simulation toolkit for labview. I want GPS tracking in other PC with USB GPS receiver and drawing track. It's possible? Some google maps/earth working API. I try some API, but it doesnt work. I use LV 2012 student edition. Thanks for

  • Palm Desktop 4.1.4 on Windows 7 64-bit

    I am a Volunteer here, not employed by HP. You too can become an HP Expert! Details HERE! If my post has helped you, click the Kudos Thumbs up! If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you

  • Replacement of iFrame in Netweaver CE 7.1

    As Iframe is deprecated and is no longer used. Is there any replacement of  Iframe UI in the new netweaver ce - java webdynpro environment ?

  • How to Extract data and reports from the SAP BW warehouse

    Hi to All Guru's I am new to SAP BW. Can any one help me to know, How to Extract data and reports from SAP BW. Do we use any tools.  After Extracting the data from SAP BW how can we move all the data to Cognos.  It would be kind enough to provide me