Discussions

EJB design: About EJB programming

  1. About EJB programming (1 messages)

    Hi all,

    Need your advice on the following questions below. Thanks
    in advance!

    1. is it possible for ejb or any method in j2ee or any other java method to do cyclic checking. that means, at certain time, certain function is being performed.

    2. is it possible for ejb or any method in j2ee or any other java method to send asynchronous message across pc (most probably in the same network).

    3. is it possible for ejb or any method in j2ee or any other java method to access shared memory. just like in c or c++, it can create array, or allocated certain memory space and be access by different program.

    Regards,
    Alvin
  2. About EJB programming[ Go to top ]

    Alvin,

    the answer to ur second question lies in JMS (Java Messageing Service)

    about the third question yes ofcourse u can access shared memory space by defining static variables in class. this is not only way but certianly a very affetive way. the second way wud probably be definin single-ton classes.

    first question - well i think u can use JMS for the same, i m not sure tho. also weblogic has a time API which might work for u in this case. again i dont know much bout the time API, so u might wanna look at the documentation.

    kapil