[jboss-dev-forums] [JBoss AS7 Development] - Re: Load on startup is ignored - JaxWS webservice is always initialized first
rushead
do-not-reply at jboss.com
Fri Jul 29 05:13:25 EDT 2011
rushead [http://community.jboss.org/people/rushead] created the discussion
"Re: Load on startup is ignored - JaxWS webservice is always initialized first"
To view the discussion, visit: http://community.jboss.org/message/618303#618303
--------------------------------------------------------------
> 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
[http://community.jboss.org/message/618303#618303]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110729/b4338c4b/attachment.html
More information about the jboss-dev-forums
mailing list