JDBCDataSource and ConnectionPool
Please answer to this question! I have been asking questions about WLS
Implementation of JMX on this newsgroup but I hardly get any answer from the
readers or BEA folks.
1. Can I create a JDBCDataSource and ConnectionPool Configuration MBeans
through progrmatically ?
2. If So, Will the server automatically start the connection pool and
register the DataSource in the JNDI? Explain how should I do this.
If the above is not possible, then what is the work around ?. I need this
since the connection lookup using the driver manager is depreciated
Thanks
/selvan
Captura Software, Inc
Ok. But the weblogic documentation doesn't show the (Dynamic Connection
Pool) API anymore in the reference section and also it recommends that not
to lookup the connections using the JTS DriverManager.
I know that the API for creating dynamic connection pool is available in WLS
5.1 and WLS 6.x, Any API to create
Datasource's dynamically?
If there is no way to create Datasource and Connection Pool using the JMX
interface then
I don't really see the complete usefulness of having these JMX
implementation.
How about providing JMX interface for creating Connection Pool and
Datasource in WLS 6.1 ?
I know that this too much to ask but I think that this will be cool when it
is done.
Thanks
/selvan
Captura Software, Inc
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]...
There is an ability to create connection pools dynamically.
AFAIK it's the same as it was in 5.1
Slava
"Selvan Ramasamy" <[email protected]> wrote in message
news:[email protected]...
Hi Slava,
Thanks for your quick response.
But our application demands the dynamic connection pool as the database
connection information is stored with other configurations of our
applications. So I need to create connection pools dynamically.
There has to be a way to create connection pools and datasources
dynamically. Internally WLS server must be doing it.
Currently we are using the WLS 5.1 and we are able to create dynamic
connection pools, we need a similar solution in WLS 6.1 so that we cankeep
the same concept that we have employed so far.
Thanks
/selvan--------------------------------------------------------------------------
"Slava Imeshev" <[email protected]> wrote in message
news:[email protected]...
Hi Selvan,
You can create DataSources and ConnectioPools from the console
and then you can lookup for DataSource via JNDI with subsequent
call of ds.getConnection()
Regards,
Slava Imeshev
"Selvan Ramasamy" <[email protected]> wrote in message
news:[email protected]...
Please answer to this question! I have been asking questions about
WLS
Implementation of JMX on this newsgroup but I hardly get any answerfrom
the
readers or BEA folks.
1. Can I create a JDBCDataSource and ConnectionPool Configuration
MBeans
through progrmatically ?
2. If So, Will the server automatically start the connection pool
and
register the DataSource in the JNDI? Explain how should I do this.
If the above is not possible, then what is the work around ?. I needthis
since the connection lookup using the driver manager is depreciated
Thanks
/selvan
Captura Software, Inc
Similar Messages
-
Data Source and ConnectionPool
This is a query for information about javax.sq.ConnectionPool and javax.sql.DataSource
Does datasource represent one connection to a database? - if you register it through JNDI does this just register the object and every time you call it does it instatiate the connection?
ConnectionPool - how do i set parameters regarding max and min size of the pool etc.
Where would i use datasource and where would i use connectionpool - what factors determine what one to use?
If you can give me information for these, particulary any examples where you would use one and not the other.
And if possible where applicable to the Oracle classes12 implementation
CheersHi,
I suggest that you could reference the book, Database
Programming with JDBC and Java 2nd Edition from
oreilly. In the beginning of chapter 5, it has great descrption
to answer your question. Including the relationship between
the datasource and connectionpool, and code snippet of
access datasource by JNDI.
No method is found in the API doucment which show me
how to handle the size of connectionpool. So I think that
you may conisder your application server or database
server document, or ldap server for further informtation.
good luck,
Alfred Wu -
Hi,
I need your help.
I have a WLS-Cluster with 2 instances and my webApp uses connection pooling.
By looking up for connections in the pool the application get one, but it
will never be released.
In my opinion, the webApp get the connection and looses the reference to
release it.
How do I have to configure my cluster to work well with that stuff ?
Thanks a lot,
Markus.What if the code between db.connect() and db.disconnect() throws an
exception? In that case the disconnect() would never happen and you
have basically lost a connection from your pool. Could it be that in the
clustered version the code between those calls is throwing an exception
that the non-clustered version is not being thrown??
Regards
alex
"M. Hammer" wrote:
Here it is...
But I don't think that you'll see anything in the source.
My WebApp works well standalone, but not in a CLUSTER.
By the way I put an new WLS Instance to a standalone running one,
connections will be used and never be released.
Exactly the connection will be open up in the partner-instance of the
requested one.
So, I think that the cluster make the connection-pool-request to both,
Instance 1 and 2, then on one connection, the reference is lost.
Hope you know what I mean. ;o)
public class MyServlet extends HttpServlet
public void doGet (HttpServletRequest request, HttpServletResponse
response)
throws IOException, ServletException
Db db = mySession.getDb();
if( mySession.useConnectionPooling && !mySession.useStaticDb ) {
db.connect();
if( mySession.useConnectionPooling && !mySession.useStaticDb ) {
db.disconnect();
"Michael Reiche" <[email protected]> schrieb im Newsbeitrag
news:[email protected]...
Ok, that was the code that connects. Now the code that uses it and
disconnects.
Mike
"M. Hammer" <[email protected]> wrote in message
news:[email protected]...
Ok, here it is...
public boolean connect()
Hashtable jndi_env = new Hashtable();
Context context = null;
DataSource ds = null;
if ( driverRegistered )
if( isConnected() ) {
disconnect();
if( useConnectionPooling ) {
try {
if( activateSettings ) {
//--- JNDI-Settings aus App-Property-Datei
setzen
jndi_env.put( Context.INITIAL_CONTEXT_FACTORY,
JNDI_factory_initial );
jndi_env.put( Context.PROVIDER_URL,
JNDI_provider_url );
jndi_env.put( Context.SECURITY_PRINCIPAL,
JNDI_security_principal );
jndi_env.put( Context.SECURITY_CREDENTIALS,
JNDI_security_credentials );
if( activateSettings ) {
context = new InitialContext( jndi_env );
} else {
context = new InitialContext();
ds = (DataSource)context.lookup(
myDataSource );
connection = ds.getConnection();
} catch( SQLException ex_sql ) {
return false;
} catch( NamingException ex_nam ) {
return false;
} else {
try {
connection = DriverManager.getConnection(url, login,
password);
} catch(SQLException ex) {
return false;
else
return false;
return true;
"Michael Reiche" <[email protected]> schrieb im Newsbeitrag
news:[email protected]...
Can you post the code that gets the connection, uses it, and returns
it
to
the pool?
Mike
"M. Hammer" <[email protected]> wrote in message
news:[email protected]...
Hi,
I need your help.
I have a WLS-Cluster with 2 instances and my webApp uses connectionpooling.
By looking up for connections in the pool the application get one,
but
it
will never be released.
In my opinion, the webApp get the connection and looses the
reference
to
release it.
How do I have to configure my cluster to work well with that stuff ?
Thanks a lot,
Markus. -
How to create DataSource and ConnectionPooling in WAS
hi,
can u please tell me how to create connectionpool and data source in WAS.pls send me step by step procedure
regards
GuruHi,
Here is the steps to creat a JNDI lookup using Datasource for MSSQL Server. Follow this and use necessary oracle parameters (in bold) as gives by me in the help link above.
Click DataSources in the same path i.e. server > services > JDBC connector
Click new driver or datasource.
Enter/ Set the following properties:
Main Tab
DataSource Name : KAAR_DS
Add Alias : KAAR
SRI
Driver Name : KaarSQLDriver
JDBC version :2.0 (with XA support)
<b>Object factory : com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
DataSource Type : ConnectionPoolDataSource
CPDS classname : com.microsoft.jdbcx.sqlserver.SQLServerDataSource</b>
Additional tab
Add the following properties (key-value):
serverName = localhost
databaseName = KA4
portNumber = 1433
user = CV
password =<password>
Save and restart J2EE. The datasource is now ready to use.
Connection Pooling
Initial connection : 0
Maximum connection : 100
Maximum time to wait for connection : 60
Default connection isolation : DEFAULT
SQL Engine
Select, Vendor SQL
DB Initialization Tab
Add a valid sql statement, and execute. If it is successfully executed, a popup window comes up saying Executing <sql query> . OK.
It is done. Now you can use the JNDI look up name in your coding to access the database. Get connection and use the queries to fetch data from db.
Regards,
Srinivasan T
<b>Helpful answer=>points</b> -
Java.lang.NullPointerException and ConnectionPool problem
refresh page , problem gone
java.lang.NullPointerException
at Deferment.UpdatePostgraduate.getStatus(UpdatePostgraduate.java:278)
at Deferment.UpdatePostgraduate.doPost(UpdatePostgraduate.java:175)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
UpdatePostgraduate.java:278
->while (rs.next()) {
175-> tarCount=getStatus(userid);
now I have
Connection conn = null;
CallableStatement calstat=null;
ResultSet rs = null;
in every of my function
and my
public Connection getConnection() throws SQLException, ServletException { Connection conn = null; try{ pool.getConnection(); }catch (SQLException sqle) { throw new ServletException(sqle.getMessage()); } return conn; }private DataSource pool = null;
int tarCount;
int sendMail;
@Override
public void init() throws ServletException {
Context env = null;
try {
env = (Context) new InitialContext().lookup("java:comp/env");
pool = (DataSource) env.lookup("jdbc/test");
if (pool == null) {
throw new ServletException(
"'jdbc/test' is an unknown DataSource"); }
} catch (NamingException ne) {
throw new ServletException(ne);
public Connection getConnection()
throws SQLException, ServletException
Connection conn = null;
try{
conn=pool.getConnection();
}catch (SQLException sqle) {
System.out.println("JDBC error:" + sqle.getMessage());
sqle.printStackTrace();
return conn;
}then on every function I call it like
private int getFound(String UNumber) throws Exception {
Connection conn = null;
CallableStatement calstat=null;
ResultSet rs = null;
try {
conn = pool.getConnection();
calstat = (CallableStatement) conn.prepareCall("{call DuplicatePost(?)}");
calstat.setString(1, UNumber);
rs = calstat.executeQuery();
tarCount = 0;
while (rs.next()) {
tarCount++;
} catch (SQLException se) {
System.out.println("JDBC error:" + se.getMessage());
se.printStackTrace();
} catch (Exception e) {
System.out.println("other error:" + e.getMessage());
e.printStackTrace();
} finally {
try {
if (rs != null) {
rs.close();
if (calstat != null) {
calstat.close();
} catch (SQLException e) {
e.printStackTrace();
} //end finally
return tarCount;
}// end function
}// end -
Problem creating datasources and connectionpools in EM of oc4j
Can SQLServer2000's connection pool be created through ENTERPRISE MANAGER of OC4J shipped with jdeveloper10.1.3.2. If yes, please let me know how? What is the Connection Factory Class to be specified?
Please provide useful linkshi,
The version of sqlserver is SQLServer2000 -
Using ClassforName and getConnenction in JSP a bad idea?
Hi,
I ve written a jsp page to access database through type4 driver.all the
jdbc related activities are included in this jsp page - like
loading the driver,getting connenction, woking with the conn and
finally closing it.
it seems after a number of page access, the server is gettin hanged !
the page can be accessed by any user. i was wondering if there is
anything wrong with my jsp code. as each page access is causing a
repeated task internally ie loding driver,gettin conn,doing some query
and closing the conn.
is there any simple and neat way to avoid this repeated task.so that
those repeated task can be done only once and each jsp page access
concentrates only on sql query stuff.
thanks in advance
javajar2003this is because every time u open a jsp page,a connection is created.so if ur application is live, the millions of users will be opening the jsp page and thus there will be lot of connection objects stored on the server which will create a huge overhead on the server and ultimatley it will get hanged.
so create a class where the connection is created. create an object using the class.and use this object in each jsp page using "pagecontext" class. thus there will be only one connection to the database which will be shared by all users.
code for acessing the connection object is as follows:
ConnectionPool connectionpool=null;//ConnectionPool is the class creating the connection and connectionpool is the instance.
try
connectionpool=(ConnectionPool) pageContext.getAttribute("connectpool");//connectpool is the object
if ( connectionpool == null)
connectionpool=new ConnectionPool(2,2,true);//2 indicates no of connections required.2 is sufficient
pageContext.setAttribute("connectpool",connectionpool);
Connection connection=connectionpool.getConnection();//using connection for this JSP
check it out.
i hope this helps -
ResourceReference has no reference set
I am trying to deploy application application on server anf
getting the following error :
weblogic.management.ApplicationException: activate failed for xis
Module Name: xis, Error: weblogic.j2ee.DeploymentException: Could not setup environment
- with nested exception:
[weblogic.deployment.EnvironmentException: ResourceReference has no reference
set]
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1035)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1016)
at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
My web.xml file contains the following:
<resource-ref>
<description>jdbc/UserPreferenceDataSource</description>
<res-ref-name>jdbc/UserPreferenceDataSource</res-ref-name>
<res-type>weblogic.jdbc.common.internal.RmiDataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
config.xml contains relevant code for DataSource and ConnectionPool:
<JDBCConnectionPool CapacityIncrement="2"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="4"
LoginDelaySeconds="1" MaxCapacity="10" Name="UserPrefPool"
Password="{3DES}JFWl3Q1Brpk=" Properties="user=cdb"
RefreshMinutes="10" ShrinkPeriodMinutes="15"
ShrinkingEnabled="true" Targets="vpaleyServer"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="false" TestTableName="dual" URL="jdbc:oracle:thin:@mali.lab254.telcordia.com:1521:isecom07"/>
<JDBCDataSource JNDIName="jdbc/UserPreferenceDataSource"
Name="UserPreferenceDataSource" PoolName="UserPrefPool" Targets="vpaleyServer"/>
Any ideas what is wrong?
Thanks
VadimThis problem had a simple solution. I needed to add a <resource-description> element
to weblogic-ejb-jar.xml.
"Biff Beers" <[email protected]> wrote:
>
>I'm trying to deploy a stateless session bean that uses a resource adapter.
>The
>deployment fails with the message pasted below. The error message suggests
>that
>the <resource-ref> element in the bean's deployment descriptor doesn't
>have a
>value for subelement <res-ref-name>, but that is not the case. Does anyone
>have
>suggestions for solutions or workarounds?
>
-
REDIRECT JDBC URL WHEN USING DYNAMIC JDBC CREDENTIALS SO NOT HARDCODED
I have taken over an application that uses row-level security and ADF (using
dynamic JDBC Credentials). I have been able to set the internal_connection to
a JDBCDatasource, but cannot set the Connection Type in the Oracle Business
Component Configuration to a JDBCDatasource. When I do, I receive errors that
tables are not found. When I set the value back to a JDBC URL, everything
works fine again.
I am looking for a solution where the userid and password are not hardcoded in
the BC4J.xcfg or a way to redirect this information, as we change our system
passwords every nighty days. Otherwise, I will have to redeploy the
application every nighty days.
I did not create this application, but I am sure that you could simply follow
the "How to Support Dynamic JDBC Credentials" article. From that point, you
will probably be where I am, where I have the internal_connection set to a
JDBCDataSource and working properly, but cannot set the Connection Type to
anything where the userid and password will not be hardcoded or cause failure.
I wanted to let you know that I have
found the updated How to Support Dynamic JDBC Credentials
(http://www.oracle.com/technology/products/jdev/howtos/bc4j/howto_dynamic_jdbc.h
tml) and was going to run through the "Advanced: Supporting Dynamic JDBC URLs",
but once I was done keying in
env.remove(ConnectionStrategy.DB_CONNECT_STRING_PROPERTY); I received a
depreciation message on the DB_CONNECT_STRING_PROPERTY. (Note: I am coding in
JDeveloper 10.1.3, so this may be depreciated as of then, but the ADF Libraries
for JDeveloper 10.1.3 are on our Oracle 10gAS 10.1.2 server.)
I thought maybe this would resolve my issue, but I can't be sure as the
deprecation message leads me to believe that this solution may not be viable in
the future.
UPDATE
=======
The article you are referencing is definitely an older version.
There is a newer article for 10g at:
http://www.oracle.com/technology/products/jdev/howtos/10g/dynamicjdbchowto.html
Please see if that helps.
I have already reviewed this article.
In fact, I have reviewed many versions of this document. I have not seen one
created yet for 10.1.3 though (especially without JSF as our 10.1.2 AS server
will not support it). I need to find an example or documentation that shows
how we can keep from having the JDBC URL stored in the BC4J.xcfg or a way to
use dynamic JDBC credentials with a JDBCDataSource. We do not want to store
the userid and password in the application, rather, we would like to setup
something that can be configurable from the application server.
I think we need to use the dynamic JDBC credentials because we are using the
row-level security, where we setup a database context for the user and only
allow certain records of a database table to be returned to the browser based
on that context.
Might there be a way to still use the JDBCDataSource?I understand that the user provides the userid and password and that these values are setup using the Configuration class.
However, when I am to deploy the ADF Business Module with my application, I have to specify either a JDBC URL or a JDBC DataSource in the Oracle Business Component Configuration.
When I use JDBC DataSource, the code does not work properly, almost like the user's credentials are not used for the connection (I get errors like table or view does not exist).
When I use the JDBC URL, the bc4j.xcfg stores a reference in the JDBCName attribute to a ConnectionDefinition in the same file. It is in this tag of the bc4j.xcfg where the userid, sid, and password (encrypted) is stored and used when retrieving the initial context of the ADF business components.
It is these values that I want to have stored else where so that the application does not have to be redeployed in order for the password (or sid, or other connection information) to be change. -
Using Datasources with Weblogic 7.2
Hi everyone,
I am using Weblogic 7.2 with Db2 8.1 fp3(Type 4 Drivers). I am wanting
to set up a Datasource that would allow my application to connect to
DB2 using the JNDI lookup for that data-source.
My question is: what additions/changes I need to make to config.xml in
order to set this up.Looking at the Websphere Admin Doc, it seems to
me that I need to atleast add 2 elements to my domain in config.xml:
1. JDBCConnectionPool
2. JDBCDataSource(and link it to the above pool)
I have previously set-up datasources on WAS 5.0. What is confusing me
w.r.t Weblogic is that there seems to be no way to specify the
implementing class for the DataSource. e.g. WAS5.0 allows you to
specify the implementationClassName of the
datasource(com.ibm.db2.jcc.DB2ConnectionPoolDataSource in my case) while
defining the DataSource.JDBCConnectionPool element in Weblogic does
have an attribute called "DriverName" but per the documentation it
should be set to an implementor of java.sql.Driver interface: there
seems to be no way to set an implementor of javax.sql.DataSource
anywhere.
Could anyone please shed some light on how to set this up?
Thanks much in advance,
SachinMitesh,
Many thanks for the reply. If you don't mind, I have a couple of follow-up questions
for you.
1> Does this mechanism work with Type 4 Pure Java Drivers?
e.g. if I specified the connection pool as
<JDBCConnectionPool DriverName="com.ibm.db2.jcc.DB2ConnectionPoolDataSource" Name="IBM-db2"
Password="MYPASSWORD" Properties="user=USERNAME;DatabaseName=DATABASE" Targets="MYSERVER"
TestTableName="SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES" URL="jdbc:db2:DATABASE"/>
==> I changed the DriverName to "com.ibm.db2.jcc.DB2ConnectionPoolDataSource"
which
is what I believe is the Type-4 version
2> Setting the DriverName to a javax.sql.DataSource extension seems to suggest
that the documentation in the "BEA Server Configuration Reference" guide is incorrect:
-- For the DriverName attribute of the Connection Pool, the guide says that "DriverName
must be the name of a class that implements the java.sql.Driver interface"
Thanks again
Sachin
Mitesh Patel <[email protected]> wrote:
<JDBCConnectionPool DriverName="COM.IBM.db2.jdbc.DB2XADataSource"
Name="IBM-db2-xa"
Password="MYPASSWORD"
Properties="user=USERNAME;DatabaseName=DATABASE"
Targets="MYSERVER"
TestTableName="SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES"
URL="jdbc:db2:DATABASE"/>
<JDBCConnectionPool DriverName="COM.IBM.db2.jdbc.app.DB2Driver"
Name="IBM-db2"
Password="MYPASSWORD"
Properties="user=USERNAME;DatabaseName=DATABASE"
Targets="MYSERVER"
TestTableName="SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES"
URL="jdbc:db2:DATABASE"/>
Then setup your datasource using one of this connection pools in your
config.xml. Also, make sure your driver zip files are in the classpath.
Thanks,
Mitesh
Sachin Arora wrote:
Hi everyone,
I am using Weblogic 7.2 with Db2 8.1 fp3(Type 4 Drivers). I am wanting
to set up a Datasource that would allow my application to connect to
DB2 using the JNDI lookup for that data-source.
My question is: what additions/changes I need to make to config.xmlin
order to set this up.Looking at the Websphere Admin Doc, it seems to
me that I need to atleast add 2 elements to my domain in config.xml:
1. JDBCConnectionPool
2. JDBCDataSource(and link it to the above pool)
I have previously set-up datasources on WAS 5.0. What is confusingme
w.r.t Weblogic is that there seems to be no way to specify the
implementing class for the DataSource. e.g. WAS5.0 allows you to
specify the implementationClassName of the
datasource(com.ibm.db2.jcc.DB2ConnectionPoolDataSource in my case)while
defining the DataSource.JDBCConnectionPool element in Weblogic does
have an attribute called "DriverName" but per the documentation it
should be set to an implementor of java.sql.Driver interface: there
seems to be no way to set an implementor of javax.sql.DataSource
anywhere.
Could anyone please shed some light on how to set this up?
Thanks much in advance,
Sachin -
Problem in using connection pool in netbeans
Hi,
I am using Net Beans and Sun java application server and Derby as database.
I have created data connnection and also configure JDBC resources (ie. DataResource and connectionPool).
Now i want to use this connection pool in my class, I have create one DataConnection class and put this code
private javax.sql.DataSource getMyDatabase () throws javax.naming.NamingException {
javax.naming.Context c = new javax.naming.InitialContext();
return (javax.sql.DataSource) c.lookup("java:comp/env/jdbc/myDatabase");
}I got this code by right click and selecting Enterprise Resources->Use Data, But while running i got the exception
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
Plz tell me How can we overcome this exception and is there any other way do use connection pool.
Thanks.Thanks bamkin-ov-lesta,
DbConnectionBroker is good for servlet or other java application. If i use this class, it is like i am writing code for connection pool. I am using NetBeans and sun java application server which provide its default connection pool configuration and i want to use that only.
And I am not getting which class name to be set in environment variable under what name in the following exception.
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
Help me plz. -
Hadbm list hadbm:Error 22012
Hi all,
When i try to list using the hadbm the following error prompts:
hadbm list hadbm:Error 22012: The management agent at host localhost is not ready to execute the operation, since it is about to do repository recovery.
Please make sure that a majority of the management agents in the domain are running, and retry the operation later.
in the first ma.log:
2007-03-11 08:46:42.587 INFO Thr{0010} MgtProperties.logProperties:
Using property: ma.server.mainternal.interfaces=
in the second ma.log:
i can see the IP displayed even same configurations were done.
Is this the problem? If so, how can i solve it?
If not, how can i solve the above error?
Thanks,
ScottyHi,
Second issue:
asadmin configure-ha-cluster --hosts host1,host2 --devicesize 56 hadbExecutes a couple of things:
1) check if a application server cluster called hadb (your last argument) exists, this is probably not the case
2) Create a HADB database with device size 56 called hadb , if not there already
3) Create Datasource and connectionpool in AS configuration
4) add reference from cluster to datasource and pool.
So the way to go is, define a cluster first and afterwards, run this command to enable and configure HA for your appserver cluster. -
Problems importing a datasource for a Data Merge? It might be one word...
For the life of me, I could not figure out why this one CSV file was not importing correctly into InDesign CS6. I could see the datasource in the Links panel but nothing showed up in the Data Merge panel.
Through trial and error, I figured it out.
In the CSV file, one of the column headers used the word table. It's what the client gave me, so I never thought much about it. Once I changed the word table to seating, the CSV imported properly into my InDesign file and all was right with the world.
One word, I couldn't believe it...
Hopefully this will save you from all the trouble I went through.
Cheers!Hi Steve,
I am trying to create DS and ConnectionPOOL for the MSSQL server from the Oracle SOA suite server
when I am trying to create the connpool I got the following error and Itried the solution mentioned in the url : http://buttso.blogspot.com/2008/07/configuring-datasource-for-mysql-using.html
your solution seems to correct but even after trying out am getting the same below error, can you please check and tell me apart from those steps what I can do further?...the .jars I have I used for this sqljdbc.jar and mysql-connector-java-3.0.8.jar files. Your solution so far is really appreciatiable further help will be appreciatiable to the gr8 extent. Thanks in advance.
thanks & regards
Jalandhar
An error has occurred.
Unable to create : com.microsoft.sqlserver.jdbc.SQLServerDriver
Missing class: com.microsoft.sqlserver.jdbc.SQLServerDriver Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils Loader: oc4j:10.1.3 Code-Source: /C:/product/10.1.3.1/OracleAS_2/j2ee/home/lib/oc4j-internal.jar Configuration: in META-INF/boot.xml in C:\product\10.1.3.1\OracleAS_2\j2ee\home\oc4j.jar This load was initiated at ascontrol.web.ascontrol:0.0.0 using the Class.forName() method. The missing class is available from the following locations: 1. Code-Source: /C:/product/10.1.3.1/OracleAS_2/j2ee/home/applib/sqljdbc.jar (from in /C:/product/10.1.3.1/OracleAS_2/j2ee/home/config/server.xml) This code-source is available in loader global.libraries:1.0. This shared-library can be imported by the "ascontrol" application. 2. Code-Source: /C:/product/10.1.3.1/OracleAS_2/j2ee/home/shared-lib/sqljdbc.jar (from in /C:/product/10.1.3.1/OracleAS_2/j2ee/home/config/server.xml) This code-source is available in loader adf.oracle.domain:10.1.3.1. This shared-library can be imported by the "ascontrol" application -
Hi,
I need help please. I developed an application in jdeveloper using bc4j and it uses bc4j.xcfg for database connections. When I try to deployed it to a remote server 9iAS 9.0.3, it says deployment incomplete.
I read in the forum that we need to modify bc4j.xcfg to make jdev use JNDI. So I modified it as follows
<?xml version = '1.0' encoding = 'UTF-8'?>
<BC4JConfig>
<AppModuleConfigBag>
<AppModuleConfig name="BC4JTestPKGModuleLocal">
<AppModuleJndiName>BC4JTestPKG.BC4JTestPKGModule</AppModuleJndiName>
<DeployPlatform>LOCAL</DeployPlatform>
<JDBCDataSource>OracleDS</JDBCDataSource>
<ApplicationName>BC4JTestPKG.BC4JTestPKGModule</ApplicationName>
<jbo.project>BC4JTestPRJ</jbo.project>
</AppModuleConfig>
</AppModuleConfigBag>
<ConnectionDefinition name="OracleDS">
<ENTRY name="jdbc/mmrrcdb" value="java:comp/env/jdbc/mmrrcdb"/>
</ConnectionDefinition>
</BC4JConfig>
I am not sure of what fits exactly in <JDBCDataSource>
and also <ENTRY name="jdbc/mmrrcdb" ---/>
I also added resource-ref to web.xml
Do we need to configure anything else other than above?
Someone please help me in solving this
Thanks,
KavithaHi,
I need help please. I developed an application in jdeveloper using bc4j and it uses bc4j.xcfg for database connections. When I try to deployed it to a remote server 9iAS 9.0.3, it says deployment incomplete.
I read in the forum that we need to modify bc4j.xcfg to make jdev use JNDI. So I modified it as follows
<?xml version = '1.0' encoding = 'UTF-8'?>
<BC4JConfig>
<AppModuleConfigBag>
<AppModuleConfig name="BC4JTestPKGModuleLocal">
<AppModuleJndiName>BC4JTestPKG.BC4JTestPKGModule</AppModuleJndiName>
<DeployPlatform>LOCAL</DeployPlatform>
<JDBCDataSource>OracleDS</JDBCDataSource>
<ApplicationName>BC4JTestPKG.BC4JTestPKGModule</ApplicationName>
<jbo.project>BC4JTestPRJ</jbo.project>
</AppModuleConfig>
</AppModuleConfigBag>
<ConnectionDefinition name="OracleDS">
<ENTRY name="jdbc/mmrrcdb" value="java:comp/env/jdbc/mmrrcdb"/>
</ConnectionDefinition>
</BC4JConfig>
I am not sure of what fits exactly in <JDBCDataSource>
and also <ENTRY name="jdbc/mmrrcdb" ---/>
I also added resource-ref to web.xml
Do we need to configure anything else other than above?
Someone please help me in solving this
Thanks,
Kavitha -
Some JDBC query takes over 5 minutes after installing Weblogic 7 SP4
After upgrading from weblogic 7 SP1 to SP4, there is one particular database query
that does not return for somewhere between 5 to 7 minutes. We have turned on
database trace and see that the query is done. This query returns about 3000
rows, 15 columns
Downgrading back to SP1 on the same machine fixes the problem.
Server is not hung while this is going. The datasource and connection pool is
available as well.
Thread dump while it is waiting shows the following for the thread that is waiting
for this query:
ExecuteThread: '13' for queue: 'default'" daemon prio=5 tid=0x2ac3b520 nid=0x9f
runnable [0x2bd6e000..0x2bd6fdb8]
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at oracle.net.ns.Packet.receive(Unknown Source)
at oracle.net.ns.DataPacket.receive(Unknown Source)
at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:931)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:375)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1892)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1198)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.jav
:2504)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
t.java:2832)
at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate
OraclePreparedStatement.java:4187)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
dStatement.java:642)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare
Statement.java:536)
at weblogic.jdbc.jts.Statement.executeQuery(Statement.java:213)Getting the latest driver worked. Thanks a lot.
Joe Weinstein <[email protected]> wrote:
Hi. The best thing to do first is to download and install oracle's very
latest version of theit thin driver, and add it to your PRE_CLASSPATH
so you know the server will use the very latest driver they have. Let's
see if that makes a difference.
Joe
Vina Wang wrote:
After upgrading from weblogic 7 SP1 to SP4, there is one particulardatabase query
that does not return for somewhere between 5 to 7 minutes. We haveturned on
database trace and see that the query is done. This query returnsabout 3000
rows, 15 columns
Downgrading back to SP1 on the same machine fixes the problem.
Server is not hung while this is going. The datasource and connectionpool is
available as well.
Thread dump while it is waiting shows the following for the threadthat is waiting
for this query:
ExecuteThread: '13' for queue: 'default'" daemon prio=5 tid=0x2ac3b520nid=0x9f
runnable [0x2bd6e000..0x2bd6fdb8]
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at oracle.net.ns.Packet.receive(Unknown Source)
at oracle.net.ns.DataPacket.receive(Unknown Source)
at oracle.net.ns.NetInputStream.getNextPacket(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.net.ns.NetInputStream.read(Unknown Source)
at oracle.jdbc.ttc7.MAREngine.unmarshalUB1(MAREngine.java:931)
at oracle.jdbc.ttc7.MAREngine.unmarshalSB1(MAREngine.java:893)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:375)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1892)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1198)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.jav
:2504)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
t.java:2832)
at oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate
OraclePreparedStatement.java:4187)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
dStatement.java:642)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare
Statement.java:536)
at weblogic.jdbc.jts.Statement.executeQuery(Statement.java:213)
Maybe you are looking for
-
Regular expression help to solve sys_refcursor for a record
In reference to my thread Question on sys_refcursor with record type , I thought it can be solved differently. That is: I have a string like '8:1706,1194,1817~1:1217,1613,1215,1250' I need to do some manipulation using regular expressions and acheive
-
Syncing problems!! Please Help!!!
I have recently upgraded to an Iphone 4, but now face the problem of not being able to sync any music what so ever to my phone. I get several different error messages each time I try to sync. I have tried deleting Itunes and re-installing, also remov
-
Even the help files missing in Numbers & Pages
I just went to check a detail in one of my Numbers app on my iPad 2 but when I got there the app was bare. Yes not a single file or folder in Numbers I check Pages and that's the same. They are synced with iCloud and backed up & a jpg version is on
-
Hi, I'm trying to use the MERGE INTO statement. I wrote a script with all the statements. Everything runs fine EXCEPT for one statement: MERGE INTO TEMPLATE_COMPONENT_TMP2 A USING (SELECT 1011 as "TEMPLATE_COMPONENT_ID", 'Service Canada Logo' as
-
IdleURL Not Showing Extensions
I have the idleurl asp code from the most recent sdk working on my phone. However unlike the screenshot, the extensions on the right side are not showing up. (The little phone next to the button is showing thereby noting that I have a phone line), ye