AuthFilter in WLS SP8 only delegates ServletRequest to do methods
All methods for processing authentication in the new AuthFilter
introduced in WLS 5.1 SP8 have a ServletRequest passed as parameter.
Preferably this should be a HttpServletRequest, so that one could also
get hold of the HttpSession and cache some information at login time. I
realize that e.g. doSuccessAuth will be called at every request after
login, but retrieving a boolean from the session to see if this is the
initial login seems to be a small overhead compared to retrieving the
information I wish to cache at each request. Also one could be certain
that the attributes needed in the cache would be there if the user is
allowed to log in.
A quick'n'dirty way to solve this is to cast the ServletRequest to a
HttpServletRequest within e.g. doSuccessAuth, though this is certainly
not the right way to solve this :)
The AuthFilter class which your Authentication filter must extend is
already a servlet with the service method implemented to 'delegate off
to the correct do method depending on what auth state the Request is
in', according to the AuthFilter documentation. So, wouldn't it be a
feasible idea to have the service method send a HttpServletRequest as
parameter to the do-methods like the servlet container does with the
doGet and doPost methods ?
Anyone agree ?
BEA ?
Is the ServerSessionPool on the same instance as the JMS Server? I believe there is an
example provided for ServerSessionPools; have you verified that that works in your clustered
environment?
-Don
Ashok Sridhar wrote:
> One more clarification ... I am using a ServerSessionPool of listeners. I can send/receive
> messages using the example clients but the serverside pool is not setup. Does
> anyone know if there is a problem with using Startup classes in WLS Clusters ?
Similar Messages
-
WLS 7 - IIOP - Remote interface with parameterless method
Hi all,
I am developping EJBs which are accessed by clients with IIOP.
Every method without any paramter I put in the remote interface do not
work with IIOP but are ok when I call with T3.
Note that all other methods which have parameters work properly.
The EJB (Stateless SessionBean) is well deployed and installed on the
server,
ejbc gives no error.
The resulting stacktrace on the client is :
java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception
is:
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
java.rmi.RemoteException: CORBA BAD_OPERATION 0 No; nested exception
is:
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
org.omg.CORBA.BAD_OPERATION: minor code: 0 completed: No
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at com.sun.corba.se.internal.iiop.ReplyMessage.getSystemException(ReplyMessage.java:93)
at com.sun.corba.se.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:83)
at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.java:204)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
at ch.vd.collectivitespkg._Collectivites_Stub.getTypesCollectivites(Unknown
Source)
at ch.vd.testpkg.CollectivitesTestClient.getTypesCollectivites(CollectivitesTestClient.java:467)
at ch.vd.testpkg.CollectivitesTestClient.testRemoteCallsWithDefaultArguments(CollectivitesTestClient.java
:502)
at ch.vd.testpkg.CollectivitesTestClient.main(CollectivitesTestClient.java:545)
At the same time only one line is added to the server log :
####<Jun 12, 2003 4:33:52 PM CEST> <Info> <IIOP> <****> <Server>
<ExecuteThread: '14' for queue: 'default'> <kernel identity> <>
<002002> <Failed to parse method name getTypesCollectivites.>
FYI : I am using Jbuilder 7.0 with JDK 1.3.1-b24 and WLS 7.0 SP1.
Thanks in advance for your help.
Chris.[email protected] (ChrisFR) writes:
Here is the fragment of the (new-)remote interface concerned :
public Collection getTypesCollectivites(int type) throws
RemoteException, BusinessException;
BusinessException is not a runtime exception, it extends Exception.
Where can I have a look on bugfixes in SP2 and SP3 ?Yes, we just fixed this. The CR is CR108317, if you go through support
you will be able to get a patch. This will appear in sp3.
andy -
How to make for loop pass only once in a next() method
Good Day!
Can anyone help me or suggest any idea to resolve my problem with the below code, wherein it will only pass the for loop only once. I already tried inserting the for loop in side the if (sqlset4.isFirst()) condition but the problem is it only retrieved the first row of the resultset.
Cheers!
Statement sOutput = consrc.createStatement();
ResultSet sqlset4 = sOutput.executeQuery(xquery);
ResultSetMetaData rsMetaData = sqlset4.getMetaData();
int numberOfColumns = rsMetaData.getColumnCount();
String writefld = "";
while (sqlset4.next()) {
writefld = "";
for (int i = 1; i <= numberOfColumns; i++) {
if (xxformatid.equals("1") || xxformatid.equals("3")) {
writefld = writefld + "sqlset4.getString(" + i + ").trim()" + "|";
writefld = writefld.substring(0, writefld.length() - 1) + ")";
output.write("\r\n");
output.write(writefld);
output.close();I am using Netbean IDE 6.8
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64biHi everyone!
What I actually trying to do is that I have a multiple tables and from these tables I'm going to write each of it into a flatfile that is a pipe delimeted that is why I have to make a loop to know how many fields I am going to write. The code that was attached are actually working, my only concern is that it will take a longer time of processing cause every record of a table it will pass to the for loop(checking how many column) wherein number of column/ were already known on the first loop.
Hi kajbj,
I think what your trying to explain is almost the same with below code which i had already tried. The problem with this is that the every loop of the outer loop data retrieve is only the data of the first record.
Statement sOutput = consrc.createStatement();
ResultSet sqlset4 = sOutput.executeQuery(xquery);
ResultSetMetaData rsMetaData = sqlset4.getMetaData();
int numberOfColumns = rsMetaData.getColumnCount();
String writefld = "";
while (sqlset4.next()) {
writefld = "";
if (sqlset4.isFirst()) {
for (int i = 1; i <= numberOfColumns; i++) {
if (xxformatid.equals("1") || xxformatid.equals("3")) {
writefld = writefld + "sqlset4.getString(" + i + ").trim()" + "|";
writefld = writefld.substring(0, writefld.length() - 1) ;
output.write("\r\n");
output.write(writefld);
output.close(); -
SubmitGenerateReportAsync Issue. Await operator can only be used with Async Method
Hi,
I am trying to submit a request to download keyword performance report using following .
var reportId =await SubmitGenerateReportAsync(reportRequest); its giving me error
The 'await' operator can only be used within an async method. Consider marking this method with the 'async' modifier and changing its return type to 'Task'.
Here is the SubmitGenerateReportAsync method. I am already using async in definition. Not sure what else is wrong.
private async Task<string> SubmitGenerateReportAsync(ReportRequest report)
var request = new SubmitGenerateReportRequest
ReportRequest = report
return (await Service.CallAsync((s, r) => s.SubmitGenerateReportAsync(r), request)).ReportRequestId;
Same issue with PollGenerateReportAsync
reportStatus =await PollGenerateReportAsync(reportId.ToString());
private async Task<ReportRequestStatus> PollGenerateReportAsync(string reportId)
var request = new PollGenerateReportRequest
ReportRequestId = reportId
return (await Service.CallAsync((s, r) => s.PollGenerateReportAsync(r), request)).ReportRequestStatus;
Let me know if its easy fix.I fixed the link to our
code example which shows how to run such a report from the console. You would create async methods, run, and wait from within Main.
/// <summary>
/// The entry point for the console application.
/// </summary>
/// <param name="args">Arguments are not required for this example.</param>
public static void Main(string[] args)
var example = new KeywordPerformance();
Console.WriteLine(example.Description);
try
var authentication = new PasswordAuthentication(
"<UserNameGoesHere>",
"<PasswordGoesHere>");
// The OAuthHelper class is available for download with the BingAdsExamples solution.
// OAuthDesktopMobileImplicitGrant authentication = await OAuthHelper.AuthorizeImplicitly();
var authorizationData = new AuthorizationData
Authentication = authentication,
CustomerId = <CustomerIdGoesHere>,
AccountId = <AccountIdGoesHere>,
DeveloperToken = "<DeveloperTokenGoesHere>"
example.RunAsync(authorizationData).Wait();
catch (Exception ex)
Console.WriteLine(ex.Message);
Best regards,
Eric -
Video Ipod only shuts down with Reset method
Have had 60GB unit for about 6 months, used to be about 1x per week I had to use reset in order to shut down, now it is just about every time. This is ridiculous. Others in this forum have had power off issues as well. Is apple going to create a fix or do they believe its okay to need to use a combination of 5 key strokes in order to shut your unit off?
Hello!
Try going to Settings>Main Menu and scroll down to Sleep, and make that On so the Sleep function on your iPod's main menu is available. Go back to the main menu, then click Sleep. If that doesn't do anything, then hold the play/pause button to see if it will go to sleep. Try both of these for a minute or so, and if that doesn't work, you may want to send your iPod in for service. Your iPod may have some internal issues beyond our help. Make sure your iPod's still under warranty (you have bought it within a year to this day) or you have an AppleCare Protection Plan on your iPod, then you should be okay.
I recommend you get an AppleCare Protection Plan if you don't already have one, it extends your iPod's warranty to two years.
Hope this helps!
rjl -
VBA is working well only with step by step method pressing F8 key
Hi
Something is gonig on with my E-tester, I made a script with VBA in some pages and typed some slobal procedures and variables in ThisScript page:
Let me picture this, for example I have this in page 2:
Private Sub RSWVBAPage_afterPlay()
ThisScript.PrintVersTxT ("Click here for a printable version")
RSWApp.WriteToLog ThisScript.actionTXT, ThisScript.resultTXT, ThisScript.summaryTXT, True
If ThisScript.PrintVersFunc("Main_Table", "Table", "id") Then
RSWApp.WriteToLog ThisScript.actionFunc, ThisScript.resultFunc, ThisScript.summaryFunc, True
End If
End Sub
And I have this in "ThisScript" Page:
Public actionTXT As String
Public resultTXT As String
Public summaryTXT As String
Public actionFunc As String
Public resultFunc As String
Public summaryFunc As String
Public Function PrintVersFunc(Patt As String, TblName As String, Prop As String) As Boolean
Dim tbl As HTMLTable
Set tbl = RSWApp.om.FindElement(Patt, TblName, Prop)
If tbl.Width = "100%" Then
actionFunc = "Print Version"
resultFunc = "Failed"
summaryFunc = "Printable Version fuctionality is NOT working"
Else
actionFunc = "Print Version"
resultFunc = "Passed"
summaryFunc = "Printable Version fuctionality is working"
End If
PrintVersFunc = True
End Function
Public Sub PrintVersTxT(LinkTXT As String)
Dim mouse As HTMLLinkElement
If RSWApp.FindInHtml(LinkTXT) Then
actionTXT = "Text Found"
resultTXT = "Passed"
summaryTXT = "Text for Print Version is Present"
Set mouse = RSWApp.om.FindElement("javascript:reformatPage()", "A", "href")
mouse.click
Else
actionTXT = "Text NOT Found"
resultTXT = "Failed"
summaryTXT = "Text for Print Version link is missing"
End If
End Sub
So in the second page I called first the function ThisScript.PrintVersTxT to see if the string I send as a parameter is in the html page, if it so, the function click on the link I wanted to click on, then after that I called function ThisScript.PrintVersFunc this function is going to check if a table change its size(it should be different of 100%) after I clicked on the previous link, if the table changed, this function stores in actionFunc="Print Version", in resultFunc="Passed" and in summaryFunc="Printable Version fuctionality is working"
So I am talking about this part of the code
If tbl.Width = "100%" Then
actionFunc = "Print Version"
resultFunc = "Failed"
summaryFunc = "Printable Version fuctionality is NOT working"
Else
actionFunc = "Print Version"
resultFunc = "Passed"
summaryFunc = "Printable Version fuctionality is working"
End If
I know that the table changed its size from 100% to 85%, but if I let running the script until the end, the e-tester goes to the "ELSE" part and if I run the script step by step with breakpoint in the code the E-tester goes to the first part of the "if".
E-tester should goto the first part of the "IF" whatever the runnig method be, but it does not.
What could be the problem?? is there a especial setting in the e-tester to resolve this?Yes, I am going to print the table width out with the WriteToLog function, but the weird thing here is that if you put a breakpoint to run the code step by step everything is ok, I mean the code recognize that the table width had changed, otherwise the e-tester does not recognize it
I'll let you know how is this going... thank you for your help -
Can this be done using WLS 8.1 LDAP?
I am trying to configure WLS 8.1 to use LDAP for authentication/authorization.
I have the basics working so now I am trying to move to the next hurdle.
We are building a single webapp that will serve several different companies. The
main difference will be that the look and feel will be branded for each company
so when a user logs in to the app via a URL such as foo.domain.com they see the
"foo" branding and using bar.domain.com will see the "bar" branding. Simple so
far. The real problem is that we will be adding new companies over time and we
need to allow two users from two different companies to have the same userid.
How can I setup LDAP in WLS 8.1 so I can use a different "User Base DN" depending
on the company the user appears to be coming from? I need this for both authentication
and authorization.
- Maybe a custom LDAP realm? Where to begin?
- How about the "User From Name Filter" field in the console? It seems to take
a %u variable for the username. Are there any other variables I can use?
- Do I create a different authenticator for each company? If so, how do I resolve
one authenticator saying username/password is valid and other says it isn't? Then
how do I use the correct authorizer for that user?
I have to imagine that others have had this same issue. Any other ideas?
Thanks,
Rick"Rick Maddy" <[email protected]> wrote in message
news:3ee9eccc$[email protected]..
>
I am trying to configure WLS 8.1 to use LDAP forauthentication/authorization.
I have the basics working so now I am trying to move to the next hurdle.
We are building a single webapp that will serve several differentcompanies. The
main difference will be that the look and feel will be branded for eachcompany
so when a user logs in to the app via a URL such as foo.domain.com theysee the
"foo" branding and using bar.domain.com will see the "bar" branding.Simple so
far. The real problem is that we will be adding new companies over timeand we
need to allow two users from two different companies to have the sameuserid.
>
How can I setup LDAP in WLS 8.1 so I can use a different "User Base DN"depending
on the company the user appears to be coming from? I need this for bothauthentication
and authorization.
It sounds like you need multiple realm support in additional to virtual host
support. WLS
currently only supports one realm activate at a time.
- Maybe a custom LDAP realm? Where to begin?You might be able to do this with a custom provider, but I am not sure if
you can
get at the original URL in the login module.
- How about the "User From Name Filter" field in the console? It seems totake
a %u variable for the username. Are there any other variables I can use?You can use %u for username, %g for group, but I don't think they are going
to help
you.
- Do I create a different authenticator for each company? If so, how do Iresolve
one authenticator saying username/password is valid and other says itisn't? Then
how do I use the correct authorizer for that user?You can use the control flags to specify the behavior of the login modules.
But unless
your usernames are scoped, then it could succeed in one provider when you
really
want it to go to the other provider. -
Servlets in Jar files in WLS 6.1 ?
Trying to port a WLS 5.1 servlet into 6.1 (an entirely different
animal it appears)
I have added an application to my config.xml file as below as well as
trying to start it
PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm"/>
<Application Deployed="true" Name="DefaultWebApp_cb2java"
Path=".\config\PM\applications">
<WebAppComponent Name="DefaultWebApp_cb2java"
Targets="PCPNEARN"
URI="DefaultWebApp_cb2java" WebServers="PCPNEARN"/>
</Application>
<StartupClass Arguments="servlet=ProMan"
ClassName="weblogic.servlet.utils.ServletStartup"
FailureIsFatal="true" Name="StartPMServlet1"
Targets="PCPNEARN"/>
Now my servlet is packaged in a JAR file under the lib directory of so
when I assume that WLS will automatically pick this up from
C:\Weblogic6.1\wlserver6.1\config\PM\applications\DefaultWebApp_cb2java\WEB-INF\lib
directory ? ( as the lib directory is where the doc says it picks up
jar files from )
Now when I start WLS it cant find the servlet? Is that because I cant
package it in a JAR as of WLS 6.1 and have to move the class files to
the Classes directory instead ?
Furthermore the Servlet itself references JavaBeans deployed in a
totally different application. Can I also assume that if I have my
Classpath correct these will get picked up ?
I would look here
http://e-docs.bea.com/wls/docs61/webapp/security.html#100365 for methods on
protecting web app resources.
"zhen Ni" <[email protected]> wrote in message
news:3c86d70c$[email protected]..
Hello:
I have some derectories and files on my web site,and only appointed usersstored in my database can access their special directories.how can i do?
thank u! -
Workaround for using Oracle JDBC extension with WLS pooling
Reading the newsgroup I saw that many of us encountered the problems
with ClassCastException when tried to use Oracle JDBC extension
with WLS pooling. I also had.
In this case BEA recommends to use dangerous
method getVendorConnection() which exposes
the physical connection object to your code.
Yes it's really dangerous because of unsafe usage may breaks
WLS pooled connection(s).
Moreover, this practice will make your JDBC code
unportable (your JDBC code in addition to Oracle dependence
became Weblogic dependent):
void doSmth() {
Connection con = ...;
Connection vCon = ((WLConnection)con).getVendorConnection();
// + mess of usage con in one places and vCon in others
// (where Oracle extensions are needed)
// !Don't forget to don't close vCon!
Sux.
I found the workaround.
Introduction
============
Yes the real cause of ClassCastException is that
in depth of Oracle driver the casting
to class oracle.jdbc.driver.OracleConnection
(not to interface oracle.jdbc.OracleConnection)
is performed.
Someone can say that this is bug or pure desing.
Weblogic pooled connection provide dynamic
implementation for all public interfaces
which real physical (wrapped) connection object implements.
Great feature!
But I guess that all interface methods implemented
by simple call-delegation to physical (wrapped) connection object.
In case of oracle.jdbc.OracleConnection interface
this approach doesn't work for at least one its method:
public OracleConnection unwrap()
WLS pooled connection shoudn't implement this method by
delegation to physical connection object BUT should
return physical connection object itself!
// Wrong implementation of unwrap()
// delegation is used
public OracleConnection unwrap() {
return physicalConnection.unwrap();
// Right implementation of unwrap()
// physical connection returned
public OracleConnection unwrap() {
return physicalConnection;
Workaround
==========
1. Develop your own OracleConnection wrapper class:
import oracle.jdbc.OracleConnection;
import weblogic.jdbc.extensions.WLConnection;
public class MyOracleConnectionImpl implements OracleConnection {
private OracleConnection con;
public MyOracleConnectionImpl(OracleConnection connection)
throws SQLException
this.con = connection;
public OracleConnection unwrap() {
return (OracleConnection)
((WLConnection)con).getVendorConnection();
/* Implement all other methods by delegation to con object */
2. Don't get Connections directly from DataSource --
develop your own simple (may be static) utility
class which retrives Connections from dataSource
and returns them wrapped into your MyOracleConnectionImpl
to your code from some method:
puclic abstract class MyConnectionSource {
public static Connection getConnection() {
Connection con = // get it from DataSource
return new MyOracleConnectionImpl((OracleConnection)con);
3. Add attribute RemoveInfectedConnectionsEnabled="false"
to definition of your JDBCConnectionPool within config.xml
You may do it because of you `safely` use vendorConnection --
you don't expose it to application code.
4. Enjoy the Oracle JDBC extensions in your code!
Example:
Connection con = MyConnectionSource.getConnection;
ArrayDescriptor add =
ArrayDescriptor.createDescriptor("your_type", con);
Hope it helps to someone.
Best regards,
Eugene VoytitskyHello Eugene Voytitsky,
Thanks Eugene Voytitsky for your idea
I have tried the solution suggested by You, but it did not work.
It still throws ClassCastException.
I am sorry for posting the whole code of two classes below.
I did this to give you more clarity.
I am also indicating the place where the exception was thrown..
Please let me know if I am doing something wrong.
OracleConnection Wrapper class
package ejbTesting;
// sql imports
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
// util imports
import java.util.Map;
import java.util.Properties;
// imports from Oracle Driver Classes
import oracle.jdbc.OracleConnection;
import oracle.jdbc.OracleOCIFailover;
import oracle.jdbc.OracleSavepoint;
// import from Weblogic extensions
import weblogic.jdbc.extensions.WLConnection;
public class WeblogicConnectionWrapper implements OracleConnection
// oracle connection object
private OracleConnection connection;
public WeblogicConnectionWrapper (OracleConnection orclConnection)
try
this.connection = orclConnection;
catch(Exception unexpected )
unexpected.printStackTrace();
public OracleConnection unwrap()
try
// The datasource returns a weblogic.jdbc.pool.Connection
// This needs to be type casted to weblogic.jdbc.extensions.WLConnection
// Only this weblogic.jdbc.extensions.WLConnection CAN BE type casted
// to OracleConnection
return (OracleConnection) ((WLConnection) connection).getVendorConnection();
catch(Exception sqlException )
sqlException.printStackTrace ();
return null;
/* Implement all other methods by delegation to connection object */
public Connection _getPC()
return connection._getPC();
public void archive(int i, int j, String s)
throws SQLException
connection.archive(i, j, s);
public void assertComplete()
throws SQLException
connection.assertComplete();
public void clearWarnings()
throws SQLException
connection.clearWarnings();
public void close()
throws SQLException
connection.close();
public void commit()
throws SQLException
connection.commit();
public Statement createStatement()
throws SQLException
return connection.createStatement();
public Statement createStatement(int i, int j)
throws SQLException
return connection.createStatement(i, j);
public boolean getAutoClose()
throws SQLException
return connection.getAutoClose();
public boolean getAutoCommit()
throws SQLException
return connection.getAutoCommit();
public CallableStatement getCallWithKey(String s)
throws SQLException
return connection.getCallWithKey(s);
public String getCatalog()
throws SQLException
return connection.getCatalog();
public boolean getCreateStatementAsRefCursor()
return connection.getCreateStatementAsRefCursor();
public int getDefaultExecuteBatch()
return connection.getDefaultExecuteBatch();
public int getDefaultRowPrefetch()
return connection.getDefaultRowPrefetch();
public Object getDescriptor(String s)
return connection.getDescriptor(s);
public boolean getExplicitCachingEnabled()
throws SQLException
return connection.getExplicitCachingEnabled();
public boolean getImplicitCachingEnabled()
throws SQLException
return connection.getImplicitCachingEnabled();
public boolean getIncludeSynonyms()
return connection.getIncludeSynonyms();
public Object getJavaObject(String s)
throws SQLException
return connection.getJavaObject(s);
public DatabaseMetaData getMetaData()
throws SQLException
return connection.getMetaData();
public Properties getProperties()
return connection.getProperties();
public boolean getRemarksReporting()
return connection.getRemarksReporting();
public boolean getRestrictGetTables()
return connection.getRestrictGetTables();
public String getSQLType(Object obj)
throws SQLException
return connection.getSQLType(obj);
public String getSessionTimeZone()
return connection.getSessionTimeZone();
public int getStatementCacheSize()
throws SQLException
return connection.getStatementCacheSize();
public PreparedStatement getStatementWithKey(String s)
throws SQLException
return connection.getStatementWithKey(s);
public int getStmtCacheSize()
return connection.getStmtCacheSize();
public short getStructAttrCsId()
throws SQLException
return connection.getStructAttrCsId();
public boolean getSynchronousMode()
return connection.getSynchronousMode();
public int getTransactionIsolation()
throws SQLException
return connection.getTransactionIsolation();
public Map getTypeMap()
throws SQLException
return connection.getTypeMap();
public String getUserName()
throws SQLException
return connection.getUserName();
public boolean getUsingXAFlag()
return connection.getUsingXAFlag();
public SQLWarning getWarnings()
throws SQLException
return connection.getWarnings();
public boolean getXAErrorFlag()
return connection.getXAErrorFlag();
public boolean isClosed()
throws SQLException
return connection.isClosed();
public boolean isLogicalConnection()
return connection.isLogicalConnection();
public boolean isReadOnly()
throws SQLException
return connection.isReadOnly();
public String nativeSQL(String s)
throws SQLException
return connection.nativeSQL(s);
public Object openJoltConnection(String s, short word0, short word1)
return connection.openJoltConnection(s, word0, word1);
public void oracleReleaseSavepoint(OracleSavepoint oraclesavepoint)
throws SQLException
connection.oracleReleaseSavepoint(oraclesavepoint);
public void oracleRollback(OracleSavepoint oraclesavepoint)
throws SQLException
connection.oracleRollback(oraclesavepoint);
public OracleSavepoint oracleSetSavepoint()
throws SQLException
return connection.oracleSetSavepoint();
public OracleSavepoint oracleSetSavepoint(String s)
throws SQLException
return connection.oracleSetSavepoint(s);
public int pingDatabase(int i)
throws SQLException
return connection.pingDatabase(i);
public CallableStatement prepareCall(String s)
throws SQLException
return connection.prepareCall(s);
public CallableStatement prepareCall(String s, int i, int j)
throws SQLException
return connection.prepareCall(s, i, j);
public CallableStatement prepareCallWithKey(String s)
throws SQLException
return connection.prepareCallWithKey(s);
public PreparedStatement prepareStatement(String s)
throws SQLException
return connection.prepareStatement(s);
public PreparedStatement prepareStatement(String s, int i, int j)
throws SQLException
return connection.prepareStatement(s, i, j);
public PreparedStatement prepareStatementWithKey(String s)
throws SQLException
return connection.prepareStatementWithKey(s);
public void purgeExplicitCache()
throws SQLException
connection.purgeExplicitCache();
public void purgeImplicitCache()
throws SQLException
connection.purgeImplicitCache();
public void putDescriptor(String s, Object obj)
throws SQLException
connection.putDescriptor(s, obj);
public void registerApiDescription(String s, short word0, short word1, String
s1)
connection.registerApiDescription(s, word0, word1, s1);
public void registerSQLType(String s, Class class1)
throws SQLException
connection.registerSQLType(s, class1);
public void registerSQLType(String s, String s1)
throws SQLException
connection.registerSQLType(s, s1);
public void registerTAFCallback(OracleOCIFailover oracleocifailover, Object
obj)
throws SQLException
connection.registerTAFCallback(oracleocifailover, obj);
public void rollback()
throws SQLException
connection.rollback();
public void setAutoClose(boolean flag)
throws SQLException
connection.setAutoClose(flag);
public void setAutoCommit(boolean flag)
throws SQLException
connection.setAutoCommit(flag);
public void setCatalog(String s)
throws SQLException
connection.setCatalog(s);
public void setCreateStatementAsRefCursor(boolean flag)
connection.setCreateStatementAsRefCursor(flag);
public void setDefaultExecuteBatch(int i)
throws SQLException
connection.setDefaultExecuteBatch(i);
public void setDefaultRowPrefetch(int i)
throws SQLException
connection.setDefaultRowPrefetch(i);
public void setExplicitCachingEnabled(boolean flag)
throws SQLException
connection.setExplicitCachingEnabled(flag);
public void setImplicitCachingEnabled(boolean flag)
throws SQLException
connection.setImplicitCachingEnabled(flag);
public void setIncludeSynonyms(boolean flag)
connection.setIncludeSynonyms(flag);
public void setReadOnly(boolean flag)
throws SQLException
connection.setReadOnly(flag);
public void setRemarksReporting(boolean flag)
connection.setRemarksReporting(flag);
public void setRestrictGetTables(boolean flag)
connection.setRestrictGetTables(flag);
public void setSessionTimeZone(String s)
throws SQLException
connection.setSessionTimeZone(s);
public void setStatementCacheSize(int i)
throws SQLException
connection.setStatementCacheSize(i);
public void setStmtCacheSize(int i)
throws SQLException
connection.setStmtCacheSize(i);
public void setStmtCacheSize(int i, boolean flag)
throws SQLException
connection.setStmtCacheSize(i, flag);
public void setSynchronousMode(boolean flag)
connection.setSynchronousMode(flag);
public void setTransactionIsolation(int i)
throws SQLException
connection.setTransactionIsolation(i);
public void setTypeMap(Map map)
throws SQLException
connection.setTypeMap(map);
public void setUsingXAFlag(boolean flag)
connection.setUsingXAFlag(flag);
public void setWrapper(OracleConnection oracleconnection)
connection.setWrapper(oracleconnection);
public void setXAErrorFlag(boolean flag)
connection.setXAErrorFlag(flag);
public void shutdown(int i)
throws SQLException
connection.shutdown(i);
public void startup(String s, int i)
throws SQLException
connection.startup(s, i);
Util class to get Wrapped Connections from
datasource
package ejbTesting;
// j2ee imports
import javax.naming.InitialContext;
import javax.sql.DataSource;
// sql imports
import java.sql.Connection;
// imports from Oracle Driver Classes
import oracle.jdbc.OracleConnection;
* Wrapper class for the DataSource Connection from Weblogic pool
public class DataSourceConnectionWrapper
// datasource variable
private static transient DataSource datasource = null;
private static String dbName = "jdbc/workbench";
* Method that returns the database connection
public static Connection getConnection()
try
// initialsing the datasource object
initialiseDataSource ();
// Getting a connection from the datasource
Connection con = datasource.getConnection( );
// wrapping it custom wrapper class and
// returning the connection object
return new WeblogicConnectionWrapper((OracleConnection)con);
catch(Exception exception )
exception.printStackTrace();
return null;
private static void initialiseDataSource( ) throws Exception
if ( datasource == null )
try
InitialContext ic = new InitialContext( );
datasource = (DataSource) ic.lookup( dbName );
catch (Exception ne )
throw new Exception( "NamingException while looking up DataSource with
JNDI name" +
dbName + ": \n" + ne.getMessage( ) );
Exception Stack Trace
The line 46 in DataSourceConnectionWrapper
corresponds to
return new WeblogicConnectionWrapper((OracleConnection)con);
Which I feel is logical as the connection which we get from Weblogic
datasource cannot be type casted to OracleConnection
java.lang.ClassCastException: weblogic.jdbc.pool.Connection
at ejbTesting.DataSourceConnectionWrapper.getConnection(DataSourceConnectionWrapper.java:46) -
Limiting WLS to a single processor on a multi-CPU machine
How can I configure WLS to only use a single processor on a multiprocessor
machine? Will launching with green threads do the trick? Is there some way
to permit the use of native threads but to exclude a set of processors?
How do I do this under WLS318? WLS451?
Any help is much appreciated.
-Adam GalperAdam Galper wrote:
How can I configure WLS to only use a single processor on a multiprocessor
machine?It's os-dependent, but most will allow you to bind a process to a single
or set of cpus.
Will launching with green threads do the trick?Yes.
Is there some way
to permit the use of native threads but to exclude a set of processors?
Yes.
== Rob
>
How do I do this under WLS318? WLS451?Any help is much appreciated.
>
-Adam Galper -
SOA Suite 11g on WLS: Admin console EM not accessible
Hello everybody,
I am trying to install and run a sample SOA composite using SOASuite11g. Here are steps i followed-
1> Created schemas using RCU
2> Installed using JDeveloper11.1.1. 1.0.exe, which has installed Weblogic server and Jdeveloper.
3> Created a WLS domain (only admin server, no managed server and machines) and targeted al avalilable soa_suite components to the admin server.
4> Installed SOA Composite Editor (using Find Patches and Upgrade option in JDeveloper)
5> createed a basic soa composite project in jdeveloper and deployed that to the soa server.
6> if i go to http://localhost:port/soa_infra, the project is shown depolyed.
However, I am not getting any app under http://localhost:port/em or http://localhost:port/BPELConsole
If I login to the weblogic console http://localhost:port/console, under deployed applications there seems to be no such app.
Is it a problem with the version i have installed that even though it installs weblogic domain with soa_infra components, it does not supply the enterprise manager component.
Is there a way i can test the deployed compoiste?
Thank a lot in advance. Regards.
sibenduHi,
There is no BPELConsole in 11g. You can test your composites from EM, if you have selected EM during domain creation. If you haven't, then extend your domain with EM.
To extend the domain with EM, stop your servers in domain. Invoke the config. Select extend option. Select the EM template.
EM will be available in http://host:port/em
You can alternatively test your composites if you know the composite WSDL. You can use SOAP UI or any SOAP testing tools.
Usually it will be something like
http://host:port/soa-infra/services/default/TaskFormVerifyComposite!51.0/client?WSDL
In the above wsdl, till default it will be same for all the composite, followed by composite name, a ! symbol, followed by revision and then your exposed service. If you omit the revision, then the default revision will be invoked.
Hope this helps..!!! -
Hi Folks,
I have successfully connected to a JCOMBridge running in a separate
process on another machine from a Visual Foxpro 7 client.
I'm having difficulty accessing my MDB running in the WLS 6.1 server.
When my VFP client accesses the the JCOMBridge, a new instance of my MDB
is created in the JCOM jvm.
I've attempted to run the JCOMBridge within the WLS server. The thought
here is that the bridge running in the same JVM as WLS would have access
to my MDB methods and variables. I registered my JCOMBridge class as a
startup class on my WLS server. And the class starts fine like it
should. However, my object reference moniker on my client does not
access the bridge anymore (using same bridge port JCOM_DCOM_PORT=7050).
Has anyone successfully accessed an MDB from a JCOM client? Would like
to know how to do that.
Thanks.
Bob GontarzChad Stansbury wrote:
> A couple of questions:
>
> I'm using a user txn on a servlet to insert into a JMS queue, and update a field
> in the database. I'm using a Message-driven Bean (with container managed txn)
> to service said queue...
> When I rollback the txn in the MDB, it looks like it
> actually rolls back the servlet's txn as well! I was expecting this to result
> in the message being put back onto the queue only... Can I correct this behaviour?
You are right, this is odd and incorrect behavior, but I can't imagine
how it happening. Contact customer support.
>
> Is there a way for me (in the MDB) to take the message and place it back onto
> the queue for processing later (e.g., 5 minutes)?
>
There are a couple of ways. You can configure a "RedeliveryDelay" on
the destination via the console, this delays redelivery of rolled back
messages. Or you can commit() the transaction, and resend the message
to its originating queue using a
((weblogic.jms.extensions.WLMessageProducer)producer).setTimeToDeliver(5000);
> Thanks in advance, Chad
Your welcome,
Tom
-
WLS 5.1 restriction of processor usage possible?
Hi,
I want to run the WLS 5.1 on a WIN NT4 server together with a SYbase ASE database
server.
The server machine has four processors and I want to define that WLS uses only
two
wheras ASE uses the other two.
We already know that this is possible with ASE.
What about WLS? Can we define (how?) that WLS should use only two processors.
I know that this is possible at
runtime with WIN NT Server Taskmanager. But I do not want that somebody needs
to adjust this
every time a WLS is restartet.
Or is this totally unnecessary, since WLS takes overall processor usage into account?
Thanks for any help!
FlemingWLS doesn't count CPUs, just IP addresses. You should check your system
doc's to see if there's a way in NT to restrict execution to a set of
processors at start time. It's possible in Solaris. This may just be a
limitation of NT.
Michael Girdley
BEA Systems
Learning WebLogic? http://learnweblogic.com
"FF" <[email protected]> wrote in message news:3b134c9e$[email protected]..
>
Hi,
I want to run the WLS 5.1 on a WIN NT4 server together with a SYbase ASEdatabase
server.
The server machine has four processors and I want to define that WLS usesonly
two
wheras ASE uses the other two.
We already know that this is possible with ASE.
What about WLS? Can we define (how?) that WLS should use only twoprocessors.
I know that this is possible at
runtime with WIN NT Server Taskmanager. But I do not want that somebodyneeds
to adjust this
every time a WLS is restartet.
Or is this totally unnecessary, since WLS takes overall processor usageinto account?
>
Thanks for any help!
Fleming -
My boss is on Entourage/MAC 2003 and I am on Windows 2007, I cannot seem to work out how to get copies of his meeting requests as his only delegate.
The manual says tick 'send copies to delegate' but there is no box in that version to tick. Anyone?
Thanks!
BethMy boss is on Entourage/MAC 2003 and I am on Windows 2007, I cannot seem to work out how to get copies of his meeting requests as his only delegate.
The manual says tick 'send copies to delegate' but there is no box in that version to tick. Anyone?
Thanks!
Beth -
I went to your post and the docs on OTN, I don't see anywhere mentioned about backing up the WLS home before patching.
Basically, in my env, I have several WLS servers; however, I only had one server to go to MOS to get and downloaded the patches and save it to the central shared drive location, all of the servers are offline and had access to the shared and I used Smartupdate for both online and offline patch. The question is
1. are Domain Server and Managed server in the same home in my case it's /oracle/fmw/wls1030? so if I shutdown the backup WLS, I only need to make a copy of this dir?
2. Do I need to shutdown WLS or SmartUpdate will handle it when it applied the patch?
3. I used Smartupdate to patch WLS and it applied successfully; however, when I went back to check WLS home, there are NO new files that had been created from the patch? is it normal?
Thanks,Hi Chandu ,
CR was a old naming convention given for a bug, when weblogic server was under BEA.
Since Oracle acquired it , there are no more CR numbers allocated and it is always the bug number(in your case it is 13340309)
Thanks,
Sharmela
Maybe you are looking for
-
"Requirements: Windows XP Home or Professional with Service Pack 2"
I do not yet own an IPod Nano, but I am planning on buying one. The question that I need to know is about the wording of the requirements for Windows XP. It says XP Home or Pro with Service Pack 2, but I don't know whether that means it requires Wind
-
Enable Attachment commenting in Reader using Acrobat Pro 8
I am using Acrobat Professional 8. My document consists of a main form that needs one form field filled and many pages stamped. There are also several attachments, each with form fields and/or the need for stamps. Once released, the document will res
-
How to change homescreen in c6-00
does any one knows how to change homescreen theme in c6-00?
-
As it is known for every one the danger of the internet for kids with out parents watching them so I need a password.
-
To determine the Queries which uses Berfore Aggregation
Hi, Is there any best way to determine the Queries which uses Berfore Aggregation properies like any table which has information of all the calculated key figures which uses Before aggregation properties. Otherwise how can we determine the same using