How could JNDI differentiate two ejb have same jndi name but on difference

how could JNDI differentiate two ejb have same jndi name but on difference server
suppose that:
we have two J2EE Server those are Server1 and server2, and both of them have a ejb named Test deployed on it, and I need a java client maybe it is a java Application, servlet or ejb in server1 to get the reference to the ejb name Test, how to use JNDI to get the reference to both of them. those two ejb have same name but on difference server. how could the java client locate them?

You've hit problem #1 in the alleged scalability of EJB containers.
Basically, the whole setup assumes that you're only dealing with one naming service. The expectation is that a given name is bound to a single object, which in this case is the Home interface.
Some systems support clustering, which can allow you to get round this, but the details will depend on you EJB container vendor,
Sylvia.

Similar Messages

  • How could i run two file of same url mapping

    hi,
    i am very new to servlet technolgy using weblogic 8.1 server. i want to know that can i provide same url mapping to two diffrent servlet files.if yes then how could i run files seperatly - i want to know that what should i pass in the address bar.
    my directory structure is
    C:\ ----------> helloWeb
    |
    |----------->WEB-INF
    |------------>classes
    and suppose i have two files in helloWeb directry
    1) ajitAutomobile.java
    2) ajitAutomobileUpdate.java
    i m using "http://localhost:7001/helloWeb/man" in my address bar but it executes only the first servlet added.
    plz help me
    im confused...
    thanx for any answer

    You can not map two servlets to the same url because the servlet container will just send the request to the first url mapping it can match. What you can do is map one servlet that will check the request for a parameter that flags the request and if it finds it will forward the request to the next servlet.

  • Hi All, I am using iphone in UAE and ipad in India usinging same apple id. Earlier I could do imessage  to my Ipad with different name but with  software update,I am unable to do, as signing id for the iphone and ipad is same.How to restore back

    Hi All, I am using iphone in UAE and ipad in India usinging same apple id. Earlier I could do imessage  to my Ipad with different name but with  software update,I am unable to do, as signing id for the iphone and ipad is same.How to restore back

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • HT1430 I have tried the hold the buttons down until it goes off and all that so how could I fix it.? It looks regular but I can't touch it and slide the slider or anything like that

    I have tried the hold the buttons down until it goes off and all that so how could I fix it.? It looks regular but I can't touch it and slide the slider or anything like that

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • Class.forname - Unable to load class if two jars with same package name

    class.forname - Unable to load class if two jars contains same package name exists in classpath.
    JVM is stopping search for class one it finds the package name in the jar file that is ahead in classpath,
    JVM is not continuing search in the remaining jar files.
    For this , I put the jar file that contained class ahead of of ther jar file containing same package name, then it worked.
    Is this a JVM bug ? (JDK 1.5)

    I reported as bug to sun. I got auto email, looks they have not assigned any Bug ID so far.

  • Deleting from multiple tables where few tables have same column name

    Hi,
    I am new to PL/SQL and need some help. I need to delete data older then X years from some 35 odd tables in my schema and out of those tables 25 tables have same column name on which i can have my "where" clause and rest 10 table have different table names. I am doing something like this :
    declare
    table_list UTL_FILE.FILE_TYPE;
    string_line VARCHAR2(1000);
    tables_count number:=0;
    table_name VARCHAR2(400);
    column_name VARCHAR2(400);
    BEGIN
    table_list := UTL_FILE.FOPEN('ORALOAD','test7.txt','R');
    DBMS_OUTPUT.PUT_LINE(table_list);
    LOOP
    UTL_FILE.GET_LINE(table_list,string_line);
    table_name := substr(string_line,1, instr(string_line,'|')-1);
    column_name := substr(string_line, instr(string_line,'|')+1);
    DBMS_OUTPUT.PUT_LINE(table_name);
    DBMS_OUTPUT.PUT_LINE(column_name);
    IF column_name = 'SUBMISSION_TIME' THEN
    delete from :table_name where to_date(:column_name)<(sysdate-(365*7));
    ELSE
    delete from || table_name || where ( || to_date(column_name) || ) <(sysdate-(365*7));
    END IF;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    UTL_FILE.FCLOSE(table_list);
    DBMS_OUTPUT.PUT_LINE('Number of Tables processed is : ' || tables_count);
    UTL_FILE.FCLOSE(table_list);
    END;
    WHERE the text file "text7.txt" contains list of table name and column names separated by a pipe line. But when I execute the above proc it gives error "invalid table name".
    Can something like this be done or is there any other way to execute this task of deletion from 35 tables.
    Thanks.

    Thanks for replies. I don't know what I am doing wrong but still not getting this damn thing work...This is the proc i am running now :
    declare
    table_list UTL_FILE.FILE_TYPE;
    string_line VARCHAR2(1000);
    tables_count number:=0;
    table_name VARCHAR2(4000);
    column_name VARCHAR2(4000);
    code_text VARCHAR2(2000);
    BEGIN
    table_list := UTL_FILE.FOPEN('ORALOAD','test7.txt','R');
    LOOP
    UTL_FILE.GET_LINE(table_list,string_line);
    table_name := substr(string_line,1, instr(string_line,'|')-1);
    column_name := substr(string_line, instr(string_line,'|')+1);
    IF column_name = 'SUBMISSION_TIME' THEN
    DBMS_OUTPUT.PUT_LINE('do nothing');
    ELSE
    code_text:= 'begin delete from'|| (table_name) ||'where to_date' || (column_name) || '<(sysdate-(365*7))';
    Execute Immediate code_text;
    END IF;
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    UTL_FILE.FCLOSE(table_list);
    DBMS_OUTPUT.PUT_LINE('Number of Tables processed is : ' || tables_count);
    UTL_FILE.FCLOSE(table_list);
    END;
    But it gives following error :
    " ORA-06550: line 1, column 51:
    PL/SQL: ORA-00933: SQL command not properly ended
    ORA-06550: line 1, column 7:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 1, column 68:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    ORA-06512: at line 22 "

  • How To Create Table View With Same Column name But Different Table?

    Hi All,
    I have the problem to create a tableview with same column name but in different table.
    The Table that i have:-
    Table - PAC051MPROFORMA
    Column - mrn,visitid
    Table - PAC051TPROFORMA
    Column - mrn,visitid
    Table - PAC052MTRANSBILL
    Column - mrn,visitid
    Then i want to create a table view to view that table. This is my SQL
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    That SQL Return this error = ORA-00957: duplicate column name
    Then I modify that SQL to
    CREATE VIEW pacviewproforma (mrn,visitid)
    As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
    where
    *(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
    and
    *(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
    This time this error return = ORA-01730: invalid number of column names specified
    What should i do?
    Thanks...

    Hi,
    SQL> CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
    ERROR at line 1:
    ORA-00957: duplicate column namePlease give different names to each column.
    Something like this..
    SQL> CREATE OR REPLACE VIEW pacviewproforma (MPROFORMA_mrn,MPROFORMA_visitid,TPROFORMA_mrn,TPROFORMA
    _visitid,MTRANSBILL_mrn,MTRANSBILL_visitid)
      2  As Select
      3  PAC051MPROFORMA.mrn,
      4  PAC051MPROFORMA.visitid,
      5  PAC051TPROFORMA.mrn,
      6  PAC051TPROFORMA.visitid,
      7  PAC052MTRANSBILL.mrn,
      8  PAC052MTRANSBILL.visitid
      9  from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
    10  where
    11  (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
    12  and
    13  (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
    View created.
    SQL> DESC  pacviewproforma;
    Name                                      Null?    Type
    MPROFORMA_MRN                                      NUMBER
    MPROFORMA_VISITID                                  NUMBER
    TPROFORMA_MRN                                      NUMBER
    TPROFORMA_VISITID                                  NUMBER
    MTRANSBILL_MRN                                     NUMBER
    MTRANSBILL_VISITID                                 NUMBER
    ORA-01730: invalid number of column names specifiedThe list of column nmae you specified during the CREATE VIEW should match with the SELECT list of the view.
    Twinkle

  • How to download when i already have a serial number, but no drive to install the cd in my lap

    how to download when i already have a serial number, but no drive to install the cd in my lap

    Download the trial version and activate it.
    Mylenium

  • Do all the people in family sharing group have to have same last name?

    do all the people in family sharing group have to have same last name?

    Hi ant_barry,
    Happy New Year!  The Family Sharing program does not require members of the family to share the same name.  Here is some general information for you:
    OS X Yosemite: What is Family Sharing?
    http://support.apple.com/kb/PH19007
    Family Sharing lets up to six members of your family share their iTunes Store, App Store, and iBooks Store purchases, a family calendar, family reminders list, and family photos, all without sharing accounts.
    One adult—the family organizer—sets up Family Sharing, invites up to five people to join the family group, and agrees to pay for any iTunes Store, App Store, and iBooks Store purchases those family members initiate while part of the family group. Once set up, family members get immediate access to each other’s music, movies, TV shows, books, and eligible apps. In addition, family members can easily share photos in a shared family album, add events to a family calendar, share their location with other family members, and even help locate another family member’s missing device.
    Each family member needs to have an Apple ID he or she uses for iCloud. For a child too young to create his or her own Apple ID, the family organizer can provide parental consent for a child to have his or her own Apple ID and create it on the child’s behalf while adding the child to the family.
    To join a family, you must sign in to iCloud with your Apple ID. You will also be asked to confirm the Apple ID you use for the iTunes Store, App Store, and iBooks Store. You can be part of only one family group at a time, and you can switch families at most once per year.
    Family Sharing is available on iOS devices with iOS 8 or later, Mac computers with OS X Yosemite (v10.10) or later, and Windows computers with iCloud for Windows 4.0 or later.
    Join a family
    Set up Family Sharing
    Last Modified: Nov 19, 2014
    Cheers!
    - Judy

  • When i open an irc link with a channel name that contains "~" at the end, firefox (14.0.1) opens the same channel name but with "%7E" instead of "~" at the end

    when i open an irc link with a channel name that contains "~" at the end firefox (14.0.1) opens the same channel name but with "%7E" instead of "~" at the end
    http://img835.imageshack.us/img835/2856/clipboard05nq.jpg

    I can not open the image, but I can say something in general about the tilde.<br>
    The tilde "~" is an unreserved character and therefore it can be replaced by its percent-encoded form "%7E" inside a URI without changing meaning. See<br>
    http://en.wikipedia.org/wiki/Percent-encoding<br>
    According to section 2.3 of RFC3986 we should prefer the unencoded form so this behavior seems to be a bit out-dated.<br>

  • JDev9i-Beta;How could I run two JSP applications in Jdev enviroment at the same time?

    Hi,
    I have two JSP applications located on different directories. I wanted to run both applications at the same time in Jdev enviroment. But the second one failed.
    More info:
    I successfully ran Application1, then minimized the browser and ran Application2, then again minimized the second browser. After I maximized the first browser(Application1) and tried to go thro pages, I received page not found. Because Jdev sat up the Class Path for the newer application(Application2) and looks for pages there. I believe thats why I could not run both at the same time. How could I get around of this?

    hi,
    can you provide more details on this. Are these jsp files part of the same project or different projects. I can not duplicate this issue. Please provide us more information.
    Thank you

  • How can i give two tcode in same program

    Hi all,
    How can I give two tcode to the same program in which two conditions call in that two t codes
    how can I do so please help me for that.
    Ketan
    ABAP consultant

    hi,
    In your case, if the calling of the two transactions is mutually exclusive,
    then
    IF
    call transaction 'A'.
    else.
    Call transaction 'B'.
    endif.
    else,
    if you need to call the transactions one after the other,
    CALL TRANSACTION 'A'.
    CALL TRANSACTION 'B'.
    Thanks
    Sharath

  • How do now open two copies of same page

    As a business short cut I cut and paste from one copy of a web page to another copy. Your new feature disallows two copies of same page. Is there a way to force two copies?

    Are these four steps in a procedure, or are they four different ways to accomplish the goal? I've never used the versions of Firefox since that feature was implemented so I can't visualize doing any of them either way.
    Is there some way to disable the Switch To Tab in the configuration file? Does the ''about:config'' access still exist?
    The Switch To Tab "feature" is the primary reason that I have declined to Switch To "Rapid-Bug-Development" Firefox and plan to remain with Firefox 3.6 indefinitely.
    Whichever person(s) decided to implement this "feature" obviously did not have a clue as to the usefulness of ''opening a tab which is identical to an existing tab'' while, for example, investigating a labyrinth of data sheets on a technical website. After it is opened, browsing continues on the new tab, which makes it easy to return to the page from which one departed without hitting the Back key umpteen times and waiting while the pages are re-displayed in reverse order (among other less efficient alternatives). The "user" just returns to the tab for the page-of-departure to resume, regardless of whether s/he also wants to close the tab on which s/he continued browsing.

  • Show Rows Where Two Columns have Same Data

    Hello,
    I have a spreadsheet that I need to sort by showing me all the rows where the data is equal between two columns.
    I.E. I have a column called Last Name and I have another column, U, with some of those Last Names, I want to sort the spreadsheet to show me only the rows that match up with the same Last Name in coumn a and U.
    Thanks for any help.
    L

    To sort the table:
    Add two columns to the table. For this discussion, I'll refer to them as columns AA and AB.
    In AA2, enter: =ROW()
    Fill to the bottom of the table. With all f these cells selected, Copy, then Edit > Paste Values.
    This gives you a column you can sort by to restore the original order of the table.
    In AB2, enter: =IF(A=U,U," ") using option-space between the double quotes.
    Visually, this will repeat the duplicated names once more in column AB.
    An ascending sort on column AB will bring all rows with duplicate data in columns A and U to the top of the table.
    For greater visibility You might also add a conditional format rule to all of column AB, as I've done here for column D:
    The box to the right of "Text doesn't contain" contains a single 'option-space' character. The ascending sort (on column D) has not yet been done.
    Regards,
    Barry

Maybe you are looking for

  • What is the lowest prices for an ipod touch 5th generation yellow

    what is the lowest price for a new ipod touch 5th generation 32 gb yellow pink and blue

  • Preview.app's "Mail Document" & Entourage?

    Preview.app's "Mail Document" & Entourage? Has anyone noticed that Apple's Preview.app will allow you to email a PDF as an attachment, but it will only work with Apple's Mail.app. Of course I don't use Mail.app, I use Entourage 2008 (Exchange client

  • Meduim burn problem

    Hey folks, I've tried a few different burning softwares, searching for Itunes alternatives. All of them are failing to burn because of a "medium write error". What does this mean & how can I resolve this issue? Much Thanks, Jackson

  • Migrating to new computer

    Hi. I'm migrating to a new computer. Do I have to uninstall CS3 from my previous one?

  • How two or more table used in smartforms

    Sir, Like to know how can i perform calculation in smartfrom if the fields is numeric and use two table, and also know about it is useful to use inner join or any other method in smartform for working with two or more tables simultaneously. plz, expa