How can I communicate between bean to bean.....

Hi All,
I have few EJBs in my application. I want to interact Second EJB from First EJB. Do I need to lookup the second EJB from First EJB or Is there any way (Just like in servletContext in Servlets) to interact with the second bean. Please help me out to solve this problem, thanking you in advance.
bye
Ramesh

Hi, if you are trying to use a bean from another bean you have to do a lookup like you always did but in the deployment descriptor you have to make a refference to the second bean also.
If you are using JBoss there's an application ejx.jar for making the deployment descriptor.
I hope this link can help you a bit more:
http://e-docs.bea.com/wle/dd/ddref.htm
Bye Albinegro

Similar Messages

  • How can I communicate between two simulated software

    Hallo,
    I have confusion regarding this topic "How can I communicate between two simulated software".
    1: PC with CAN simulation
    2:  PC with AFDX Simulation
    Now i have to communicated these two pc with each other.
    How can i communicated? which module from ni is best for it.
    thanks in advance
    BR

    I recommend looking at the Simple Messaging Reference Library that NI has released.  Use the TCP/IP version of it.
    FYI, TCP/IP is a communication protocol that is used to communicate between two computers.  It is what the internet uses.  So you just need a network switch or router between your computers and you can talk to each other with their IP address.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How Can i communicate between two iviews?

    Hi all,
       I am having two iviews.I want to conect those two in two pages.How can i do this?Can any one help me out from this?
    regards
    Sudeep.

    Hi ,
    Try this
    WDPortalNavigation.navigateAbsolute("ROLES:"+iview,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String) null,(String) null,"Param=Paramvalue");
    "ROLES:"+iview=Iview Path
    "Param=Paramvalue"=Parameter and its value
    Youcan receive the value as
    String parmvalue=WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Param");
    Kind Regards
    Mukesh

  • Communicate between two backing beans

    Hi !
    How can I communicate between backing beens ?
    I would like to put data from Bean1 to Bean2.
    This is my code in Bean1, I try this:
    Bean2 b = new Bean2();
    //... b settings...
    //Map map = facesContext.getExternalContext().getRequestMap();
    //map.put("Bean2", b);
    HttpServletRequest request = (HttpServletRequest)facesContext.getExternalContext().getRequest();
    request.setAttribute("Bean2", b);
    So I put Bean2 instance in request, but JSF created new instance :(
    How can I solve this problem ?

    This article might give you some new insights: http://balusc.xs4all.nl/srv/dev-jep-com.html

  • How can I use Method in the bean

    Hi every one
    please I made a method in for example employees entity "EmployeesImpl"
    the name of method getmax() it return number
    how can I use it at the bean
    for eaxmple when I want to press button give me the value from this method
    sorry Iam still beginner
    thanks in advance

    Thanks sir for your response
    my version
    oracle jdeveloper reales 1 (11,1,1,4,0)
    I use business component
    I make method
    this metod wrote at enitity "EmployeesImpl"
    public Number getMax() throws JboException
    PreparedStatement stat=null;
    ResultSet rs=null;
    try {
    String sql="select max(EMPLOYEE_ID)+1 from EMPLOYEES";
    stat=getDBTransaction().createPreparedStatement(sql, 1);
    rs=stat.executeQuery();
    if (rs.next()) {
    return new Number (rs.getInt(1));
    } catch (Exception e) {
    // TODO: Add catch code
    //e.printStackTrace();
    throw new JboException("error");
    } finally {
    try {
    rs.close();
    stat.close();
    } catch (Exception e) {
    // TODO: Add catch code
    //e.printStackTrace();
    // oracle.jbo.domain.Number
    return new Number (1);
    I made a jsf page
    and I put button at the page
    I want when press the button give me message contain the number which come from previous metod
    thanks my dear

  • How can pass information between 2 par file in iView???

    Hello,using PDK i've have created an iview calling 2 .par file, the first par file contains a menu that the user selects a products and then when press load button generates a table with information. The table with information is generated in second .par file, that collects the information passed by the menu (through beans) and with a BAPI generates the table. I made it because the menu must be separated in one frame, and the table in other...(and the first frame must displace, how a html frame)
    The question, how can pass information between two par files or if are another method to made 2 frames????
    I'm using jsp,HTMLB .
    Thanks.

    Hi,
    try to have a look to the docs contained in this zip file.
    They explain how to implement a portal component, a portal service and how to implement comunication between portal components, using POM and other features.
    Maybe could be a good starting point for you
    the file is
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/component and service creation tutorial.zip
    Ciao
    Roberto

  • I have siemens plc s7-300 and labview how can i communiction between plc and s7-300

    Hi all good  morning
     iam new user for labview
    now iam working one new projects with labview and s7-300 automation plc  so how can i communication between plc and s7-300 using profibus or ethernet cables can any one help me with example
    thanks
    best regards
    vijaynagar.

    Dear vijaynagar,
    it would be posible to communicate with our Comsoft PROFIBUS products like DF PROFI II, FNL or cRIO PB.
    Please have a look at:
     - DF PROFII:  PCI, PCIe, C-PCI or PC104+ card with LabVIEW drivers: Link
     - FNL: Ethernet/PROFIBUS Gateway: Link
     - cRIO PB, C-Series module for National Instruments FPGA chassis: Link
    The DF PROFI II can be bought directly from Comsoft, the cRIO PB can be bought from National Instruments.
    Regards,
    Sven
    P.S. If you have any questions feel free to contact: [email protected]

  • I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up und one account.

    I have three iPads and one iPod and one iPhone.  How can I message between them without sending the message to all of them.  You send the message to your email address but all of them are set up under one account.

    You can have a different receiving email in the Messages app on each device : Settings > Messages > Receive At . I'm not sure that there is a different way to have the message only go to one device.

  • How can I share between 2 different accounts.  we have a clinic that serves pediatics and unfortunately, they set up two different accounts within our agency.

    How can we share between two different accounts on the same iPad?  We have a therapy clinic with 2 devices and want to share apps. I did not set up the second one, but how can we fix this ?

         Hi Rosdy, to get the most out of iCloud it is recommended that you use the same account between devices. Thus whenever you buy something on your phone it becomes accessible from your laptop regardless of whether your synced it over usb or not. *
         For more information on iCloud usage please click here.
    * This feature requires that both devices be on the same WiFi network.

  • How can i distinguish between set or tuples from incoming filters in a calculation

    How can i distinguish between set or tuples from incoming filters in a calculation. i am using descendants function with the leaves option to calculate some project revenue cause there is different calcuation method on sub projects the sum on the main project
    should reflect the sum of the sub project with all different methods.
    this works fine until i try to select 2 sub projects at the same time. i am getting the standard currentset dosnt work cause its a set.
    is there i way i can check if its a multiple select or not and handle it a different way

    Hi,
    Check the following link about Multi Select Calculations written by Mosha.
    http://sqlblog.com/blogs/mosha/archive/2007/01/13/multiselect-friendly-mdx-for-calculations-looking-at-current-coordinate.aspx
    Best regards...
    Chandima Lakmal Fonseka

  • How can I switch between multiple windows of the same application (e.g. Safari) over several desktops ?

    Hi All,
    I have one application, for example safari, open and running with multiple windows (with or without tabs) spread over several desktops.
    How can I switch between the windows only via keyboard? CMD+> and CMD+< let me only swicht between windows open on the one desktop I am currently looking at.
    thanks for your replies,
    equi

    Barney,
    many thanks for your efforts and your time (preparing and posting the screenshot, answering to this question,...).
    Unfortunately, moving the focus to the next window only works with windows on the same desktop.
    btw, using a german keyboard layout and german language settings the shortcut is "cmd+<".
    I can switch with this shortcut between different windows of my Safari which reside on the same desktop, but I cannot swith between different safari windows distributed over several desktops.
    Thanks,
    equi    

  • How can i traverse between files in a directory

    how can i traverse between files in a directory. I ahve seen in the site that isFile can be used to switch from one file to other but i didn't found such method. I am working in Eclipse. I would be thankful if u send me the solution.I mean the way to traverse

    listFiles() returns all the files in a directory. You can check if it is a file and read it. Read the API docs.
    If you have specific problem with your code, post the code and the problem description.

  • My IPhone has a different ICloud Apple ID than my iPad. How can I stream between the two devices

    My iPhone has a different id than my iPad. How can I stream between the two devices

    I should say that you can add the other account to each device as a seconday account by going to Settings>Mail,Contacts,Calendars>Add Account>iCloud and signing in with the ID the other device is using.  This would allow you to see mail, contacts, calendars, reminders and notes from the other account alongside the same data from the primary account on each device.

  • How can we navigate between two windows of same component in webdynpro ABAP

    Hi
    how can we navigate between two windows( not views ) of same component in webdynpro ABAP. its an urgent requirement
    Thanks in advance.
    Regards
    Laeeq

    Hi Laeeq,
    You cannot navigate between windows of one component. You can only call a dialog box showing the contents of a second window, or you can embed the contents of a window of a different component.
    Just add all the views you need to the one and only main window of the component.
    Ciao, Regina

  • How can i navigate between windows?

    Hi.
      Experts
        I want to navigate between windows.Because i am making a project of Guest House management in webDynpro.So many many screens are there to built and link.I am planning to make a single webdynpro component for it.
    Is this right?If yes Tell me how can i navigate between windows.
       (like room request to allocate room and many other window).
    Regards
    Sunny.

    HI Sunny
    If You want to make a window DEFAULT follow these steps
    1) Suppose if you have 2 windows say Window1 and Window2
    2) Double Click on your Application
    3) In Application <b>Properties</b> --><b>Interface View</b>
    you will get two interface views Window1InterfaceView and Window2InterfaceView
    4) Select which ever window you want to make as default
    and make your view in desired window's <b>DEFAULT </b>property to <b>true</b>
    Best Regards
    Chaitanya.A

Maybe you are looking for