users@glassfish.java.net

Re: One EAR - multiple Swing Clients

From: <glassfish_at_javadesktop.org>
Date: Mon, 06 Apr 2009 12:57:56 PDT

I [b]had [/b]the same problem (NetBeans 5.6.1). Today I'm resolved with this workaround.

* Open nbproject/project.properties in the EAR project
* Add the property 'application.args.param' with value '-name ${app.client}' below of property 'app.client'
[code]
app.client=<<display-name>>
application.args.param=-name ${app.client}
[/code]

If I'm correct, the problem is in 'nbproject/build-impl.xml', an autogenerated file by NetBeans
[code]
        <java classname="${j2ee.appclient.tool.mainclass}" fork="true">
            <jvmarg line="${j2ee.appclient.tool.jvmoptions}"/>
            <jvmarg line="${j2ee.appclient.jvmoptions.param}"/>
            <arg line="${j2ee.appclient.tool.args}"/>
            <arg line="-client ${client.jar}"/>
            <arg line="${j2ee.appclient.mainclass.tool.param}"/>
            <arg line="${application.args.param}"/>
[/code]

If you search in propject.properties and private.properties, 'application.args.param' and 'j2ee.appclient.mainclass.tool.param' don't exist. So we are free to use (by moment).

I only tried with 'application.args.param' because the name resemble 'for user' and worked for me at first time.
[Message sent by forum member 'santoszv' (santoszv)]

http://forums.java.net/jive/thread.jspa?messageID=340820