Projects tigase _server server-core Issues #556
External Component (#556)
Won't Fix
Trinh Tran opened 9 years ago
Due Date
2015-09-03

Hi Tigase,

I am trying to use external component instead of internal component.

I tried to run 2 instances of tigase server in 2 PCs:

PC1 as main server: with config:

--comp-name-1=ext

--comp-class-1=tigase.server.ext.ComponentProtocol

--external = mycomponent.mydomain.local:api-secret:listen:5720:mydomain.local:accept:ReceiverBareJidLB

PC2 as external component (just update the configuration and run from main server code):

--comp-class-1 = tigase.mytest.TestComponent

--comp-name-1 = mycomponent

--external = mycomponent.mydomain.local:api-secret:connect:5270:mydomain.local:accept

But when i send message from my external component i cannot received any messages.

It is OK if i use this component as INTERNAL component.

My question are:

  1. To run a external component we also need to run with main server code? the external just one class or one lib, but to run it as external we need all code, libs as main server and start as main server?

  2. If we start 2 instances: 1 for main server, 1 for external component then how we can test on same PC? then how we deploy these to same server?

  3. Pls give some advice why i cannot receive any message from external component as above configuration (but internal is OK)

Thanks,

TH

Trinh Tran commented 9 years ago

Hi Tigase,

I am trying to use external component instead of internal component.

I tried to run 2 instances of tigase server in 2 PCs:

PC1 as main server: with config:

--comp-name-1=ext

--comp-class-1=tigase.server.ext.ComponentProtocol

--external = mycomponent.mydomain.local:api-secret:listen:5720:mydomain.local:accept:ReceiverBareJidLB

PC2 as external component (just update the configuration and run from main server code):

--comp-class-1 = tigase.mytest.TestComponent

--comp-name-1 = mycomponent

--external = mycomponent.mydomain.local:api-secret:connect:5720:mydomain.local:accept

But when i send message from my external component i cannot received any messages.

It is OK if i use this component as INTERNAL component.

My question are:

  1. To run a external component we also need to run with main server code? the external just one class or one lib, but to run it as external we need all code, libs as main server and start as main server?

  2. If we start 2 instances: 1 for main server, 1 for external component then how we can test on same PC? then how we deploy these to same server?

  3. Pls give some advice why i cannot receive any message from external component as above configuration (but internal is OK)

Thanks,

TH

Artur Hefczyc commented 9 years ago

Trinh,

Please use our forums to ask technical questions: https://projects.tigase.org/projects/tigase-server/boards

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
RedmineID
3445
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#556
Please wait...
Page is in error, reload to recover