EJB question - OO related (I think)

Discussion in 'Java' started by tim@nocomment.com, Aug 19, 2006.

  1. Guest

    I was looking at an EJB example for Weblogic 9.1 with programs
    Client.java and
    AccountBean.java.
    In it they are showing how to find beans and create new beans. They are

    also showing how to use aggregate functions such as total number of
    distinct balances.
    In order to do this (use the aggregate methods) though, you must have
    an account bean and in order to have an account bean, as I understand
    it, you must have a specific account ID.
    How is this handled in the "real world"? I can't believe you would have

    to get an instance of a bean for a real life account before doing any
    of these aggregate functions.
    Do the banks set up dummy accounts for this purpose?

    Thanks,
    Tim
     
    , Aug 19, 2006
    #1
    1. Advertising

  2. wrote:
    > I was looking at an EJB example for Weblogic 9.1 with programs
    > Client.java and
    > AccountBean.java.
    > In it they are showing how to find beans and create new beans. They are
    >
    > also showing how to use aggregate functions such as total number of
    > distinct balances.
    > In order to do this (use the aggregate methods) though, you must have
    > an account bean and in order to have an account bean, as I understand
    > it, you must have a specific account ID.
    > How is this handled in the "real world"? I can't believe you would have
    > to get an instance of a bean for a real life account before doing any
    > of these aggregate functions.
    > Do the banks set up dummy accounts for this purpose?


    I do not know the WL examples.

    But to use SQL aggregate functions I would assume that
    you would call a method in a stateless session bean
    not use entity beans.

    Arne
     
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=, Aug 20, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    1
    Views:
    695
    John C. Bollinger
    Jul 15, 2003
  2. Replies:
    0
    Views:
    610
  3. Replies:
    1
    Views:
    873
    Jack Klein
    Apr 13, 2005
  4. Raymond Schanks
    Replies:
    0
    Views:
    657
    Raymond Schanks
    Aug 3, 2010
  5. David Mark
    Replies:
    17
    Views:
    242
    David Mark
    Mar 23, 2010
Loading...

Share This Page