wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes mirth javascript code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "mirth javascript code" Watch "mirth javascript code" New topic
Author

mirth javascript code

Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
in mirth javascript code there is a code which including server connection.
is that also written in javascript or is javascript embedded with some other language ?


Regards
Azrael Noor
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

What the heck is "mirth" code?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382

in this mirthm whole code is written in javascript and this connection too made in javascript.
Mirth is desktop application to create interfaces for processing of various types of messages, from files or dbase etc.

is this possible on web side too? can we connect javascript directly with database like above?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

No, and you certainly would not want to! Whatever happened to proper patterns and best practices?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Well, to be fair, that's one way client-side non-browser frameworks work.

But in this case, it's two different JavaScripts: browser JavaScript doesn't run on the JVM, whereas the JavaScript used by Mirth does.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
Well, to be fair, that's one way client-side non-browser frameworks work.

But in this case, it's two different JavaScripts: browser JavaScript doesn't run on the JVM, whereas the JavaScript used by Mirth does.


How Javascript run in JVM, i mean is there facility available in jvm to run javascript.
i feel Javascript runs on JVM in Rhino only.
but how it runs in Mirth?
and basically you use database connection in this scripting.

So can we say it a Complete Javascript or is it some other language?
Mirth do have excess to all functions of Javascript so i feel it is more than javascript, any term for (MORE THAN JAVASCRIPT) in case of mirth?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm only familiar with the Rhino implementation, but there may be others.

Really: it's just JavaScript. You have complete access to Java functionality, however.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
i felt that it is somehow related to e4x, reason being i found xml embedded with javascript in some channels of mirth, still i am confuse to take one decision where i can say that YES IT IS ONLY JAVASCRIPT.

i haven't found Java code in it, though it use JVM and may be internally Java, don't know
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's related to E4X in that Rhino uses E4X, but so do a bunch of other JavaScript implementations. If that's what you mean by not being "ONLY JAVASCRIPT" (please KeepItDown) then sure, it's JavaScript with the E4X extension.

http://en.wikipedia.org/wiki/ECMAScript_for_XML
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
java.lang.(please KeepItDown)

So what you say the Database Variables showed in above code is in Javascript or e4x or Java implementation? or any other language
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

... They're JavaScript strings; I don't understand the question.
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
i wanna ask, ok see here



now, I wanted to say that is Database Connection Factory related to Javascript or Java, or any third party thing?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://www.mirthcorp.com/community/fisheye/browse/~raw,r=3185/Mirth/trunk/server/src/com/webreach/mirth/server/util/DatabaseConnectionFactory.java

Looks like a Mirth-supplied Java utility class to me.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Not to run you away from the ranch, but have you asked this on the forums there http://www.mirthcorp.com/community/forums/ where people who use this technology live? Right now you are talking to people with less knowledge of a system than you have.

Eric
Azrael Noor
Ranch Hand

Joined: Jul 29, 2010
Posts: 382
No Eric i believe that i could easily get answer here and you can see above David solved all the problems, with all links
Moreover it is somehow related to internet technologies thats why i asked question in
i do not want to register and then ask and then wait for reply for long time

Ranch is great, as soon as i post the next moment reply = 1 than 2 3 4 5 6 and all is fuitful and see you even gave forum link too, lol.

I am just studying this platform, so the subject was much related so i asked.

Thankyou all
Topic Resolved
 
Don't get me started about those stupid light bulbs.
 
subject: mirth javascript code