Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
bskania
Posts: 105
Registered: ‎04-24-2012
My Carrier: relience
Accepted Solution

Support to use postgresql from blackberry application

Hello,

 

I am a newbe in the development of blackberry application.

I want to connect to postgresql database from my blackberry app.

I am getting the JAR file for that from postgresql.

But I am not getting full java support in blackberry for connection to the Postgresql.

So If any one having Idea.

Pls Let me know how can I connect to postgresql.

 

Thanks In advance,

bskania.

Please use plain text.
Developer
peter_strange
Posts: 17,959
Registered: ‎07-14-2008

Re: Support to use postgresql from blackberry application

Welcome to the BlackBerry Java forum.

 

I presume that you have obtained a jar that will interface between Java and postgre,  Unless this has been specifically written fro BlackBerry devices, then this will not work on BlackBerry unfortunately.  The code I suspect you have got will work only on Java SE environments, not Java ME.

 

The usual solution to this sort of problem is to write a middleware application, that takes http requests from the Blackberry converts these to the required SQL, runs the SQL, then formats the data for transmission back to the Blackberry.  This sort of solution is required for all databases, unless you purchase a middle ware product that has already been built - and the only one of these that I an aware of is the Sybase offering for iSQLAnywhere.    You will find other peoples comments if you search the forum, I would suggest searching for "SQL Server".

 

Good luck.

Please use plain text.
Developer
bskania
Posts: 105
Registered: ‎04-24-2012
My Carrier: relience

Re: Support to use postgresql from blackberry application

Thanks for you reply.

So In that case I can go with webservices? If I dont want to purchase any middleware.

Please use plain text.
Developer
peter_strange
Posts: 17,959
Registered: ‎07-14-2008

Re: Support to use postgresql from blackberry application

[ Edited ]

That is correct.

 

It is usually not that difficult to do, as long as you have a relatively simple database structure and not too much data to pass around. 

 

Edit:

Should have said it earlier - welcome to the forum!

Please use plain text.