Want to do XI Scenarios with Java

Hi Experts,
I have Java and  XI knowledge both, but I am little bit confused  where to use both together  please any one can help me wat all the scenarios can I develop with the help of both and the procedure to do them.
All the Scenarios wat are possible with both
Thanks in Advance......
Venkat Anil
Edited by: Venkat Anil Gannavarapu on Jul 25, 2008 2:17 PM

Hi,
You can use your java knowledge in the following cases :-
1. User Defined Functions
2. Java Mapping
3. Java Functions in XSLT mapping
4. Java Proxy for Java Application
5. Java Based Web Services
6. Adapter module Design
Thanks
Chandra

Similar Messages

  • How to get php content with java ??

    i have made a php file what will display a number,
    here's a example
    <?php
    if ($action == "answer"){
    echo "18274926";
    ?>
    no i want to get the number with java
    so here's my java code
    import java.io.*;
    import java.net.*;
    import java.util.Date;
    class URLConnecties
        public static void main(String args[]) throws Exception
            int teken;
            URL url = new URL("http://www.gamer.mineurwar.nl/net/javachallenge.php?command=DaTe");
            URLConnection urlconnection = url.openConnection();
            System.out.println("Type inhoud: " +
                urlconnection.getContentType());
            System.out.println("Datum document: " +
                new Date(urlconnection.getDate()));
            System.out.println("Laatst gewijzigd: " +
                new Date(urlconnection.getLastModified()));
            System.out.println("Document vervalt: " +
                urlconnection.getExpiration());
            int lengteinhoud = urlconnection.getContentLength();
            System.out.println("Lengte inhoud: " + lengteinhoud);
            if (lengteinhoud > 0) {
                InputStream in = urlconnection.getInputStream();
                while ((teken = in.read()) != -1) {
                    System.out.print((char) teken);
                in.close();
    }if you change the url ro a .html file it displays the code correctly(source),
    but when trying to get the content of a php file (the number)
    it says that there is no content from the php file
    yhe source of the original php file what's in the code can be found at
    www.gamer.mineurwar.nl/net/javachallenge.txt

    The 'content' is generated dynamically by a PHP script so the "content lenght" can't be known in advance by the server. For this reason connection.getContentLenght() returns -1; it doesn't mean that there is no content, only that it can't be known how much there will be.
    To solve the issue, remove the if statement from around the while-loop:// if (lengteinhoud > 0) { DELETE THIS LINE
    InputStream in = urlconnection.getInputStream();
    while ((teken = in.read()) != -1) {
        System.out.print((char) teken);
    // } and this too

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • In MTO   scenario i want to have some materials with out account assignment

    Hi,
        In MTO scenario i want to have some components in my BOM  to not to get planned with respect to sales order stock / account assignment of specifice sales order( say "C" class items). if i use Consumption based planning" VB" for those
    materials it works with manual reorder point planning.but i cannot estimate my correct reorder point for that material.because it is not constant requirement .It varies basing on customer sales order for that period.
       My question is how to plan  these components in MTO scenario with out having idea of correct manual reorder point for those materials.
    thanks in advance
    regards
    madan

    Madan,
    Automatic Reorder Point Planning
    In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
    The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
    Since the forecast is carried out at regular intervals, the reorder level and the safety stock level are continually adapted to the current consumption and delivery situation. This means that a contribution is made towards keeping stock levels low.
    So you need to maintain the forecast view for the material. The forecast values comes from consumption data. If the system in place for some time then consuption data will be automatically by the system based on the material issues. I am not sure if you can enter the consumption manually.
    Regards
    Ram

  • Want to Generate custom logs with Log4J within Java Embedding activity

    Hi Gurus,
    i want to Generate custom logs with Log4J within Java Embedding activity. For that i have performed some steps, but the log file has not been created.
    ServerSide Configuration:
    *===============*
    1. I have copied the log4j-1.2.15.jar file to the "oracle.soa.ext_11.1.1" location and recreate the oracle.soa.ext.jar file using an-script, which appends the log4j.jar file to the classpath.( That was created successfully)
    2. Specify a File location in log4j.xml for creating the log file. (e.g. (<middleware_home>/config/customLog.log)
    3. Then create a folder and add log4j.xml and log4j.dtd file under the folder.
    4. Modify the startManagedWeblogicServer by adding JAVA_OPTIONS="-Dlog4j.configuration=<middleware_home>/config/log4j.debug.xml”
    5. Then restart the SOA server.
    log4j.xml :
    I have used fileAppender.
    DevelopmentSide Configuration:
    *===================*
    1. Create synchronous BPEL process and Add "JAVA Embedding Activity" inbetween receiveInput and replyOutput activity.
    2.Import the log4j-1.2.15.jar to the project libs
    3.In the BPEL source code, import the Logger class.
    4.Insert the code in the JAVA Embedding Activity
    Logger logger = Logger.getLogger("CustomLog");
    logger.info("CustomeLog " + getTitle());
    Compile and deploy the project into the SOA_server and test it. Test status is completed but log is not created in the mentioned location.
    Ref: http://blog.andrade.inf.br/search/label/Log4j
    Is there any other way to achieve this requirement. Please suggest.
    Thanks in Advance,
    Sharmistha

    You can try this.
    http://veejai24.blogspot.co.uk/2008/04/simple-way-to-implement-log4j-in-your.html
    Thanks,
    Vijay

  • I want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these

    i want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these
    IF I CREATE SERVICE ORG WITH SERVICE SCENARIO ORG DATA PROFILE,
    MY PRICING IS NOT GETTING DETERMINED AS IT IS LINKED TO SALES ORG AND DISTRIBUTION CHANNEL THROUGH PRICING DETERMINATION SO HOW TO DO THE CUSTOMIZATION FOR THIS SITUATION
    WITH REGARDS,
    SATHISH

    Hi Satish,
    Please assign the org det. rules to org det. profile with Sales and Service scenarios and then assign the org. det. profile to transaction type. The below screenshot is just for your reference.
    Hope it would fix your issue.
    Regards,

  • I want to get the source code of the examples of berkeley DB with Java

    Hi
    I want to get the source code of the examples of berkeley DB with Java
    Thanks and Regards
    Rahul

    Look in the "examples" directory, in the BDB JE package that you downloaded.
    --mark                                                                                                                                                                           

  • I come from china,I want to make friends with java programmer!

    I am postgraduate now in beijing, I am study java.I want to make friends with java programmer.

    Hi,
    You wana be a freind, OK. Here's my email:[email protected] I hope you'll have many good stuff to talk about. I would still post all the questions on the forum.
    Take it easy.
    Your Firend.

  • I want to make an online radio with java

    I want to make an online radio with java. Can someone point in the right direction in what I would need to know and do.

    you will have to learn about java media framework.
    And probably live audio streaming too

  • I want to read and assign value of ADF Table rows  with Java Script

    Hi,
    I want to read and assign value of ADF Table rows with Java Script, but I cant true index of current row , so I assign wrong value to anathor column of ADF Table.
    My Code;
    ADF Table items
    <af:column sortProperty="Adet" sortable="false"
    headerText="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.labels.Adet}"
    binding="#{backing_ucret.column2}" id="column2">
    <af:inputText value="#{row.Adet}"
    required="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.attrDefs.Adet.mandatory}"
    columns="10"
    binding="#{backing_ucret.inputText2}"
    id="inputText2" onchange="getTutar('#{bindings.voHarcamaOdeme1Iterator.rangeStart + bindings.voHarcamaOdeme1Iterator.currentRowIndexInRange + 1}','#{bindings.voHarcamaOdeme1Iterator.estimatedRowCount}','#{row.index}')">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.formats.Adet}"/>
    </af:inputText>
    </af:column>
    MY JAVA SCRIPT CODE
    <f:verbatim>
    <script language="javascript" type="text/javascript">
    function getTutar(rowkey,totalrow,currentRow){
    alert('rowkey--totalRow--currentRow-->'+rowkey+'--'+totalrow+'--'+currentRow);
    if (currentRow==0) {
    rowkey=totalrow-1;
    }else{
    var rw=totalrow-currentRow-1;
    rowkey=rw;
    alert(document.getElementById('form1:table1:'+rowkey+':inputText8').value);
    alert(document.getElementById('form1:table1:'+currentRow+':inputText8').value);
    var birim_ucret=document.getElementById('form1:table1:'+rowkey+':inputText8').value;
    var adet=document.getElementById('form1:table1:'+rowkey+':inputText2').value;
    document.getElementById('form1:table1:'+rowkey+':inputText3').value=birim_ucret*adet;
    document.getElementById('form1:inputText6').value=0;
    var t;
    var toplam=0;
    alert('before Sum');
    for (var i=0;i!=totalrow-1;i++){
    t = document.getElementById('form1:table1:'+i+':inputText3');
    toplam+=t.value*1;
    document.getElementById('form1:inputText6').value=toplam;
    </script>
    </f:verbatim>

    You can achieve the use case you describe with partial page rendering (PPR), a feature of the ADF Faces framework. Here are a few posts that achieve an interactive behavior using PPR. Off the top of my head I do not know of an exact example, but this should be a good starting point:
    http://thepeninsulasedge.com/blog/2006/09/12/adf-faces-aftableselectmany/
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • J2se version="1.6+" in JNLP not working on a client with Java 1.5

    Hi all,
    In my deployment scenario I have two jnlp files, one for the app and one for its installer extension. The deployment process works fine on a client with J2SE 1.6 but there are some problems when the client has an older Java installed.
    I am trying to enforce a J2SE 1.6 version for my app deployed with WebStart and I have found that
    <j2se version="1.6+" ...> has no effect.
    The solution that I have found was to change "1.6+" into "1.6.***" and thus the JWS will download and install JRE 1.6 (however I was expecting it to download the latest JRE (update 16) but it installs 1.6 update 7).
    Could anybody confirm that?
    Thank you in advance.

    Thanks for the reply. I think Sun should update the auto-downloaded jre from 6u7 to the latest one.
    But this is a minor issue. The problem from my post is that you cannot impose a j2se version number 1.6 or greater. IOW <j2se version="1.6+" ... > has no effect. I have tested this on a clean win xp machine that had installed only j2se 1.5.
    I think it is a bug in jws but I want to check this issue with others.

  • XSLT Mapping with Java Enhancement

    Hi All
    I am working on XSLT Mapping with Java Enhancement.
    To do this scenario i have followed the following link.
    http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/frameset.htm
    As per the above link I have created Source and Target Data Types , Message Types , Mesage Interfaces, XSLT Mapping (using the transaction XSLT_TOOL) and Interface Mapping part and configred a simple file to file scenario in the ID part.
    Apart from this I have wirte the java code, compile the java code, create the jar file using .java and .class file and after creating the jar file import the .jar file in the imported archive of the IR..
    when I am trying to execute the scenario I am getting the successful message in SXMB_MONI but the target file is having the payload as given below.
    <?xml version ="1.0" encoding="UTF-8"?>
    <name xmlns:javamap="java:com.company.group.MappingClass"/>
    And as per the XSLT mapping the payload should be as below
    <?xml version ="1.0" encoding="UTF-8"?>
    <person>
    <name>Rinku Gangwani</name>
    </person>
    I have also followed the following blog link but still i am getting the same issue
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    could you please tell me what can be the reason that i am getting the blank targt field values in the payload.
    Thanks
    Rinku Gangwani

    Hi,
      The Transaction code XSLT_TOOL for ABAP xslt mapping.But the Java Enhancement is used for normal xslt mapping which we created using Stylus Studio.You can not access the Java Enhancement in ABAP xslt mapping.
    If you want to use Java Enhancement in xslt mapping then create a xslt mapping using Stylus Studio and save the file as .xsl and zip the .xsl and import to import archive.
    Regards,
    Prakasu.M
    Edited by: prakasu on May 28, 2009 1:46 PM

  • File To Mail Scenario With An Attachment

    Hi All,
    I Want to Implement a FileXI--Mail Scenario With An Attachment
    I Want to Send a Text File From the File System As An Attachment to the Mail.
    Can We Do this With out Doing JAVA Or XSLT Mappings in this ???
    Please Give me the Steps That I Have to Follow
    Regards
    Babu

    Babu,
    I am not sure how complex is your file sturcture and the mapping. But we can also achieve without java or xslt mapping also. Please check these weblogs:
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    Also you have to use module swap for sending the attachment as txt file. Please check this weblog for this:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0964d7c-e66e-2910-24bb-ac535e4a5992
    Regards,
    ---Satish

  • Executing a file with Java?

    Hi,
    I wanted to know how I could execute a file with java. Here are a couple scenarios - let's say I am developing an anti-spyware utility and I wanted to first write a batch file, and then create it in a folder, then run it when they click "Run". Then afterwards I want to shutdown their computer.
    My Mindset:
    - FileWriter to create the .bat and write the Batch commands.
    - Execute the batch file.
    - Execute the shutdown.exe file to reboot their PC.
    So my simple question is, how can I execute a file?
    Thanks!
    -Josh

    Well here is the code I have:
                try
                    Runtime.getRuntime().exec("cmd.exe /c test.bat");
                catch(IOException e1)
                    //NOTHING
                }Now my cmd.exe is obviously in my Windows System32 folder, and my "test.bat" file is in my C:\ root directory. So I am wondering why that wont execute. I tried a fer other things too like:
    Runtime.getRuntime().exec("cmd.exe  c:\test.bat");that didn't work either, because you can't have a "\" in a string...
    So how can I get this thing to execute the batch file?

  • Workflow intergration with Java

    Dear All,
    I have the requirement in which I have to integrate the workflow with Java.
    The scenario is like the person want to trigger the workflow from web or mobile device , and want to do all the relevant things related to workflow like approval rejection through web or mobile device.
    Is this possible. If yes then how , how we can get the action user done on the web or mobile device.
    Do i have to make any RFC or BAPI for this?
    Kindly help and give suggestion to achieve this.
    Thanks in advance.
    Regards,
    Rachit Khanna

    Hi Chandra,
    As mentioned in the doc, I am looking for the below node which is not there in my system.
    From my system:
    I think the reason might be same for not having the node here in SPRO and not having the WF standard services(WFSERVICE andWFHUBSERVICE).
    By the way the package is there.
    Thanks & Regards,
    Hafizul

Maybe you are looking for

  • How do I get past "Unable to Verify Hotmail Account Information" on iPad2?  Can't retrieve my Hotmail e-mails from my iPad, Help!

    Bought a new iPad2 with wi-fi access.  I am at home on my wi-fi network using iPad.  Trying to add my Hotmail account to the iPad so I can retrieve my e-mail messages.  When I try to add the Hotmail e-mail account to the iPad, I select Windows Live H

  • Access/set dynamic configuration in client/server abap proxy

    Hi, I have 2 question regarding reading/setting dynamic configuration in ABAP proxies: 1) Is it possible to set dynamic configuration objects in a server abap proxy (SAP --> XI)? When looking at the class CL_PROXY_FRAMEWORK is looks as if it is possi

  • No History profile

    Dears, I figured out that I have no History in my profile Although I published new discussions or answers. Do you know if is it normal or not? Thanks in advance for your help! Kr, JP

  • Behaviors Panel Missing columns FW-8

    I'm running fireworks 8 on an intel Macbook, OS 10.4. When I open the behaviors panel, I get a 'onMouseOver" listing but nothing else. Cannot seem to highlight an event and there are no actions or events headings in the panel. As say, a rollover, the

  • Multiple wake-up times with pm set

    Hello, I have a question. I have 2 workflows that I have built through automator. I want them to start everyday at 4:00 and the other one to start at 22:00. The problem is that at those times, my mac would be asleep (or completely off) and automator