Skip to Content
0
Former Member
Mar 14, 2011 at 07:46 AM

Using datasources in WebDynpro

36 Views

Hi experts,

i try to use a SAP BPM datasource (e.g. BI_BPM_MY_PROCESSES_DS) in WebDynpro for some tests.

The following code would do this.

 try {
		  InitialContext initialContext = new InitialContext();
		 
		  DataSource dataSource = (DataSource)initialContext.lookup(" _jdbc/BPM_MY_PROCESSES_DS_ ");
	
		  Connection connection= dataSource.getConnection();

....

The question is, can i open datasources of SAP BPM in WebDynpro and what is the right path for the lookup?

The current setting with jdbc/BPMMY_PROCESSES_DS_ is wrong.

Thanks a lot

Kai