cmp vs self-managed persistence (?)
Here are some questions about how I can design an SBB with respect to state persistence.
First, can my SBB interact with the JDBC API? I think so, but would like to know of real experience that someone did it. The Persistence RA implementation implies: yes.
Second: In my use cases, I can imagine the memory use of one of my SBBs to be some 10's of megabytes. Would mobicents/jboss(TreeCache) CMP manage this effectively? For example, I want to write an SBB that would send an annoucement to thousands of phone numbers which could easily take 10M-20MB of memory. Would I be pushing the limits of CMP if I put those in a List CMPField? I think the answer is YES, but would like to know what you think.
Third: What are advantages/disadvantages to using the Persistence RA vs obtaining an EntityManager directly in my SBB?