Session storage between Java and PL/SQL
Hi all,
We have made Java servlet using session storage. The data stored is valid until session is changed. Seems that session is changed during logon or even if web page (where the servlet is located) is refreshed!
PL/SQL doesn't lost the session storage data during logon. But is it possible to find Java session storage from PL/SQL session storage?
Java session storage doesn't use domain name or subdomain which are mandatory for PL/SQL session storage.
Portal version is 3.0.9.8.5
Thanks,
Jari
See my answer Session storage between Java and PL/SQL.
Peter
Similar Messages
-
Using session storage between Report and Frame Driver
I have an existing report that has a link calling a frame driver with multiple forms. I would like to make the Initial Target Frame Content dynamic based on information contained in the targeted record of the report. I am able to make this work (in basic concept) on the frame driver side, but have not been able to pass session variables from the report side. I can, of course, pass bind variables via a link from the report. Does anyone know of a way to access the parameter bind varaiables in the frame driver component using session storage or something else in order to make these variables available to the PL/Sql of the Initial Target Frame?
Message was edited by: PM
user477244Seems that session is changed during logon or even if
web page (where the servlet is located) is refreshed!In Portal 10g (and maybe even in 9.0.2.6) the Web provider session is not lost any more when the user logs in to Portal.
PL/SQL doesn't lost the session storage data during
logon. But is it possible to find Java session storage
from PL/SQL session storage?No, you cannot share the session between database and Web providers. You need to find other ways to share information between portlets belonging to different providers. You can use parameter passing, or a persistent store, such as the database.
Java session storage doesn't use domain name or
subdomain which are mandatory for PL/SQL session
storage.The domain, sub-domain strings are irrelevant, as long as you can uniquely identify your session variable. For example, if you want to make sure that you have a separate session variable for every portlet instance, you should include the preference path in your domain or sub-domain. In case you want to share the session store between your portlets, don't include the unique portlet ID.
Peter -
Java and MS SQL Server 2000 problem, please help
please help me. I am using java and MS SQL Server 2000, and I'm trying to access and verify the login. I'm getting the following error message: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
Can any please help in this regard.
String userNumber = (String)userNumField.getValue();
char[] userPasswordArray = userPasswordField.getPassword();
String userPassword = new String(userPasswordArray);
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
java.sql.Connection connection = java.sql.DriverManager.getConnection("jdbc:odbc:Dikolobe_Data");
java.sql.PreparedStatement statement = connection.prepareStatement(
"SELECT USER_NUMBER, USER_PASSWORD, USER_CLASS, USER_STATUS " +
"FROM SYS_USER " +
"WHERE (USER_NUMBER = ? AND USER_PASSWORD = ?);");
statement.setString(1, userNumber);
statement.setString(2, userPassword);
java.sql.ResultSet result = statement.executeQuery();
if(result.next()) {
String userStatus = result.getString(4);
if(userStatus.equals("logged on")) {
String loginErrorMessage = "User with number: " + userNumber + " is already logged on.";
javax.swing.JOptionPane loginErrorPane = getNarrowOptionPane(72);
loginErrorPane.setMessage(loginErrorMessage);
loginErrorPane.setMessageType(javax.swing.JOptionPane.ERROR_MESSAGE);
javax.swing.JDialog loginErrorDialog = loginErrorPane.createDialog(null, "Login Error");
loginErrorDialog.setVisible(true);
else {
String userClassification = result.getString(3);
if(userClassification.equals("Administrator")) {
AdminHomePage newAdminHomePage = new AdminHomePage();
newAdminHomePage.setVisible(true);
else if(userClassification.equals("Educator")) {
EduHomePage newEduHomePage = new EduHomePage();
newEduHomePage.setVisible(true);
statement = connection.prepareStatement(
"UPDATE SYS_USER SET USER_STATUS = ? " +
"WHERE USER_NUMBER = ?");
statement.setString(1, "logged on");
statement.setString(2, userNumber);
statement.executeUpdate();
dispose();
}Doesn't the following link give you enough information?
http://www.google.com/search?q=invalid+descriptor+index
Anyway .. This error means that the given ResultSet column index which you're trying to retrieve the value from is out of the range. -
Why can't I use WebCT chat with my computer? I get the 'spiral of death' every time I try to type in my chat. I have a feeling it has to do with compatibility issues between Java and Tiger.
Hi Elizabeth,
Do your Mac meet any of these requirements?
http://www.wvnet.edu/services/webct/requirements.html
From this it appears to be PC only!???
http://sourceforge.net/projects/awebctcclient/files/Pancake%20%28it%20own%20proj ect%20now%29/Pancake%20Console%20V1.0.0/PancakeConsole-1.0.0-src.zip/download
Can you provide any more info on which bersion or file you have?
Can you tell us why you need this for your use? -
Error while creating connection between Java and ABAP
Experts
I am getting the following error message when I am trying to test the connection between JAVA and ABAP systems.
1. The system ID is valid
2. The system was retrieved.
3. The system object represents an SAP system
4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (s09f71v06.svr.bankone.net:8100)
5. The host name s09f71v06.svr.bankone.net was resolved successfully.
6. The server s09f71v06.svr.bankone.net *could not be pinged* successfully.
I have JAVA and ABAP on the same system. I am trying to establish a connection. I have checked all the settings and they looks fine. I have also pinged from other system to this server and the Ping works fine.
Please do let m eknow where do I need to check for the errros or logs for the above error message.
Appreciate your quick help.
MaheshCheck the relevant services are test are active on the Backend system through SICF trransaction.
Also make sure that default icm services are running.See note 517484.
More important the connector test in the portal system should work properly,recheck the WAS path etc are correct.
Regards
Ajay -
Data conversion for communication between Java and C/C++ program
The real problem, i guess, is about data type conversion between Java and C programs. For instance, and int is supposed to be 4 bytes in Java, and also in C/C++. But, as far as I know, the size of and int in C depends on the processors architecture, so if it were a 64 bit arch., size of and int, double, etc. in C, would change. The real scenario would be a communication between a 32 bit machine (Java) and a 64 bit machine (C/C++).
First of all, is this assumption correct?
If so,
how is it possible to deal with this problem in Java?
Is there any way to know 'type length' automatically? or
would it be necessary to modify the Java program to work with a C program in 32-bit or 64-bit arch?
thx in advancecotton.m wrote:
Yes you should develop the C part of the protocol first and then build from there.
See http://forum.java.sun.com/thread.jspa?threadID=5243547 for a previous discussion of this topic.
I understand what you mean, also the topic you referenced. I will explain the situation a bit more. The protocol is already defined: (16 bits message size, 16 message id, 32 bit time, etc.); it is also defined in C (structures and so on). So it would be easy to write my Java code using the specified protocol in bytes, and C types wouldn't be necessary to be considered. But, let's say that the C code can't be modified, and I thought (and don't know yet if its correct), that size of C types CAN changed depending on architecture. So if size changes for C types (code is specified in short, int, etc, and not in bit format), it all would be a mess, if I don't implement something in my Java code.
cotton.m wrote:
I don't believe that 32 or 64 bit enters the equation here at all.Maybe 32 o 64 doesn't mind, but sparc or PC could take a point here. Communication would be between a sun solaris sparc and windows x86 PC. But if type size in C/C++ does not change, I wouldn't really have any problem then...
The situation is not ideal, I know, but is what I have; and I think I could have problems if I run the C program in other machines; so I would have to try to solve it whithin my Java Program.
I hope it is clear now what I need.
thx
Edited by: MGasa on Jan 16, 2008 1:51 AM -
Communication between java and c++, help!
i am c++ programmer and newly to java.
now i am developping a client/server app. i use java transfers data (socket) between client and server, and use c++ to create user interfaces because c++ is easier for interfaces.
my question is:
in a single PC, java needs to tell c++ what info was read from socket and c++ needs to tell java what info will be written to socket.
i want to use 2 files (read and write) as media between java and c++. that is: java writes data to a file and c++ reads from the file, and vice versa.
i know it's not efficient. could you tell me better way to do?
thanks in advance.thanks for reply.
my problem is: socket is fare in java, not fare in c++
(win/nt). could u use server in a non nt-server
machine with c++?I'm not sure what you mean "fair". NT-Server is just a version of NT that Microsoft adds their server products to. Most of which you don't want to use because they are a security nightmare. I think what your asking is can you do the equivalent of Java's ServerSocket in C++. Sure, the socket libraries in Windows (at least last time I checked) were based off the BSD socket libraries. So you would basically do something like:
// Open socket
ss=socket(AF_INET, SOCK_STREAM, 0);
if(ss==-1)
cerr<<"Error opening socket."<<endl;
return 0;
// Fill in address
struct sockaddr_in server;
server.sin_family=AF_INET;
server.sin_port=htons((unsigned short)port);
server.sin_addr.s_addr=INADDR_ANY;
// Bind to port
if(bind(ss, (struct sockaddr *)&server, sizeof(server))==-1)
cerr<<"Could not bind to port "<<port<<"."<<endl;
return 0;
// Ready to accept connections
if(listen(ss, 5)==-1)
cerr<<"Could not listen."<<endl;
return 0;
// Loop to accept connections
while(/* some condition */)
// Accept a connection
int s=accept(ss, 0, 0);
}This should work on any version of windows as long as you have winsock. The example code might need to be changed a little though since I copied it from a Linux program I had. -
Do I need Java 8 or should I disable it? What happens if i disable it? And what is the difference between Java and Java Runtime?
There's no difference. They're both runtime plug-ins (they run when an app calls for Java functions).
You only need Java if you either have Java apps on your Mac that won't run without having it installed, or you use trusted web sites that require Java to function (getting fewer and far between). Otherwise, you have no need for it at all. -
What are the Basic Differences between Oracle and MS-SQL server Database?
Hello,
anybody pls Guide me about the Differences between Oracle and MS-SQL server Database.and also IBM Databases also
Regards,
BalaramSQL Server only works on Windows-based platforms, including Windows 9x, Windows NT, Windows 2000 and Windows CE.
In comparison with SQL Server , OracleDatabase supports all known platforms, including Windows-based platforms, AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, Sun Solaris and so on.
The SQL Server advantages:
SQL Server holds the top TPC-C performance and price/performance results.
SQL Server is generally accepted as easier to install, use and manage.
The Oracle Database advantages:
Oracle Database supports all known platforms, not only the Windows-based platforms.
PL/SQL is more powerful language than T-SQL.
More fine-tuning to the configuration can be done via start-up parameters.
Samrat -
How to connect Java and Microsoft SQL Server 2000
hi,
could anyone please teach me how to connect Java and SQL Sever 2000?? if possible could you guys provide me with an example??? i could hardly find any relevant resources about it...
Thanks ~!thanks for the information...
by the way hv any working module on it?? i'm new to
both Java and Microsoft SQL Server... Thanks againFirst things first... you should read this:
http://java.sun.com/docs/books/tutorial/jdbc/
This is microsofts official JDBC Driver: http://www.microsoft.com/sql/downloads/jdbcregister.asp
Install it and the documentation has some usage examples -
Real-Time Data Sync-up between Oracle and MS SQL Server
Hi All,
I am looking for a solution to sync-up the data between Oracle and MS SQL Server in real time. Here, the structure of table is different (in the sense, the data in multiple table in SQL Server should be combined and put it in a single table in Oracle and vice versa).
Could anybody throw light on this plz?
Thanks in advance!mt**** wrote:
Hi All,
I am looking for a solution to sync-up the data between Oracle and MS SQL Server in real time. Here, the structure of table is different (in the sense, the data in multiple table in SQL Server should be combined and put it in a single table in Oracle and vice versa).
Could anybody throw light on this plz?
Thanks in advance!Handle: mt****
Status Level: Newbie
Registered: Feb 9, 2003
Total Posts: 183
Total Questions: 14 (10 unresolved)
why so MANY unanswered questions?
what should occur when DML occurs & the "other" DB is not online? -
What's the difference between java and Javascript?
I a new programer, I am getting Java down. Now I want to add some java scripts to my site. Is there any difference between java and Javascript? Can I use the Java API site refference and classes? Thanks..
Java is a programming language, Javascript is more for web pages. It is used to add interactivity to your web pages. 2 different languages.
check out www.java.sun.com for Sun Java stuff.
Lynn -
Difference in event handling between Java and Java API
could anyone list the differences between Java and java-API in event handling??
thanks,
cheers,
Hiruthe event handling mechanisms in java language
features and API (java Application Programming
Features)features .no library can work without a
language and no language has event handling built in.
I am trying to compare and contrast the event
handling mechanisms in the language and library
combinations such as java/ java API.
all contributions are welcome!
thanks
cheersSorry, I'm still not getting it. I know what Java is, and I know what I think of when I hear API. (Application Programming Interface.) The API is the aggregation of all the classes and methods you can call in Java. If we agree on that, then the event handling mechanisms in Java and its API are one and the same.
So what do you want to know?
% -
ESS/MSS sso configure between java and abap instance
Dear Gurus,
I want to configure sso between java and abap instance for ESS/MSS. I couldnt find any guide for it, could you please help me gurus ?
Other question is, is there any specific role for ESS/MSS users in JAVA instance. I want to create users and assign this role to them.
Best RegardsHi Kemal,
Hope you are doing good.
There should be a / in the ITS path before SAP.
Basically the entry that you have mentioned here should be accessible via browser as well. For eg in your case:
http://<its hist name>/sap/bc/gui/sap/its/webgui should be accessible over browser.
I also think you have put in a extra space in "w ebgui". It should be "webgui".
If the connector settings are working, then we can be sure that system connection is fine. You do not need to configure ITS settings.
Also for SSO, refer the SAP note:1083421 and configure the SS0 settings again.
Please run the SSO2 wizard and then make the automatic connection to
the abap server. This will solve any inconsistencies on the server
due to manual interventions.
Most likely reason for the error is that certificates were loaded
manually rather than using SSO wizard.
More help:
<http://wiki.sdn.sap.com/wiki/display/EP/Troubleshooting+SSO+between+AS-ABAP+and+AS-JAVA>
The SSO enabling parameters should be set on the R/3 server.
SSO Logon Ticket-> login/accept_sso2_ticket and login/create_sso2_ticket
More info:
<http://help.sap.com/saphelp_nw04/Helpdata/EN/22/41c43ac23cef2fe10000000a114084/frameset.htm>
Thank you and have a nice day :).
Kind Regards,
Hemanth
SAP AGS -
Difference between Java and C#?
What's the difference between Java and C#?
Triple(!) post
http://forum.java.sun.com/thread.jspa?threadID=674331&tstart=0
http://forum.java.sun.com/thread.jspa?threadID=674329&tstart=0
Maybe you are looking for
-
Minimising Games, and Losing Focus on HP Pavillion Phoenix h9-1191ea
Hey, I recently bought a HP Pavillion Phoenix h9-1191ea Desktop PC and everytime I have a window open, it'll lose focus on it after a few minutes, and in the case of games, it'll minimise them completely. I would expect to see an error message, or an
-
HT1766 how do you recover your password to restore it
-_______-
-
Clarification required regarding Destinations
Hi Experts, I have a doubt regarding the security of destinations for WSIL, WSDL and RFC. Whenever we create the destinations for WSIL, WSDL and RFC, in the security part we select the "User ID / Password" mechanism and enter the user ID and password
-
How to assign forms for Physical Inventory Doc printing ?
Hi all, I have 2 forms for 2 differnet factory to print Physical Inventory Document . I have create 2 output type with differnet form setting , but i can't find the way to assgin output type for the factory . Does anyone know how to config ? Thanks
-
Canon ip1700 will not delete a job, says it has been cancelled already.
I have two jobs in my que that have been printed. But I cannot delete them. It says that I cancelled therefore I cannot cancel again. So it will not allow me to print anything else.