Re: [OpenMap Users] Database and JavaBeans Questions

From: Don Dietrick <dietrick@bbn.com>
Date: Wed Feb 04 2004 - 08:51:52 EST

Hi Steve,

On Feb 4, 2004, at 1:41 AM, Pang Kwong Yiu wrote:

> Hi,
>
> I am currently using openmap to develope a server side application
> providing
> user with map and locational information.
>
> Can anyone tell me how to connect the openmap to a database? Which
> database is
> better? And are there any examples which help us to setup the openmap
> with the
> database?

We have examples of working with a database in the
com.bbn.openmap.layer.location.db.DBLocationHandler, and (in 4.6) the
com.bbn.openmap.layer.mysql package.

Connecting to any database basically follows the same paradigm.
Choosing a database kind of depends on your resources and requirements.
  Oracle has a JDBC GIS front end, and you can use PostGRES with the
PostGIS extension as well as the latest version of MySQL with GIS
extensions.

>
> Also, I am using servlet and the MapRequesthandler to send map to
> user, I am
> wondering that can I integrate the mouse and tool bar function of the
> openmap
> into the servlet?

You can, but you'll have to create the HTML components to do it, either
with SOAP or something. The buttons are set to send a query to get a
new webpage created, which in turn will make a new map request. We
have a .NET capability in the toolkit (demo on the website), but we
don't have general components for this.

> Actually, I am confused with the word javabeans, can I use javabeans
> just like
> an api in my servlet?

Java Beans are simply components. They have discovery methods on them
to make it easier for them to find and connect to each other. The java
API has a java.beans package.

- Don

>
> Thank you for your help!
>
> Steve
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Feb 4 08:57:17 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:37 EDT