Why the name Distributed Technology is given to EJB

Why the name Distributed Technology is given to EJB
Hi ,
WhenEver EJB is used also the term Distributed Technology is associated with them .
My Question here is that how or why Servlets or JSP cannot be called as Distributed Technology
THnaks in advance .

Hi,
There is a difference between Servlet and EJB ;
- Servlet are deployed in a servlet container and executed in the same JVM where the servlet container is exceuted and it sends the resulte as a stream to the web browsers.
- In EJB an Entreprise bean can be deployed in a EJB container and it will be called via RMI by a java program executed in a remote JVM .

Similar Messages

  • Why the name "encodeUrl" is replaced by "encodeURL"?

    Hi, everybody
    I notice that the method encodeUrl( ) is replaced by encodeURL( ) in the interface HttpServletResponse.
    I don't why because I think the older name is better. If two words like HTTP and URL are both in a name, the name will look like "HTTPURL" in the new way, "HttpUrl" in the old way. The later one is more readable.
    Regards

    public java.lang.String encodeUrl(java.lang.String url)
    encodeUrl
    Deprecated. As of version 2.1, use encodeURL(String url) instead
    public java.lang.String encodeURL(java.lang.String url)
    encodeURL
    Encodes the specified URL by including the session ID in it, or,
    if encoding is not needed, returns the URL unchanged.
    */

  • Why the name of our source file should be same as the 'public class'  name

    Hi all,
    I am very new in java and have a question in my mind.
    I read somewhere , our souce file name should be same as public class in that file.
    but i don't know the reason for this.
    Can anybody help me out with this .
    Thanks,

    HMRPanchal wrote:
    Thanks,
    Can you give me some link or documents from where I can go through this article.
    because I am not clear with what you are saying( makefiles , automatic recompilation etc).
    I am a new in Java .The fact that you don't have to worry about those things is what makes it A Good Thing.

  • Why the name Reverse Telnet ?

    Forgive me for this simple ( and to some, stupid) question. Why is reaching the console ports of devices attached to a terminal server called Reverse Telnet. I am confused about the "Reverse" part.
    1. You reach "terminal server" by some suiteable means (telnet, ssh, console) from a device say your computer.
        c:\> telnet 10.10.10.1
        termsrv >
    2. You effectivily telnet to localhost (terminal server) on a specific port bound to certain TTY connection
        termsrv > R1                                  ! ip host R1 2001 <<loopback_address_termsrv>>
        R1>
    Whats different for this second telnet is, instead of the telnet server (running on terminal server) presenting you with a second command shell it connects the mapped console port to the new telnet session. Effectively you read from or write to console port of R1.
    R1 is oblivious about this whole operation. What's so "Reverse" about this second telnet session ?
    Thanks.

    Ah, this is a good question.  Step into my time machine, and travel with me back to late eighties.  The 3Com 3C501 PC Ethernet card was released at the bargain basement price of $999 USD and the mighty Interl 386-DX33 was released to great fanfare.  Windows ran on top of DOS and all PC IP networking stacks were 3rd-party bolt-ons.  When you communicated with a computer, whether DEC, IBM or whomever you did it with a DUMB TERMINAL.  A terminal, for thos eof you who have never sern one,  was either a keyboard and a printer combo (like a Decwriter 100)  or a CRT text screen (Like a VT220, 80 columns by 24 lines) and a keyboard.  What you typed went out the serial port to a computer, and the computer sent text and screen drawing back commands through that same serial port.  That was the common human-computer interface of that era.
    In the bad old days, the terminals were connected directly to the computers by serial interface cards and RS-232 cable.  As computers got faster, more and more terminals could be supported.  This started to get ridiculous as many serial lines emerged from these computers.  The bigger computers  looked like a mutant octopus.
    Enter the TERMINAL SERVER, one of Cisco's early products. (The ASM)
    The Cisco ASM terminal server took up to 96 terminals in an area and provided serial port connections for them.  It then multiplexed those terminals over Ethernet in order to reach an Ethernet connected computer (host).  The host computers were now freed from the sea of serial cables and could service dozens to hundreds of terminals thorough a single Ethernet port!   As a result, dozens to hundreds of slow, lightly used 9600 bps serial cables were replaced by a single 10 Mbit/sec connection.
    The Cisco ASM software provided a telnet client to each serial port so that each terminal could connect to any telnet server (host) on the any network.  This allowed users to connect to multiple computers and relieved the load of computers providing telnet client services to directly attached terminals.  In this model, connections were initiated from a terminal on the port of the Cisco ASM to some distant computer.
    Over time, Cisco noticed that there were computers and other devices (like the IBM 7171) that could not support Ethernet conenctions, but had dozens upon dozens of physical serial ports.  To make it so that network based telnet clients all over the Internet could access such an Ethernet-free computer, Cisco implemented a telnet SERVER function in the ASM.  Connections from a distant telnet client could now conenct through the ASM telnet server and reach these serial ports which had previously been limited to local terminals or expensive modem connections.  Since this activity was the exact reverse of the original use of the ASM, the function became known as "Reverse telnet."
    In summary:  When a serially attached device CONSUMES service FROM the network, that is TELNET.  (The original design!)
    When a serially attached device PROVIDES services TO the network, that is REVERSE TELNET. (The opposite of the original design.  But useful!)
    Now, I will wait for people who have been in the industry longer than I have to go on about SNA, 3270s, paper tape and punch cards.

  • Why the name of this forum is confusing

    We are running Endeca, but not the Experience Manager.

    Hi Joe,
    We see search and navigation as part of managing experiences. With our 3.1 release you can see that in addition to new MDEX features, we invested heavily in a new framework and interfaces for application developers and business users.
    Sean

  • Why can't I move the "name" column??

    This is a question that has been bothering me for a very long time. Why can't I move the "Name" column in the library (or playlist) view away from it's left position? It seems to be locked into place. I can move and arrange artist, album, time, bitrate, track #, etc etc etc to any configuration I so desire, but yet the name column remains eternally glued to the left side of that pane, never to be moved.
    The reason I ask, is because when I organize my music, I don't immediately think of track names, I think of artists. Especially in this day of cds I am hard pressed to recall individual song names. At home my albums and cds are filed by artist name, not by song name (physically impossible, obviously). It's a natural tree-like organization... artist->album->song name. I want to configure the library view in iTunes to match this same logical hiearchy but for some reason iTunes will not let me do this one extremly simple thing... argh and double argh!! Is there any reason for this? Is there any way to solve this?

    Chad hello,
    Everybody here has given you good advice so I will explain why the name column can not be moved...
    Your Music library is a data base and a data base has to have at least one totally unique index field for each file... now it can not be the Artist as you can have as many songs as you like by the same artist... same reason for the album, one album can have many songs but the same album name... same for genre etc.
    The only thing that can be unique is the song title... If you put the exact same song by the same artist the program will assign a unique name by adding a number in front of the extension for each duplicate .... example
    Song Name.mp3
    Song Name_1.mp3
    Song Name_2.mp3
    So when you think about it the song name is the only thing that is different... one album by the same Artist may have more than one track of exactly the same length, size, genre, composer etc. moving through all fields except the name....
    Now why can't you move the name column... well all the other fields do not have to be unique so you can move and/or remove these columns but if you could remove the name column you could end up with more than one entry in your library looking exactly the same.... you have to have something that allows you to separate them and that is the unique index field 'Song Name'....it could not work any other way..
    hope you can follow all that.... take care... TP

  • Why is OC4J changing the name of my cookie?

    My application includes a servlet filter. In that filter, I am setting a cookie to track some data back on the client. The name of the cookie is "ibms_user" and I post a code snippet below. The problem is that, when it gets back to the browser, the name has been changed to $OC4J_ENCODED_ibms_user.
    Here is the code snippet:
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
    //Convert the Servlet objects to http objects
    HttpServletResponse res = (HttpServletResponse) response;
    res.addCookie(createIbmsCookie(req.getUserPrincipal().getName(), false));
    HttpSession session = req.getSession(true);
    . (other, irrelevant code)
    Cookie c = new Cookie("ibms_user", "some value");
    c.setPath("/");
    c.setDomain(".jpl.nasa.gov");
    c.setMaxAge(-1);
    //Add the cookie to the response.
    res.addCookie(c);
    //Pass on to the next request
    chain.doFilter(req,res);
    There is a known issue with the code above, in that the cookie is getting set before the call to doFilter(). Regardless, I don't understand why the name is being changed.
    To complete the picture, you should know that the application is setting up to authenticate against OID and uses OracleSSO (at the web server level, not javasso). The version of OC4J is 10.1.3.3.1 on Solaris 9 (64 bit SPARC).
    Thanks for any hints,
    Ara

    Hi,
    this question should be posted to the OC4J forum or the application server forum, not JDeveloper
    OC4J
    Frank

  • How to get the name of a field without specifying it as a string (somehow v

    Is it possible to get the name of a field (or method) somehow via the class in which it is declared?
    The reason why I ask is, that quite often the name of a field is important, because the name is the anchor for further processing, like for example when using reflection (e.g. Class.getfield(“NameOfTheField”)).
    Assume you have class FooSimple with the field “String firstName”.
    Now you would do something like this:
    Class<FooSimple> cls = FooSimple.class;
    Field f = cls.getField("firstName");
    The problem is, that the string “firstName” is kind of “hard coded”. When the name of the field in class FooSimple changes (e.g. to “theFirstName”), the invocation will not work anymore when you forget to change the string too.
    I think it would be very helpful to have access to the name of the field directly via the class by doing something like this.
    Class<FooSimple> cls = FooSimple.class;
    Field f = cls.getField(FooSimple.firstName.fieldName);
    The Java Compiler would then resolve “FooSimple.firstName.fieldName” to the string “firstName”. When later the name of the field is changed, the IDE would change the name everywhere where it is used. So if the name of the field would be changed to “theFirstName” the IDE would also change the statement to
    Class<FooSimple> cls = FooSimple.class;
    Field f = cls.getField(FooSimple.theFirstName.fieldName);
    A technique like this would be in my opinion much more safety and more generic.
    Any ideas?
    Best Regards.

    Well, I think the discussion is going in a wrong direction because the original issue was not to discuss if it is worth coding some helper classes or a framework or that like. Let me bring it back to my original point.
    Basically you can reduce my original question to this:
    Currently it is possible to use the reflection API on a class level without specifying the name of the class with a string constant.
    My issue is, that I think it would be a nice extension for Java, if the same would be possible for field variables of a Java class. Currently the only way you can do this is by specifying the field variable with a string constant.
    Let me bring some motivations which brought me to this issue.
    Assume you have an entity bean which represents a DB table and you use Java Persistence (either JPA or something like Hibernate). Then you would have a class looking like this (very simple sample to make this reply shorter).
    @Entity
    @Table(name = "PERSON")
    public class Person implements Serializable {
         @Column(name = "NAME")
         private String name;
    // … constructor, getter, setter, etc. not listed here
    }The whole issue of the design of JPA is, that such entity beans represent the mapping between the object model and the DB model, the mapping is expressed with annotations.
    Okay, now let’s assume you write a query in Query Language, e.g.
    String sql = “select p from Person p where name = :name”;“name” is the name of the field variable, “:name” is the parameter you later set with “Query.setParameter” method.
    What is not so nice is the fact, that you use the name of the class and the name of the field variables “hardcoded” to construct the query. Now you could think that basically this information is part of your entity class. First you start with the name of the class (i.e. the table name) to decouple this “hardcoding”.
    You could write instead:
    String sql = “select p from “ + Person.class.getSimpleName() + “ p where name = :name”;This is really nice, because whenever you change the name of your Person class, this change happens automatically for the sql statement as well.
    I think the next thoughts are obvious, now, since you have decoupled the “hardcoded” part of the name of the class, you would like to do the same for the names of the field variables. But now you are stuck, there is no way to do this using a similar technique like for the name of the class. Either you stay with the query as it is now, or, to make it a little bit better, you code string constants for the field variables and use them. This issue brought me to the point that I think it would be nice to have the possibility to get the name of a field variable in a similar way as you can get it for the name of the class.
    Conceptually it is just to go one level deeper, i.e.
    first level is to get the name of a class
    second level is to get the name of the field variable of a class.
    Another sample would be, if you want to code something by using reflection. You have perfectly access to the reflection API starting at the class level like Person.class.allTheNiceReflectionMethods. There is no need to specify the class first with a string constant first, you directly start with the class, you can even be generic and just work on the Class.class level and still have access to all these nice methods to get out the information you need.
    But if you need to start with a very specific field variable (like in the sample above), you must go by using a string constant like Person.class.getDeclaredField(“name”).
    So basically I think that there exist already millions of lines of Java code where a field variable is specified for further processing, especially in combination with the reflection functionality and everywhere the field variables are specified by these string constants in double quotes. I would assume, that everyone has the same problem, once changing the name of the field variable means to take care that also the content of the string which specifies the name of the field variable is changed.
    I am wondering why one of the replies commented, why the name of a field variable is changed, it sounds to me that this is something which basically never happens. I don’t know, I think that this happens actually quite often and thanks to all these nice IDEs and their “rename” feature this is usually no problem. From time to time names of classes change, name of field change, yes, they are often even completely rewritten, new field variables come in some are deleted, whatever it is. The way I currently can access the name of a class makes the code safer, because when I consequently go with Class.class.getSimpleName I always know, that when I rename the class all these statements are changed too If I delete such a class, I at least get a compile error.
    My very simple issues is, that I think it would be nice to have the same comfort not only on a class level but also on the level of field variables, nothing more, nothing less.
    To be honest, I have not browsed the forum yet if such an issue was already raised by other people (I will do this now), but somehow it is hard to imagine, that I am the first one.
    Best regards.

  • How to change the name of the field in a ztable

    hi all,
    i have created a ztable with few fields, now i want to modify the name of the
    primary key field,means i want to change the name which i have given under the
    FIELDS tag. can anyone tell me how to do this.
    Thanks,
    satish.

    Hi,
    Please try this ...
    1. Go to SE11.
    2. Enter database table name.
    3. Click on change button.
    4. Then overwrite with the old field with new field name including the data element.
    5. Save and activated.
    6. Go to SE14 and enter above table.
    7. Click on edit button.
    8. Click on activate and adjust database with save data option.
    Regards,
    Ferry Lianto

  • Why the App can automatically installed without my permission?

    Why the Funshion Online Technologies App can automatically installed on my iPhone which without my permission?

    What good does that link do? That web link tells you how to go back to version 3.6. I just want to go from version 9 back to 8.

  • When using Quite Imposing Plus the resulting file is only given a Temp name which will be sent as the document name.

    Our company has recently upgraded form Acrobat Professional 8 to Acrobat professional XI. We also use the Quite Imposing Plus plug-in in both versions. Now when using Quite Imposing Plus the resulting file is only given a Temp name which will be sent as the document name to the printer unless the imposed document is first saved. This was not the case in Acrobat Professional 8. I have attached a screen shots that shows an example.
    Is there any reason why this is happening and how can we stop it.

    Thank you for your advice although I think you may be incorrect as the naming of the documents made with Quite Imposing is correct in Acrobat 8.
    After reading the comment below it would seem something has changed from version nine onwards.
    Going forward we plan on changing the way we save and send our imposed documents to print but thank you for your time.

  • Why not invent a tablet with a i5 or i7 reader, DVI, USB ... who would wear the name of ipac or imad

    why not invent a tablet with a i5 or i7 reader, DVI, USB ... who would wear the name of ipac or imad

    Not sure why a tablet would need a Core i5 or a Core i7, particularly given that it would shorten battery life dramatically, but you can submit your suggestion to Apple here:
    http://www.apple.com/feedback
    The current iPad can output via DVI (using an HDMI to DVI adapter), by the way.
    Regards.

  • How to find the name of query for a given report

    Hi All,
    I am having the name of a report and i need to find out the name of query for that report . Plz tell me how to find out the name of the query for a given report.
    Thanks.
    Regards,
    Pooja Joshi.

    Use this FM
    RSAQ_DECODE_REPORT_NAME
    This FM takes program name as I/P and gives Query Name as O/P.
    This FM uses the structure AQADEF to fetch the data.
    Hope this helps.
    Regards
    Vinayak

  • The name of my wireless network in the form of my modem router is not read from the iPhone, while the first era.Il my ipad does not read the network but I surf the internet. Why? What can I do?

    The name of my wireless network in the form of my modem router is not read from the iPhone, while the first era.Il my ipad does not read the network but I surf the internet. Why? What can I do?

    Can I use this DIR-635 to extend the WiFi network of the "Belgacom" WiFi?
    To answer this question correctly, a user would need to have a DIR-635 router connected by Ethernet to a Belgacom router.
    If you think about it, the chances of another user who has these two same devices configured this way and also being on an Apple support forum to see your post are about zero.
    The following might work, but you will not know until you try.
    Configure the DIR-635 to provide a wireless network that uses the exact same wireless network name, exact same wireless security and exact same password as the Belgacom wireless router. Make sure that the DIR-635 is configured in Bridge Mode.
    Can I purchase and set-up an Apple Airport Express or Apple Airport Extreme on my level 1 (the ethernet cable running from level 2 to level 1 could plug-into either of those)
    The AirPort Express or AirPort Extreme would need to be configured exactly the same way as mentioned above.
    (What is the difference in the 2 -- one is about twice the price of the other…)
    http://www.apple.com/wifi/

  • Table of content, I want to display just the image for each chapter and the name of the chapter. my book is not landscape format but each time I draging a picture into a specific chapter it duplicate it to all chapters why?

    table of content in a landscape orientation.
    I want to have in my table of content only image and the name of the chapter which is each to do.
    my problem when I am draging an image to each chapter it copied it to all chapter although I am marking only the specifc chapter.
    why? how can i overcome it?

    Are you using Microsoft word?  Microsoft thinks the users are idiots. They put up a lot of pointless messages that annoy & worry users.  I have seen this message from Microsoft word.  It's annoying.
    As BDaqua points out...
    When you copy information via edit > copy,  command + c, edit > cut, or command +x, you place the information on the clipboard. When you paste information, edit > paste or command + v, you copy information from the clipboard to your data file.
    If you edit > cut or command + x and you do not paste the information and you quite Word, you could be loosing information.  Microsoft is very worried about this. When you quite Word, Microsoft checks if there is information on the clipboard & if so, Microsoft puts out this message.
    You should be saving your work more than once a day. I'd save every 5 minutes.  command + s does a save.
    Robert

Maybe you are looking for