Danny Waldmann schrieb:

Hi!

How do you create your Home object? If you get it from the container, the service() method should be called:

Home home;
try {
    home = (Home) manager.lookup(Home.class.getName());
    ...
}
finally {
    if (home != null) {
        manager.release(home);
    }
}

Otherwise the container doesn't know that it should run your service through the service lifecycle.

Basically, i execute only the method public String getlenya() throws
ServiceException, PublicationException { ... } when the side loads.
Where should I create Home home and home = (Home)
manager.lookup(Home.class.getName())... ?

How do you create your Home object? Instead of calling the constructor, you should use manager.lookup().

-- Andreas


--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to