entity bean(bmp) question


EJB programming & troubleshooting: entity bean(bmp) question

  1. entity bean(bmp) question (2 messages)

    I call findByPrimary method of entity bean(bmp) from session bean.But i found container called ejbStore method every time.So container updates database when i just query entity bean.But i don't want to update database, i just want to query entity bean.i know entity bean invoked in a transaction will update database after transaction completion.I configure the method of session bean as 'support' attribute of transaction in deploy descriptor. So there is no transaction begins.But it does not work.
    Is it not very suitable for entity bean being used for query only? how can i do?

    Threaded Messages (2)

  2. entity bean(bmp) question[ Go to top ]

    This is a fundamental limitation of BMP entity beans. There is nothing you can do to prevent this behavior. Try switching to CMP or using a non-Entity bean persistence layer (JDO, Hibernate).
  3. thanks[ Go to top ]