MQSeries.net
Search
Tech Exchange
Education
Certifications
Library
Info Center
SupportPacs
LinkedIn
Search
FAQ
 Â
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 Message Broker (ACE) Support
»
Connect To SQL Server 2005 thru Java Compute JDBC Type 4
Connect To SQL Server 2005 thru Java Compute JDBC Type 4
«
View previous topic
::
View next topic
»
Author
Message
lalitdowlani
Posted: Mon Feb 21, 2011 10:03 pm
Post subject: Connect To SQL Server 2005 thru Java Compute JDBC Type 4
Novice
Joined: 21 Feb 2011
Posts: 15
I am trying to connect to SQL Server with Windows Authentication thru Java Compute using JDBC Type 4 Driver without XA.
Message Broker V 6.1
SQL Server 2005
Windows Platform
I have created a MsSql_Test
connectionUrlFormat='jdbc
qlserver://172.16.10.67:1433;DatabaseName=Horizo
Test;integrationSecurity=true'
connectionUrlFormatAttr1=''
connectionUrlFormatAttr2=''
connectionUrlFormatAttr3=''
connectionUrlFormatAttr4=''
connectionUrlFormatAttr5=''
databaseName='HorizonTest'
databaseType='Microsoft SQL Server'
databaseVersion='default_Database_Version'
description='default_Description'
environmentParms='default_none'
jarsURL='E:\WebSphere\jars'
portNumber='1433'
securityIdentity='default_User@default_Server'
serverName='172.16.10.67'
type4DatasourceClassName='com.microsoft.sqlserver.jdbc.SQLServerDataSource'
type4DriverClassName='com.microsoft.sqlserver.jdbc.SQLServerDriver'
'E:\WebSphere\jars' consits of Sqljdbc.jar and sqljdbc_auth.dll (required for Windows Authentication)
Below is the Java Compute Code written to connect .
public void evaluate(MbMessageAssembly assembly) throws MbException {
MbOutputTerminal out = getOutputTerminal("out");
try
{
Connection conn = null;
/**Getting a JDBC Type 4 Connection**/
conn = getJDBCType4Connection("MsSql_Test", JDBC_TransactionType.MB_TRANSACTION_AUTO);
System.out.println("connected");
conn.close();
out.propagate(assembly);
}catch(SQLException se)
{
throw new MbUserException(se,"","","",se.toString(), null);
}
}
Below is the excrption list :-
ExceptionList
RecoverableException
File:CHARACTER:F:\build\S610_P\src\DataFlowEngine\ImbDataFlowNode.cpp
Line:INTEGER:957
Function:CHARACTER:ImbDataFlowNode::createExceptionList
Type:CHARACTER:ComIbmMQInputNode
Name:CHARACTER:Test_Jdbc_Flow#FCMComposite_1_1
Label:CHARACTER:Test_Jdbc_Flow.MQInput
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Node throwing exception
RecoverableException
File:CHARACTER:F:\build\S610_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp
Line:INTEGER:1028
Function:CHARACTER:ImbJniNode::evaluate
Type:CHARACTER:ComIbmJavaComputeNode
Name:CHARACTER:Test_Jdbc_Flow#FCMComposite_1_4
Label:CHARACTER:Test_Jdbc_Flow.JavaCompute
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:2230
Text:CHARACTER:Caught exception and rethrowing
RecoverableException
File:CHARACTER:MbNode.java
Line:INTEGER:1569
Function:CHARACTER:getJDBCType4Connection
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:6233
Text:CHARACTER:Failed to obtain JDBC Connection
Insert
Type:INTEGER:5
Text:CHARACTER:JavaCompute
Insert
Type:INTEGER:5
Text:CHARACTER:MsSql_Test
Insert
Type:INTEGER:5
Text:CHARACTER:java.lang.reflect.InvocationTargetException
Insert
Type:INTEGER:5
Text:CHARACTER:No Details
Please let me know what needs to be done .
Back to top
lalitdowlani
Posted: Tue Feb 22, 2011 12:04 am
Post subject:
Novice
Joined: 21 Feb 2011
Posts: 15
SQL Server Version is 2008 not 2005 ...
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Page
1
of
1
MQSeries.net Forum Index
»
WebSphere Message Broker (ACE) Support
»
Connect To SQL Server 2005 thru Java Compute JDBC Type 4
Jump to:
Select a forum
General Discussion
----------------
Read First for All New to IBM MQ, Integration, Messaging, WebSphere - Only Moderators Post Here
General Discussion
Messaging and Integration Technologies FAQ
News/Updates
Links
Job Seekers
Job Postings
General Forums Information
Requirements, Wishlists & Enhancement Requests
----------------
RFEs - Requirements, Wishlists & Enhancement Requests - Open Forum
IBM MQ Support
----------------
General IBM MQ Support
IBM MQ Cloud and SaaS, Cloud Hybrid and Containers
IBM MQ Installation/Configuration Support
Clustering
IBM MQ Telemetry / Low Latency Messaging / Everyplace
Mainframe, CICS, TXSeries
iSeries, OpenVMS, HP-NSS
IBM MQ Performance Monitoring
IBM MQ Security
IBM MQ Development
----------------
IBM MQ Java / JMS
IBM MQ API Support
Multiphase Commit
User Exits
WebSphere Message Broker
----------------
WebSphere Message Broker (ACE) Support
WMB Patterns Repository - Available for Download
WebSphere Application Server
----------------
WebSphere Application Server
Web Services
----------------
WebSphere DataPower
Products that use IBM MQ
----------------
Workflow Engines - IBM MQ Workflow & Business Process Choreographer
WebSphere Process Server (WID/WPS/WAS+)
WebSphere Interchange Server + Adapters
IBM MQ File Transfer Edition
Resources, Files, Samples, Archives, Misc
----------------
Files and Code Samples
Archives - All
Challenge Forum
Sponsored Forums
----------------
Cressida Technology
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.