All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.webservice.examples.ws.banking.BankingAgent Maven / Gradle / Ivy

package jadex.webservice.examples.ws.banking;

import jadex.bridge.service.types.publish.IPublishService;
import jadex.micro.annotation.Agent;
import jadex.micro.annotation.Implementation;
import jadex.micro.annotation.ProvidedService;
import jadex.micro.annotation.ProvidedServices;
import jadex.micro.annotation.Publish;

/**
 *  Banking agent that offers a banking service.
 * 
 *  This example shows how a Jadex service can be automatically published
 *  as web service with a synchronous interfaces.
 *  
 *  The @Publish annotation requires the publishing type (e.g. web service),
 *  the id (e.g. a web service url) and the service type, i.e. interface to
 *  be specified.
 */
@Agent
@ProvidedServices(@ProvidedService(type=IBankingService.class, implementation=@Implementation(BankingService.class),
	publish=@Publish(publishtype=IPublishService.PUBLISH_WS, publishid="http://localhost:8080/banking", mapping=IWSBankingService.class)))
public class BankingAgent
{
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy