Can i make XML callbacks in JAVA?

Hello all.
I have a java server (running with Oracle Application Server), that performs a simple task.
Clients sends XML's to the server's servlets (XML over HTTP), the server does some manipulation on the data, and sends an XML reply.
My servlets all extend javax.servlet.http.HttpServlet.
Now, I have this twist -
I need my server to send an XML to a known client (i.e. a client that has sent me at least one XML already) without receiving an XML from him first.
e.g. - A client sends the server an XML, and it responses. 2 minutes later the server wants to send the client another XML.
I know this method is called using callbacks.
Is there a way to implement such a method using java servlets?
Thanks in advance

Your client would have to be a web server in order to do this the way you have described.
I'm not sure I like the term callbacks here, to me this is just standard asynchronous messaging. Check out JMS. SOAP over JMS is supposed to become the new web services standard for Java but I can't find any info about actually using it. Anyone seen anything that is usable yet?

Similar Messages

  • How I can create a XML file from java Aplication

    How I can create a XML file from java Aplication
    whith have a the following structure
    <users>
    <user>
    <login>anyName</login>     
    <password>xxxx</password>
    </user>
    </users>
    the password label must be encripted
    accept any suggestion

    Let us assume you have all the data from the jsp form in an java bean object..
    Now you want a xml file. This can be acheived in 2 ways
    1. Write it into a file using java.io classes. Say you have a class with name
    write("<name>"+obj.getName+</name>);
    bingo you have a flat file with the xml
    2. Use data binding to do the trick
    will recommend JiBx and Castor for the 2nd option
    Regards,
    Rajagopal

  • Can I install XML parser for Java in Windows 98?

    Could someone tell me how to install XML parser for Java in my PC Windows98 (I already installed JDK1.3)? Or it can not be installed in Windows98?
    Thanks in advance!

    There's no reason why it shouldn't work on any platform for which JDK1.3 is available. If you're using the batch files shipped with XDK to run the parser, you might need to change the syntax slightly; in any event the key command is just
    java -cp c:\xdk\lib\xmlparserv2.jar oracle.xml.parser.v2.oraxml %xdkparm%Brian

  • How can I make Xml mapping a little easier

    Hello,
    I am using Xcelsius for a project that is constantly being deployed to different environments. When deploying to different environments I find myself constantly having to go back and do the following:
    1. Change my  xml  map in my excel document
    2. Re-import the excel file into xcelsius
    3. Re-publish my swf.
    My main question is whether I need to do all this when my xml doc has changed physical locations. Is there a way I can make this a little more dynamic?
    Thx

    An idea is to put the address/path into a cell. 
    The cell will have several objects accessing it:
    1) The <Connection> will "know" which file to load from where (rather than a hard coded path)
    2) A <text input> object via which you may edit the cell and thereby re-defining the data source location for the connection
    One little caveat: whenever you load the swf file the "cell" will hold the pre-determined/hard-coded path value and you will have to edit it before you can get going.  You may try circumvent that by using a <Scenario> button and thereby storing the path name.  As long as you don't re-export your xlf the scenario values will be there for you.  That will save you some typing.  At the end of all that, you will be able to control the source location from within the dashboard albeit not entirely "automatic", but definitely without "rebuilding" the swf file.
    Hope this helps

  • Can I make reporting  with Sun Java Studio Creator !

    Hi !
    I would like to know if it is possible to make reporting within a webpage build with JSC !
    Thank !

    sure you can make reports inside a jsf page.
    by report you mean PDF reports ? or something else ?
    can you specefy more ?
    following thread (if it open for you) contain a discussion about reportingin jsf pages.
    http://swforum.sun.com/jive/thread.jspa?threadID=58569&tstart=300
    also you can look at
    http://jasperreports.sourceforge.net
    there are some samples which you can start with them.

  • How can I make Timeout in portal (Java).

    I've made a change to the SAP logon, allowing a change of password. I need to find a way to keep the program from re-directing the user to the logon page immediately after changing the password, as it will not have registered yet. Does someone know how to make a time-out in SAP Portal?

    This should do it.
    Note that there is nothing preventing the user from closing the window before or ignoring it totally and enter username and password. You could also disable the login form using javascript for a period of time.
    <SCRIPT language="JavaScript">
    function showPleaseWaitWindow() {
         waitWindow= window.open('http://google.com','waitwindow','height=255,width=250,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no ,modal=yes');
         //close after 5 seconds
         setTimeout("waitWindow.close()",5000);
    showPleaseWaitWindow();
    </SCRIPT>
    Dagfinn

  • How to make a table in java without using GUI??

    how can i make a table in java without usinf GUI, just simple codes??
    NAME ID NUMBER ADDRESS STATUS

    If you simply want to store them internally, you don't want to use a table.
    Make a simple class with properties id, name, number, address, status. Then create a Hashtable that indexes instances of the class by id or some other property.

  • How to make Connection Pooling in JAVA

    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    Vasim

    vasim_saiyad2000 wrote:
    Dear Members
    I want to know that how can i make connection pooling in java and also how can i use that pool in my jsp/servlet application.
    Plz Describe in Detail.
    Thanks
    VasimAs the previous poster is trying to suggest, the server you use will have datasource and connection pooling support. so look up in the manual how to set it up, or do a google search. For example if you use Tomcat, look here:
    http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html

  • Can MySQL triggers or storedprocedures(callbacks) call java code?

    I have to store the DB tables in the server side(i.e cache it) If someone updates the Data Base , The Data updates must be reflected in the cache in the server side. so how callbacks form the DB can be make to a java code in the server side.
    i am using Ms SQL and web logic server.
    or which DB and APP server can support it?

    Do the update request from the client via an java application(servlet,etc.) to an server application. The server application work with the db (via jdbc) and can so update the cache if any db update occurs.

  • How can I make Edit/Default Customization form with Java ?

    In previous portal relise developers have simple way to rendering Edit/Default Customization form:
    <% PortletRendererUtil.renderCustomizeFormHeader(portletRequest, out, null, "services_action", null, null); %>
    <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="2">
    <TR>
    <TD>Days</TD>
    <TD><INPUT TYPE="text" NAME="services_days" VALUE="<%= days %>" SIZE="10"/></TD>
    </TR>
    <TR>
    <TD>Rows</TD>
    <TD><INPUT TYPE="text" NAME="services_rows" VALUE="<%= rows %>" SIZE="10"/></TD>
    </TR>
    </TABLE>
    <% PortletRendererUtil.renderCustomizeFormFooter(portletRequest, out); %>
    In current portal version I can not find these methods, these methods not exists in JavaDoc and in jar's. And all old code do not works!!! Why?
    I must hide portlet borders and use <renderContainer>false</renderContainer> in provider.xml. Then portal do not render Edit/Default Customization form in Edit/Default mode. In previous relise I can make this form with Java code.
    My question: how I can get Edit/Default Customization form in Edit/Default mode with Java code?
    Thanks in advance
    Cheslav

    Hi George, the trick is to figure out which browser is your default now, and remove that designation using the Android settings for Apps. It might be Chrome or it might be something Samsung provides.
    This article has more information: [[Make Firefox the default browser on Android]].
    Does it work?

  • SSIS "XML Source Adapter" can't make XSD location an expression

    I am using the "XML Source Adapter" in an SSIS package.
    I notice that although you can specify the XML filename as an expression, the XSD appears to have to be a fixed file path.
    This is a problem for me since the path for the XSD is different in my development than it will be in production (in production it's on drive E:, which I don't have).
    I'd like to have the file location specified in the config file, but since I can't make it an expression how can I do that?
    Also, since they don't have Connection Managers I can't switch DelayValidation on.
    Thanks.

    Hi John,
    Here is my pevious post
    I have about 400 xml files with me and all this data has to be loaded in about 30 tables, Basically have 30 different varities of xml files and matching 30 xsd files. We were trying to load all this using "Data Flow Task" and "XML Source".  Using
    FOR Each Loop passing appropriate XML File and XSD to Data Flow task and load it in one shot. Rather than having 30 different Data Flow tasks. Is there any other way, we can accomplish this task using a loop and dynamically passing the different files.
    You have suggested to follow the URL
    There's some example code here for package generation here:
    http://sqlsrvintegrationsrv.codeplex.com/releases/view/17647
    Everywhere I see, they are suggesting to use Flat File or Excel data examples. Do you have any posting that can help me to use XML file as a dynamic input file for XML Source.
    If anyone has any code samples how we can use XML files as dynamic source for XML Source task to import data into SQL Sever, that would be really appreciated.
    Thanks

  • Can't use UTF-16 encoding with XML Parser for Java v2.

    This is my XML Document:
    <?xml version="1.0" encoding="UTF-16" ?>
    <Content>
    <Title>Documento de Prueba de gestin de contenidos.</Title>
    <Creator>Roberto P     rez Lita</Creator>
    </Content>
    This is the way in which i parse de document:
    DOMParser parser=new DOMParser();
    parser.setPreserveWhitespace(true);
    parser.setErrorStream(System.err);
    parser.setValidationMode(false);
    parser.showWarnings(true);
    parser.parse(
    new FileInputStream(new File("PruebaA3Ingles.xml")));
    I've got this error:
    XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
    I am using the XML Parser for Java v2_0_2_5 and I am a little
    confused because the documentation says that the UTF-16 encoding
    is supported in this version of the Parser.
    Does anybody know how can I parse documents containing spanish
    accents?
    Thanks in advance.
    Roberto P     rez.
    null

    Oracle just uploaded a new release of V2 Parser. It should
    support UTF-16.
    Yet, other utilities still have some problems with UTF-16
    encoding. Seems we just
    have to wait this one out.
    BTW, I'm trying to use Japanese. We, also, have some problems
    with JServer.
    Roberto P     rez (guest) wrote:
    : This is my XML Document:
    : <?xml version="1.0" encoding="UTF-16" ?>
    : <Content>
    : <Title>Documento de Prueba de gestin de contenidos.</Title>
    : <Creator>Roberto P     rez Lita</Creator>
    : </Content>
    : This is the way in which i parse de document:
    : DOMParser parser=new DOMParser();
    : parser.setPreserveWhitespace(true);
    : parser.setErrorStream(System.err);
    : parser.setValidationMode(false);
    : parser.showWarnings(true);
    : parser.parse(
    : new FileInputStream(new File("PruebaA3Ingles.xml")));
    : I've got this error:
    : XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
    : I am using the XML Parser for Java v2_0_2_5 and I am a little
    : confused because the documentation says that the UTF-16
    encoding
    : is supported in this version of the Parser.
    : Does anybody know how can I parse documents containing spanish
    : accents?
    : Thanks in advance.
    : Roberto P     rez.
    null

  • Can i make more than one faces-config.xml file ?

    Can i make more than one faces-config.xml file under one project or application, if yes than how it will link.

    Just that you know,
    In the second week of july I was taking the Jdeveloper/Jheadstart course at Oracle Netherlands. During that course we were asked to split the faces-config. After splitting it, we were not able to find the navigation rules that were defined in the first faces-config in the web.xml. The Jdeveloper IDE was confused........
    However, we were able to use the navigation rules (type in manualy) and that worked in the application.
    I talked about it with Steven Davelaar and he thought it might be a bug. I don't know if it's reported, and I don't know if it's fixed.
    So, if you get confused.... it works, but Jdeveloper might have some problems with it.
    Luc Bors

  • Can i make a method to wait for 2 mins before executing in java??

    can i make a method to wait for 2 mins before executing??
    i mean when i execute a method ....it has to wait for 2 mins before finally executing...
    can i do this in java????
    Thanks,

    Sure, put this at the beginning of the method.
    try
        Thread.sleep(120000);
    catch (Exception ex)

  • How can I make Terminal run Java 7 downloaded from the Oracle Website?

    I've downloaded Java 7 from the Oracle website, and I want the Terminal application to run that Java 7 download. I try to run Java programs that require Java 7, but it runs with the Apple Internal Java 6 release. How can I make it so my MacBook Pro runs the download of Java that I downloaded? I know this sounds stupid, but am I routing my machine to run the internal Java 6 version? I have seen many videos in which people with the same software version as me run Java like this with no problem. Could you please let me know why this is happening and how I can fix it? I really want to be able to use the Java 7, particularly because I'm always getting this "Unsupported Major Minor Version 51.0" from many applications that are Terminal based.
    Thanks!

    I think I've answered your question. The Oracle JRE is a web plugin. The JDK is a development kit for applications with embedded Java. Neither one replaces the Apple-distributed Java frameworks for running standalone applications without embedded Java. Any other questions you have should be answered by the Oracle documentation.

Maybe you are looking for