Find the bean name in the server environment

Hi,
I'm trying to get the bean name (Session or Entity) that had called another bean.
I mean, there is a method in my entity bean the ask the following: "Hey, who called
me?"
I think it's so easy :)
Could anybody help me?

If you mean that you want the username of the person who used the bean, you
can get that by entitycontext.getCallerPrincipal(). If you want to know
what's the class/method that called, it's not possible without tapping into
the low-level guts, which is not something that a vendor would document
openly. More easy is developing it yourself:
void doSomething() {
StatefulHome home= ...
Stateful sfb = home.create(this.Class().toString(), //caller class
"thisEJB" //caller's JNDI name
Emmanuel
"Denis" <[email protected]> wrote in message
news:3d418e31$[email protected]..
>
The entity bean that had been called has a column in the database (aforeign key,
for example) that represents the caller.
Did you understand me?
Rob Woollen <[email protected]> wrote:
It's not so easy :< What are you trying to achieve? Something for
security purposes or something else?
-- Rob
Denis wrote:
I have to get also the EJBModule name.
Thanks!
"Denis" <[email protected]> wrote:
Hi,
I'm trying to get the bean name (Session or Entity) that had called
another
bean.
I mean, there is a method in my entity bean the ask the following:"Hey,
who called
me?"
I think it's so easy :)
Could anybody help me?

Similar Messages

  • HT201320 I have an email account through yahoo. I am having trouble setting it upon my iPhone and can't receive or send emails!!!! I contacted Rogers and they said I need to find out the host name of the incoming server, in other words yahoos host name. H

    I have an email account through yahoo. I am having trouble setting it upon my iPhone and can't receive or send emails!!!! I contacted Rogers and they said I need to find out the host name of the incoming server, in other words yahoos host name. Help!!

    Yahoo's servers are notoriously unreliable. Use the "Yahoo" account type when setting it up. If it doesn't work, and you are positive the credentials are correct, wait a while and try again.
    While you're waiting, set up a free gmail or iCloud email account.

  • I have some loops from acid 5 which I have dragged in a folder to the loop browser.  Some of them retain the folder name in the View: and some don't.  I have had some that seem to go in but I can't find them.  Where should I look?

    I have some loops from acid 5 which I have dragged in a folder to the loop browser.  Some of them retain the folder name in the View: and some don't.  I have also had some that seem to go in but I can't find them.  If I try to add them again, I get a msg that they are already there.  Where should I look?

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • I started downloading my Upgrade to Photoshop Elements Version 13 and received my upgrade confirmation and cannot locate the download on my PC running Windows 7,what is the exact name of the download and where should I find it?

    I cannot locate the upgrade to Photoshop Elements 11 to Version 13, which I purchased today and started the download as per the Order Confirmation. My order No. is AD014117711. I am running Windows 7 on my PC and cannot locate the Download. How do I find it? What is the exact name of the Download?

    EdWeidman by default the download will be saved to your Download folder.  I do not know the exact name of the file which was provided to you.

  • How to find out the printer name for the Idoc

    Hi guys
    I want to find out the printer name for the Idoc,,some default printer is attached for one idoc,then how can we see the printer name for this idoc.
    Regards
    Madhoo

    Hi,
    For ALE/IDOC the  medium will be either ALE or EDI but not printer.So it might be wrongly attached.As such there won't be any printer attached to idoc.
    Regards,
    Nagaraj

  • [svn:bz-trunk] 15217: Bug: BLZ-508 - If server receives message for an unknown destination it shouldn ' t include the destination name in the error message sent back to the client .

    Revision: 15217
    Revision: 15217
    Author:   [email protected]
    Date:     2010-04-05 03:43:36 -0700 (Mon, 05 Apr 2010)
    Log Message:
    Bug: BLZ-508 - If server receives message for an unknown destination it shouldn't include the destination name in the error message sent back to the client.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Changed the error message to not include destination id. I'm also checking in a few minor fixes I had locally.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-508
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties
        blazeds/trunk/modules/core/src/flex/messaging/MessageBroker.java
        blazeds/trunk/modules/core/src/flex/messaging/cluster/JGroupsCluster.java

    Thanx Mete, yeah i did...
    but i solved it some other way... not entirely sure this was
    it though as i was doing a lot of things at once...
    it was fds.swc... possibly it was out of date or missing.

  • How to change the SID name in the server

    hi all,
    i installed oracle 10g R1 on windows 2003 server. i gave an sid and created a database. the database is new and there is no data in the db. now i want to change the SID name of the database. pls help me in doing this.
    regards,
    nagarjuna

    Hi,
    Just a notice: SID and DBNAME are two different things. But the usual practice is to have SID = DBNAME, so let me assume you want to change both SID and DBNAME.
    Either you can do it manually by recreating the controlfile as orawiss suggests. You may discover some challenges around the way (for instance, for the command CREATE CONTROLFILE SET "new_dbname" to work, you have do delete or rename the old controlfiles first).
    Or, you can change it easier by using nid utility. The detailed howto and all implications can be found on:
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10825/dbnewid.htm
    Basically:
    SQL> create pfile from spfile;
    SQL> shutdown immediate;
    nid TARGET=sys/password@oldname DBNAME=newname
    copy the initoldname.ora to initnewname.ora and edit the DB_NAME parameter to reflect the new name
    sqlplus / as sysdba
    SQL> create spfile from pfile;
    SQL>startup mount;
    SQL> alter database open resetlogs;
    Then don't forget to generate new password file for the new dbname (using orapw) and make changes in tnsnames.ora and listener.ora if needed.
    Just make sure, the database has been properly shut down before changing the db_name either manualy by recreating controlfile or by the newid utility, as the renamed database has to be opened with resetlogs - making any crash recover of improperly shut down database impossible.
    Kind regards,
    Martin

  • Using column value is it possible to find the table name in the database?

    Hi all,
    using column value is it possible to find the table name in the database?
    guys i need the table value
    Note:
    oracle-9i
    for example:
    i don't know NIC(column value) in which table in the database.
    Thank you,
    with regards,
    JP.
    Edited by: Guest on Feb 27, 2012 5:42 AM

    Hi,
    As far as I understand what you are asking for I would suggest 4 data dictionaries that will help you to know the table name from the column names
    1. USER_TAB_COLS
    2. ALL_TAB_COLS
    3. DBA_TAB_COLS
    4. COLS
    These can give you detail information about the columns and respective tables at user, schema, dba level. Further information on the table can be found by querying ALL_OBJECTS table giving table_name as Object_name, or you can join the data dictionaries too.
    To know about various data dictionaries avalible in Oracle please query select * from cat;
    Let us know if you need further assistance.
    Twinkle

  • "iTunes could not sync calendars to the iPhone "name" because the sync server failed to sync the iPhone".

    I get the message "iTunes could not sync calendars to the iPhone "name" because the sync server failed to sync the iPhone" every time I sync the iPhone 3GS with iTunes by USB.  Can anyone help? Please !!!!

    I posted the following to "iTunes could not sync calendars to the iPhone "xx" because the sync server failed to sync the iPhone. What does this mean??" at https://discussions.apple.com/message/15820680#15820680
    I haven't seen it mentioned but the secret is to
    Sync only selected calendars
    Select "Remove Calendars" from the popup window
    (This is ambigous: from where are the calendars removed?  From the device being synced to)
    Click apply.
    Oops!  My memory is already gone stale.  I think I left no calendars selected, then clicked apply.  Then I selected the calendars that I wanted, then clicked apply.
    In any case, I had a blank calendar on my iPad and then I had all the updated events that I wanted on my iPad.
    Thanks to all who provided some of the essential clues to resolving this problem.

  • Changing the host name of the server - impact on old Urls

    All,
    We are in the process of moving data centre and as part of this the host names of the BW servers will be changed and pointing to the new IP address, how and what configuration at BW server level to make sure all web reports points to the new host name when the url is generated.
    Thanks

    looked at the note 805344 and that helped me to understand...

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • How to get the Host name of Unix server

    Hi all,
    I am need to use the Host name of application server for some purpose.
    where can i see the host name of the unix server ?

    SYST-HOST or SY-HOST contain the name of the application server.
    You may also use the following internal call to get the actual application server
      call 'C_SAPGPARAM'
         id 'NAME'  field 'rdisp/myname'
         id 'VALUE' field servername.
    For the IP adress
      CALL FUNCTION 'DB_DBRELINFO'
        IMPORTING
          dbinfo = dbinfo.
      READ TABLE kernel_version INDEX 11.
      kinfostruc-ip_address = kernel_version-data.
    Regards

  • I have a MacBook Pro, how to change the computer name in the "Find Iphone"

    I have a MacBook Pro, how to change the computer name in the "Find Iphone"?

    Thank you for help! I was inattentive reading your answer. The thing which confused me was that I noted in blue. I had to just write in a red box and close the configuration window.

  • How to find the program name of the smart form?

    How to find the program name of the smart form if output type is not known?
    thanks in advance...

    How to find the program name of the smart form if output type is not known?
    thanks in advance...
    T-code SE16
    Enter table name: TNAPR  -> Press enter key
    Enter smartform name in input field(SFORM):  Z_your_smartform_name
    Execute
    you can find  program name under the column PGNAM/Program name.
    Regards
    sudheer

  • How to find the program name of the created sap query ?

    how to find the program name of the created sap query ?

    Hi avinash,
    Try in this way..
    Go to SE16 and then go to table TSTC.
    in that give program name as <b>*followed by your query name</b>
    (for example *TESTQUERY)
    and run , that will give progname======queryname.
    this way you can find program name.
    vijay

Maybe you are looking for

  • Safari is missing Action button

    I want to save bookmarks but my action button is missing in Safari.  How to make it appear or be accessed?

  • Hand Tool Getting stuck after using spacebar shortcut

    I have dumped the PS prefs, zapped the PRAM, fixed the permissions. It will work fine for a few minutes and then get stuck again. Even when retarting PS, the problem the hand tool is still stuck. It takes a complete reinstall to get it go back to oth

  • Ref cursor problema

    I have the following procedure : CREATE OR REPLACE PROCEDURE proc_REF(cur_ref IN sys_refcursor) is FIELD1 varchar2(200); BEGIN LOOP FETCH cur_ref INTO FIELD1; INSERT INTO tipos_prueba (cod_tipo) VALUES (FIELD1); EXIT WHEN cur_ref%NotFound; END LOOP;

  • My Cafe isn't loading, what do I do?

    QuestionMy Cafe isn't loading, what do I do? AnswerIf you can't access your Cafe, we suggest that you refresh your browser. We recommend that you use Mozilla Firefox when accessing Tagged. Be sure to regularly search for browser updates to keep every

  • I Need a Car Mount That WORKS!!

    I've been through two car mounts...the iOttie that Apple.com sells, and another bought at BestBuy. Both encountered the same problem in my car... I need the mount to stick to a plastic surface that is curved. My first failed attempt had a sticky suct