[JBoss-user] [Beginners Corner] - Re: EJB Design Patterns - primary key 'sequence block'

2004-03-26 Thread darranl
Yes some of the reserved range will be lost if the session bean gets removed from the pool or if JBoss is shutdown, this is something you would need to be prepared to accept. The other issue that you would need to be aware of is that the integers will not necesarily be used in order, as multipl

[JBoss-user] [Beginners Corner] - Re: EJB Design Patterns - primary key 'sequence block'

2004-03-26 Thread ahardy66
Excellent. Middlegen does indeed generate one (or rather both) EJBs. I appreciate the reasons for the session bean, now that I'm looking at the code, but isn't the bean going to get cached by JBoss at any point and lose the sequence block? In which case it will have to get a new block and if it

[JBoss-user] [Beginners Corner] - Re: EJB Design Patterns - primary key 'sequence block'

2004-03-26 Thread darranl
anonymous wrote : Apparently it should be hidden behind a session bean, but I guess that's just a bit tra-la-la for now. No the session bean is the most important part of this pattern, it is the stateless session bean that caches a reserved range of integers. anonymous wrote : I hope you know

[JBoss-user] [Beginners Corner] - Re: EJB Design Patterns - primary key 'sequence block'

2004-03-26 Thread mlange
IIRC middlegen has support for generating code for this pattern. -marek http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827574#3827574";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827574>Reply to the post --