using Weasis Applet

738 views
Skip to first unread message

Atif

unread,
Sep 12, 2014, 7:17:35 AM9/12/14
to
Hi

I am not a developer or IT person. I am Radiologist by profession. Some how i manage to setup dcm4chee using different threads that are posted on the forum and its running fine.

Can somebody send me the link of weasis Java Applet application. So, that i can simply call the weasis instead of downloading the viewer.jnlp file.  My IT Staff promise to help me if i provide them the application as they lack knowledge java and failed to understand the postings i forwarded them. This will help me and others non-IT professionals who are using dcm4chee and other open source products.

Waiting for a positive reply.

--HM

Nicolas Roduit

unread,
Sep 14, 2014, 4:57:43 AM9/14/14
to
Do you mean from the web interface of dcm4chee or from your own web pages?

There are two ways of launching the WEB distribution of Weasis:
1) Downloading the jnlp file (this is the way how it works in the dcm4chee web interface)
The direct execution of Java Web Start is totally related to the web browser. Some browsers will launch Weasis directly (IE, Firefox) and some not (Chrome, Safari, see this page to change the default preferences). In addition, the application could not start because of the security of Java and its integration in the browsers has increased recently (last version requirement, code signing, real certificate...).
The advantage of this method is when the browser does not launch automatically the application, the downloaded file can be executed by the operating system because the jnlp extension is associated to Java. One improvement in the next release of weasis-pacs-connector will be to have the option to get a jnlp file named with the patient name (not always "viewer.jnlp").

Here is an example of an applet where the application is embedded in the browser but the mechanism to launch it is similar (modern Applet used Java Web Start with a jnlp file):

2) Using the oracle script (deploy.js) in a webpage to launch a Java Web start application (examples in this page)
This method does not work with all browsers. It depends of the browser and Java, see for example the complexity of windows 64-bit.
Javascript code of creating a Java Web Start button in a webpage:
<script type="text/javascript" src="https://www.java.com/js/deployJava.js"></script>
<script type="text/javascript">
deployJava.launchButtonPNG=  'http://www.dcm4che.org/confluence/download/attachments/17891332/weasis2.png';
var url = 'http://dicom.vital-it.ch:8089/weasis-pacs-connector/viewer.jnlp?studyUID=1.2.840.113619.2.176.2025.1499492.8612.1098277309.15';
deployJava.createWebStartLaunchButton(url, '1.6.0_10');
</script>

HM

unread,
Sep 14, 2014, 10:09:37 AM9/14/14
to dcm...@googlegroups.com
Hi Nicolas

Thanks Nicolas for detailed reply, But my question was that i want to embed weasis in a web page application of mine as mentioned in this link. As, mentioned i am not a developer. So, please help me in this regard.As, the technical terms mentioned in the above mentioned page are totally new for me and i failed to understand any.

If possible can you also upload the compiled version of weasis embedded in a web page.

Thanks 

HM

Nicolas Roduit

unread,
Sep 14, 2014, 11:49:00 AM9/14/14
to dcm...@googlegroups.com
See my in-line comments,


On Sunday, September 14, 2014 4:09:37 PM UTC+2, HM wrote:
Hi Nicolas

Thanks Nicolas for detailed reply, But my question was that i want to embed weasis in a web page application of mine as mentioned in this link. As, mentioned i am not a developer. So, please help me in this regard.As, the technical terms mentioned in the above mentioned page are totally new for me and i failed to understand any.

If you do not have a good reason, I really recommend to use the application as "normal" with an external window (can be used in fullscreen and with multiple screens). The integration inside the browser is still experimental, it should be incorporated in the next release of weasis-pacs-connector. So at this stage I only provide an example in the link mentioned above.
 

If possible can you also upload the compiled version of weasis embedded in a web page.
 
This is the same version, only the way to launch Weasis is different. To build the sample package, please ask to your IT staff.

Mounir Boussetta

unread,
Aug 22, 2016, 6:32:59 AM8/22/16
to dcm4che
Hello Nicolas,
I am working on a RIS application and would like to integrate the weasis viewer in my web application (built with spring boot and vaadin), I'm wondering if you can help me on this, I have seen this How+to+launch+Weasis+from+any+environments but I didn't understand how to do it.
Thanks in advance.

Nicolas Roduit

unread,
Aug 23, 2016, 2:53:04 PM8/23/16
to dcm4che
I thought it was obvious because there are many examples in the documentation. Please be more explicit if you expect a response.

You'll find also a live exemple here.
Reply all
Reply to author
Forward
0 new messages