• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mirth javascript code

 
Azrael Noor
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What the heck is "mirth" code?
 
Azrael Noor
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, and you certainly would not want to! Whatever happened to proper patterns and best practices?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
... They're JavaScript strings; I don't understand the question.
 
Azrael Noor
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic