Using EclipseLink or JPA with Oracle Coherence as shared cache
Hi,
I expect to use EclipseLink with Oracle Coherence as shared cache, mainly with/for Entity Caching.
* JPA)
For JPA queries, is the JPA semantics fully preserved when using Oracle Coherence ?
* Non-JPA)
Are the non-JPA API taking also advantage from Oracle Coherence ?
For these non-JPA queries, is the semantics fully preserved when using Oracle Coherence ?
Regards,
Dominique
PS: I hope this is the right forum to ask my questions.
Otherwise, could you tell me what is the right forum ?
Thanks.
Yes, JPA semantics are fully preserved when using TopLink-Grid to cache entities within Coherence.
Yes, the native EclipseLink APIs can also take advantage of TopLink-Grid and Coherence.
I am not sure what you mean by "For these non-JPA queries, is the semantics fully preserved when using Oracle Coherence ?" Perhaps you can provide an example of what you are looking for?
--Gordon
Similar Messages
-
Hi all,
I'd like to know if it's possible and how to use JavaMail 1.4 with Oracle Application Server 10g (9.0.4.0.0), Windows version.
With the following code, I can see that the mail.jar used by the server is the one included in the jdk installation :
// I'm testing InternetAddress.class because I want to use commons-email-1.2.jar that requires mail.jar 1.4 (or higher) and activation.jar 1.1 (or higher)
// and I know that inside the commons-email-1.2.jar file, I need to call the InternetAddress.validate() method that throws a java.lang.NoSuchMethodError: javax.mail.internet.InternetAddress.validate()V if it is used with mail.jar 1.2.
Class cls = javax.mail.internet.InternetAddress.class;
java.security.ProtectionDomain pDomain = cls.getProtectionDomain();
java.security.CodeSource cSource = pDomain.getCodeSource();
java.net.URL location = cSource.getLocation();
System.out.println(location.toString());
This code returns : file:/C:/oracle/app/jdk/jre/lib/ext/mail.jar and this mail.jar file has an implementation version number: 1.2
- I've tried to include my own mail.jar (1.4.2) and activation.jar (1.1.1) files in the war file that I deploy, but it doesn't work (the server still uses the same mail.jar 1.2)
- I've tried to put the mail.jar (1.4.2) and activation.jar (1.1.1) files in the applib directory of my OC4J instance, but it doesn't work (the server still uses the same mail.jar 1.2)
- I know that a patch exists : I've read the following document: How to Make Libraries such as mail.jar and activation.jar Swappable ? [ID 552432.1]
This article talks about the Patch 6514136, but this patch only applies to : Oracle Containers for J2EE - Version: 10.1.3.3.0
Can you please help me ?
Thanks in advance for your answers,
LaurentI strongly suggest to upgrade to AS 10.1.3 to get this.
Think of future support of AS 9.0.4. You will get not critical patch updates anymore.
--olaf -
Try to use J2SE Version 6 with Oracle E-Business Suite 11i
Dears ,
i have an upgrade task from 11.5.10.2 to R12.1.1 and database from 9.2.0.8 to 11.2
so i apply patches :
1- 7429271
2- Upgrading Developer 6i with Oracle Applications 11i [ID 125767.1]
3- 9535311
4- 6241631
5-upgrade to JRE : Using J2SE Version 6 with Oracle E-Business Suite 11i [ID 401561.1]
when i run :
txkrun.pl -script=SetJDKCfg -contextfile=$CONTEXT_FILE -runautoconfig=Yes -appspass= <APPS_schema_passwd> -jdktop=[JDK60_TOP]
faced error :
java.lang.NoClassDefFoundError: java/util/HashMap
at
at oracle.apps.ad.tools.configuration.Customizer.getProdTopDrivers(Compiled Code)
at oracle.apps.ad.tools.configuration.Customizer.getAllDrivers(Compiled Code)
at oracle.apps.ad.tools.configuration.VersionConflictListGenerator.getAllConflicts(Compiled Code)
at oracle.apps.ad.tools.configuration.VersionConflictListGenerator.main(Compiled Code)
Exception in thread "main" Using Context file : /vol3/oracle/prdappl/admin/PRD_mcd-test.xml
Context Value Management will now update the Context file
and when try to run autoconfig on APPSTier i faced :
java.lang.NoClassDefFoundError: java/util/HashMap
at
at oracle.apps.ad.tools.configuration.Customizer.getProdTopDrivers(Compiled Code)
at oracle.apps.ad.tools.configuration.Customizer.getAllDrivers(Compiled Code)
at oracle.apps.ad.tools.configuration.VersionConflictListGenerator.getAllConflicts(Compiled Code)
at oracle.apps.ad.tools.configuration.VersionConflictListGenerator.main(Compiled Code)
Exception in thread "main" ERROR: Version Conflicts utility failed.
Terminate.
how can i solve it .
your response will be highly appreciated
Regards ,,,
Mohamed MahgobPlease see these docs.
Creating "appsutl.zip" Failed On "java.lang.NoClassDefFoundError: java/util/HashMap", What is the Potential Solution ? [ID 1310838.1]
AdMKAppsUtil.pl Failing Can't Find Java HashMap [ID 1338399.1]
After Applying Patch 9535311 Get java.lang.NoClassDefFoundError: java/util/HashMap Error [ID 1188327.1]
Thanks,
Hussein -
Can't use ";" in sql clause with Oracle 8.X
Can't use ";" in sql clause with Oracle 8.X
I can't use ";" at the ending of sql clause in VB program. First this program can use with Oracle 7.3.4 database. But now i need to upgrade DB to Oracle 8.1.7 ,program can't operate. It show error Runtime 40002
and 37000:ODBC driver for oracle/invalid charactor
ThankyouI've seen a lot of discussion about semicolons in SQL
sent from 3rd party applications. A web search should
bring up the discussions.
Also you might get more response if you ask this question
somewhere else. This is not a VB forum, so you may
not reach relevant people.
-- CJ -
How we can use forms HTML capabilities with Oracle Applications?
Hi
Could not find any specific doc how we can use forms HTML capabilities with Oracle Applications?
ThanksI'm not sure that I understand exactly what you are asking?
What are you trying to do? If you could give a detailed explanation then we can try and assist.
Reagrds,
Bren -
Using third party jars with Oracle Business Rules
Hi
I am working on Oracle AS 10g release 2.
We are using Oracle Business Rules in integration with Oracle BPEL.
While using third party jars however, Oracle Business Rules end is facing errors.
Error during unmarshallingProvider com.sun.xml.bind.ContextFactory_1_0_1 not found
oracle.classloader.util.AnnotatedClassNotFoundException:
Missing class: com.sun.xml.bind.ContextFactory_1_0_1
Dependent class: javax.xml.bind.ContextFinder
Loader: oracle.xml:10.1.0_2
Code-Source: /D:/oracleasr3/lib/xml.jar
Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\oracleasr3\j2ee\home\oc4j.jar
Can anybody help in figuring out where Jaxb jars(3rd party jars) are to be kept so that OAS access it?
We tried using the applib folder to load the jars but we are getting class loading errors.
When new instances are created, class loading is not happening.
Pls help.
Thanks
KavyaAre you using Application Server Release 3 or Release 2? There are different versions listed in your mail.
I think you probably want to add this as a shared library via EM and then import the shared library to your application with the application's xml config files. -
Using forms 10 g with oracle apps
HI ALL
I'm using oracle apps ver 11i with oracle db 8i
can i use forms 10g with that version of oracle apps ?
reply plzzzzzzzzz
Edited by: dream2009 on Feb 26, 2010 12:32 AMdream2009 wrote:
HI ALL
I'm using oracle apps ver 11i with oracle db 8i
can i use forms 10g with that version of oracle apps ?
reply plzzzzzzzzz
Edited by: dream2009 on Feb 26, 2010 12:32 AMPatience, Grasshopper. This is a global forum. The person with the information you seek may live 20 time zones away from you and logged off just as you were posting.
What is "plzzzzzzzzz" ? -
Can OBI EE be integrated with Oracle Coherence
Can we have Oracle Coherence as one of the data sources?
Regards,
Vikram RHi Srinivas ,
Yes , ECM can be integrated with Oracle EBS (enterprise business suite) and other Oracle Apps as well like Peoplesoft , Siebel etc .
Details can be read from the following link : http://docs.oracle.com/cd/E23943_01/doc.1111/e17953/toc.htm
Thanks
Srinath -
Monitor PeopleSoft sessions with Oracle Coherence
Hello,
I installed Oracle coherence ( one Cache Server ) and two managed servers ( PIA1 and PIA2 ---weblogic 10.3.4).When trying to monitor peoplesoft sessions thru weblogic admin console ( Deployments - Peoplesoft - / - Monitoring - Sessions tab ) nothing displays or no session info . I have parameters ( monitoring - id and session-monitor-enabled = true ) included in weblogic.xml file. Can anyone please guide me here on what I missing ?Yes I installed C*Web for weblogic session management when I login to Admin console under monitoring tab I can see the coherence servers under coherence tab but under sessions tab it display empty info ( ex it doesn't show who the user logged into the peoplesoft app) and I am not sure how to check the users logged info in the cache server.Can you please let me know if any parameters that needs to be checked wither in web.xml or weblogic.xml files.
thanks NJ for your response... -
Oracle Coherence and OSB caching
Hi Guys,
I have a few queries regarding Oracle Coherence.
1. Is OSB business Service Caching internally uses Oracle Coherence.
2. If answer to above question is YES, then can I install Weblogic without Oracle Coherence.
3. Again if answer to above question is YES, will OSB caching work without Oracle Coherence and if yes, then How?
4. Can we create clustered weblogic domain without oracle coherence.
RegardsThanks Durga/Abhinav,
The links clarify a lot.
Now what i need to know more is that when i installed Weblogic server (default configuration) and created a OSB server as managed server in wls domain. I could use the OSB caching in business services without any issue. However, there is no coherence server under "Coherence Server" in weblogic console. How the caching is working in OSB when i havn't configured any coherence server on weblogic?
Regards -
I have an application that uses EJB 2.1 spec with SLSB (no entity beans) and uses DAO pattern with hibernate2 for persistence. I want to replace hibernate with toplink-essentials (JPA). I cannot upgrade the EJB spec version as we use some thirdparty beans. The application uses DAO pattern so I should be able to hook in a new toplink DAO impl. What I am struggling with is how do I get hold of the EntityManagerFactory in my EJB 2.1 SLSB. Also I need CMT with XA transactions as our application interacts with jms and database using MDBs and SLSBs.
PrantorYou should be able to use Persistence.createEntityManagerFactory(<your-persistence-unit-name>, properties), and create your EntityManager from that.
To have TopLink integrated with JTA, in your persistence.xml (or properties) you need to use a JTA DataSource, and set the ServerPlatform for your JEE server. -
Can't create connection pool using weblogic 6.1 with Oracle thin driver
Hi !
I have tried to create a connection pool from adminconsole. My CLASSPATH setting
is as follows :
F:\SOAP\soap-2_2\lib;F:\SOAP\soap-2_2;
D:\Oracle\Ora81\jdbc\lib\classes12.zip;
D:\Oracle\Ora81\jdbc\lib\nls_charset12.zip;
D:\Oracle\Ora81\jdbc\lib\classes111.zip;
F:\SOAP\soap-2_2\lib\jaf-1.0.1\activation.jar;
D:\Oracle\Ora8\Apache\Jsdk\src\javax\servlet\http;
D:\Oracle\Ora81\Apache\Jsdk\src\javax\servlet;
D:\Oracle\Ora81\lib;
F:\ant\jakarta-ant1.\bin;
E:\weblogic\oci\classes;
E:\weblogic\oci\classes\weblogic\xml\license;
E:\weblogic\oci\license;
E:\bea\wlserver6.1\lib;
E:\PetStoreHome\petstore1.3;
Following is the configuration.
#Oracle thin driver Method #2
weblogic.jdbc.connectionPool.thin=\
url=jdbc:oracle:thin:@test:1521:PROJECT,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=4,\
maxCapacity=10,\
capacityIncrement=1,\
props=user=xxx;password=xxx;server=test
#Add a TXDataSource for the connection pool:
weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.thin=thin
# Add an ACL for the connection pool:
weblogic.allow.reserve.weblogic.jdbc.connectionPool.thin=everyone
I did append the file weblogic.properties with the above config. Now when I start
the Weblogic server I get the following error :
Starting WebLogic Server ....
<Nov 29, 2001 2:24:16 PM EST> <Notice> <Management> <Loading configuration file
.\config\petstore\config.xml ...>
<Nov 29, 2001 2:24:22 PM EST> <Notice> <WebLogicServer> <Starting WebLogic Admin
Server "petstoreServer" for domain "petstore">
<Nov 29, 2001 2:24:26 PM EST> <Notice> <Management> <Starting discovery of Manag
ed Server... This feature is on by default, you may turn this off by passing -Dw
eblogic.management.discover=false>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(jdbcthin.SignOnDB) can't be creat
ed with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(jdbcthin.EstoreDB) can't be creat
ed with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(jdbcthin.InventoryDB) can't be
cr
eated with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data Source creation:
weblogic.common.ResourceException: DataSource(weblogic.jdbc.jts.thin) can't be
created with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:41 PM EST> <Notice> <Management> <Application Poller not star
ted for production server.>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After the server has booted, your browser should
automatically launch and point to the WebLogic Server
Tour running on this server. If your browser fails to
launch, point your browser to the URL
"http://burtsun:7001"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <ListenThread listening
on port 7001>
<Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <SSLListenThread listeni
ng on port 7002>
<Nov 29, 2001 2:24:42 PM EST> <Notice> <WebLogicServer> <Started WebLogic Admin
Server "petstoreServer" for domain "petstore" running in Production Mode>
Could anyone please help me ?
Thanks
..MadhuriMadhuri wrote:
>
Hi Joe !
I didn't get what you would like to point out. Actully, I am using same config.,
but not to disclose the info. I gave you @test and username/password xxx/xxx.Ok. Now, assuming your pool looks like what I showed, the issue is probably
that there are multiple Oracle driver zips around, and your standlaone program
is using a different, newer, better one than the server. Our weblogic jar files
include a classes12.zip Oracle thin driver, but there are multiple versions of
classes12.zip, and the latest from oracle is better than the one we sealed into
our packaging. Please use jave -verbose to identify exactly which Oracle sip file
you are using in the successful case, then make sure this zip file comes before
any weblogic stuff in your weblogic server's classpath, so we'll use the same
driver. This should work. Edit the script you sue to start weblogic to verify
the classpath does end up with the oracle driver ahead of all weblogic stuff.
Joe
>
Please let me know.
Thanks
.Madhuri
Joseph Weinstein <[email protected]> wrote:
Madhuri wrote:
Hi Joe !
Here is the sample java code. Please let me know how I can test thisin weblogic
6.1.
Thanks
.MadhuriWell fine! That was easy. Your pool definition didn't have the same URL
or
user or password as this code. Try this for your pool definition:
weblogic.jdbc.connectionPool.thin=\
url=jdbc:oracle:thin:@adl-gbsdevel:1521:PROJECT,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=10,\
maxCapacity=10,\
capacityIncrement=1,\
testConnsOnReserve=true,\
testTable=dual,\
props=user=mkelkar;password=mkelkar
Let me know,,,
Joe
Joseph Weinstein <[email protected]> wrote:
The key is in the log:
Could not create pool connection.
The DBMS driver exception was:
java.sql.SQLException: invalid arguments in call
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
Now we need to simplify the problem. Please make a simple 15-line
standalone
Java program like you'd find with the Oracle driver's examples, with
no
weblogic code in the picture. Just make a JDBC connection using Oracle's
driver, and show me that code. Then I can translate that into a pool
definition.
Joe
Madhuri wrote:
Hi Joe !
Thanks for your prompt reply. I tried the way you suggested but
it
still it gives
me the same error. I am attching here the weblogic.log file.
Thanks again
..Madhuri
Joseph Weinstein <[email protected]> wrote:
We'd want to see the log during booting, where the pool
is being created to see why that failed. Try a pool
definition with no blank lines, no whitespace at the
end of lines, and no server property. The thin driver
doesn't like that:
weblogic.jdbc.connectionPool.thin=\
url=jdbc:oracle:thin:@test:1521:PROJECT,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=4,\
maxCapacity=10,\
capacityIncrement=1,\
props=user=xxx;password=xxx
Joe
Madhuri wrote:
Hi !
I have tried to create a connection pool from adminconsole. My
CLASSPATH
setting
is as follows :
F:\SOAP\soap-2_2\lib;F:\SOAP\soap-2_2;
D:\Oracle\Ora81\jdbc\lib\classes12.zip;
D:\Oracle\Ora81\jdbc\lib\nls_charset12.zip;
D:\Oracle\Ora81\jdbc\lib\classes111.zip;
F:\SOAP\soap-2_2\lib\jaf-1.0.1\activation.jar;
D:\Oracle\Ora8\Apache\Jsdk\src\javax\servlet\http;
D:\Oracle\Ora81\Apache\Jsdk\src\javax\servlet;
D:\Oracle\Ora81\lib;
F:\ant\jakarta-ant1.\bin;
E:\weblogic\oci\classes;
E:\weblogic\oci\classes\weblogic\xml\license;
E:\weblogic\oci\license;
E:\bea\wlserver6.1\lib;
E:\PetStoreHome\petstore1.3;
Following is the configuration.
#Oracle thin driver Method #2
weblogic.jdbc.connectionPool.thin=\
url=jdbc:oracle:thin:@test:1521:PROJECT,\
driver=oracle.jdbc.driver.OracleDriver,\
initialCapacity=4,\
maxCapacity=10,\
capacityIncrement=1,\
props=user=xxx;password=xxx;server=test
#Add a TXDataSource for the connection pool:
weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.thin=thin
# Add an ACL for the connection pool:
weblogic.allow.reserve.weblogic.jdbc.connectionPool.thin=everyone
I did append the file weblogic.properties with the above config.
Now
when I start
the Weblogic server I get the following error :
Starting WebLogic Server ....
<Nov 29, 2001 2:24:16 PM EST> <Notice> <Management> <Loading
configuration
file
\config\petstore\config.xml ...>
<Nov 29, 2001 2:24:22 PM EST> <Notice> <WebLogicServer> <Starting
WebLogic
Admin
Server "petstoreServer" for domain "petstore">
<Nov 29, 2001 2:24:26 PM EST> <Notice> <Management> <Starting
discovery
of Manag
ed Server... This feature is on by default, you may turn this
off
by
passing -Dw
eblogic.management.discover=false>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
Source
creation:
weblogic.common.ResourceException: DataSource(jdbcthin.SignOnDB)
can't
be creat
ed with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
Source
creation:
weblogic.common.ResourceException: DataSource(jdbcthin.EstoreDB)
can't
be creat
ed with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
Source
creation:
weblogic.common.ResourceException: DataSource(jdbcthin.InventoryDB)can't be
cr
eated with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:35 PM EST> <Error> <JDBC> <Error during Data
Source
creation:
weblogic.common.ResourceException: DataSource(weblogic.jdbc.jts.thin)can't be
created with non-existent Pool (connection or multi) (thin)>
<Nov 29, 2001 2:24:41 PM EST> <Notice> <Management> <Application
Poller
not star
ted for production server.>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After the server has booted, your browser should
automatically launch and point to the WebLogic Server
Tour running on this server. If your browser fails to
launch, point your browser to the URL
"http://burtsun:7001"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <ListenThreadlistening
on port 7001>
<Nov 29, 2001 2:24:41 PM EST> <Notice> <WebLogicServer> <SSLListenThreadlisteni
ng on port 7002>
<Nov 29, 2001 2:24:42 PM EST> <Notice> <WebLogicServer> <Started
WebLogic
Admin
Server "petstoreServer" for domain "petstore" running in ProductionMode>
Could anyone please help me ?
Thanks
..Madhuri
Name: weblogic.log
weblogic.log Type: Text Document (application/x-unknown-content-type-txtfile)
Encoding: base64
Name: PrintColumns.java
PrintColumns.java Type: Visual Cafe File (application/x-unknown-content-type-VisualCafeFile.Document)
Encoding: base64 -
Help needed to use only SQR reporting with Oracle 10g
I have very old SQR reports (ver 2.28) that are still being used by connecting SQR to an Oracle7 DB. We have migrated the data from Ora7 to Oracle 10.2.0.4. The issue is that SQR 2.28 is not able to connect to Oracle 10.2.0.4. Hence I want to use the new version of SQR that is part of OBIEE.
I am not familiar with OBIEE and my interest is only using the SQR portion of it.
1. Can any one help me as to how to go about installing SQR portion of OBIEE on a Linux Itanium 64-bit box? My Oracle 10.2.0.4 DB is also running on the same box.
2. What are the minimum components of OBIEE I need to install to make use of SQR ?
3. Any other relevant information
Thanks.When installing webgate, make sure the Access Server is running. You will get this error if Access Server is down or not reachable. ( Make sure from the machine where you are installing webgate you can ping to Access Server by Name).
Thanks
Ram -
Problem in using Weblogic 6.1 with Oracle 9i
Hi,
Has anybody experiensing problems in creating connection from Weblogic6.1 to Oracle
9i using thin driver?
We have a piece of codes that works fine with Weblogic 6.1 and Oracle 8.1.7 but
failed to create database connection when we upgrade to database to 9i (the same
code works fine without weblogic).
Thanks
Li
[email protected]It works after I put the new oracle driver ahead of the weblogic stuff.
Thanks
Li
Joseph Weinstein <[email protected]> wrote:
You should make sure you have the same Oracle driver in the server
classpath, as works in the standalone case. Note that we ship a
thin driver too, so your newer one will ahve to be ahead of all
the weblogic stuff in the server classpath.
Joe
Li Wang wrote:
After upgraded our oracle server to 9i, we found that our applicationdoes not
work. So, I wrote a simple test program that just creates a connectionand exec
a query. The program works find with 9i by itself (of cause). But,when I put
it in Weblogic 6.1 (as Startup class), there are problems.
First, it takes 833700ms to create a connection (It takes 981ms tocreate a connection
outside wls, it takes 900ms to create a connection to oracle8.1.7 insidewls).
Then, it gets "java.sql.SQLException: ORA-00600: internal error code,arguments:
[ttcgcshnd-1], [0], [], [], [], [], [], []"
while executing the query.
We run weblogic and oracle on Windows2000.
The code looks like:
Class.forName("oracle.jdbc.driver.OracleDriver");
String username = "yourusername";
String password = "yourpassword";
String host = "yourhost";
String sid = "yoursid";
String dbURL = "jdbc:oracle:thin:@" + host +":1521:" + sid;
String sql = "select * from yourtable";
System.out.println(dbURL);
Connection connection = DriverManager.getConnection (dbURL, username,password);
Statement statement = connection.createStatement();
statement.executeQuery(sql);
statement.close();
connection.close();
"Jignesh Patel" <[email protected]> wrote:
1. Are you able to create connection pool using Oracle 9i THIN driver
? i.e Define
connection pool & make initial connection => 1. At the time of startup
weblogic
will create connections defined in connection pool.
2. Can you post your error message ?
Thanks
Jignesh Patel
"Li Wang" <[email protected]> wrote:
Hi,
Has anybody experiensing problems in creating connection from Weblogic6.1
to Oracle
9i using thin driver?
We have a piece of codes that works fine with Weblogic 6.1 and Oracle
8.1.7 but
failed to create database connection when we upgrade to database
to
9i
(the same
code works fine without weblogic).
Thanks
Li
[email protected] -
USING APACHE STURUTS BRIDGE WITH ORACLE PORTAL FOR STRUTS - JSR 168 PORTLET
I am trying to develop a JSR - 168 compliant portlet which uses struts framework.I am using APACHE STRUTS BRIDGE to run the application in my ORACLE 10.1.4 Portal server.While doing the configuration accoring to the documentation given in URL http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
(apache struts bridge), i was asked to add an <init-param> entery in the portlet.xml file to get the ServletContext.So i need to know where is the ServletContextProvider implementation class which implements ServletContextProvider available in Oracle AS so that i can use that to get the ServletContext and use it furthur.
Thanks
Deepakyou could write your own implementation class for the ServletContextProvider interface and fill in the portlet.xml with the class you class
It could be written as follows:
package Edmunds.com.portal.bridges;
import javax.portlet.GenericPortlet;
import javax.portlet.PortletRequest;
import javax.portlet.PortletResponse;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
/* note that PortletApplicationImpl is oracle version of portletContextImpl */
import oracle.webdb.wsrp.server.PortletApplicationImpl;
import org.apache.portals.bridges.common.ServletContextProvider;
* PortalServletContextProvider supplies access to the Servlet context of Oralce Portal Portlet.
public class PortalServletContextProvider implements ServletContextProvider {
public ServletContext getServletContext(GenericPortlet portlet)
return ((PortletApplicationImpl) portlet.getPortletContext()).getServletContext();
public HttpServletRequest getHttpServletRequest(GenericPortlet portlet, PortletRequest request)
return (HttpServletRequest) ((HttpServletRequestWrapper) request).getRequest();
public HttpServletResponse getHttpServletResponse(GenericPortlet portlet, PortletResponse response) {
return (HttpServletResponse) ((HttpServletResponseWrapper) response).getResponse();
}
Maybe you are looking for
-
This is pretty straight forward. My followers, I have 102, for Network Blogs, I cannot see them in Firefox. People are telling me they can see them. And I can see the faces of my followers in Internet Explorer??
-
Business content-Personnel Cost Planning
Hi, expert Now, our clients work in HR dept. wants to do personnel cost planning in BW side. 1) is there any standard business content for Personnel Cost Planning in SAP? 2) and if we have how to active these required BCT. 3) Does SAP have 'personnel
-
Verify the proper way to remove computers from WSUS
I have two servers that I want to remove from WSUS. They can't be removed from their current computer group, Domain Controllers. I decided that for the domain controllers, I want to go back to updating them manually every month. My understanding so f
-
Problems with Update Process Version
When I open old images in the Develop Module, I am given the opportunity to update Process Version to 2010. So far so good. If I upgrade images one by one, the update process works fine. If I try to update all filmstrip photos, I ge the following
-
Salve , ho questo problema da giorni , dopp fatto anche un ripristino all'ultimo aggiornamento , mi sballa l'orario quando blocco il telefono , mi si blocca . Grazie in anticipo spero di trovare una soluzione .