When you have created a listener, you need to start it.
mqe_script_listen -start -listenname L2
For more information on using Java™ to start a listener, see Configuring a listener. For an example, see Java.