Using servlets for custom protocol???

Is it possible to use servlets for my own custom protocol??
Can somebody PLEASE say yes or no!!!!
I've been struggling with this for hours!
Is there an easier way?

Yes, I searched through the API docs, doesn't tell me anything. I need proven examples.
There's nothing out there .... strange!!!Actually, not so strange.
I think the original design of the servlet API permitted protocols other that HTTP, but in practice it was found that it didn't work as well. I think I've heard of an FTPServlet subclass, but that's it.

Similar Messages

  • [b]can I use servlets for Chat? new to servlets[/b]

    I want to a chat application for someprof and students
    I am using multicasting technique to send and receive messages
    I used applets and created it but applets don't support java.net's MulticastSocket so I used certificate
    Now I want to use servlets for this in JSP because I called applets from JSP
    Can it be possible? If yes please clearify.

    it is possible
    you could create a jsp page that would update like 10 or 20 or whatever number of ServletContext attributes.
    in the jsp_service or in the doPost or doGet method of a servlet:
    String messageFromUser=request.getParameter("msg");
    int num=15;
    String[] chat=new String[num];
    chat[0]=getServletContext().setAttribute("chatLine" + 0, messageFromUser);
    for(int i=1; i<num; i++) {
        String previousMessage=getServletContext().getAttribute("chatLine" + (i-1));
        chat=getServletContext().setAttribute("chatLine" + i, previousMessage);
    out.println(chat[i]);
    however, there is a pretty decent client/server chat program that can run as an applet here:
    http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=4397&lngWId=2

  • Using nullLayout for custom component

    I am writing an AccordianPanel as a custom component that can be dropped into a JPanel and behave as expected. I am using a null layout in the outer container (JPanel) as the accordian dividers need to move as told and not be managed by a layout manager. When I resize a window or another container that the custom component sits in, it doesn't resize anything - I understand this is the behavior I would expect as that is how I coded it.
    Now, I want to have the custom component resize its internal stuff when the container it resides in (i.e. JFrame or most likely another JPanel) gets moved, but I don't know how to do this. The outer most component in my custom components hierarchy is a JPanel whose layout is set to null and I stuff everything else inside there.
    I believe I need to add a componentListener to my JPanel whose layout is set to null, but I am not sure. Could someone send me in the right direction.
    thanks

    the best approach might be to implement your own LayoutManager (which is simple enough) and use it rather than absolute positioning....
    If you read postings in the forum you will find most people recommend using LayoutManagers and not a null layout so you don't have problems like this.Hello sarcommand , camickr, and anyone interested,
    I've tried to bring this discussion up again just a few days ago, and was disappointed I got no feedback - must be a dull read :o(
    Here is the [link to the thread|http://forums.sun.com/thread.jspa?messageID=10723670&#10723670], would you mind having an eye on it?
    I'm sorry to hijack this thread (seems slightly less rude than bumping my own former thread up), but I've read several discussions on this subject too, and still I can't decide whether I should follow the CustomLayoutmanager track.
    Although most of the writing there is specific to my current problem, it highlights 3 points I think are general enough:
    - A custom layout (whatever the way it is implemented, I discuss 4 approaches in the thread) is generally used to display custom components, or at least, components that represent custom application-specific entities or input points. -> Is is worth the trouble to abstract the positioning logic when this "custom layout" has only one, at best two, use cases (a couple of specific screens in your specific app that represents your specific entities)?
    - A custom (app-specific) layout manager is likely to require more knowledge about the things being layed out than the default min/max/pref sizes. In particular it may require to know data of the underlying model objects represented by the children components. How is that best designed? I tentatively think it's by way of custom Constraint classes which have to be abstract enough yet should be easily mapped from the app-specific data.
    - The CustomLayoutManager integrates natively with regular graphical events (hiding, resizing,...), but how to integrate app-specific events (such as, when the underlying data change in such a way that should be reflected by a change in the layout, how/when to force the re-layout)?
    Thank you for your help.

  • Using RFBIDE00 for customer master upload

    Hi all,
       Does any one used batch input program RFBIDE00 for Customer master  Upload data in to SAP.
       Could you please explain how to use it...  its urgent, appreciare if your early reply..
       I am planing to use it through Run the program from SE38..
    Thanks..

    hi good sap1,
    Batch Input - Customer Master Data (RFBIDE00)
    Description
    All new fields for customer master records can be transferred to the R/3 System also with the report RFBIDE00.
    Furthermore, the batch input can be carried out with the existing record definitions. By means of the end of record marker, the report recognizes which record structures do not yet correspond to the extended record layout and initializes the new fields with NODATA.
    It is pointed out in the batch log, which structures are yet to be maintained. This should be done as soon as possible to be able to use the new functions or fields
    Introduction
    It is now possible to pass the information concerning tax categories and withholding types (for the extended withholding functionality) and the special Argentine fields via the standard batch-input program. Please look at the standard documentation if you need further information on the program.
    Additional Fields
    The additional fields have been added to the structures BKNA1 (general information) and BKNB1 (company code data). Please use transaction SE12 to see the fields of the structures.
    Enrichments for Tax Categories
    The following table shows how to fill the interface table BKNAT to pass the tax category data:
    Field
    Description
    Value
    Input
    STYPE
    Record type
    2
    obligatory
    TBNAM
    Table name
    KNAT
    obligatory
    XDELE
    Flag: Delete entry
       optional
    TAXGR
    Tax category
       obligatory
    Enrichments for Extended Withholding Data
    The following description shows how to fill the interface table BKNBW to pass the tax category data:
    Field
    Description
    Value
    Input
    STYPE
    Record type
    2
    obligatory
    TBNAM
    Table name
    KNBW
    obligatory
    XDELE
    Flag: Delete entry
       optional
    WITHT
    Withholding type
       obligatory
    thanks
    karthik
    reward me points if usefull

  • Using DAC for custom Environment

    Hi All,
    I would like to know that, can we use DAC to schedule , run the loads for custom ETL environment(not BI APPS), does DACt supports. Below is is my set up
    -Oracle 11g DB(source and target )
    -Informatica 9 installed
    -Mappings, workflows are developed
    -DAC 11g is installed
    Now I want to set up DAC so that I can run loads from DAC instead of Informatica. Please any let me know high level steps. Is it different from BI APPS environmen if so kindly let me know configuration
    Thanks in advance

    Short answer is NO...as per licensing agreements, you can only use DAC and OBIA to load a OBIA DW target.
    pls mark correct

  • Document protocol identification error for custom protocol

    Hi,
    Working for B2B inbound transaction. By using B2B need to transfer file from remote TP location to Host TP location. The file type is non EDI file (FLAT file of type fixed length) .
    I am doing given below steps but B2B giving document identification protocol error after file picked for processing.
    Document Defination at administration level:
    Protocol : Custom
    Version : 1.0
    DocType : CustomerDoc
    DocDef : CustomerDocDef( In these mentioned values as
    Identification Type = "Flat"
    Identification Start Position = 1,
    Identification End Position = 1 ,
    Identification Value = 1)
    Host Tp set up:
    TP Name : Client
    EDI INTERCHANGE ID : ClientID
    EDI GroupID : ClientID
    EDI Interchange ID Qualifier : 01
    Listening channel : Client_Deliverychannel
    Remote TP setup :
    TP Name : Customer
    EDI INTERCHANGE ID : CustomerID
    EDI GroupID : CustomerID
    EDI Interchange ID Qualifier : 02
    Document IMPORTED : Custom --> 1.0 --> CustomerDoc --> CustomerDocDef
    Listening channel : Customer_Listeningchannel
    Agrement for the Remote TP 'customer:'
    Document using : Custom --> 1.0 --> CustomerDoc --> CustomerDocDef
    TP names using : Customer , Client
    Listening channels using : Customer_Listeningchannel, Client_Deliverychannel
    Sample Flat File Using:
    1 00123451107200600123456780021000021001500049870USD 0000000000
    Thanks&Regards,
    Sridhar.Rachumallu.
    Edited by: user1133742 on Jun 29, 2010 11:54 PM
    Edited by: user1133742 on Jun 30, 2010 12:00 AM

    Configuration is looking fine. however error says B2B is not able to identify incoming document.
    Please paste/send the log in trace:32 mode for further analysis.
    Rgds,
    Nitesh Jain
    [email protected]

  • Can I use BAPI_ACC_DOCUMENT_POST for customer clearing(inter company)?

    Hi,
    We were getting errors for object type. Object type is a mandatory field and it is not taking "BKPFF",  "VBRK" and other object key as a valid object key( Check is present in SAP Include LACC9F20 for object type). We have created a new object type in TTYP table and passed in this BAPI "BAPI_ACC_DOCUMENT_POST " . Is this is a correct approach?
    After this correction when we try to post clearing document using BAPI, getting error :- "FI interface: Small difference * USD 30 cannot be distributed".
    We are passing parameters :-
    Document Header :- 
    OBJ_TYPE ( Passing manually created entry of TTYP)
    BUS_ACT( RFBU)
    DOC_TYPE(YD)
    Other entries which I am passing are  OBJ_KEY, OBJ_SYS, USERNAME, COMP_CODE, DOC_DATE, POSTNG_DATE, FISC_YEAR, PERIOD.
    ACCOUNTGL:-
    Item No:-1
    GL Account
    ITEM_TEXT
    AC_DOC_NO(AR Invoice of payment document which I want to clear) for e.g. 7100000001
    Customer
    Item No:-2
    GL Account
    ITEM_TEXT
    AC_DOC_NO(AR Invoice of payment document which I want to clear) for e.g. 7100000002
    Customer
    ACCOUNTRECEIVABLE:-
    Item No.:-3
    Customer( same which i have passed in GL account parameter)
    comp_code:- Header company code
    CURRENCYAMMOUNT:-
    item No:-1
    CURR_TYPE: 10 (company code curr)
    Currency (from document)
    AMT_DOCCUR (amount of AR invoice of account GL item no 1).
    item No:-2
    CURR_TYPE: 10 (company code curr)
    Currency (from document)
    AMT_DOCCUR (amount of AR invoice of account GL item no 2)
    item No:-3
    CURR_TYPE: 10 (company code curr)
    Currency (from document)
    AMT_DOCCUR (Sum of above two AR invoice which will be against customer)
    Do you have any solution for this error? kindly suggest.

    Check if account for payment differents defined ?
    IMG: Financial Accounting -> Accounts Receivable and Accounts Payable -> Business Transactions -> Incoming Payments Global Settings -> Overpayment/Underpayment -> Define Reason Codes / Define Accounts for Payment Differences.

  • Query: Predictive Use Cases for Customer Acquisition during Launch Phase

    Dear all,
    May I ask you to help me with some Predictive Use Cases (essentially SAP InfiniteInsight) for a Telco Customer who is going to launch new 4G services.
    Some important points to note are:
    1) Being a new product launch, there is no historical data about customers.
    2) Predictive use cases should help the customer acquire more customers (higher acquisition rates)
    This means that the traditional churn, next best activity, product recommendations scenarios would not be a great fit because they would essentially be coming in the grow phase.
    Additional info: The customers has other businesses in retails, mining, refinery.
    Rg,
    Ankit

    Since you do have the CC currently so you should have CS6 included as part of his membership.  The download previous version section discussed in Install and update apps - https://helpx.adobe.com/creative-cloud/help/install-apps.html provides guidance on how to install through the Creative Cloud Desktop application.
    If you don’t have high speed Internet access available on the computer you can install on then you can download the installation files from http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html and use the steps in http://helpx.adobe.com/creative-cloud/kb/convert-cs6-licensed-under-ccm.html to license the software.
    You will need to be online to submit the periodic activation requests but it sounds like Internet access is available on the computer you are installing.
    Regards
    Rajshree

  • Servlets implementing custom protocol in WLS 6.1

              Hi.
              Does WLS 6.1 support other than HTTP/S protocols with servlets? If it does, how
              requests are dispatched to a servlet implementing a custom procotol.
              b r
              juha
              

    No, I don't think it does. You'll have to implement it yourself.
              "Juha Räsänen" <[email protected]> wrote in message
              news:[email protected]..
              >
              > Hi.
              > Does WLS 6.1 support other than HTTP/S protocols with servlets? If it
              does, how
              > requests are dispatched to a servlet implementing a custom procotol.
              >
              > b r
              > juha
              Dimitri
              

  • Using SPAU for custom development

    Hi Guys,
    take the following szenario:
    We have Development system A and a copy of this system Development system B. Where B is the project system. In the time the systems A and B will be enhanced using different development. At one point in time the developments from system B should be merged with system A. Could this merge be done using some similar functionality like the SPAU after SAP-Upgrade to ensure the developments with origin in A and developments with origin in B are compared and amended in the right way ?
    Thanks for any idea in managing this.
    Best regards,
    André

    ok a small excourse on SPAU.
    When transporting a transport request into the system (same for hot-packages or release-change), a new version is beeing put into the version managment of the referred object.
    SPAU compares the active versions with the ones which got transported.
    Problem at this edge is that SPAU just scans for modifications.
    Modifications are changes to SAP-Standard objects. SPAU just checks for differences in SAP object.
    Objects in customer name room, x or y will be ignored.
    Thats why i dont think you can use SPAU.
    BUT well you could copy the SPAU, and then reprogramm it a way it will not ignore x and y objects.
    When SPAU is done and all is fine, THEN you transport the things to test and productive Server.
    Edited by: Florian Kemmer on May 20, 2008 3:20 PM

  • Authorization Problem (I am Using Authorization For Custom Forms)

    Hi All,
    I am Using Authorizations To My Forms (I created One Addon For This Addon I am Using Authorization).I created Authorization For My Addon But While Working It Showing Some Errors
    . In My Addon Four Forms are there For  this four forms I am Using Authorization based on usres some screens only super  user can access. normal user he is not a super user he  cliekd on that authorization form it shows one message  Your not a authorized user to permitted this operation in this message box we have two butons one is ok button and one is Authorized by another user . When i clicked on Ok Button  I am getting error Internal error (-10) occured [131-183]. Please give me Your Valable Suggestion.
    I am waiting for  your Reply.
    Thanks & Regards
    Naresh

    I am using Sap Authorizations For My Custom Form  See The Code Also U Can Get Clear Idea
    Private Sub CustomAuthorization()
            Dim li_RetVal As Integer
            Dim pUserPer As SAPbobsCOM.UserPermissionTree
            Try
                pUserPer = Me.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserPermissionTree)
                'Purchase Indent
                If pUserPer.GetByKey("NHCL_PM") = False Then
                    pUserPer.PermissionID = "NHCL_PM"
                    pUserPer.Name = "Purchase Module"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->New Purchase Indent
                If pUserPer.GetByKey("NHCL_PM_NPI") = False Then
                    pUserPer.PermissionID = "NHCL_PM_NPI"
                    pUserPer.Name = "New Purchase Indent"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010002"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent->View For Approval
                If pUserPer.GetByKey("NHCL_PM_VIE") = False Then
                    pUserPer.PermissionID = "NHCL_PM_VIE"
                    pUserPer.Name = "View For Approval"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010003"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->Selection For RFQ
                If pUserPer.GetByKey("NHCL_PM_SEC") = False Then
                    pUserPer.PermissionID = "NHCL_PM_SEC"
                    pUserPer.Name = "Selection For RFQ"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010006"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->Purchase Quotation
                If pUserPer.GetByKey("NHCL_PM_PUR") = False Then
                    pUserPer.PermissionID = "NHCL_PM_PUR"
                    pUserPer.Name = "Purchase Quotation"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010007"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->Final Quotation
                If pUserPer.GetByKey("NHCL_PM_FIN") = False Then
                    pUserPer.PermissionID = "NHCL_PM_FIN"
                    pUserPer.Name = "Final Quotation"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010008"
                    li_RetVal = pUserPer.Add()
                End If
            Catch ex As Exception
                Dim ErrCode As Long
                Dim ErrMsg As String
                Me.SBO_Company.GetLastError(ErrCode, ErrMsg)
                Me.SBO_Application.StatusBar.SetText("Authorization Problem" & ErrCode & li_RetVal, SAPbouiCOM.BoMessageTime.bmt_Short)
            End Try
        End Sub

  • Using Servlet for non HTTP purpose

    Hi,
    I have a requirement where I require tomcat to serve a non http request. Is there a way?

    The HTTP protocol begins with a line like:
    GET /some/thing HTTP/1.0
    Tomcat uses the "/some/thing" to find out to which servlet to give the request.
    If your protocol doesn't have that line, Tomcat is going to have a hard time knowing what to do with the request.
    You could write a thread that opens a ServerSocket, accepts incoming requests, and hands them off to a servlet-like system (perhaps even subclasses of Servlet). You could even run that thread within Tomcat. If you want/can restrict yourself to Tomcat, you may even be able to use parts of Tomcat's internals (the Service/Connector/Engine infrastructure or whatnot.) Whether this is a good approach depends on all kinds of details.

  • How to use Cache Management Library (CML) for custom applications?

    Hello,
    We are planning the migration of multiple applications (J2EE, Portal, Web-Dynpro for Java) from 7.01 to 7.3 and we would like to replace some custom cache implementations with a central cache management provided by the SAP Web-AS Java.
    Several SAP standard services (e.g. UME, Configuration Manager, Scheduler) seems to use the "Cache Management Library" (CML):
    [http://help.sap.com/saphelp_nw73/helpdata/en/4a/f833eb306628d2e10000000a42189b/frameset.htm]
    Such caches can be monitored using SAP Management Console (AS Java Caches).
    Portal Runtime (cache_type=CML) and Web Page Composer can also be configured to use CML:
    [http://help.sap.com/saphelp_nw73/helpdata/en/49/d822a779cf0e80e10000000a42189b/frameset.htm]
    [http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/13/76db395a3140fcb17b8d24f5966766/frameset.htm]
    So our questions:
    How to use CML for custom applications?
    Is there any example or documentation available?
    Kind Regards,
    Dirk

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • Do not use tpc 2106T for custom animation Purpose

    I was trying to use TPC2106T for developing a MMI for an application.To my surprise the Labview in built functions for creating custom animations (eg ring control)  does not work for TPC2106T .I had been told this is to do with Windows CE OS (which is installed in TPC)
    So please be careful if you want to use TPC2106T for custom made animation as you might suffer like me.I am using labview 8
    Request information if some body tried the same exercise.

    David_Powers wrote:
    John Waller wrote:
    I thought PM-ing was one of the "benefits" of web forums?
    In theory, it can be.
    Currently, no one has moderation rights, but they are in the pipeline. A moderator will be able to send a private message to an individual explaining why a post or a thread has been deleted, or warning of impending action if that person's behaviour is felt to be disruptive.
    Anyone feeling Waller is a wally or a jolly good fellow will be able to share that information privately.
    Also, someone wishing to commission private (paid) help can do so via a private message. It's up to the individual approached to decide whether to accept such a commission. But I think most of the volunteers who provide help here wish to do so in an open and free manner.
    Well, I don't mind helping people here, obviously, but I don't turn down work, either! 8)
    And I certainly feel that Waller is a wall-er.  Does that count?

  • Feasabilit​y using OPC for COMPLETE PLC IO-NO LADDER LOGIC

    Attention intergration Gurus:
    I was wondering if this is REALLY feasable and would work? We need a high channel output using AB PLC's for air solenoids (high current) and +24v Prox's and such.
    I really would like to get rid of the existing (3 plc) design and use labview to do everything.
    The PLC's inter-communicate via RS232, done by three seperate companies.  Thats why its not intergrated.
    Has anyone really used PLC's I/O withou a Ladder program ??
    I can do both, but want to bring things up to todays tech....
    Thanks
    Eric

    I do this frequently, although not with OPC. Usually we use NI's cFP-180x I/O modules, but we've also non-NI hardware.
    The basic questions you would want to ask yourself:
    Can I afford a situation where the system might not behave correctly (for example, if there is a network error or the desktop machine gets stuck doing something else)?
    Is the technology I'm going to use (OPC, Modbus, custom protocol, etc.) going to be fast enough for the balance of the desired program speed and the channel count?
    If the answer to both of those is yes, then you should be able to do this.
    Try to take over the world!

Maybe you are looking for

  • HT204053 How do I access my iCloud iPad information?

    How can I access my iCloud account from my iPad?

  • How to get rid of internal divider in track list?

    I had a couple of tracks where in the track list there is a vertical divider that can be dragged left and right within the track name area - to the right of the divider is instr number audio track number etc. Now I've clicked on it the divider has ap

  • CAN'T MOVE SONGS IN PLAYLIST

    I create a playlist with songs from my library and then try to drag the songs within the playlist to make a different order and they wont change position from how they were originally dragged in. is there a setting i need to check or uncheck to fix t

  • Infospokes

    Hi Experts, i just wanted to create an infospoke on query results, i mean to say what ever the  the data coming when i execute the query tht should come through info spoke.. now my question is if i create infospoke on multi provider, does it support

  • PDF zu Word exportieren - speichert nur online?

    Hallo zusammen, ich habe mir das Programm runter geladen, mit dem ich PDF Dateien in .doc Dateien konvertieren kann. Soweit so gut, allerdings speichert er die Dateien immer sofort im online Bereich adobe.com Das möchte ich allerdings nicht (und auf