Configuration file and the Pariticipant Repository Configuration...
diff --git a/src/endpoints.conf b/src/endpoints.conf
new file mode 100644
index 0000000..ef5b073
--- /dev/null
+++ b/src/endpoints.conf
@@ -0,0 +1,4 @@
+host=127.0.0.1
+port=8082
+tcpmon_enable=false
+PARTICIPANT_REPOSITORY =.
\ No newline at end of file
diff --git a/src/org/apache/kandula/participant/TransactionInHandler.java b/src/org/apache/kandula/participant/TransactionInHandler.java
index 385968e..60a55a9 100644
--- a/src/org/apache/kandula/participant/TransactionInHandler.java
+++ b/src/org/apache/kandula/participant/TransactionInHandler.java
@@ -59,6 +59,8 @@
// business logic receives the message
String resourceFile = (String) msgContext.getParameter(
Constants.KANDULA_RESOURCE).getValue();
+ String participantRepository = EndpointReferenceFactory.getInstance().getPariticipantRepository();
+ System.out.println(participantRepository);
try {
resource = (KandulaResource) Class.forName(resourceFile)
.newInstance();
@@ -74,8 +76,7 @@
ParticipantTransactionManager txManager = new ParticipantTransactionManager();
try {
RegistrationCoordinatorPortTypeRawXMLStub stub = new RegistrationCoordinatorPortTypeRawXMLStub(
- ".", coorContext.getRegistrationService());
- // TODO: try to get the protocol through configuration parameter
+ participantRepository, coorContext.getRegistrationService());
EndpointReference participantProtocolService = EndpointReferenceFactory
.getInstance().get2PCParticipantEndpoint(id);
stub.registerOperation(resource.getProtocol(),