Я создаю веб-сервис с помощью Axis2, который использует Rampart для аутентификации. Во всех примерах для Rampart у клиента должен быть клиентский репозиторий для Axis2. Rampart запускается на клиенте следующим образом:
ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem("path/to/client/repo", null);
SecureServiceStub stub = new SecureServiceStub(ctx,"https://localhost:8443/axis2/services/SecureService");
ServiceClient sc = stub._getServiceClient();
sc.engageModule("rampart");
Для метода createConfigurationContextFromFileSystem необходим путь к репозиторию Axis2 на клиенте, у которого есть файл rampart.mar. Очевидно, ему нужен полный абсолютный путь, а не относительный.
Однако я развертываю свой клиент с помощью Java Web Start и не могу разместить репозиторий Axis2 на каждой машине, на которой может потребоваться запуск клиента. Он должен работать с любого компьютера через веб-браузер, поэтому все, что нужно клиенту, должно быть в банке. Есть ли способ загрузить файл rampart.mar из банка моего клиентского приложения?
Другая возможность - использовать метод ConfigurationContextFactory.createConfigurationContextFromURIs, но для этого мне потребуется создать онлайн-репо вала axis2 + на сервере. Кто-нибудь знает хорошее руководство для этого? Я все же предпочел бы просто упаковать все в банку.