cancel
Showing results for 
Search instead for 
Did you mean: 

JCA and EJB's

Former Member
0 Kudos

Hi, can someone help me.

The code below is will give me a valid ConnectionFactory

But how do I configure the connection properties.

ConnectionFactory cf = (ConnectionFactory) ctx.lookup("java:comp/env/edward");

I can get a connection in two ways.

Connection conn = cf.getConnection();

or by adding some implementation of ConnectionSpec.

Connection conn = cf.getConnection(connectionSpecInstance);

ConnectionSpec is a Interface. So is there a class that implements this interface?

or

How do I configure the WAS. In order to use the

Connection conn = cf.getConnection();

B.T.W.

ResourceAdapterMetaData a= cf.getMetaData();

a.getAdapterShortDescription();

returns "SAP Connector for Portal Connectivity Framework"

Can someone tell me what liberies I need to add?

Thanx already

Accepted Solutions (0)

Answers (1)

Answers (1)

guru_subramanianb
Active Contributor
0 Kudos

Hi,

You have to add the conection jar files in the java build path of your project in the studio and so your class path will be setup.

Regards,

Guru

Former Member
0 Kudos

Thanx Guru,

But The connector.jar is already on my build classpath. This is needed in order to use the

javax.resource.cci.ConnectionFactory class.

So the question remains.