Hi,
I have another question.
I am able to transmit a message and receive it succesfuly using the below code
snippet.
PipeParser parser = new PipeParser(); // The message parser
ServerSocket serverSocket = new ServerSocket(6000);
ApplicationRouter appRouter = new ApplicationRouterImpl();
SafeStorage safeStorage = new NullSafeStorage();
ExampleReceiverApplication1 exApp = new ExampleReceiverApplication1();
AppRoutingData theRoutingData = new AppRoutingDataImpl("VXQ", "V01",
"P", "2.2");
appRouter.bindApplication(theRoutingData, exApp);
String msg1 = "MSH|^~\\&|TestSendingSys-VXQ||||||VXQ^V01|12345|P|2.2\r"
+ "QRD||||query-ID||||||||\r";
HL7Server hl7Server = new HL7Server(serverSocket, appRouter,
safeStorage);
hl7Server.start("localhost"); // can work for remote ip or hostname
Transportable t = appRouter.processMessage(new TransportableImpl(msg1));
String rxMsgString = t.getMessage();
System.out.println("Received response:\n" + rxMsgString);
But I want to transmit 2 messages and receive those 2 acknowledgements / any
kind of responses messages (I want to use a batch process).
Please suggest me how I can do this. I appreciate your help on this in advance.
________________________________
From: rahul somasunderam <r...@certifydatasystems.com>
To: venu gopal <rven...@yahoo.com>
Cc: hl7api-devel@lists.sourceforge.net
Sent: Fri, January 21, 2011 7:21:05 AM
Subject: Re: [HAPI-devel] Hapi newbie
I'm sorry. I didn't read it fully.
Do you have any firewalls? Can you provide a stack trace, if any?
R,
rahul
On Fri, 2011-01-21 at 07:19 -0800, rahul somasunderam wrote:
> Venu,
>
> If you're connecting to a remote machine, you need to use the ip
> address/host name of that machine. You seem to be using loclahost to
> connect.
>
> R,
> rahul
>
> On Fri, 2011-01-21 at 01:49 -0800, venu gopal wrote:
> > Hi,
> >
> > I am new to the HL7. I am trying to connect to a remote machine using
> > SimpleServer, but was not able to connect.
> > Connection connection = connectionHub.attach("localhost", 1011, new
> > PipeParser(), MinLowerLayerProtocol.class);
> > I am able to connect to localhost like above. But when I use a
> > different ipaddress no luck.
> >
> > Any help is greatly appreciated.
> >
> > Thanks,
> > Venu
> >
> >
> >
> >
> >
>------------------------------------------------------------------------------
> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> > Finally, a world-class log management solution at an even better price-free!
> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> > February 28th, so secure your free ArcSight Logger TODAY!
> > http://p.sf.net/sfu/arcsight-sfd2d
> > _______________________________________________ Hl7api-devel mailing list
>Hl7api-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel