Skip to main content
Inspiring
March 3, 2009
Question

TCP IP Assocaition

  • March 3, 2009
  • 4 replies
  • 510 views

I'm trying to create a kind of web dicom tools in CF8, I found a dicom jar
class (JDCM toolkit). I'm starting with a simple "echo" function, without
success. I'm able to open a tcp socket, but not a DICOM association, does
anyone have some experience?

Thanks

This topic has been closed for replies.

4 replies

Inspiring
March 9, 2009

following the examples:

----Making the connection
Make a TCP/IP connection with the peer DICOM entity making use of the
standard java.net classes. In our example this is the server localhost at
port number 104 (Default DICOM port).

Socket socket = new Socket("localhost",104);

---Association sample 1
In this example the application entity title of the DICOM application with
which we want to connect is ANY-SCP and our own application entity title
is JDCM. Propose a SOP Class with Implicit Little Endian syntax transfer.
A_Associate associate;
try {
associate = new A_Associate(
socket,"JDCM",
"ANY-SCP",
"1.2.840.10008.5.1.4.1.1.6.1", //affected SOPClass
"1.2.840.10008.1.2"); //transfert Syntax
.. .
} catch(IOException e) {...}

Thanks

kalder


In data 05 marzo 2009 alle ore 15:08:58, PaulH **AdobeCommunityExpert**
<paul@sustainablegis.com> ha scritto:

> Kalder wrote:
>> What I suspect is that I wrong someting in a workflow. I'dont'have any
>> docs that explane me the steps. So I did in this way:
>
> aren't there any examples, java/jsp or getting started, etc. docs? while
> not 100% easy its usually possible to get cf to talk to most java libs.

Inspiring
March 5, 2009
Kalder wrote:
> What I suspect is that I wrong someting in a workflow. I'dont'have any
> docs that explane me the steps. So I did in this way:

aren't there any examples, java/jsp or getting started, etc. docs? while not
100% easy its usually possible to get cf to talk to most java libs.
Inspiring
March 5, 2009
In data 04 marzo 2009 alle ore 14:09:56, Mack <dev@null.com> ha scritto:

> kalderm wrote:
>>
>> I'm trying to create a kind of web dicom tools in CF8, I found a dicom
>> jar class (JDCM toolkit). I'm starting with a simple "echo" function,
>> without success. I'm able to open a tcp socket, but not a DICOM
>> association, does anyone have some experience?
>
> What is the error that you're getting ? Anything in the log files ?
>


Hi Mack,

simply all freezed, and after a while the browser show "no page found!".
In the log file I can found:

"Object Instantiation Exception.An exception occurred when instantiating a
Java object. The class must not be an interface or an abstract class."

What I suspect is that I wrong someting in a workflow. I'dont'have any
docs that explane me the steps. So I did in this way:
- Opening a socket with setting of called and calling host and port
- creating an association using A_ASSOCIATE [JDCM -
A_Associate(java.net.Socket socket, java.lang.String callingEntity,
java.lang.String calledEntity, java.lang.String abstractSyntaxUID,
java.lang.String transferSyntaxUID)]
- init C_Echo class and writeRQ method.

Do you have any experience with JDCM toolkit?

Thanks and sorry for my bad english.


--
kalder
Inspiring
March 4, 2009
kalderm wrote:
>
> I'm trying to create a kind of web dicom tools in CF8, I found a dicom
> jar class (JDCM toolkit). I'm starting with a simple "echo" function,
> without success. I'm able to open a tcp socket, but not a DICOM
> association, does anyone have some experience?

What is the error that you're getting ? Anything in the log files ?

--
Mack