<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, JDBC connection to mySQL database from MapleNet</title>
    <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 06:31:35 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 06:31:35 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, JDBC connection to mySQL database from MapleNet</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, JDBC connection to mySQL database from MapleNet</title>
      <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet</link>
    </image>
    <item>
      <title>Web Service</title>
      <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet?ref=Feed:MaplePrimes:JDBC connection to mySQL database from MapleNet:Comments#answer98436</link>
      <itunes:summary>&lt;p&gt;I doubt that it's possible for a Maplet to load up a remotely served JAR file. It seems to me that this would be a huge security loophole in Java, so I doubt it's allowed.&lt;/p&gt;
&lt;p&gt;My suggestion would be for you to do all of your MySQL access in a webservice on your own server. Then just have the Maplet access the results of the webservice instead of going into the database directly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You usually don't want to allow users to directly access your database anyhow, since you would have to include the MySQL login credentials in your Maplet. It would be possible for someone to figure out the username/password by packet sniffing and then they would be able to execute arbitrary commands on your database. By creating a webservice and having all interaction go through the service, you are greatly increasing the security of your database.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;____&lt;/p&gt;
&lt;p&gt;William Spaetzel&lt;br&gt; MaplePrimes Administrator&lt;br&gt; Software Developer, Maplesoft&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I doubt that it's possible for a Maplet to load up a remotely served JAR file. It seems to me that this would be a huge security loophole in Java, so I doubt it's allowed.&lt;/p&gt;
&lt;p&gt;My suggestion would be for you to do all of your MySQL access in a webservice on your own server. Then just have the Maplet access the results of the webservice instead of going into the database directly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You usually don't want to allow users to directly access your database anyhow, since you would have to include the MySQL login credentials in your Maplet. It would be possible for someone to figure out the username/password by packet sniffing and then they would be able to execute arbitrary commands on your database. By creating a webservice and having all interaction go through the service, you are greatly increasing the security of your database.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;____&lt;/p&gt;
&lt;p&gt;William Spaetzel&lt;br&gt; MaplePrimes Administrator&lt;br&gt; Software Developer, Maplesoft&amp;nbsp;&lt;/p&gt;</description>
      <guid>98436</guid>
      <pubDate>Mon, 01 Nov 2010 17:58:12 Z</pubDate>
      <itunes:author>Will</itunes:author>
      <author>Will</author>
    </item>
    <item>
      <title>Maplet Code runs on the Server</title>
      <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet?ref=Feed:MaplePrimes:JDBC connection to mySQL database from MapleNet:Comments#answer98528</link>
      <itunes:summary>&lt;p&gt;Doug&lt;/p&gt;
&lt;p&gt;The code for the Maplet runs on the Server. Only the visual representation of the Maplet is 'running' on the Client browser. So the path to the JDBC jar should point to the jar where it exists on the Server file system. Also the owner of the Tomcat process should be given read access to this directory.&lt;/p&gt;
&lt;p&gt;Bill H&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Doug&lt;/p&gt;
&lt;p&gt;The code for the Maplet runs on the Server. Only the visual representation of the Maplet is 'running' on the Client browser. So the path to the JDBC jar should point to the jar where it exists on the Server file system. Also the owner of the Tomcat process should be given read access to this directory.&lt;/p&gt;
&lt;p&gt;Bill H&lt;/p&gt;</description>
      <guid>98528</guid>
      <pubDate>Wed, 03 Nov 2010 18:42:41 Z</pubDate>
      <itunes:author>Bill</itunes:author>
      <author>Bill</author>
    </item>
    <item>
      <title>clarification, and question</title>
      <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet?ref=Feed:MaplePrimes:JDBC connection to mySQL database from MapleNet:Comments#comment98440</link>
      <itunes:summary>&lt;p&gt;Will,&lt;/p&gt;
&lt;p&gt;There is nothing that prevents a Maplet from accessing a database. I have done this when the Maplet is being run on my local computer (and the database is on another server). My question was how to get this to work when the Maplet is being run on the server, via MapleNet.&lt;/p&gt;
&lt;p&gt;Maybe your answer is that MapleNet does not allow this, based on security concerns. If so, I hope you will say so explicitly - with appropriate modifications to your reasoning.&lt;/p&gt;
&lt;p&gt;I'm not sure I know what you mean by a "webservice". Can you elaborate on this?&lt;/p&gt;
&lt;p&gt;I'll check back after class.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Will,&lt;/p&gt;
&lt;p&gt;There is nothing that prevents a Maplet from accessing a database. I have done this when the Maplet is being run on my local computer (and the database is on another server). My question was how to get this to work when the Maplet is being run on the server, via MapleNet.&lt;/p&gt;
&lt;p&gt;Maybe your answer is that MapleNet does not allow this, based on security concerns. If so, I hope you will say so explicitly - with appropriate modifications to your reasoning.&lt;/p&gt;
&lt;p&gt;I'm not sure I know what you mean by a "webservice". Can you elaborate on this?&lt;/p&gt;
&lt;p&gt;I'll check back after class.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</description>
      <guid>98440</guid>
      <pubDate>Mon, 01 Nov 2010 19:09:08 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
    <item>
      <title>Database access</title>
      <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet?ref=Feed:MaplePrimes:JDBC connection to mySQL database from MapleNet:Comments#comment98443</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet#comment98440"&gt;@Doug Meade&lt;/a&gt;&amp;nbsp;Yes, my answer is that (as far as I know) MapleNet does not allow this based on security reasons. Loading the JDB over the internet is dangerous as it would allow potentially malicious code to be injected into the Maplet.&lt;/p&gt;
&lt;p&gt;By web service I mean a simple page that your Maplet could load to get the data from the database. For example, if your Maplet needs to load up a list of people's names with a search parameter. The Maplet could load this URL from your server:&lt;/p&gt;
&lt;pre&gt;http://myserver/loadnames.php?term=will&lt;/pre&gt;
&lt;p&gt;Then the PHP page would list off the results&lt;/p&gt;
&lt;pre&gt;Will Spaetzel&lt;br&gt;John Williamson&lt;br&gt;William Smith&lt;/pre&gt;
&lt;p&gt;It would be simple for you to parse the results in your Maplet, and then make use of that data.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet#comment98440"&gt;@Doug Meade&lt;/a&gt;&amp;nbsp;Yes, my answer is that (as far as I know) MapleNet does not allow this based on security reasons. Loading the JDB over the internet is dangerous as it would allow potentially malicious code to be injected into the Maplet.&lt;/p&gt;
&lt;p&gt;By web service I mean a simple page that your Maplet could load to get the data from the database. For example, if your Maplet needs to load up a list of people's names with a search parameter. The Maplet could load this URL from your server:&lt;/p&gt;
&lt;pre&gt;http://myserver/loadnames.php?term=will&lt;/pre&gt;
&lt;p&gt;Then the PHP page would list off the results&lt;/p&gt;
&lt;pre&gt;Will Spaetzel&lt;br&gt;John Williamson&lt;br&gt;William Smith&lt;/pre&gt;
&lt;p&gt;It would be simple for you to parse the results in your Maplet, and then make use of that data.&lt;/p&gt;</description>
      <guid>98443</guid>
      <pubDate>Mon, 01 Nov 2010 19:57:21 Z</pubDate>
      <itunes:author>Will</itunes:author>
      <author>Will</author>
    </item>
    <item>
      <title>MapleNet, JDBC, PHP followup</title>
      <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet?ref=Feed:MaplePrimes:JDBC connection to mySQL database from MapleNet:Comments#comment98521</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet#comment98443"&gt;@Will&lt;/a&gt; Your comments are in italics, and indented.&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;br&gt;&lt;em&gt;I doubt that it's possible for a Maplet to load up a remotely served JAR file. It seems to me that this would be a huge security loophole in Java, so I doubt it's allowed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;OK. But, what about a locally served JAR file, that is, oneon the MapleNet server?&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;em&gt;By web service I mean a simple page that your Maplet could load to  get the data from the database. For example, if your Maplet needs to  load up a list of people's names with a search parameter. The Maplet  could load this URL from your server:&lt;/em&gt;&lt;/p&gt;
