About ESB case example

1 view
Skip to first unread message

jokoul webster

unread,
Nov 25, 2009, 8:53:04 AM11/25/09
to jEmbedded Discussion Group
Hi Adolfo:
I am reading ESB case example,but to be honest with you,it is really
difficulty for me to master it,so would you please provide us a
deployment graph and more detail and step by step documentation?
PS:If you can,please tell me how to run meter-hub,invoice-
service,invocing-server these 3 projects with Eclipse,not
maven.Thanks.

JK.Webster

Adolfo Estevez

unread,
Nov 25, 2009, 9:06:17 AM11/25/09
to jEmbedded Discussion Group
Hi,

Yes I'm working currentlty on it refactoring to make it simpler
etc..., also I'm working in a improved documentation. I hope this will
ready soon along with the 0.1.3- Release.

In the meantime, to execute the case study:

I suppose you'd already imported the projects into eclipse.

1) Execute the invoicing-server, using a main class or a test. You
only need to start a jEmbeddedContainer that imports the
InvoicingWebServer.class:

@
@Include(resources = {InvoicingWebServer.class})
public class InvoicingServerIntegrationTest {

private RepositoryHandler handler = null;

@Before
public void init() {

handler = RepositoryHandlerFactory.getInstance(
RepositoryProvider.SIMPLE, getClass());
handler.start();
}

@After
public void dispose() {

handler.dispose();
handler = null;
}

@Test
public void test() {
while(true);
}

}

Once it has started it's ready to receive the petitions from the hub-
server.

2) Repeat Step 1, but whith the HubServer.class.

After it has started it will start to create petitions against the
invoicing-server, storing the created invoices in the invoicing-server/
generated-invoices directory.

Take care

Adolfo
Reply all
Reply to author
Forward
0 new messages