Skip to main content

developerWorks >  Open Source  >  Forums  >  IBM WebSphere Application Server Community Edition and Apache Geronimo  >  developerWorks

Regarding connection pooling and JNDI in WASCE 2.1 using Eclipse    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is answered.

Permlink Replies: 3 - Pages: 1 - Last Post: Nov 12, 2009 1:14 PM Last Post By: NiteshSinha
NiteshSinha

Posts: 4
Registered: Aug 01, 2009 04:15:32 AM
Regarding connection pooling and JNDI in WASCE 2.1 using Eclipse
Posted: Nov 06, 2009 09:37:17 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hello Sir,

Sir i have integrated WASCE 2.1 with eclipse 3.5 on Linux Platform (Distro :- ubuntu 9.04)
with the addition of additional deployment descriptor for WAS "geronimo-web.xml".....everything seems to be working fine on eclipse.

Now when configuring JNDI and pooling i m having a bit of problem....i saw this tutorial and followed accordingly....

http://cwiki.apache.org/GMOxDOC11/geronimo-webxml.html

Now....i m able to make a connection pool in WASCE 2.1 with say name "testdbPool" and i m able to generate a file "testdbPool.xml" and "tranql-connector-mysql-local-1.2.rar" and append the geronimo-web.xml and geronimo-application.xml accordingly ..... and then import them in eclipse

But Sir i m getting an Error with "xml problem for webapp".

I am attaching the related files.

eternaljian

Posts: 1
Registered: Nov 08, 2009 09:57:26 PM
Re: Regarding connection pooling and JNDI in WASCE 2.1 using Eclipse
Posted: Nov 08, 2009 10:04:39 PM   in response to: NiteshSinha in response to: NiteshSinha's post
 
Click to report abuse...   Click to reply to this thread Reply
I found "/WEB-INF/lib/tranql-connector-mysql-local-1.2.rar" in geronimo-application.xml, so it seems that your have put geronimo-application.xml into web directory, not application directory. Could you please attach your project's directory structure or the whole project to help me to get more information?
Jeff_chi

Posts: 38
Registered: Oct 30, 2008 01:14:20 AM
Re: Regarding connection pooling and JNDI in WASCE 2.1 using Eclipse
Posted: Nov 10, 2009 10:03:40 AM   in response to: NiteshSinha in response to: NiteshSinha's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi NiteshSinha,

WAS CE 2.1.1.* is based on Geronimo 2.1.*, therefore you might need to refer to [1] when developing a deployment plan.

http://cwiki.apache.org/GMOxDOC21/geronimo-webxml.html

Please let us know if you have any other questions.

Jeff
NiteshSinha

Posts: 4
Registered: Aug 01, 2009 04:15:32 AM
Re: Regarding connection pooling and JNDI in WASCE 2.1 using Eclipse
Posted: Nov 12, 2009 01:14:34 PM   in response to: Jeff_chi in response to: Jeff_chi's post
 
Click to report abuse...   Click to reply to this thread Reply
thanks jeff and eternaljian for your response

going through this site once again .. i managed how to configure jndi n pooling...ya i was making a mistake earlier...

http://cwiki.apache.org/GMOxDOC21/geronimo-webxml.html

the easiest way for configuring has to be the following ;

go to services tab and then to Database pools in the console navigation of WASCE 2.1.*

Create a new database pool using "the Geronimo database pool wizard"

for database type select : DB2 XA for db2 udb databases...for any other database u can select the type here...

for db2 Select latest versions of db2jcc.jar and db2jcc_licence_cu.jar .. .. for any other database u can select here likewise ..if not present u can even download the jars

fill in the details and Deploy ..

your connection pool might be configured and running now ... .. to find how to use it click on "usage" under Actions

u'll have the necessary code and use it appropriately in the web deployment plan and geronimo deployment plan...

and use the code given below in your web application.

HTH
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums