Tuesday, October 25, 2016

SQL Quaries

commonj.sdo.DataObject __smo = (commonj.sdo.DataObject)smo;
 int tableSize=0;

try {

Context ctx = new InitialContext();
DataSource ds = (javax.sql.DataSource) ctx.lookup("jdbc/PIMS.Oracle.DS");
Connection conn = ds.getConnection();
String sql = "SELECT PIMS.SEQ_T_OB_EDI_315.nextVal from dual";
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery(sql);

while (rs.next()) {
tableSize = rs.getInt(1);
   __smo.getDataObject("context").getDataObject("transient").setInt("tableSize", tableSize);

}

}
catch(Exception ex){
CommonLogger.error("---error while getting Max TID in EDI315InboundMF module from Oracle T_OB_EDI_315----"+ex.getMessage());
}

out.fire(__smo);



1.SELECT PIMS.SEQ_T_OB_EDI_315.nextVal from dual

If you have sequencing imposed and you want to get next value use this.

2. Go the BO and then to application info and then right click and go to new and then select UID.

And then give schemaname.sequencename.
EX: PIMS.SEQ_T_OB_EDI_315




3.SELECT MAX(TID) FROM PIMS.T_OB_EDI_315

to get max value of a column from a table 


Wednesday, September 14, 2016

JDBC Adapter

http://www.ibm.com/support/knowledgecenter/SSFTBX_8.5.5/com.ibm.wsadapters.jca.jdbc.doc/doc/srjdb_outoperations.html

http://www-01.ibm.com/support/knowledgecenter/SSTLXK_8.5.0/com.ibm.wsadapters.jca.jdbc.doc/doc/cbp_jdb_intro.html?cp=SSTLXK_8.5.0&lang=en


With IBM® WebSphere® Adapter for JDBC, you can create integrated applications that can interact and exchange information with a database. By using the adapter, an application can send requests to the database, as well as receive events from the database, often without the need for SQL code.
The adapter enables two-way communication between an application running on IBM Business Process Manager or WebSphere Enterprise Service Bus and a database. Using the adapter, an application can send requests to read, create, modify, or delete data in a database, often without writing any SQL code. To process requests received from an application, the adapter updates the database tables using SQL queries or stored procedures. An application can also receive events from the database, for example, it can be notified that specific database tables are updated. To process events that result from changes to the database, the adapter delivers events to an application. Using event notification, updates to the database can be automatically propagated to other applications. By combining event processing by IBM WebSphere Adapter for JDBC and another adapter, updates can be automatically propagated to enterprise applications such as Siebel, PeopleSoft, and Oracle.
The adapter provides a standard interface that integrates with diverse database software vendors and versions; it supports any database server with a Java™ Database Connectivity (JDBC) driver that supports the JDBC 2.0 or later specification. The JRE version required by the JDBC driver must be lower than or equal to the JRE version in the runtime environment. Examples of such servers include IBM DB2®, Oracle, Microsoft SQL Server, Sybase, Derby, and Informix®. The adapter uses business objects to exchange data between the application and the database, so the application does not need to use the JDBC application programming interface (API). Business objects are containers for application data that represent business functions or elements, such as a database table or the result of an SQL query. The adapter understands the data format provided by the application, and can process the data, perform the operation, and send the results back in that format.

Monday, March 21, 2016

Profile Deletion

To clean up the system, complete the following steps:
Use the manageprofiles command to delete the partial configured profile:
manageprofiles.bat -delete -profileName profile_name
Use the database tools to drop all the tables and databases created for the failed profiles.

If DB2 Express was used for the Business Process Manager database, the database and tables are in the C:\BPMINST folder.

If the WebSphere Process Server profile failed, remove QBPMDB, QCMNDB, and QPDWDB.

If the WESB server profile failed, or remove the QBPMDB, QECMNDB, and QPDWDB.
Delete the failed profile folder and verify that it was deleted successfully. The profile will be created under install_root\profiles\profile_name.
Use the following command to validate the profile configuration:
manageprofiles -validateRegistry
manageprofiles -validateAndUpdateRegistry


Monday, March 14, 2016

Profile Creation

Hi Ravi –

       You would have to follow below steps to fix this issue. If you are not able to do these steps then, I’ll help you completing this setup tomorrow morning.

1.       Update the attached properties file with your hostname ( replace wkmj01ebdd with your machine name) and copy it to C:\IBM\IID\PS\v8.5\bin
2.       Open command prompt and cd C:\IBM\IID\PS\v8.5\bin
3.       Run “BPMConfig -create -de Advanced-PS-Standalone-DB2.properties”
4.       From IID add new server using profile qbpmaps1

Before starting “server1”  you would need to delete SIB tables from Database

From Start>IBM DB2>DB2COPY(Default) launch Command Window – Administrator

db2 connect to QCMNDB user db2admin password <password>
db2 drop table SIB000
db2 drop table SIB001
db2 drop table SIB002
db2 drop table SIBOWNER
db2 drop table SIBOWNERO
db2 drop table SIBCLASSMAP
db2 drop table SIBLISTING
db2 drop table SIBKEYS
db2 drop table SIBXACTS
db2 commit

5.        After this you should be able to start the server

Thanks,
Romil


That’s what I thought. Hostname on WAS wouldn’t change automatically, but I can change it with wsadmin. Thanks Aaron!

Srikanta – Please let me know if anyone else has the same issue? Ravi is not available now, so I would have to try to fix this on some other machine.

Thanks,
Romil



WKMJVGRBM was the name of the template machine this software was initially installed on.  It will likely need to be reconfigured for the new WKID (wkmj01ebd1) if that did not happen automatically.


Hi Aaron –

On Ravi’s machine (wkmj01ebd1). WAS is running with a different hostname (WKMJVGRBM.humad.com) all the configuration has that hostname. It doesn’t look right. Is that the server from where the image was taken? Does it have WAS profiles created already? My machine only has BPM binaries. I think profiles would need to be created after image copy, not before that. Could you please take a look?

Srikanta – Could you please check if anyone else has similar issue?

Name Sorted in ascending order. Click to sort in descending order.
Node The column is not sorted. Click to specify ascending order.
Host Name The column is not sorted. Click to specify ascending order.
Version The column is not sorted. Click to specify ascending order.
You can administer the following resources:
Node1
ND 8.5.0.2
BPMAdv 8.5.0.0



Repository

Saturday, February 20, 2016

Anz

Raviteja.mv@anz.com

771236, Ravi Teja M V,BSB:87001333 
4c-149

 

Overview of cpr services,support functions details,channel mediation,value services,non value services,test harnes,defect analysis,cofigurtaion of th,db details,quality center,damiliar with ccrc,unix,rfh util,health check of cpr 11.3

Hibernate,collection frame work- 
Qualifiers,invocation style in WID,. 

Http:www.ibm.com/developerworks/webservices/library/ws-websphereesb3/index.html?ca