Fwd: Another question about shared servers

2 views
Skip to first unread message

tod Landis

unread,
Sep 28, 2009, 6:37:08 PM9/28/09
to Entrance
This tool looks very nice and I am interested in including it in an
analytics package I am preparing for a client. I'm trying to figure
out if I can install it on a linux server and make API calls to
generate charts and tables that will be displayed on a web page. What
are the licensing issues that might be involved here? Can it be used
this way within the terms of the license?

Thanks,
[name withheld]

--------------

Thank you for the nice words! Yes, you can roll your own server
using
Java API calls or the command line interface and either the Entrance
Community
or Entrance IDE. You can post questions here to the community forum
and we will help you do it.

If you purchase an IDE license ($50) you can also deploy an Entrance
server using the pre-built EntranceServlet + the Entrance IDE jar + a
Java server
(eg. Jetty) subject to the IDE license. (Basically the idea is one
purchased license per
instance of the IDE chart server or IDE desktop seat)

The IDE includes a tool for setting up the servlet called
InstallServletX. Attached are some notes about it pasted from
another
email. Better documentation is coming.
- Tod

------------
Go into the Entrance "X" Menu, and select "Edit this menu...". Add
the
EntranceExtension "InstallServletX" . Be sure to make it an
"extension" not
a tool. Open the X Menu again, and select the menu pick you made
for
InstallServletX.

[When the dialog appears]
Enter the path to one of your SQL folders for the script root. (The
dialog will pick up the
path to the selected folder if there is one) The output directory
must be a directory for
which you have write privileges, so you may have to write it somewhere
temporarily and
then copy it as root.

Place the new file "entrance.war" in the webapps directory for your
server. For Jetty,
this will be (jetty home)/webapps. Restart the server. (For Jetty,
open a terminal window,
cd to the jetty home directory, and start it with "java -jar
start.jar". To stop Jetty, type
Ctrl + C in the terminal window where it is running)

Open the Entrance welcome page:
Tomcat: http://localhost:80/entrance/
Jetty: http://localhost:8080/entrance/


the try entering the name of a script containing a PLOT command, eg:
http://localhost:8080/entrance/plot/src/plotTenElements.sql
(Scripts that do not contain PLOT with throw errors)

Set up this way, you should be able to use the IDE as an authoring
tool: Write a script and test it using the IDE, save it, and it
should be
visible from the servlet.



tod Landis

unread,
Sep 28, 2009, 8:10:12 PM9/28/09
to Entrance
Whooops, there's another jar you need (containing
EntranceSerlvet) for those instructions to work. More
to come...
- Tod

tod Landis

unread,
Sep 29, 2009, 8:36:55 PM9/29/09
to Entrance
Ok, API doucmentation is online here:
http://dbentrance.com/api/

Source for the 'Plot' class is here:
http://dbentrance.com/downloads/Plot.java
This is GPLed, version 2.

I have also included Plot in the new Community
download, version 1.4.73. This class gives
you a way to "play" PLOT scripts against arbitrary
data sources, eg. arrays of numerical values,
JDBC databases other than MySQL, and so on. It can all
server as entry point to get into to the charting code.

If you want to use Plot with data from MySQL or
another JDBC database take a look at 'ResultSetData'.
.
('Plot' is a good way to embed Entrance in any Java
application, actually, not just servers and servlets)..

The other way to go is to use the IDE and its
built-in servlet, EntranceServlet using the instructions
in the previous post. I'll have better documentation
for EntranceServlet online shortly.

Hope that helps...let me know how things go.
- Tod









Reply all
Reply to author
Forward
0 new messages