ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Business Object for Retrieving all table records

Post new topic  Reply to topic
 Business Object for Retrieving all table records « View previous topic :: View next topic » 
Author Message
alihshahin
PostPosted: Wed Jun 28, 2006 12:28 am    Post subject: Business Object for Retrieving all table records Reply with quote

Newbie

Joined: 03 Jan 2006
Posts: 2

hi ,
I have a JDBC adapter for ORACLE.
I need help for business object definitions in order to retrieve all the records of a table(select * from table)

thanks.
Back to top
View user's profile Send private message
thomeck
PostPosted: Wed Jun 28, 2006 5:48 am    Post subject: Reply with quote

Apprentice

Joined: 07 Apr 2006
Posts: 30
Location: Germany

Hi,

mhh I don't know wether it works with the JDBC-Connector...

because the Connector builds the sql statement like select attribute1, attribut2, ... from table where ident = ...

I think it will be better if you are working with a database connection pool.

-create a pool like dbConnPool
-then you can use the pool, something like:
CwDBConnection dbConnect = null;
dbConnect = getDBConnection("dbConnPool", false);
dbConnect.beginTransaction();
dbConnect.executeSQL("SELECT * FROM table");

...

Does this help you?
Back to top
View user's profile Send private message
veggiehui
PostPosted: Wed Jul 05, 2006 4:51 pm    Post subject: Reply with quote

Novice

Joined: 22 Mar 2006
Posts: 18

But as I know,It seems WBI doesn't support ORACLE's Connection Pool.
Back to top
View user's profile Send private message
vk
PostPosted: Wed Jul 05, 2006 5:29 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

You can read all records from the table by defining a Wrapper BO and Child BO. The key field for the Wrapper BO should be present as a foreign key in the Child BO which will correspond to the actual table.

The key field for the Wrapper BO should be inserted into the Event Table. The connector will then read all the records from the table and send a single message to the Delivery Queue having the Wrapper BO attributes at the top level and all the records in the table as inner repeating elements in the XML.

Regards,
VK.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » Business Object for Retrieving all table records
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.