How to modify my Stack.java?????

I want to make my Stack.java doing like this:
stackType<nodeType<elemType>*> stack; //C++
stackType<int> intStack; //C++ code
My Stack.java:
public class Stack {
     TreeNode items[];
     int StackSize;
     int top;
    public Stack(int size)
         StackSize = size;
        items = new TreeNode[size];
        top = -1;
    public boolean empty()
         if(top == -1)
           return true;
        else
          return false;
    public boolean full()
         if(top == StackSize-1)
           return true;
         else
           return false;
    public void push(TreeNode c)
        if(full() == true)
           System.out.println("stack overflow");
        else
            items[++top] = c;
    public TreeNode pop()
         if(empty())
           System.out.println("stack underflow");
        return items[top--];
}

You don't need templates in java, since all java objects derive from java.lang.Object (it isn't possible either). Just use the original Stack (java.util.Stack). To push primitive types, just use the wrapper classes (java.lang.Integer, java.lang.Double...).
Nille

Similar Messages

  • How to get Test Utility for PI 7.3 Single Stack JAVA only.

    Hi All,
       We are having PI 7.31. Single Stack JAVA only.
    we want to test some scenario. Can anybody tell me how can i test the scenario in PI 7.3
    is there any test utility by which i can send some test messages to PI 7.3.
    from where to download this utility.?
    Regards,
    Umesh

    Hi,
    The test message functionality is currently available in  PI dual stack only..
    Lets hope that in future releases this functionality may available in Single Stack also.
    Regards,
    Mastan vali

  • How to modify Java options in Oracle 10g Application Server

    I am trying to modify the Java Options to specify the following field:
    -Djavax.xml.transform.TransformerFactory=
    org.apache.xalan.processor.TransformerFactoryImpl
    But I am unable to locate the Server Properties section on the Administration section. I had expanded the Prperties section fully also. I had logged in as oc4jadmin.
    Can anyone help me out in understanding how to modify the Server Properties. I have consulted the Oracle Documentation but still I cant locate the Server Properties section.

    Michel,
    I have logged in using the following URL: http://<machinename>:<port>/em. The URL eventually changes to http://<machinename>:<port>/em/console/ias/oc4j/administration upon successful login.
    I clicked on the Application Server and then clicked on administration link but I dont see Server Properties. I only see the following under Properties section:
    EJB Compiler Settings
    J2EE Websites
    JSP Properties
    Logger Configuration
    Thread Pool Configuration
    Shared Libraries
    I am sure I am missing something here.Can you please help me figure that out please.?

  • How can I use Seeburger java functions on SAP XI's user defined functions?

    Hi All,
    As my title implies; how can I use Seeburger java functions on SAP XI's user defined functions?  I've tried searching over the net in tutorials regarding this topic but I failed to find one; can someone provide me information regarding my question? thanks very much.
    best regards,
    Mike

    Hi Mike !
    You should check your documentation about which java classes you need to reference in the "import" section of your UDF. And also deploy the java classes into the java stack or include them as a imported archive in integration repository...it should be stated in the seeburger documentation.
    What kind of functions are you trying to use?
    Regards,
    Matias.

  • Error 500--Internal Server Error:How to modify req.setReportAbsolutePath

    I test a servlet but I get following errors. I use OBIEE 11g and Jdeveloper 11.1.1.3
    How to modify the source code and the req.setReportAbsolutePath?
    ===============error====================
    http://127.0.0.1:7101/Application4-Project4-context-root/bipservlettest
    Error 500--Internal Server Error
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ========source code============
    package mywebcenter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oracle.xmlns.oxp.service.publicreportservice.AccessDeniedException;
    import com.oracle.xmlns.oxp.service.publicreportservice.AccessDeniedException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.DeliveryRequest;
    import com.oracle.xmlns.oxp.service.publicreportservice.InvalidParametersException;
    import com.oracle.xmlns.oxp.service.publicreportservice.InvalidParametersException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.LocalDeliveryOption;
    import com.oracle.xmlns.oxp.service.publicreportservice.OperationFailedException;
    import com.oracle.xmlns.oxp.service.publicreportservice.OperationFailedException_Exception;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportService;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportServiceClient;
    import com.oracle.xmlns.oxp.service.publicreportservice.PublicReportServiceService;
    import com.oracle.xmlns.oxp.service.publicreportservice.ReportRequest;
    import com.oracle.xmlns.oxp.service.publicreportservice.ReportResponse;
    import com.oracle.xmlns.oxp.service.publicreportservice.ScheduleRequest;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.io.PrintWriter;
    import java.net.URL;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.namespace.QName;
    public class BipServletTest extends HttpServlet {
    private static final String CONTENT_TYPE =
    "text/html; charset=windows-1252";
    private static PublicReportServiceService publicReportServiceService;
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    public void doGet(HttpServletRequest request,
    HttpServletResponse response) throws ServletException,
    IOException {
    response.setContentType(CONTENT_TYPE);
    OutputStream os = response.getOutputStream();
    //PrintWriter out = response.getWriter();
    String sid = "";
    System.out.println("===57===");
    publicReportServiceService = new PublicReportServiceService(new URL("http://localhost:9704/xmlpserver/services/PublicReportService"),
    new QName("http://xmlns.oracle.com/oxp/service/PublicReportService",
    "PublicReportServiceService"));
    PublicReportService publicReportService =
    publicReportServiceService.getPublicReportService();
    //To get a session id
    System.out.println("===64===");
    try {
    sid = this.getSessionID("weblogic", "welcome1", publicReportService);
    } catch (AccessDeniedException_Exception e) {
    System.out.println("invalid user");
    //To generate a report and display it
    System.out.println("===72===");
    ReportResponse res = this.getReportInSession(publicReportService, sid);
    byte[] binaryBytes = res.getReportBytes();
    os.write(binaryBytes);
    response.setContentType(res.getReportContentType());
    public String getSessionID(String username, String password, PublicReportService publicReportService) throws AccessDeniedException_Exception {
    String sid = publicReportService.login(username, password);
    return sid;
    public ReportResponse getReportInSession(PublicReportService publicReportService,
    String sid) {
    ReportRequest req = new ReportRequest();
    ReportResponse res = new ReportResponse();
    System.out.println("===89===");
    req.setAttributeFormat("pdf");
    req.setAttributeLocale("en-US");
    req.setAttributeTemplate("Simple");
    req.setReportAbsolutePath("E:\\OracleBI_win2008_32_20101206\\user_projects\\domains\\bifoundation_domain\\config\\bipublisher\\repository\\Reports\\Samples\\11g Overview\\W2 2010.xdo");
    //req. setSizeOfDataChunkDownload (-1); //download all
    try {
    System.out.println("99");
    res = publicReportService.runReportInSession(req, sid);
    System.out.println("101");
    System.out.println("===100==="+res.getReportContentType());
    } catch (Exception e) {
    System.out.println(e);
    System.out.println("===107===");
    return res;
    ============Jdeveloper console==================
    [Another instance of the application is running on the server.  JDeveloper redeploy the application.]
    [Application Application4 stopped but not undeployed from Server Instance IntegratedWebLogicServer]
    [Running application Application4 on Server Instance IntegratedWebLogicServer...]
    [12:45:14 PM] ---- Deployment started. ----
    [12:45:14 PM] Target platform is (Weblogic 10.3).
    [12:45:14 PM] Retrieving existing application information
    [12:45:14 PM] Running dependency analysis...
    [12:45:14 PM] Deploying 2 profiles...
    [12:45:15 PM] Wrote Web Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\Application4\Project4WebApp.war
    [12:45:15 PM] WARNING: Connection ApplicationDB has no password. ApplicationDB-jdbc.xml file not generated for connection ApplicationDB.
    [12:45:15 PM] Wrote Enterprise Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\Application4
    [12:45:15 PM] Redeploying Application...
    [12:45:17 PM] Application Redeployed Successfully.
    [12:45:17 PM] The following URL context root(s) were defined and can be used as a starting point to test your application:
    [12:45:17 PM] http://192.168.1.17:7101/Application4-Project4-context-root
    [12:45:17 PM] Elapsed time for deployment: 4 seconds
    [12:45:17 PM] ---- Deployment finished. ----
    Run startup time: 3547 ms.
    [Application Application4 deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/Application4-Project4-context-root/bipservlettest
    ===57===
    ===64===
    ===72===
    ===89===
    99
    javax.xml.ws.soap.SOAPFaultException: oracle.xdo.webservice.exception.OperationFailedException: PublicReportService::generateReport failed: due to oracle.xdo.servlet.CreateException: Report definition not found:E:\OracleBI_win2008_32_20101206\user_projects\domains\bifoundation_domain\config\bipublisher\repository\Reports\Samples\11g Overview\W2 2010.xdo
    ===107===
    <Dec 8, 2010 12:45:24 PM PST> <Error> <HTTP> <BEA-101020> <[ServletContext@26496369[app:Application4 module:Application4-Project4-context-root path:/Application4-Project4-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         Truncated. see log file for complete stacktrace
    >
    <Dec 8, 2010 12:45:24 PM PST> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Dec 8, 2010 12:45:24 PM PST. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Dec 8, 2010 12:45:24 PM PST SERVER = DefaultServer MESSAGE = [ServletContext@26496369[app:Application4 module:Application4-Project4-context-root path:/Application4-Project4-context-root spec-version:2.5]] Servlet failed with Exception
    java.lang.NullPointerException
         at java.io.OutputStream.write(OutputStream.java:58)
         at mywebcenter.BipServletTest.doGet(BipServletTest.java:75)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = WIN-IT8WDLG81KH TXID = CONTEXTID = 55211ca27b9d1dfd:bd42a62:12cc7606a10:-8000-000000000000009c TIMESTAMP = 1291841124147
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >
    <Dec 8, 2010 12:45:34 PM PST> <Alert> <Diagnostics> <BEA-320016> <Creating diagnostic image in c:\users\administrator\appdata\roaming\jdeveloper\system11.1.1.3.37.56.60\defaultdomain\servers\defaultserver\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_12 with a lockout minute period of 1.>

    am able to login
    http://192.168.75.140:7001/console/login/LoginForm.jsp
    from this environment-> servers-> all servers(adminserver,soa_server1, oim_server1, oam_server1) status is running,and health is ok.
    I have started these servers from command line <base_domain/bin/sh startManagedWebLogic.sh oim_server1
    result is <server started in running mode>
    now I shutdown the oam_server1 and oim_server1
    again I started the oim_server1 as above
    command line result is < <May 30, 2013 7:54:47 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    but in (http://localhost:7001/console) window oim_server1 status is unknown...

  • How to modify a pod in dashboard component?

    Hi
    I am new to flex and programming in general. So please do forgive me if I do not express my query clearly or with the right info.
    I am trying to build an application to show case photographs and one of the components I am using is the Dashboard built by WASI and can be seen here. It has several pods but I would like to have one of the pods load up with my own default position, width and height yet still retain the characteristics of minimizing, maximizing & drag and drop. Other than through the pods.xml file, I do not know how to modify (or which other file I should modify for that matter) so that when the application loads, it always starts with the particular pod at my desired height (top to bottom), width (about 1/4 of screen real estate) and position (left side of the screen)
    Below is the pods.xml file and attached is the project zip file.
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    Used to specify the pod content in the dashboard sample app.
    To keep the implementation straightforward, all of the data is
    stored in this file rather than a database or separate XML files.
    -->
    <views>
        <!--
            <view> - Represents a tab.
                id - Must be unique so state can be saved properly.
                label - The label of the tab.
                <pod>
                    id - Must be unique per view so state can be saved properly.
                    type - Type of pod content. Valid values are chart, pieChart, form and list. "chart" and "pieChart" each have drill downs to one level.
                           "chart" is a fixed drill down to 30 days in a month.
                           "pieChart" is a fixed drill down to four geographical regions.
                    title - The title of the pod.
                    dataSource - The xml to load for the pod.
                    selectedViewIndex - Sets the default content view for pod content with a view stack.
                    valueField - For chart pods, the field from the xml data to use for displaying the value. This field should be numeric.
                    categoryField - For chart pods, the field from the xml data to use for displaying the category.
                    dataTipUnitLabel - Rollover label used for displaying the units.
                                       Label is delimited by "*" and places the first value before the unit and the second value after the unit. Ex: $50M.
                    dataTipLabelField - Rollover label field used for PieCharts.
                    labels - For form pods, used to label the fields.
                    dataFields - For form pods, used to assign the data fields to the form fields.
                                 The second field should always be a date expressed in milliseconds since the epoch.
        -->
        <view
            id="view0"
            label="Sales">
            <pod
                id="pod00"
                type="chart"
                title="Yearly Revenue"
                dataSource="data/revenue.xml"
                selectedViewIndex="1"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod06"
                type="pieChart"
                title="Revenue by Region"
                dataSource="data/revenue_by_region.xml"
                valueField="value"
                categoryField="region"
                dataTipUnitLabel="$*M"
                dataTipLabelField="region"/>
            <pod
                id="pod01"
                type="chart"
                title="Yearly Profit"
                dataSource="data/profit.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
            <pod
                id="pod02"
                type="form"
                title="To Do"
                dataSource="data/tasks.xml"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod03"
                type="list"
                title="Company News"
                dataSource="data/news.xml" />
            <pod
                id="pod04"
                type="form"
                title="Sales Pipeline"
                dataSource="data/pipeline.xml"
                selectedViewIndex="1"
                labels="Name,Date,Description"
                dataFields="name,date,description" />
            <pod
                id="pod05"
                type="chart"
                title="Projected Revenue"
                dataSource="data/projected_revenue.xml"
                valueField="value"
                categoryField="month"
                dataTipUnitLabel="$*M"
                dataTipLabelField="month"/>
        </view>
    Thank you very much for any help you may provide.
    Best regards
    Vanery

    hi,
    u may upload a file from the desktop in ur webdynpro .. thn u can save it in database and can download accordingly..
    1.create a node 'FILEUPLOAD' with 2 attributes
    a) FILECONTENT type XSTRING
    b) FILENAME type STRING
    2. Create a fileuplaod uielement
    a) bind the data property with attribute 'FILECONTENT'
    b) bind the filename property with attribute 'FILENAME'
    3. Create a button 'UPLOAD'
    a) create the action method for this button and save the contents of file in database
    Data l_node type ref to if_wd_context_node.
    Data l_stru type wd_this->elements_cn_fileupload.
    l_node = wd_context->get_child_node( 'FILEUPLOAD' ).
    l_node->get_static_attributes( importing static_attributes = l_stru ).
    "save l_stru-fielcontent in database. Your file will be saved in the database in XSTRING format.
    Now when you want to display this file;
    1. Create a Node 'FILEDOWNLOAD' with 1 attribute
    a) FILE type XSTRING
    2. Create a filedownload uielement
    a) bind the data property with the attribute 'FILE'
    Fetch the file from database and set the File attribute of the filedownload uielemnt to display the file.
    regards,
    Amit

  • How to modify a part of task parameters via worklist (not all paramenters)?

    I am making a demo of showing the functions of human workflow / worklist using Oracle SOA Suite. The following process is not a real project. But I have some questions about how to modify parameters in worklist and jdeveloper. Please help me.
    I create a BPEL with human workflow. It has 2 human tasks.
    The first human task is a single approver type and the parameters contents can be modified via worklist. The user is oc4jadmin.
    If oc4jadmin rejects it, the process will go to the second human task.
    The second human task is a sequential lists of approvers type and the parameters contents can be modified via worklist. 3 users (the order is : jcooper -> jlondon-> tolstoy) can access it. The process is able to abrupt completion if anyone rejects it.
    After the process is invoked in BPEL control,
    1, oc4jadmin login worklist and modified the data, than reject it.
    2, jcooper can login worklist and changed the data, save it, and approve.
    3, jlondon login, view data, change data, and save it. However, if jlondon modified the
    My questions are as follow:
    1, If oc4jadmin rejects the task in worklist, how can I set the parameter cannot be modified and saved.
    2, schema:
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/BPEL_single_sequential"
         xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:vv="http://xmlns.oracle.com/BPEL_single_sequential">
         <element name="BPEL_single_sequentialProcessRequest">
              <complexType>
                   <sequence>
                        <element name="input" type="vv:complexType1" maxOccurs="unbounded"/>
                   </sequence>
              </complexType>
         </element>
         <element name="BPEL_single_sequentialProcessResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="complexType1">
    <sequence>
    <element name="pid" type="string"/>
    <element name="ptitle" type="string" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    </schema>
    In the worklist, the user can add another pid and leave the ptitle empty. In the schema, the ptitle (minOccurs=1) should appear at least once. How can I set that, if the user add another pid and must add at least one ptitle before saving it?
    3, One element likes gender=male/female. In the worklist form, the default graphic component is an input field. How can I set the component to a dropdown list and it highlight value.
    4, The default form is jsp file and it is beautiful. Could I make a jspx page and replace the jsp page? How to replace the jsp to jspx?
    5, If I use sequencial approver type for the human task, how can I set various page layout? For example, user 1 can view and modified all parameters. User 2 can view some part of the parameters and changes it. User 3 can view all paramters but can just modified some of them?
    Thanks a lot!
    Edited by: [email protected] on 2009-3-10 上午12:39
    Edited by: [email protected] on 2009-3-10 上午12:44
    Edited by: YE

    Hi,
    all what you asked about can be done through java script.

  • How do u get a Java method to call itself? Not working here.

    How do u get a Java method to call itself? Not working here. I am using the "this" keyword. Thanks.
    Below, I would like to call checkIt method in itself.
    Ex.
    public class ABC {
    public String checkIt(String abc){
    if....
    checkIt(abc);
    }

    Assuming you are getting stack overflows (likely if you're unfamiliar with recursive calls), you need to put some sort of check condition inside the method so it doesn't call itself endlessly (AKA "infinite recursion").

  • How to modify Adapter parameters in PI 7.1 EHP1 ? using NWA

    Hi,
    Please advise me how to modify adapter service parameters in PI 7.1 EHP1 using nwa ?
    in the previous version 3.0 and 7.0, i can use visual admin ---> cluser -
    > services and i can find all the adapter service and modify the parameters.
    Thank You and Best Regards
    Fernand Lesmana

    Hello Fernand
    You can use the following alias to link directly to the PI adapter services
    http:<hostname>:<port>/nwa/sys-config
    See the link below for further details on this.
    Java Service Properties for the Adapter Framework 
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/9f/cbd1413f389c39e10000000a155106/content.htm
    Regards
    Mark

  • How to send attachments using java application and outlook

    Hi ,
    I created an application in java which is as
    on the Conference Tab i can schedule a conference and with the send command on page it map all the scheduled data to outlook(with all conference details) and using outlook send option the mails are send to appropriate user.
    but now i want to modify this application such as when i use the send command from my jsp page it should attach the file that is in .vcs or .ics format for auto updation of user calender.
    can any one know how to send attachment using java application .

    Last time I checked, SMS was a service between carriers and doing SMS yourself was really tricky. Some services existed to let you do it but as I recall they wanted non-trivial money.
    However, most phone carriers provide an email-to-SMS bridge of some kind.
    So the easiest thing is just to send an email.
    That's sending from a non-phone to a phone. There's a J2ME library to send/receive SMS from/to a phone.
    However, this is from memory, and a little out of date, so I could be entirely wrong. Hope it helps anyway.

  • Legalities of modifying open source Java classes in a closed source App

    If there is a better forum for this thread please let me know. I looked and looked and couldn't find any place where it seemed to fit.
    Simply put, I want to know the legal ramifications of modifying open source Java classes which have been included in a commercial closed source application.
    The specifics are my problem with the javax.servlet.http.Cookie classes interpretation with RFC 2019 in regards to acceptable cookie names. I currently am debating that in a thread here:
    http://forums.sun.com/thread.jspa?threadID=5313146
    I am using Adobe ColdFusion which is a J2EE application server running as a servlet in Macromedia JRun. JRun parses request headers and creates instances of the javax.servlet.http.Cookie class for each cookie. (An error is thrown from the constructor if the cookie name is not accepted)
    I was able to work around the problem by modifying the code in the Cookie class, compiling it, and using jar.exe util in my SDK to update the new class into the jrun.jar file. I blogged it here:
    http://www.codersrevolution.com/index.cfm/2008/7/15/No-Cookie-For-You-Second-Solution
    My problem is I'm not sure if what I did conforms to the license for ColdFusion. Technically JRun is a closed source program I am not allowed to modify, but all I changed was a open source class from Sun. I didn't even need to decompile anything.
    I have Googled in vain, but I can't seem to find any information that applies to modifying pieces of open sourced code contained inside of a closed source application.

    bdw429s wrote:
    "I thought it was straightforward and I didn't feel that lawyers were necessary. But you didn't seem to want to do that."
    I'm unclear on whether you are implying that I didn't want to hire a lawyer or that I didn't want to read the licenses myself and make a decision. If you meant the former, you're darn right. I'm not paying anyone a dime to satisfy my personal acedemic curiosity concerning a random project I've been messing with in my spare time that isn't related to to any job or business decision. I'm simply looking for information because that's I do when I don't understand how something works. First, I Google the hell out of it and if I can't turn up satisfactory answers (or any at all) I find an applicable forum and ask there.
    If you were implying the latter (that I didn't want to read the licenses myself) then you haven't been reading my posts. I stated to jschell that I have no problem attempting to figure out a license agreement on my own. In fact, I have read the ColdFusion agreement from Adobe before posting here. I talks about modifying the software, but I still don't think it is crystal clear about whether third part code falls under it's own license AND Adobie's or just its own license. Then that is the point at which you must do one of the following
    1. Consult a lawyer.
    2. Decide to allow for a liberal interpretation (thus you can use the code) and understand that you personally are liable if your interpretation is wrong.
    3. Decide to allow for a conservative intepretation to avoid liable on your part.
    Regardless of what anyone says here it won't remove your own liability.
    >
    The source for the java.servlet.http.Cookie class stated that it is release under the Apache license 2.0 whcih I read up on. I will admit I'm not actually sure how to tell the exact verison of the Java Servlet API classes that JRun is built on other than to cross reference which version of the servlet API came out with which version of Java, but that is a suspect method. I have been programming for more than 8 years, but I'm relatively new to the Java landscape.
    I'm not looking for handouts here. I know this was a tough subject and I was prepared for NO ONE to respond and I would have been ok with that. I have no problems making decisions on my own and I have no intention of passing the buck to anybody.
    Here's the thing though. A useful response is one that states some facts (or opinions), references a similar peice of software for comparison, a court case, or provides a few links to some open source-type websites were I might find more information about my issue.
    Telling me to hire a lawyer and chastising me for "pass the buck" is doing about as much good as Linux snobs telling people to RTFM.
    Wrong.
    A lawyer is the best and most correct answer.
    And it is the first answer that should always be given with these sorts of questions.
    If you choose not to accept the best and most correct answer then that is up to you.
    I understand that a large number of people on public forums are lazy sponges who wish someone would just post all the code they need, but assure you I am not that person. I'll admit I don't know much about open source and I'm not sure where to start looking since I seem to have a scenario which is not really discussed much on the web. All I am looking for is information and sincere help.And presumably you also understand that we certainly can't give you legal advice but also it would be foolhardy for you to accept it as well.
    You learn by reading many license agreements and reading as much about legal situations involving computers and related technical cases as you can.
    And until you are comfortable making such decisions yourself without asking then the only useful answer is ask a lawyer.

  • How to access a Stack class from different classes

    Hi
    I have a Stack implemented as Stack.java. I have 2 more java files Control.java and display.java.
    In Control.java
    I have created Stack stack = new Stack(); and am pushing values in the stack.
    In display.java i have some conditions where i want to push some values in the same stack as that on the Control.java.
    How do i acces the stack in Control.java from other files like display.java

    In display.java i have some conditions where i want
    to push some values in the same stack as that on the
    Control.java.
    How do i acces the stack in Control.java from other
    files like display.javaPass that object reference to some method. :-)

  • How to modify Smartforms & Script on new Macbook

    Hi there
    I am new to Macbook but i have install SAP JAVA GUI.
    Able to work on SAP, but not able to work on SAMRTFORMS & SAP SCRIPT
    Can any one tell me how to modify them on MACBOOK,
    Thanks  in ADVANCE.

    Hello,
    unfortunately, authoring functionality for smart forms is only available in SAP GUI for Windows.
    See [note 736147|https://service.sap.com/sap/support/notes/736147].
    Best regards
    Rolf-Martin

  • How to set the stack size for alchemy application?

    Anybody know how to set the stack size for alchemy application?
    If you know, please tell me how to adjust the stack size for alchemy application?

    Hi,
    The stack size is set as public const gstackSize in the alchemy generated code.  You can see this if you build with ACHACKS_TMPS set.  The default is one megabyte.
    One way to change the stack size is to use llvm-dis to disassemble avm2-libc/lib/avm2-libc.l.bc, generating avm2-libc.l.ll, modify the constant, and then use llvm-as to recompile your modified library and overwrite the old one.  These utilities should be in your path if alchemy is set up.

  • How to modify the jar files information for Script Assets??

    Hi,
    I am using Open Script 9.2. We can add the external JAR files using Script->Script Properties--> Script Assets. I need to change the jar files when ever i am going to execute no of scripts. How can I modify them using JAVA Coding without manual handling. Is there any specific methods existed in OpenScript to serve the above scenario.
    Thanks in Advance.
    Thanks & Regards,
    Siva Thota

    Hi,
    When you say alter the jar file, do you mean alter the contents of the java code within the jar. If this is yes then the simple answer is no. As you are probably aware, a jar file contains pre-compiled java code, which you will not be able to alter. What is it you are trying to achieve?
    A simple answer maybe to use a child script which you can include into your main script. You can then change the code in the child script, and when you play back, this 'new' code will be compiled, and included within the replay.
    Regards
    Wayne.

Maybe you are looking for

  • Getting the data from a TCP/IP packet

    I am dealing with an industrial network that sends and recieves data over TCP/IP between a sort of supervisory system running on Unix and some machines via a bridge that converts messages onto other non TCP/IP networks. This is all old legacy equipme

  • 2nd Gen Ipod will sync with itunes but will not download new song

    My Ipod will sync with itunes but will not download newly purchased songs.  It is Ipod nano 2nd gen.

  • How to remove Snow Leopard (or any OSX system) from a volume

    Hi, when I installed Lion I cloned my Snow Leopard system on another volume, in case I would encounter problems. Since then this second but unused system resides on that volume, beside other files. How can I remove Snow Leopard without erasing all of

  • Need help resolving Web Cache upgrading error

    I successfully installed 10g AS on top of my 9i AS (9.0.3) on a different Oracle home. Then I proceeded to run the Upgrade Assistant (iasua.bat). Everything went well except the upgrade of Web Cache failed. I'm only installing/upgradeing the J2EE and

  • OS X from a Linux admin's perspective

    I was tasked with getting an rsync daemon running on a lion box for backups from linux machines. Problems: 1.) The rsync version shipped with lion is buggy and outdated. 2.) Updating it requires a workaround solution using macports (which requires xc