So I have added a general org.jboss.client.AppClientMain that can handle any app client
type by allowing for alternate launchers that implement:
| public interface AppClientLauncher
| {
| /**
| * Launch a javaee client application.
| *
| * @param clientClass - the class whose main(String[]) will be invoked
| * @param clientName - the client name that maps to the server side JNDI ENC.
| * May be null indicating the name should be taken from the client jar
| * descriptors/annotations.
| * @param args - the args to pass to main method
| * @throws Throwable
| */
| public void launch(String clientClass, String clientName, String[] args)
| throws Throwable;
| }
|
and org.jboss.ejb3.client.ClientLauncher now implements this interface. An ordered list fo
such launchers can be passed to the AppClientMain. The first to succeed defines the
launcher behavior. These changes are checked in but I'm still testing them.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983281#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...