[jboss-user] [EJB 3.0] - Re: PermGen leak when passing detached entities over remote

2006-10-03 Thread pmpm
I also have observed this leak, take a look at this topic: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=84255 As far as I observed, the leak is caused by the following sequence of operations: - querying server for entities and obtaining them via rmi to the remote java client - constu

[jboss-user] [EJB 3.0] - How to efficiently page object with initialized collections

2006-09-04 Thread pmpm
Hi, I have an entity bean with a collection of items. | @OneToMany(cascade = { CascadeType.ALL}, fetch = FetchType.LAZY, mappedBy ="invoice") | @BatchSize( size = 10) | public List getItems() | { | return items; | } | Everything works fine in everyday use. But ocassionaly I

[jboss-user] [EJB 3.0] - Re: How to run code on deployment?

2006-08-18 Thread pmpm
AFAIK there is no standard way do this. My solution on JBoss looks like this: | @Service | @Depends( { | //things i need before my startup code executes "jboss.j2ee:ear=baks-erp.ear,jar=baks-erp-ejb3.jar,name=TheBeanINeedInStartupCodeEJB,service=EJB3", | }) | public class Star