Hello, Kalle.
The lifecycle listener will need to authenticate with a correct username
and password in order to use the DeploymentManager.
When you create the lifecycle module with the create-lifecycle-module
command you can specify property name and value pairs. You might
consider using such a property to indicate a file path that contains the
username and/or password you want your module to use when connecting
using the DeploymentManager. You probably do not want to configure the
password itself as a property because it could be more easily
compromised that way. You can more tightly control access to a file
that contains this kind of sensitive information.
- Tim
Kalle Widlert wrote:
>
> Hi,
> I am running a LifecycleListener in the DAS (server target) which
> will deploy WAR-files using the JSR88 API.
> I am hard coding the user name and password to get the
> "javax.enterprise.deploy.spi.DeploymentManager" from
> the "javax.enterprise.deploy.shared.factories.DeploymentFactoryManager",
> but that will be a problem if someone will change the password.
> Is there a way to get the "DeploymentManager" without supplying the
> password?
>
> Regards,
> Kalle
>
>
>
>