&lt;pre style="padding-left: 30px;"&gt;&lt;em&gt;http://myserver/loadnames.php?term=will&lt;/em&gt;&lt;/pre&gt;
&lt;p&gt;But, to the best of my knowledge it is not possible to put a URL like this in a Maplet. Maybe I could have a button that uses the system command to run the PHP code on the server, writing results to a file that can then be accessed by code within the Maplet. But, doesn't this have the same (or more) security concerns?&lt;/p&gt;
&lt;p&gt;Last month, in response to a question under the title "Open URL" (http://www.mapleprimes.com/questions/97949-External-Communication-With-Maplet#comment97950) you suggested having a Close button open a webpage. I did discover that this is possible - by using the system (or ssystem) command with the command being "open &amp;lt;some URL&amp;gt;". This appears to work for several combinations of OS and browser, but I've not yet determined that it will work for all cases. This question is different - at least in some respects.&lt;/p&gt;
&lt;p&gt;Have others wanted to do anything like this?&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;p&gt;P.S. I received (at least) four notices that you had responded to my question. The timestamps are 10:45am, 12:45pm, 2:45pm, and 4:45pm.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet#comment98443"&gt;@Will&lt;/a&gt; Your comments are in italics, and indented.&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;br&gt;&lt;em&gt;I doubt that it's possible for a Maplet to load up a remotely served JAR file. It seems to me that this would be a huge security loophole in Java, so I doubt it's allowed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;OK. But, what about a locally served JAR file, that is, oneon the MapleNet server?&lt;/p&gt;
&lt;p style="padding-left: 30px;"&gt;&lt;em&gt;By web service I mean a simple page that your Maplet could load to  get the data from the database. For example, if your Maplet needs to  load up a list of people's names with a search parameter. The Maplet  could load this URL from your server:&lt;/em&gt;&lt;/p&gt;
&lt;pre style="padding-left: 30px;"&gt;&lt;em&gt;http://myserver/loadnames.php?term=will&lt;/em&gt;&lt;/pre&gt;
&lt;p&gt;But, to the best of my knowledge it is not possible to put a URL like this in a Maplet. Maybe I could have a button that uses the system command to run the PHP code on the server, writing results to a file that can then be accessed by code within the Maplet. But, doesn't this have the same (or more) security concerns?&lt;/p&gt;
&lt;p&gt;Last month, in response to a question under the title "Open URL" (http://www.mapleprimes.com/questions/97949-External-Communication-With-Maplet#comment97950) you suggested having a Close button open a webpage. I did discover that this is possible - by using the system (or ssystem) command with the command being "open &amp;lt;some URL&amp;gt;". This appears to work for several combinations of OS and browser, but I've not yet determined that it will work for all cases. This question is different - at least in some respects.&lt;/p&gt;
&lt;p&gt;Have others wanted to do anything like this?&lt;/p&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;p&gt;P.S. I received (at least) four notices that you had responded to my question. The timestamps are 10:45am, 12:45pm, 2:45pm, and 4:45pm.&lt;/p&gt;</description>
      <guid>98521</guid>
      <pubDate>Wed, 03 Nov 2010 17:41:09 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
    <item>
      <title>it works!</title>
      <link>http://www.mapleprimes.com/questions/98377-JDBC-Connection-To-MySQL-Database-From-MapleNet?ref=Feed:MaplePrimes:JDBC connection to mySQL database from MapleNet:Comments#comment98557</link>
      <itunes:summary>&lt;p&gt;This is what I thought I was trying to do.&lt;/p&gt;
&lt;p&gt;When I was putting together my response to tell you how this did not work - it worked!&lt;/p&gt;
&lt;p&gt;I don't know what I am now doing differently, but all is now working as it should.&lt;/p&gt;
&lt;p&gt;Thanks for your support and patience as I came to this realization.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;This is what I thought I was trying to do.&lt;/p&gt;
&lt;p&gt;When I was putting together my response to tell you how this did not work - it worked!&lt;/p&gt;
&lt;p&gt;I don't know what I am now doing differently, but all is now working as it should.&lt;/p&gt;
&lt;p&gt;Thanks for your support and patience as I came to this realization.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;Doug&lt;/p&gt;
&lt;pre&gt;---------------------------------------------------------------------
Douglas B. Meade  &amp;lt;&amp;gt;&amp;lt;
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu
Phone:  (803) 777-6183         URL:    http://www.math.sc.edu
&lt;/pre&gt;</description>
      <guid>98557</guid>
      <pubDate>Thu, 04 Nov 2010 10:11:01 Z</pubDate>
      <itunes:author>Doug Meade</itunes:author>
      <author>Doug Meade</author>
    </item>
  </channel>
</rss>