Where next for Java?

What are Sun's plans for future changes to the Java language and API? I can think of a few cool things that Sun could go for:
* Tuples, a la Python, Prolog, and others.
* Multi-dimensional arrays (jagged arrays suck, am I right?)
* Better support for the Collections API in Swing.
* A first-class calendar component for swing, like JCalendar or the MFC calendar.
* Currying! Just kidding.
* Operators for BigDecimal and BigInteger, and java.lang.Math support for them too.
* Some sort of a SortedList collection, for lists that have to stay sorted.
That's just my little want-list for Java 1.6. I'd regard any one of these as a HUGE enhancement to Java. Thanks for reading!

A mixin is like a data member whose methods get exposed as part of the owning object. The idea is that if your class needs to implement some interface, you can use an object that already implements that interface to do it.
Suppose I have a class Foo that needs to implement interface Heuvos:
class Foo implements Heuvos {
}Rather than implement the methods of Heuvos directly, Foo uses another object -- the mixin -- to implement that functionality.
class Foo implements Heuvos {
    mixin Heuvos h;
    public Foo(Heuvos input) {
        h = input;
}See? The object gets mixed into our class, and handles the implementation of the Heuvos interface. It's like multiple inheritance, but without the potential problems with constructors and cyclic inheritance. Plus, you can decide at runtime what object will provide the implementation -- this makes the technique extraordinarily flexible.
Personally, I think Mixins would be a great addition to Java. It would be a non-trivial addition to the language, but boy is it ever a powerful one!

Similar Messages

  • What next for java?

    Hi this is a generic question, just for a discussion. However I was thinking, what will come next for java? What would developers want to see in java?
    I do not know if this question has been asked before, however it would be intresting to know what other people expect to see in java in the future.
    In the last version of j2se we found out new elements like generics, enum, or like the following which I do not know the name of:
    public void doSomething(String... strings){
         for(String s: strings){
              System.out.print(s);
    }So now I was windering what you people expect to see next in Java? Do you people think java can still continue to evolve, etc
    regards,
    sim085

    The reason of this post os not to explain me what those things are (I did not relaize I placed two new elements there from the J2se 5.0 ... the cool thing is the varargs ... notice the three dots in the parameter section of thre method) :)
    However my post is there to see what other people want to see in Java next :) Thanks for the answer however :D
    regards,
    sim085

  • How to disable Next Generation Java Plug-in for GPO software deployments?

    Is there a way to disable the Next Generation Java Plug-in using a script or batch file for GPO software deployments?
    Our group needs to deploy JRE 6 Update 20 to a large number of Oracle Financials users. As part of this deployment, we need to disable the Next Generation Java Plug-in as part of the installation for each desktop. Our plan is to extract the MSI installer package from Sun and create a GPO for software deployment.
    It seems you cannot disable the Next Generation Java Plug-in using a simple registry hack or customized MST transform file. Is there another method for disabling Next Generation Java Plug-in?

    btenney,
    Thanks very much for your suggestion. Can you explain what the parameters are on the ssvagent.exe that you noted -high -jpisetup -old? I can't seem to find any information on the parameters. Also, will this set the configuration just for the user logged on (current user) OR for all users existing and future?
    We are having trouble getting next-gen java shut off for all possible users that may logon to a machine in future .. thus looking at putting in bootup login script, but hoping there is a better way to have it take affect at the machine level. Or to at least automate at the user level (existing and future windows users/profiles)

  • Where to find Java Class File Specification for Java 5.0?

    Where to find Java Class File Specification for Java 5.0?
    thank you in advance.

    same place you found it for 1.4Can u give more details? I thought the class spec for Java 1.4 is the same as Java 1.2.
    anyone can tell where to find Java Class File Specification for Java 5.0?
    Thanks.

  • Where can i get  MySQL api for java?

    I'm new to jsp,
    where can i get MySQL api for java?
    thanks

    You mean the jdbc driver for mysql ? if yes, www.mysql.com/downloads/api-jdbc.html

  • Where can I download labs of v3.6 for java?

    Hi.
    1. Followed tutorial guide, http://download.oracle.com/docs/cd/E15357_01/coh.360/e15831/toc.htm.
    There's some labs and solutions should be reference.
    Where can I download it?
    2. Chapter 4 in the guide, there's coherence-pof- config.xml file to use.
    Do I need remake jar file, after using command jar -xvf coherence.jar coherence-pof-config.xml?
    my env is Jdev11.1.1.3, Coh 3.6 for java, win2k3.
    3. Is there have step by step guide for v3.6, can I reference?
    4. Is there have best practice of v3.6, can I reference?
    Thanks.

    1. There are some coherence examples you can download from http://coherence.oracle.com/display/EXAMPLES/Home.
    2. The example in chapter 4 ask you to save your own POF configuration file into a different file, e.g. contacts-pof-config.xml. You tell coherence to use this POF configuration file in the cache configuration file as shown in example 4-6 through the <serializer> element:
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>contacts-pof-config.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    3. If you mean the step by step guide to run the examples, see the examples web page.
    4. For 3.6, you can look at Part VII of the Coherence Developer's Guide:
    http://download.oracle.com/docs/cd/E15357_01/coh.360/e15723/tune_part.htm
    Here are some best practices web pages from 3.5:
    http://coherence.oracle.com/display/COH35UG/Best+Practices
    http://coherence.oracle.com/display/COH35UG/Best+Practices+for+Coherence+Extend
    -Luk

  • Java: Where are JCE Unlimited Strength Jurisdiction Policy Files for Java for Mac OS X 10.7?

    I need to install the JCE Unlimited Strength Jurisdiction Policy Files for Java 1.6 under Mac OS X 10.7.  I know where to get then from the Sun/Oracle Java download site, but want to make sure that these will work on the Mac.  Or, are there Mac specific versions somewhere?

    There's a  jce.jar file in /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/, so it appears that they're already in place, but that's just a WAG.

  • Where to take  java exam for Java programmer certified

    HI,
    I wonder where to take java exam for Java programmer certified?
    Regards,
    Jason

    http://suned.sun.com/US/certification/

  • MSS - where find code for java iviews and how to copy and extract??????

    Hi All,
    Not sure if this is the correct forum, so if i'm in the wrong place apologies and if possible could  you point me in the right direction.  If I am in the right place, here it goes......
    we're using R/3 4.7, MSS 6.1.20.  We're just beginning to implement MSS.  I'm wondering if anyone could give me a couple of examples of which MSS options are based on java iviews, where is the code for these java ivews stored on the system and do i have to do anything special to extract this code.
    the reason i want the code is that i want to copy it and see how difficult it is to make changes to the code in netweaver developer studio.
    Also, as i'm new to all this, if anyone knows of a good source of info for java iview creation/manipulation, please let me know.
    Kind regards,
    Liz.

    Hi,
    This is how we access java code for ESS applications. I hope it is the same for MSS as well.
    Open your NWDS -> Window -> Preferences -> Java Development Infrastructure -> Development Configurations.
    Provide the Landscape directory server in URL field. something like http://<server name>:<port number>. Ping and  confirm the connections. Save the settings.
    Now select Window -> Open Perspective -> Development Configurations.
    Right click on the Offline and select Import configurations. Select remote option and import the respective items from the server. Create a project for the required inactive DC and you will be able to edit the code in webdynpro perspective.
    Hope this helps.
    Thanks,
    Preetham

  • SonyEricsson SDK for Java ME - version 2.5.0.2 - Where?

    Hi. I'm looking for a SonyEricsson SDK for Java ME, and I need its version 2.5.0.2 (for p1i on-device debug). But only 2.5.0.3 can be downloaded from developer.sonymobile.com. I've looked for it on google, but I haven't found. Does somebody have this version? If you have it, or you know a download link, post me, please. Thanks!

    I've had a look but that version doesn't seem to be available for download anymore, either on Sony's developer world site, or anywhere else. I suggest you contact Sony and see if they can help you:
    http://www.sonymobile.com/global-en/support/contact-us/

  • XModem via TCP for Java

    I am sure that many of you experienced developers have read requests in the past concerning implmentation of Ward Christenen's XModem protocol over a TCP socket. If not, well... you are about to...
    This is a major hack... but it is starting to come together... thanks to Fred Potter for his source code to start this project...
    Objective:
    Basically, I want to create a console application which accepts an incoming connection and starts the receive mode for a XModem file transfer. I am using CGTerm (for Commodore retrocomputing) but can test with HyperTerminal as well...
    The user who connects to the server selects SEND and the FILE to send for a XModem file transfer... and the transfer begins...
    The incoming blocks of 128 bytes are written to a file
    After the transfer is over the server disconnects the client terminal.
    Here is what I have so far:
    import java.net.*;
    import java.lang.*;
    import java.io.*;
    // X-Modem Server implementation via TCP/IP socket
    public class XServer {
    public static FileWriter fw;
    public static void main(String[] args) throws IOException {
    // define the file
    try {   
    fw = new FileWriter("filename.txt");
    } catch (Exception e) {
    System.out.println(e);
    System.exit(0);
    int port = Integer.parseInt(args[0]);
    ServerSocket server = new ServerSocket(port);
    System.out.println("X-Server v1.0 - waiting for connection");
    Socket client = server.accept();
    // Handle a connection and exit.
    try {
    InputStream inputStream = client.getInputStream();
    OutputStream outputStream = client.getOutputStream();
    new PrintStream(outputStream).println("Go to send file mode!"); // sent to client
    System.out.println("Ready to receive file via X-Modem...");
    * BEGIN TRANSFER HERE!
    // set the debug flag
    XModem.debug = true;
    * Here we are instantiating a new InputStream that represents the remote
    * file that we are receiving. In this single line we are attempting to
    * start the flow.
    * Behind The Scenes: We're sending a NAK across the serial line repeatedly
    * until we finaly start seeing the data flow. If we don't see the data
    * flow, then we throw an exception.
    System.out.println("Sending NAK to start receive mode...");
    InputStream incomingFile;
    try {
    incomingFile = new XModemRXStream(inputStream, outputStream);
    } catch (IOException e) {
    System.out.println("ERROR! Unable to start file transfer!");
    e.printStackTrace();
    return;
    System.out.println("Starting file transfer...");
    * Here we are reading from the incoming file, byte by byte, and printing out.
    * Behind The Scenes: Internally, the read() method is handling the task of
    * asking for the next data block from the remote computer, processing it (i.e.
    * parsing, running checksums), and then putting it in an internal buffer. Not
    * all calls to read() will request a new data block as each block contains at
    * least 128 bytes of data. Sometimes you will only hit the buffer.
    try {
    for (;;) {
    int c = incomingFile.read();
    if (c==-1)
    break; // End of File
    // print character / byte
    System.out.print(c+",");
    // write to file
    try {       
    //System.out.print(".");
    fw.write(c);
    } catch (Exception e) {
    System.out.println(e);
    System.exit(0);
    } catch (IOException e) {
    System.out.println("error while reading the incoming file.");
    e.printStackTrace();
    return;
    // done
    System.out.println("File sent.");
    new PrintStream(outputStream).println("");
    new PrintStream(outputStream).println("transfer successful!");
    } finally {
    //client.close();
    // save the file
    try {   
    fw.close();
    System.out.println("file saved.");
    } catch (Exception e) {
    System.out.println(e);
    System.exit(0);
    * XModem keeps track of settings that the Receive and Transmit Stream classes will
    * reference.
    * <p>Copyright: Copyright (c) 2004</p>
    * @author Fred Potter
    * @version 0.1
    class XModem {
    public static boolean debug = false;
    * XModemRXStream is an easy to use class for receiving files via the XModem protocol.
    * @author Fred Potter
    * @version 0.1
    class XModemRXStream
    extends InputStream {
    // CONSTANTS
    private static final int SOH = 0x01;
    private static final int EOT = 0x04;
    private static final int ACK = 0x06;
    private static final int NAK = 0x15;
    private static final int CAN = 0x18;
    private static final int CR = 0x0d;
    private static final int LF = 0x0a;
    private static final int EOF = 0x1a;
    // block size - DON'T CHANGE - I toyed with the idea of adding 1K support but the code is NOT there yet.
    private static final int bs = 128;
    // PRIVATE STUFF
    private int ebn; // expected incoming block #
    private byte[] data; // our data buffer
    private int dataPos; // our position with the data buffer
    private InputStream in;
    private OutputStream out;
    * Creates a new InputStream allowing you to read the incoming file. All of the XModem
    * protocol functions are handled transparently.
    * As soon as this class is instantiated, it will attempt to iniatate the transfer
    * with the remote computer - if unsuccessful, an IOException will be thrown. If it
    * is successful, reading may commense.
    * NOTE: It is important not to wait too long in between calls to read() - the remote
    * computer will resend a data block if too much time has passed or even just give up
    * on the transfer altogether.
    * @param in InputStream from Serial Line
    * @param out OutputStream from Serial Line
    public XModemRXStream(InputStream in, OutputStream out) throws
    IOException {
    this.in = in;
    this.out = out;
    // Initiate the receive sequence - basically, we send a NAK until the data
    // starts flowing.
    init:for (int t = 0; t < 10; t++) {
    if (XModem.debug) {
    System.out.println("Waiting for response [ try #" + t + " ]");
    long mark = System.currentTimeMillis();
    out.write(NAK);
    // Frequently check to see if the data is flowing, give up after a couple seconds.
    for (; ; ) {
    if (in.available() > 0) {
    break init;
    try {
    Thread.sleep(10);
    catch (Exception e) {}
    if (System.currentTimeMillis() - mark > 2000) {
    break;
    // We have either successfully negotiated the transfer, OR, it was
    // a failure and timed out. Check in.available() to see if we have incoming
    // bytes and that will be our sign.
    if (in.available() == 0) {
    throw new IOException();
    // Initialize some stuff
    ebn = 1; // the first block we see should be #1
    data = new byte[bs];
    dataPos = bs;
    * Reads the next block of data from the remote computer. Most of the real XModem protocol
    * is encapsulated within this method.
    * @throws IOException
    private synchronized void getNextBlock() throws IOException {
    if (XModem.debug) {
    //System.out.println("Getting block #" + ebn);
    // Read block into buffer. There is a 1 sec timeout for each character,
    // otherwise we NAK and start over.
    byte[] buffer;
    recv:for (; ; ) {
    buffer = new byte[bs + 4];
    for (int t = 0; t < 10; t++) {
    System.out.println("\nReceiving block [ #" + ebn + " ]");
    // Read in block
    buffer = new byte[buffer.length];
    for (int i = 0; i < buffer.length; i++) {
    int b = readTimed(1);
    // if EOT - don't worry about the rest of the block.
    if ( (i == 0) && (b == EOT)) {
    buffer[0] = (byte) (b & 0xff);
    break;
    // if CAN - the other side has cancelled the transfer
    if (b == CAN) {
    throw new IOException("cancelled");
    if (b < 0) {
    if (XModem.debug) {
    System.out.println("Time out... NAK'ing");
    out.write(NAK);
    continue recv;
    else {
    buffer[i] = (byte) (b & 0xFF);
    break;
    int type = buffer[0] & 0xff; // either SOH or EOT
    if (type == EOT) {
    if (XModem.debug) {
    System.out.println("EOT!");
    out.write(ACK);
    break;
    int bn = buffer[1] & 0xff; // block number
    int bnc = buffer[2] & 0xff; // one's complement to block #
    if (
    (bn != ebn) && (bn != (ebn - 1)) ||
    (bn + bnc != 255)) {
    if (XModem.debug) {
    System.out.println("NAK'ing type = " + type + " bn = " + bn +
    " ebn = " +
    ebn + " bnc = " + bnc);
    out.write(NAK);
    continue recv;
    byte chksum = buffer[ (buffer.length - 1)];
    byte echksum = 0;
    for (int i = 3; i < (buffer.length - 1); i++) {
    echksum = (byte) ( ( (echksum & 0xff) + (buffer[i] & 0xff)) & 0xff);
    if (chksum != echksum) {
    out.write(NAK);
    continue recv;
    out.write(ACK);
    if (ebn == 255) {
    ebn = 0;
    else {
    ebn++;
    break;
    // We got our block, now save it in our data buffer.
    data = new byte[bs];
    for (int i = 3; i < (buffer.length - 1); i++) {
    data[(i - 3)] = buffer;
    dataPos = 0;
    public synchronized int read() throws IOException {
    // If at the end of our buffer, refill it.
    if (dataPos == bs) {
    try {
    getNextBlock();
    catch (IOException e) {
    throw new IOException();
    // If we're still at end of buffer, say so.
    if ( dataPos == bs) {
    return -1;
    int d = data[dataPos];
    if (d == EOF)
    return -1;
    dataPos++;
    return d;
    * A wrapper around the native read() call that provides the ability
    * to timeout if no data is available within the specified timeout value.
    * @param timeout timeout value in seconds
    * @throws IOException
    * @return int an integer representing the byte value read.
    private int readTimed(int timeout) throws IOException {
    long start = System.currentTimeMillis();
    for (; ; ) {
    if (in.available() > 0) {
    return (in.read());
    try {
    Thread.sleep(10);
    catch (InterruptedException ex) {
    //if (System.currentTimeMillis() - start > timeout * 1000) {
    if (System.currentTimeMillis() - start > timeout * 5000) {
    return -1;
    Here was the output...
    Original file:
    (Commodore CBM SEQ file exported to PC using DirMaster)
    ��
    � �
    � ��� �� �� ��� ��
    � �� �� ���� �� ��� ��
    � ��� ����������������������������������������������
    �� ����� ������� ����� �� ����� ������ ����� ���
    � �� ������ ������ ��� ��� �� ��� ���� �� ������
    � � ���
    ����
    � � ��OWERED BY �OLOR 64 ��� V8
    �UNNING �ETWORK64 V1.26A

    �UPPORTING 38400 �AUD �ATES
    �����/����/�������

    �ESTING �CHO-�ET V1 BETA

    �EATURING �ESSAGES, �ILES,
    �ET�AIL, AND �NLINE �AMES!
    �YS�P: � � � � � � � � �

    �RESS ANY KEY TO LOGIN\C�
    The result when the file was uploaded and received by my XServer:
    ? ? ??OWERED BY ?OLOR 64 ??? V8
    ?UNNING ?ETWORK64 V1.26A
    ?UPPORTING 38400 ?AUD ?ATES
    ?ESTING ?CHO-?ET V1 BETA
    ?EATURING ?ESSAGES, ?ILES,
    ?ET?AIL, AND ?NLINE ?AMES!
    ?YS?P: ? ? ? ? ? ? ? ? ?
    ?RESS ANY KEY TO LOGIN\C?
    The result is different!
    Can someone help me along here... I have been trying to figure out how to do this for approx. a year or so... it has been a very slow process.
    I could use a guru to help me out so I can write the upload and download routines for my Commodore BBS PETSCII Emulation Server.
    Visit http://www.retrogradebbs.com for details.
    Thanks.
    Please help out a dedicated developer who is in over his head...
    -Dave

    Ok. Fair enough. What about general information about Xmodem. This is a hard project because of how obscure the legacy technology is that I am having to implement using Java and MySQL.
    I have two major issues which I have to figure out how to troubleshoot and debug, if possible.
    1. The 23+ blocks exception when a file is being received
    2. The exception which is thrown immediately if I try to receive a binary file instead of an ASCII file.
    I read that telnet is a 7-bit technology and that is why Xmodem, which is an 8-bit technology is not that popular as a viable protocol via telnet, whereas Kermit is, since it was developed for 7-bit systems, i.e. mainframes and minicomputers.
    Is this correct?
    If that is the case, why does www.serio.com have a viable X-Y-ZModem library available (for several hundred $$$ of course) which can be used with both RS-232 serial ports and TCP socket ports? Obviously, it can be done. They are the ONLY company with this library for sale for Java to do this. I cannot justify that $$$ amount for a mere hobby (writing the BBS emulation server for supporting Commodore PETSCII (CG) callers via CGTerm or a native C-64 terminal program using Jim Brain's TCPSER middleware, which emulates a Hayes modem via telnet for telBBSing/retrocomputing.
    I really want to learn how to implement a file transfer protocol, since back in the 80s, I used Xmodem, Punter, Y/Z Modem, etc., a lot to upload and download files via modem at baud rates of 2400, 14.4, 19.2, and 38.4, respectively.
    It's fun to learn how the old skool gurus of telecommunications technology did it. It is one thing to run a BBS which supports these technologies and features, and it is an entirely other thing to learn how to design and develop them yourself for implementation into a project such as I taken on.
    It CAN be done. It WILL be done. However, I have just started my exhaustive research on how it needs to be done. I have read up as much as I could on XModem by Ward C., the father of the protocol.
    But, I have no information to help me figure out why the communications are acting as they do so far.
    Can someone please download the xserver.zip file on my website at:
    www.retrogradebbs.com/projects/xserver.zip
    Compile it. Run it. Connect using HyperTerminal, Netrunner, or another telnet terminal emulation program which supports Xmodem file transfers using WinSock.
    See what happens. With finals due in the next two days, this project will have to be put on hold until after I submit my two final projects.
    If anyone knows what needs to be done to support both ASCII and BINARY file transfers via Xmodem via a socket instead of a modem with RTS/CTS hardware flow control, please respond.
    I know for a fact that this can be done.
    - Dave

  • Problem in connecting to database from webdynpro for java

    Hi
    I have a problem in connecting to database from webdynpro application
    I am using oracle 10 express edition as database and was able to connect to database from a java application.But  was unable to connect from a webdynpro for java.
    <b>I guess webdynpro for java uses open sql instead of vendor sql(I looked in the visual admin ,DB is using open sql) so unable to connect to database.Am i right.?</b>
    Do i need to make any settings in the visual admin to make it work?
    How to solve this problem.Please give me pointers
    Thanks
    Bala

    Hi,
    For connecting to Oracle, either you can use the normal JDBC connectivty code directly which is given below :
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    In case you want to fetch data through ejbs, these are the steps to be followed :
    1) Open the J2EE perspective
    2) Create an EJB Module project
    3) Right click on ejbModule, create a new EJB (select your EJB type)
    4) While creating the ejb itself, you can add business methods by clicking ‘Next’ in the UI. Another option is after creating the ejb, write the method in the bean, then select the method from ejb-jar.xml -> <bean name> ->method. Right click and select ‘propogate to local & remote’.
    5) Double click on ejb-j2ee-engine.xml. select your bean and specify a Jndi name for eg: “MyJndi”.
    6) Right click on the EJB project and add ‘classes12.zip’ file (provided by Oracle) to it’s build path. (under libraries tab). Also check the same file under ‘Order & Export’.
    7) Create an Enterprise Application project.
    8) Right click on the EJB module project and select add to EAR project, then select the created EAR project.
    9) Right click on the EJB project, select ‘Build EJB Archive’
    10) Right click on the EAR project, select ‘Build Application Archive’
    11) Open the WebDynpro perspective, open a new project, right click on the project ->properties. Do the following configurations :-
    • Java Build path - select the EJB project from ‘projects’ , check the selected project under ‘Order & Export’
    • Project references – select the EAR project
    • WebDynpro references – select ‘sharing references’ tab, click add & make an entry as : <vendor>/<EAR project name without .ear extension>
    You can find the vendor name under ‘application-j2ee-engine.xml’ file of the EAR project. By default it is ‘sap.com’. So if my EAR project’s name is ABC, my entry would look like ‘sap.com/ABC’
    12) Now the configurations are over and the EJB can be invoked by writing the client code inside the webdynpro component. Like:
    InitialContext context = new InitialContext();
    Object obj = context.lookup("MyJndi");
    MyEJBHome home = MyEJBHome)PortableRemoteObject.narrow(obj,MyEJBHome.class);
    MyEJB mybean = home.create();
    int a = 0;
    a= mybean.add(10,15);
    wdContext.currentContextElement().setSum(a);
    where ‘MyEJB’ is my EJB name and ‘MyJndi’ is my JNDI name
    To connect to Oracle , you can write the usual Java code (given below) as a business methos of the ejb (similar to add() method in the example). And access it like mybean.<businessMethodName>().
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    Extracted from Re: Webdynpro and Oracle
    http://help.sap.com/saphelp_webas630/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
    May be of use to understand the VA Conf /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    Regards
    Ayyapparaj

  • How to use BAPI in webdynpro for java application

    Hi all,
    Please help in getting started with calling a BAPI in a webdynpro for java application. I have got only the content needed to call a BAPI in a webdynpro for abap application but not in java. Kindly provide me some documents if possible.
    Thanks in advance

    Hi ,
    U have Created One Bapi u want to work with web Dyn pro for java Application Right .
    U need the Following
    1) NWDS (Netweaver Devloper Studio )
    2) jdk1.4 or Above installed in your system .
    After Installation of NWDS .
    1) Just Take J2EE Enginee Details
      a) Go to Window -> preferences  -> J2ee Enginee - > give ur port number , Host name Details . and click finsh .
    Go To Web Dyn Pro Perspective Click onj2EE engine .
    Click On Refresh U will see Green Colour button .
    Now ur Ready to import Ur BAPI .
    1) Go to File -> New -> Project - > Web Dyn pro Project -.
    Give Name , pkg Name Click On Finish .
    2) Expand ur project hirarchy -> go TO Application -> Right Click -> Create Application - > Give Application name and Pkg name -> Click on Finish .
    3) Now ur View And Controller Are Created by Default .
    4) Go to Model-> Right Click on it-> Create Model -> Give Model Name & Pkg name Should diff from Application pkg the Click On Next
    a) Here u have to Two JCo Destination Name Like Model Data And Meta data & R/3 System Details like System Number , Host name  Etc -> then Click on next .
    b) Here u will text filed where u want to search for ur Required BAPI . Type ur BAPI Name Click on Search . Ur bapi will be displyed In Down . click on Next .
    c) Now Ur model is Importedint into NWDS .Map ur model data To Controller and Controller Element to View Elements .
    After ur Model .
    Go to -> Project Name -> Right Click -> go to -> Deploy New Archive .
    after wards u have to go Apllication -> Right click -> deploy and Run .
    ur output will be displyed thru Browser .
    Thats it
    Regards ,
    venkat

  • Next Generation Java Plugin issues with Applets

    Hi,
    We have an web application with a jsp page which launches different apps in seperate browsers.
    The jsp page has
    <jsp:plugin type="applet"
                                code="AppLauncherApplet"
                                height="0" codebase="../../jars/" width="0"
                                name="LaunchApplet"
                                align="bottom">
                            <jsp:params>
                                    <jsp:param name="applicationURL"
                                               value="applicationURL"/>
                            </jsp:params>
                            <jsp:fallback>
                                    <p>This feature should run on applet supported
                                       browser.</p>
                            </jsp:fallback>
                    </jsp:plugin>And applet has
               init()
              String appURL = getParameter("applicationURL");
              if(appURL != null && appURL.length() > 0)
                   String WIN_PROGRAMFILES = System.getenv("programfiles");
                   String FILE_SEPARATOR   = System.getProperty("file.separator");
                   String execUrl = WIN_PROGRAMFILES + FILE_SEPARATOR + "Internet Explorer" + FILE_SEPARATOR + "iexplore.exe "+ appURL;
                   System.out.println(execUrl);
                   Runtime.getRuntime().exec(execUrl);
                   System.out.println("Opening New IE Instance...");
                }Basically this is a launcher app...
    This works fine when we run on JRE-build 1.6.0_21-rev-b08and launches apps in seperate browser windows as we click on links...
    But after i disable Disable next-generation Java Plug-in as explained in http://www.java.com/en/download/help/new_plugin.xml
    Then i noticed weird behavior that apps are getting opened in multiple windows per click.
    For example... if i click on a link to open that app in a new browser... 3 seperate browsers are launched.... where it is expected to launch 1 seperate browser window....
    I noticed applets init method got called 3 times... means applet initialised 3 times...
    I am wondering if it is a JRE issue?
    JRE-build 1.6.0_21-rev-b08
    Please advice....
    Thanks,
    Murali
    Edited by: cm on Jan 18, 2011 6:45 AM
    Edited by: cm on Jan 18, 2011 9:15 PM
    Edited by: cm on Jan 18, 2011 9:17 PM
    Edited by: cm on Jan 19, 2011 12:51 AM

    Done Thanks!!
    --Murali                                                                                                                                                                                                                                       

  • Disable next-generation Java Plug-in-Is Applets load on same JVM guranteed?

    Dear all,
    I am working on a banking application that uses WinXP and JRE1.5, where the banking application is browser based and with a lot of applets. For inter-applet communcation, we use singleton, a Object called CommonFunctionUtility, which is a single instance so that all applets can share information.
    Recently, there is a direction to upgrade the JRE to 1.7. However, after upgrade, we find that applets are loaded to different JVMs so that they're not referring to the same instance of this CommonFunctionUtility, so applet hangs as they cannot retrieve correct information.
    As an interim solution to meet internal requirement to complete JRE1.7 rollout, it is suggested to disable the next-generation java plugin first, and amend the application later using other way to share data later. In view to this, may anyone have any idea that Oracle ever confirm that after disabling next-generation java plugin, it is guranteed that all applets in same browser will be loaded on same JVM?
    Regards,
    Francis

    By disabling the next generation plugin it should "work as before". That's about as much guarantee as you'll get, the business of providing guarantees lies on your shoulders (without an Oracle service agreement) through system integration tests.

Maybe you are looking for

  • Is that possible to convert logical standby to physical standby ?

    Hi guys, My steps for testing as below: 1.create a primary database 2.duplicate a physical standby database; 3.turn on flashback on both databases. 4.record SCN xxx on physical standby database. 5.convert physical standby to logical standby (using ke

  • Installing Flash Player

    I keep getting "Action list not found" Error. My system is adequate; Java script is enabled; I have uninstalled previous version; now what ?

  • How to append to file

    i have a file which contains the fomat like this <mailbox> <mail> <from>shankar</from> <to>sun</to> <subject>help</subject> </mail> <mail> <from>shan</from> <to>sun</to> <subject>help me</subject> </mail> </mailbox> i want to append the following aft

  • International version of iphone

    Can i find an international version of iphone 6 from EA apple store, where facetime is included? i am living abroad so i need it !

  • Wifi certificate issue

    hello, i have a problem. this window keeps popping up and as i close my computer or put it on sleep, it asks to enter the wifi password again, although its set to remember it. the window popping up looks like this: