Re: [opennms-devel] full loading objects

2008-12-16 Thread Matt Brozowski
On Tue, Dec 16, 2008 at 10:08 AM, daniele piras wrote: > > How can I do that? > This not easy to explain. We use the springframework to develop with. Try reading on transactions in the springframework documentation. http://static.springframework.org/spring/docs/2.5.x/reference/index.html Matt

Re: [opennms-devel] full loading objects

2008-12-16 Thread daniele piras
[cut] > Are you running your code in a transaction? > > Matt > [cut] How can I do that? -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join

Re: [opennms-devel] full loading objects

2008-12-16 Thread Matt Brozowski
On Tue, Dec 16, 2008 at 5:58 AM, daniele piras wrote: > To do that, I've used the nodeDao.load() with the Id of the Node. > The node is loaded correctly but when I invoked the isDown() method I > receive a Lazy Inizialization Exception about the Interface class. Are you running your code in a tr

[opennms-devel] full loading objects

2008-12-16 Thread daniele piras
Hi, I'm developing an opennms extension. In my code I need to load a Node object and verify the isDown() method. To do that, I've used the nodeDao.load() with the Id of the Node. The node is loaded correctly but when I invoked the isDown() method I receive a Lazy Inizialization Exception about th