About Question enthuware.jwpv6.2.797 :

Moderator: admin

Post Reply
harsh.sahajwani
Posts: 13
Joined: Sun Jan 20, 2013 5:58 am
Contact:

About Question enthuware.jwpv6.2.797 :

Post by harsh.sahajwani »

Option 1 seems to be incorrect, but it is shown as correct in ETS. Please, explain how is it possible?

admin
Site Admin
Posts: 10384
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.jwpv6.2.797 :

Post by admin »

The specification is not very clear on this point. It is possible to use the same class name in two listner elements, for example:

Code: Select all

    <listener>
        <description>ServletContextListener</description>
        <display-name>name 1</display-name>
        <listener-class>com.enthuware.jwebplus.MyWebListener</listener-class>
    </listener>
    <listener>
        <description> HttpSessionListener</description>
        <listener-class>com.enthuware.jwebplus.MyWebListener</listener-class>
        <display-name>name 2</display-name>
    </listener>    
However, it is not clear from the specification whether the container should create only one instance or two instances in this case.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests