Rupp,Heiko wrote:
Aslak,oups it sounds very familiar ....
thanks very much.. this helped. Basically to find my typos ...
PersonHome ph;
EmailHome eh;
...
Person pl = ph.create(name,vorname,persids);
pl.getEmails().add(eh.create(email));
1) create a new Person (the EJB way via local home interface)Now I get an Exception java.lang.IllegalStateException: A CMR collection may
2) Create a new Email (the same way)
3) person.getEmails().add(email)
only be used within the transction in which it was created
I guess tthat you're using these person objects from servlet/JSP code ?
try to move your code to any EJB session (stateless) service & the problem should disappear
Jerome
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
