Reg: How to know name of server in which ejb is deployed

Hello:
Can anyone tell me what the best way to know the name of the server in which
ejb is deployed inside bean class.
Thanks,
Vijay

But if i remember using java.net inside is a violation of spec.. and whats
the reason u want to know ant the network level things inside a EJB..
Amar
"Arjuna Chala" <[email protected]> wrote in message
news:3c644718$[email protected]..
if you want to know the system name then the call
System.out.println(java.net.InetAddress.getLocalHost().getHostName())should
work.
"VijayKumar" <[email protected]> wrote in message
news:3c643a2c$[email protected]..
Hello:
Can anyone tell me what the best way to know the name of the server
in
which
ejb is deployed inside bean class.
Thanks,
Vijay

Similar Messages

  • Re: How to know name of server in which ejb is deployed

    Hello:
    My current configuration of my project is we have
    one Adminitration Server
    four Managed Servers
    All the servers are running on LocalHost
    Now suppose I deploy my ejb in say ManagedServer 1
    Now inside my ejb code I want to know on which managed server it is deployed.
    Is there any way to know this.
    My concoren is if the same ejb is deployed in Managed server 2
    then query inside ejb to know managed server name should return managed server
    2.
    Thanks,
    Vijay

    I didnt understand what did u mean by all the servers are running on
    Localhost u mean on the same physical machine?
    May be u can get the name of the Managed Server using MBeans i mean JMX
    ....But I dont know exact way or using the API's to get the Managed Server..
    Check the Weblogic JMx documentation...
    But before this my most clear question will be what r u trying to achieve by
    getting the name of the MAnaged Server....I meant for what purpose u want to
    get the name of the server it has deployed?
    Amar
    "VijayKumar" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello:
    My current configuration of my project is we have
    one Adminitration Server
    four Managed Servers
    All the servers are running on LocalHost
    Now suppose I deploy my ejb in say ManagedServer 1
    Now inside my ejb code I want to know on which managed server it isdeployed.
    Is there any way to know this.
    My concoren is if the same ejb is deployed in Managed server 2
    then query inside ejb to know managed server name should return managedserver
    2.
    Thanks,
    Vijay

  • From report server database how to know reporting services server

    from report server database how to know reporting services server
    Thanks

    Hi Ajay,
    If I understand correctly, you want to know
    Reporting Services server name based on report server database. Based on my research, I find that the Reporting Services server name is the computer name which install the report server. So we can try to click Start button, right-clicking Computer,
    and then clicking Properties. Under Computer name, domain, and workgroup settings, you can find your computer name.
    Besides, the report server database is a SQL Server database that stores the following content:
    Items, Subscription and schedule definitions, Report snapshots and report history, System properties and system-level security settings, Report execution log data, Symmetric keys and encrypted connection and credentials for report data sources.
    For more information about report
    server database, please refer to the following link:
    http://technet.microsoft.com/en-us/library/ms156016.aspx
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine xiong
    Katherine Xiong
    TechNet Community Support

  • How to know the consumer_group belong to which plan

    Dear all,
    How to know the consumer_group belong to which plan? I found a consumer_group name TEST in table DBA_RSRC_CONSUMER_GROUPS
    , but I can not locate it belong to which Plan.

    Do you have enterprise manager db console configured, then its easy to drill to find that information through few clicks. Not sure what's the sql query to get it. if you find one then do post here.

  • How to know  Partikular Attribute belongs to which Characteristic

    Hi, I have a doubt about Attribute,
    For example I have a info object 0REJECTN_ST ( Rejection Status ) , my question is How to know this Attribute belongs to which Characteristic , I have to load the Master Data for 0REJECTN_ST, when I am SD master data Info sources this is not available in master data info source , when I am going to create master data info source for 0REJECTN_ST, system is giving the message
    <b>Characteristic 0REJECTN_ST cannot be a master data InfoSource,</b>
    If I want to load status related data , How to load ?

    Shaik,
    ooks like the IOBJ was created without texts or attributes. You would not be able to load any textx or attributes against the same.
    use the where used option and find out where the IOBJ has been used and then you can look at how best you can att the descriptions to the IOBJ.
    Arun
    Assign points if helpful

  • Reg:: How to Integrate the RMS server to open source word, excel, powerpoint

    Hi Techys,
    Please help me,
    How to integrate the RMS server for opensource word, excel, powerpoint.... etc
    Many Thanks,
    Madhu

    Hi  Madhu,
    SharePoint 2010 supports AD RMS in the same manner as SP2007, check out the Windows Server AD RMS Deployment with Microsoft
    Office SharePoint Server 2007 Step-By-Step guide.  This is being updated for SP2010.
    Also you can have a look at the blog:
    http://www.sharepointindepth.com/integrating-ad-rms-with-sharepoint-2010/
    http://www.microsoft.com/en-us/download/details.aspx?id=8832
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How forms know when Report Server is down

    Environment: Oracle Developer Suite 10g 10.1.2.0.2 R2
    os :windows xp
    I have button to call a report object :when-button-pressed
    declare
    v_report_name VARCHAR2(30):='REQ010';----report name without .rdf
              v_repid REPORT_OBJECT;
              vc_rep VARCHAR2(20);
              vc_rep_status VARCHAR2(20);
              vc_URL VARCHAR2(100);
              vc_rep_job VARCHAR2(10);
              Plist ParamList;
              dummy NUMBER;
              Report_Plist_name VARCHAR2(30) := 'REPORT_PARAM_LIST';
              REPORT_NOT_GENERATED EXCEPTION;
              PARAMETER_LIST_SECTION_PROBLEM EXCEPTION;
    BEGIN
    --=========================================================================          
    BEGIN     
                        --prepare the list of parameters to be sent to the report
                        Plist := Get_Parameter_List(Report_Plist_name);
                        IF NOT Id_Null(Plist) THEN
                             Destroy_Parameter_List(Report_Plist_name);
                        END IF;     
                        Plist := Create_Parameter_List(Report_Plist_name);      
                        IF Id_Null(Plist) THEN
                             dummy := Show_Alert('PARAM_LIST_CREATION_PROBLEM');
                             RAISE Form_Trigger_Failure;
                        END IF;
                        --Add parameter(s) to list just created
                        Add_Parameter(Plist, 'P_REQUEST_ID', TEXT_PARAMETER, :CUSTOMER_REQUESTS.CR_REQUEST_ID);
         EXCEPTION
    WHEN OTHERS THEN
    raise PARAMETER_LIST_SECTION_PROBLEM;
    END;
    --=============================================================================
              --START THE REPORT     
              v_repid := FIND_REPORT_OBJECT(v_report_name);
              vc_rep := RUN_REPORT_OBJECT(v_repid,Plist);
              vc_rep_status := REPORT_OBJECT_STATUS(vc_rep);
    --=============================================================================
    BEGIN          
                        IF vc_rep is NOT NULL THEN
                                  -- Wait until report finishes or produces an error
                                  WHILE vc_rep_status in
                                  ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
                                  LOOP
                                       vc_rep_status := REPORT_OBJECT_STATUS(vc_rep);
                                  END LOOP;
                                  -- Display the report if it is finished
                                  if vc_rep_status = 'FINISHED' then
                                                      vc_rep_job := substr(vc_rep,instr(vc_rep,'_')+1);
                                                      message('Report Completed');
                                                      vc_URL := '/reports/rwservlet/getjobid' ||vc_rep_job||
                                                      '?server='||get_report_object_property
                                                      (v_repid,report_server);
                                                      Web.show_document(vc_URL,'_blank');
                                                      -- Display an error if the report errored
                             END IF;
                        END IF;                              
    EXCEPTION
    WHEN OTHERS THEN
    raise REPORT_NOT_GENERATED;
    END;
    --=============================================================================
    Destroy_Parameter_List('REPORT_PARAM_LIST');
    EXCEPTION
    WHEN REPORT_NOT_GENERATED THEN
    msgbox('Error Calling Report');
    --Causes: 1-Report file name is incorrect,check report name and existance.
    -- 2-Or, Report Server is Down.
    WHEN PARAMETER_LIST_SECTION_PROBLEM THEN
    msgbox('CHECK PARAMETER SECTION ');
    WHEN OTHERS THEN
    msgbox(SQLERRM);
    END;
    Problem:
    ======
    How can I distingwish among these conditions:
    IF Report cannot run :
    when the problem is from the report file object itself.
    and IF the problem is the Report Server is Down.
    and the report file is not exist.
    Tries:
    I try to but many exception to differenciate between these conditions but I fail
    how can I display a message to the user,Inform him the problem ,
    So the support personnel know if the problem from the Report object or the application Server
    .

    Hi Krishan,
    If you want to check if local cache service is running, you can do something like this:
    NamedCache cache = CacheFactory.getCache(sCacheName);
    boolean isRunning = cache.getCacheService().isRunning();If you want to check if any storage enabled nodes (cache servers) are available in the cluster:
    NamedCache cache = CacheFactory.getCache(sCacheName);
    DistributedCacheService service = (DistributedCacheService) cache.getCacheService();
    Set storageEnabledMembers = service.getStorageEnabledMembers();
    if(storageEnabledMembers.isEmpty())
        // no cache servers available ...
        }Regards,
    Dimitri

  • How to know the port number to which the server process is listening

    I have created oracle 10g Release 1 database(orcl) in Windows Xp Professional edition through DBCA . I also created one more database(sample) manually .
    The ORCL server process listens to port no 1521 and
    SAMPLE server process listens to port no 1522
    Once I start the OracleServiceORCL (Service for orcl) from services.msc and check the listener status it displays
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    But when I start OracleServiceSAMPLE (Service for sample) from services.exe and check the listener status there is no change . Only when i start the instance the dynamic registration takes place with port no 1521 .
    There is no entry for listener parameter in init.ora file . My question is how is the service ORCL able to get itself registered with the listener even before the instance is up ?
    And how can i know which port no is linked with which server process?
    Also if we provide a different port number(other than 1521 say 1522) in tnsnames.ora for a service and consider the listener is listening to both 1521 and 1522 . Now consider that port number 1521 is free . In this case to which port number will the service be listening to ?
    The listener file looks like this
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Db_2)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1522))
    The tnsnames file has the following entry
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1522))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    SAMPLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...[coe]
    The status tells you the instance is up. Starting the service often means the instance gets started also, but whatever "often" means, "READY" means "The instance is up, running and taking callers".
    Your statement that "ORCL [is] able to get itself registered with the listener even before the instance is up" is therefore factually incorrect: you started the service, that started the instance. The instance is up and running. Instances that aren't running don't exist. Things which don't exist don't register themselves. Things which HAVE registered themselves therefore do exist.. and if they say they are "ready", it means they are completely, 100% up and running and behaving quite normally.
    I have not set LOCAL_LISTENER initialization parameter.How is this happening ?
    You only need to set LOCAL_LISTENER if (a) you're not using TCP/IP, (b) you're not using port 1521. Otherwise, PMON is hard-coded to register itself with listeners running on port 1521 and using TCP/IP and you don't need to set LOCAL_LISTENER to achieve that.
    Server Processes do not listen. Listeners do (there's a clue in their name). Listeners receive a call to connect to an instance, they spawn a server process to handle your call, and then they connect you to that server process (or send a message back to you telling you how to contact the server process). Each server process of course receives communications from its dedicated client on a specific port (usually in the 50000+ range), and that port is chosen randomly by the listener when it's spawning it. It's a bit blurry and vague to call that server process port a port on which server processes "listen", however.
    If you're talking dedicated server, each client causes one new server process to be spawned, and there is a one-to-one correspondence between server processes and the port that server process happens to accept client communications on.
    If you're going to ask a listener to do listening duty on multiple ports, I'd first question your need to do that and I'd then point out that unless your client tnsnames.ora knows to talk on the second or subsequent port numbers, the listener is never actually going to make use of that second port.
    In either case, the port the listener listens on has nothing whatsoever to do with the port your client-to-server-process communication ends up taking place on.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How application know the Principal server down and connect to mirror server ?

    I have setup the database mirroring for disaster recovery solution where we don't need the witness server for fail over.
    But under high-availability mode, If the principal server fails, the mirror server automatically becomes the new principal server and recovers the principal database using a witness server. Now my question is how application server or client application knows
    to connect the mirror server which is now the new principle server.
    Do we need to handle any condition in connection string which is using in client application or any other way ?
    If you think my suggestion is useful, please rate it as helpful.
    If it has helped you to resolve the problem, please Mark it as Answer.
    Varinder Sandhu www.varindersandhu.in

    Check these articles. You basically set the failover partner .
    http://msdn.microsoft.com/en-us/library/5h52hef8(v=vs.110).aspx
    http://blogs.msdn.com/b/spike/archive/2010/12/08/clarification-on-the-failover-partner-in-the-connectionstring-in-database-mirror-setup.aspx
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • How to know whether tomcat server is up or not..?

    I have developed a java webstart application.In that,I need to include a component in a frame that shows whether the appplication is connected to the server(tomcat) or not.If it is connected to server,then a green light is up,if not red light is up.It should show the connection status althrough the application.I browsed through the apache documentation of Catalina class, http://tomcat.apache.org/tomcat-4.1-oc/catalina/docs/api/org/apache/catalina/startup/Catalina.html ,thinking that it could help me out.But I couldn't find it useful.So,I need a way to know whether the application is connected to server or not.Is there anyway to do it?Thanks in advance..!

    hell2heaven wrote:
    Yes I need both first and second case,there exists some server listening on a particular port and he can send some request and get some response from it.Well, the second implies the first, so unless you're interested in "The port is active, but the server isn't running properly," testing the second is sufficient--the first won't provide any additional information.
    Here my server is apache tomcat and it is running on port 8085.Actually,what happens in the application is when user inputs data via text field,a connection is opened to the appropriate servlet and object is passed to the servlet through that established connection.then servlet returns another object reporting the result,what happened on the server side.I want user to feel sure that he can send data to the servlet running on tomcat successfully.Am I clear enough now..?
    Not really.
    And if you're saying, "I want to see if the server is running before the user sends a request," that's pointless. Just send the request. If it succeeds, the server is running. If it fails, the server is not running or is unreachable or had some error. If you test first and it comes back good, the server can still go down between your test and the "real" request.

  • How to know the recipient belongs to which site ?

    there are two sites site-1 and site-2 in a domain, and also there is  a mailbox  [email protected] in site-1 and  a mailbox
    [email protected] in site-2.
    when a user for [email protected] in site-1 want to send a mail to
    [email protected] ,the hub transport role can get that the
    [email protected] is in site-2, so it delivery the mail to the hub transport in site-2, so my question is how did the hub transport know that the
    [email protected] located in site-2,?did it get that by inquiry the global catalog,or something else?
    Please click the Mark as Answer button if a post solves your problem!

    Site membership is determined with a series of DNS queries
    during startup of the server; the Netlogon service is responsible for this. When you check the DNS entries of your Active Directory you’ll see not only the standard A records but also service records. These service records are used to find other services in
    the Active Directory site. Site membership is determined by comparing the local IP address with information found in DNS. The Active Directory Topology service also
    queries Active Directory, by default every 15 minutes, to retrieve a list of Domain Controllers and Global Catalog Server in the Active Directory site. This information is written to the Application Eventlog:
    http://www.msexchange.org/articles-tutorials/exchange-server-2010/planning-architecture/smtp-routing-exchange-2010-part3.html
    it seems what your stated is the site membership of the sender , but what I want to know is the  site membership of the recipient.
    Please click the Mark as Answer button if a post solves your problem!

  • How to know querry level fields from which tables in the source system

    Hi Experts,
    let's say we've two fields in the querry e.g: Actual GI Quantity, Actual Value of GI
    This fields from PP Querris level how would i know from which table we're getting data is there any easy process to find out please drop your suggestions..
    Next doubt is when generate querry e.g. PM Module we don't know exatly what're the available tables & fields technical names but in my currently project using SAP Delivered Infocubes & Querries at the moment  & generating querries but when we test in the Portal it's shows some fields '0', X. I've to check in source system weather it's having any values or not.
    Can anybody drops your valuable words
    Cheers
    Suresh

    Hi all,
    I'm a colleague of Maarten, and I think maybe we didn't explain well enough what we want. So let me try to elaborate:
    We want to obtain the reference (within the SOAP-Body of the XI-message) to the attachment which contains the main payload (at least, in XI itself). This reference seems to have gone missing, once our adapter module (after having gone through XI) is entered (and, by the way, before we enter the SOAP-receiver-adapter).
    The JAVA-representation of the XI-message seems to hide the fact that in XI itself, the main payload is an attachment, referenced from within the SOAP-Body.
    Nevertheless, we would like to obtain/retain(?) that reference, in order to put it in our own to-be-created-additional-attachment, which would go (via the PayloadSwapBean-module of SAP) into the SOAP-body of the final SOAP-call, and should then reference the 'new attachment' (which was (in XI itself) the main payload).
    So, I think both answers (up to now) don't help us much (however: thanks for your reaction anyway of course).
    So, maybe someone has another idea?
    Regards, Fred

  • How to know Number of the Row which is selected in Advanced table

    Hi All
    I have a requirement where in an advanced table, when user clicks on copy icon against a row..a new row is created with copied values of the row against which copy action is performed.My issue is: assume in table i have got 5 rows..when user clicks on copy..my copied row gets created in the end..but i want tht row to be created directly under the row against which copy action is performed.I think somehow if i am able to know the position number of the row against which copy action is performed..i should be able to achieve it...can you please help me on this.
    Thanks
    Raj

    hi raj,
    create a fire action to the copy image.
    and then copy this method in to u r AM,
    public void copy action(String s)
    PwrPosViewShipmentsVOImpl sVO = getPwrPosViewShipmentsVO();
    RowSetIterator rowsetiterator;
    OADBTransaction oadbtransaction;
         rowsetiterator = sVO.findRowSetIterator("ships");
    int i;
         int j;
    if(rowsetiterator == null)
    rowsetiterator = sVO.createRowSetIterator("ships");
    oadbtransaction = getOADBTransaction();
    rowsetiterator.reset();
    i = 0;
    if(!sVO.isPreparedForExecution())
    rowsetiterator.setRowValidation(false);
    String s1;
    PwrPosViewShipmentsVORowImpl sVORowImpl1;
    PwrPosViewShipmentsVORowImpl sVORowImpl=null;
    do
    if(!rowsetiterator.hasNext() || i >= sVO.getFetchedRowCount())
    break;
    i++;
    sVORowImpl = (PwrPosViewShipmentsVORowImpl)rowsetiterator.next();
    s1 = copyServerUtil.replaceNull(sVORowImpl.getAttribute("view attribute of the referenced column"));
    } while(!s.equals(s1));
    j = sVO.getRangeIndexOf(sVORowImpl);
    sVORowImpl1 = (PwrPosViewShipmentsVORowImpl)rowsetiterator.createRow();
    sVO.insertRowAtRangeIndex(j + 1, sVORowImpl1);
    rowsetiterator.closeRowSetIterator();
    * create a new class file under the server folder and paste the below into that. and then import that class file into u r AM. and then try to run as a whole. u will get ur required work.
         public static final String replaceNull(Object obj)
    if(obj == null || obj.equals("null"))
    return "";
    } else
    return obj.toString();
    }

  • Want to know name of logical database

    hi,
       i want to know name of logical database which will contain following tables : BSEG , BSIS , BSAS, BKPF.
    i want all these table together inside one logical database.

    Hi Sachin,
    Go to SE11 transaction display any table as for ex BSEG.Put where use list for this table.You will get a list here.Select LDB.Press enter.You will get some LDB's Check in which LDB all the tables are present.
    LDB SDF contains table BKPF,
                           BSEG,
                           BSIS.
    Regards,
    Mukesh Kumar
    Message was edited by: mukesh kumar

  • How can I measure TREX server.

    Hi,
    I'm from Nakisa forum as below.
    <How can I calc sizing of TREX server
    I'd like to install minimum TREX server for Nakisa.
    A document of nakisa is written about nakisa server but it isn't written trex server.
    <https://websmp209.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000728933&_SCENARIO=01100035870000000202&>
    I found SAP note 1266024 which is written about sizing guide line of Nakisa but it's so difficult to calc.
    How can I measure TREX server and which minimun sizing is best to use Nakisa?
    Hope you can help us.
    Best regards,
    Makoto

    Hi Makoto,
    try the infos for TREX under http://service.sap.com/sizing.
    They are not made for Nakisa. But I am sure you will be able to roughly map them to your use case.
    best, Karsten

Maybe you are looking for