JBoss Community

Re: Load on startup is ignored - JaxWS webservice is always initialized first

created by rushead in JBoss AS7 Development - View the full discussion

Alessio Soldano schrieb:

 

We need to check if you can actually declare "throws Exception" and go with that, in any case that's an edge case.

Yes, it works.

 

That's the way I implemented it now (which does not cause an Exception when the war is deployed):

@PostConstruct

    public void initSettings() throws Exception {

          // here I am throwing my ConfigurationException if the xml cannot be read/parsed

    }

 

If i declare my custom (catched) Exception it throws Exception I posted above:

@PostConstruct

    public void initSettings() throws ConfigurationException {

          // here I am throwing my ConfigurationException if the xml cannot be read/parsed

    }

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community