Oracle ERP Application Security
One of my clients said he want to move Oracle ERP Applications to the Internet. So what security issues should I think about?
you can find in oaug document...there are many posting
Similar Messages
-
Webservice (oracle erp applications) to SAP PI to SAP R/3 scenario.
Hi All,
I have to make webservice (oracle erp applications) to SAP PI to SAP R/3 scenario.
1. If I make Outbound Interface with 2 fields in SAP PI. Publish its Webservice in Service Registry and then
send its WSDL URL to oracle erp applications system team.
Question --oracle erp team is asking me how they will call my webservice with 2 parameters so that JDBC Table which has 2
fields can be passed to my webservice and its parameters.
2. If I use JDBC sender adapter scenario -- Please let me know if am doing the things fine
a. Oracle erp System driver to install at SAP PI system
b. Connection, host name etc. information will be provided by ERP team that I will use in JDBC sender adapter
Please let me know for the aboce scenario
ThnaksHi ,
If I make Outbound Interface with 2 fields in SAP PI. Publish its Webservice in Service Registry and then
send its WSDL URL to oracle erp applications system team.
Question --
oracle erp team is asking me how they will call my webservice with 2 parameters so that JDBC Table which has 2
fields can be passed to my webservice and its parameters. Please let me know
The below approach is when above webserive is not used.
2. If I use JDBC sender adapter scenario -- Please let me know if am doing the things fine
a. Oracle erp System driver to install at SAP PI system .
Question -- If I install Oracle erp System JDBC driver in SAP PI system then what is use of ora14jdbc.jar.
Do i need to that also. Please let me know. -
Using XA with Oracle ERP application
Hi,
We have two Tuxedo Domains that we need to establish global transaction:
First Domain - Tuxedo 6.4 with Oracle 8.0.6 database.
Second Domain - Tuxedo 6.4 with Oracle ERP application (Oracel version 8.0.5)
A Client that calls a Tuxedo server in the first domain this service doing some work
on the database and then calls another service in the second domain (using Domain
connection).
The service in the second Domain activate a Oracle API (package) from the ERP application.
The Rollback works but we problem with the commit. We recieve the following Oracle
Error - ORA-06574: Function "VIEW_ALL" references package state can not execute remotly.
Revital Bloom
[email protected]Subbu,
As I mentioned earlier in this thread, support for Oracle RAC has been
implemented in Tuxedo 9.1 and in the Tuxedo 8.1 and Tuxedo 9.0 rolling patch
streams. There are no plans to backport this feature to Tuxedo 8.0. If you
plan to use RAC transactionally and if it is possible for multiple services
that could be located on different RAC instances to be accessed in a single
transaction (which will be true for most applications), then you should
upgrade to a version of Tuxedo with support for Oracle RAC. The
documentation at http://e-docs.bea.com/tuxedo/tux91/ads/adorac.htm#248431
gives an overview of RAC support in Tuxedo.
Ed
<Subramonian Arumugom> wrote in message news:[email protected]..
Hello Nadeer, Hello Ed,
Has the implementation of Tuxedo8.0 with Oracle RAC was completed
successfully ?.
If it is done , I have few doubts. Could you please help me ?.
1) I hope your Tuxedo middleware connects to the oracle Database using
Oracle XA resource manager and the TMS server built using buildtms with
oracle as RM .As per the mail from Ed, migration of Tuxedo9.1 should be done
before moving to Oracle RAC.
Also from BEA documentation, Oracle RAC support was given as new feature in
Tuxedo9.1.
Our Application uses Oracle RM to connect to Oracle DB[ Oracle 10g] from
Tuxedo8.0. So do we need to upgrade to Tuxedo9.1. for using Oracle RAC ?.
Thanks for your help
Best Regards
Subbu
#9880278452
Edited by subramonian.a at 04/16/2007 12:15 AM
Edited by subramonian.a at 04/16/2007 12:19 AM
Edited by subramonian.a at 04/16/2007 1:37 AM
Edited by subramonian.a at 04/16/2007 8:20 AM -
Oracle ERP and CRM Application Architecture Direction
Not sure if this is out of topic for this forum but it seemed the closest I could find. If it is out of topic could someone please point me in the right direction?
Im looking for the architectural direction Oracle is taking for their ERP and CRM applications. Specifically as Oracle moves their applications to the Oracle 9iAS application server will Oracle be changing their application architecture to a Service Oriented Architecture (SOA) as other ERP and CRM vendors are? If not what architecture will the Oracle applications follow?
Phil Montagliano
Xerox Corporation
XIM/Technology, Strategy & Architecture
161 South Chestnut Street Email: [email protected]
One City Centre / 0875-05B Phone: (585) 423-8831
Rochester, NY 14604 Fax: (585) 423-4848Hi,
bit confuse about your question. are you looking for techniacal architecture or looking for business prospective?
Kindly elaborate your question.
Yogi
[email protected] -
SAP ERP with Oracle Planning Applications
Based on the customers with Oracle VCP applications on top of SAP ERP, I am interested mainly in the Data mapping between Oracle ODS/VCP and SAP ERP. Any input/document will be helpful to start the mapping process. Thanks.
Yes, XI has build in JDBC adapter used to connect to database applications. In your case, if your oracle system is sender, then you can choose JDBC sender, if it is receiver, then you can use JDBC receiver.
By default, XI does not have JDBC driver installed, you must deploy the driver first, there is How -To document from SAP, you can easily search on the forum to get it.
Regards.
Liang -
Inquiry about oracle Fusion Application(New Oracle ERP product) and ADF
Please i want to know what the java technology oracle fusion application is developed by,java ADF or another?!
and about ADF ?how i can build my approval process for specific transaction ?!is it any tools for that integrated with ADF ?!
Thanks in advance
o.t.aFor human approval process you might want to look into Oracle BPM and the Human workflow engine that it offers - it is well integrated with Oracle ADF as the UI layer for the managers.
Watch Video -
Cannot log in as admin. http://localhost:8080/apex/apex_admin
After entering user admin and password I receive a page that says:
Access denied by Application security check
Application access restricted to internal workspace users.
Return to application.
I can run Apex interface just fine, this only happens for the apex_admin login screen.
Help??!!??
===========
Resolution
===========
Logged on to INTERNAL workspace with admin username.
Message was edited by:
edkocolHello Spadafore,
Thank you, for your quick answer. I found another way, and it is solved.
=========
SOLUTION:
=========
Login as sys with sqlpus (sqlplus sys as sysdba )on the database and run this script:
update flows_030000.wwv_flow_fnd_user
set change_password_on_first_use ='N'
where lower(user_name) = 'admin'
commit
However it's worked, but the whole story strange a little bit...
I tried to logon (internal, admin, xxx), then I got this: Access denied by Application security check
When I tried logon with wrong password I got this: Invalid Login Credentials
Afterwards I run the script above, and try relogon, I got the password change page, but at this time it worked, and it is working now....
Tiboir -
Does anyone know where I can find more information about application security for 11i other that the standard 'system admin' user guide. I feel like there is tons of info. on database security but very little on application security issues, best practice, etc. Thanks.
Most of the non-network related services can be disabled.
cu
Andreas -
Difference between Oracle Apps DBA and Oracle ERP Consultant
Dear All,
Can any please give me some idea about the difference between Oracle Applications DBA (apps dba) and Oracle ERP Consultant.
Which career is most rewarding one in terms of Salary, Job Security and Least amount of work
I am working as Core DBA which career will be most suited to me and easy to learn
Which Module of Oracle ERP is most used and would be suited for me
I have done Oracle 10g DBA certification what certifications would you recommend to me
Any help in this regard is highly appreciated.
Regards,
Asifuser635150 wrote:
Dear All,
Can any please give me some idea about the difference between Oracle Applications DBA (apps dba) and Oracle ERP Consultant.
Which career is most rewarding one in terms of Salary, Job Security and Least amount of workThat's entirely up to you. No one but you knows what you consider important, what you find interesting, what you find satisfying.
I am working as Core DBA which career will be most suited to me and easy to learn
Which Module of Oracle ERP is most used and would be suited for me
I have done Oracle 10g DBA certification what certifications would you recommend to me
Any help in this regard is highly appreciated.
Regards,
AsifMy original comment aside, I find these comments from you rather, uh, "enlightening".
"Which career is most rewarding one in terms of . . . Least amount of work"
"which career will be . . . easy to learn"
Since "easy" and "least work" seem important to you, I'd suggest a career in something besides IT. I could make some specific suggestions but run the risk of insulting people who work in those areas. -
Problems about deploying Oracle web application (Forms, Reports)
I am going to deploy Oracle web applications (Forms and Reports) and plan to use the same server machine for both Application web server and Database server.
1. How can I enable SSL (for data encryption) on Application web server for Oracle Forms ?
2. Since both Application web server and Database server will use the same machine, do I still need Oracle Advanced Security for data transmission between Application web server and Database server if data encryption for transmission is required ?
3. Can I user Oracle Forms to call Oracle Report on web as I did in Client/Server in the past ?
Experts like you may have come across such problems. Would you please give me some opinions/ideas ?
Regards,
Richard1. check the paper about the Forms servlet architecture on otn forms section for SSL tips.
3. Check the reports and forms integration paper on otn too. -
External User Creation In Oracle ERP
Hello,
My customer have oracle ERP and would like to create external users (based on ldap user from OID).
Oracle ERP resrource adapter doesn't have an option to create external users.
Is there a way to create a user in oracle ERP that have external authentication?
Thanks,
Itay.You need to ask that question in an appropriate forum; this forum is devoted to Java-related database issues and database-related Java issues. Your question is related to configuring an Oracle application product. You might try somewhere here:
http://forums.oracle.com/forums/index.jspa -
Db link between oracle erp db (11.1.0.7 ) and sqlsever 2008 db
Dear Experts,
Kindy note that I am stuck in the below scenario.
We are trying to create a db link between oracle db - R12.1.1 + 11.1.0.7(SUN SPARC 64-bit). and SQL Server 2008 Installed on
Windows Server 2008 R2.
We are planning to integrate 3rd party application along with oracle erp.
Please advise.
Regards
Mohammed. Abdul MuqeetHi,
If this can be helpfull to you.
http://www.mssqltips.com/sqlservertip/1433/how-to-setup-linked-servers-for-sql-server-and-oracle-64-bit-client/
http://www.dbaglobe.com/2009/09/how-to-adding-linked-server-for-oracle.html
http://www.kodyaz.com/articles/create-oracle-linked-server-query-data-from-oracle-to-sql-server.aspx -
How can Oracle ERP system reduce the total cost of ownership
i have read a report that describe the advantages of using Oracle ERP system in different organizations ; it is mentioned that
"+Oracle’s ERP solution suite helps customers achieve 30-80% lower total cost of ownership, benefit from a predictable cost model, and reduce risk+".
So does this means that Oracle ERP system reduce the total cost of ownership because it provides cheaper price comparing to other ERP providers, or it is meant that using Oracle ERP system will reduce the total cost of ownership for other assets in the organization by 30-70% ?
ThanksMy thoughts:
1) Oracle ERP (or any ERP) typically replaces numerous applications. Each of those applications needed separate licensing fees, separate support mechanism, and separate employees in your organization to support them. By consolidating into one, it is easier to support it.
2) Normally, Oracle ERP is cheaper than SAP but it certainly not the cheapest ERP in the market. There are some smaller ERPs which are cheaper but may not offer the breadth that Oracle offers. In fact, Oracle offers a small business ERP that is quite cheaper than EBS.
Sandeep Gandhi -
Oracle forms application doesn't open in Internet explore 8 Windows 7 OS
Hi,
I am not able to open Oracle forms application in interent explore Windows 7 OS but i can able to open IE in windows xp OS . i have deployed my fmx in Oracle application server in Linux server. i am trying to open in explore 8 in windows 7 os in client system. the application didn't open. i am trying to follow below steps mentioned in our forum URL
How can i open oracle forms in windows 7
try something like this may it helps u.
1. Open Internet Explorer 8
2. Go to Tools, Internet Options
3. Click on the Advanced tab.
4. Scroll down into the Security section and find “Enable memory protection to help mitigate online attacks”.
5. Uncheck “Enable memory protection to help mitigate online attacks”.
6. Click Ok and Ok again.
7. restart your computer
in Internet Explore 8 (64 bits) not able to find the "Enable memory protection to help mitigate online attacks" option under Security. where as Internet Explore 8 (32 bit) i am able find but i couldn't unchek. since it is not editable.
Kindly advice and more over i have given below details in formsweb.cfg file and please suggest anything to be modified in this for Windows 7 OS. Your early reply is very much valuable.
[myapp]
IE=Jinitiator
baseHTMLjinitiator=basejini.htm
form=/home/ora1/allubtfcc/fmx/ENG/signon.fmx
envFile=/home/ora1/myapp/env/myapp.env
imageBase=codeBase
width=1000
height=750
separateFrame=true
colorSchme=khaki
background=no
lookAndFeel=generic
baseHTMLjinitiator=/oracle/oraapp/OraHome_4/forms/server/basejini.htm,webutiljini.htm
baseHTMLjpi=/oracle/oraapp/OraHome_4/forms/server/basejpi.htm,webutiljpi.htm
baseHTML=/oracle/oraapp/OraHome_4/forms/server/base.htm
archive_jini=frmall_jinit.jar,icon.jar,webicons01.jar,webicons02.jar,webicons03.jar,webicons04.jar,frmwebutil.jar,jacob.jar
archive=frmall.jar
otherparams=prm_impli_type=9U prm_itype=0 prm_init_file=/home/ora1/myapp/ini/myapp.INI prm_debug_mode=NO
heartbeat=7
WebUtilArchive=frmwebutil.jar,jacob.jar
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
Thanks,
Regards
GowthamHi Amatu Allah,
Thanks for your reply. my application is developed (fmb) in form 6i. please find the below details
Forms [32 Bit] Version 6.0.8.24.1 (Production)
Oracle Toolkit Version 6.0.8.24.0 (Production)
PL/SQL Version 8.0.6.3.0 (Production)
Oracle Procedure Builder V6.0.8.21.0 Build #1459 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 6.0.7.1.0 - Production
Oracle Virtual Graphics System Version 6.0.5.38.0 (Production)
Oracle Tools GUI Utilities Version 6.0.8.20.1 (Production)
Oracle Multimedia Version 6.0.8.20.0 (Production)
Oracle Tools Integration Version 6.0.8.18.0 (Production)
Oracle Tools Common Area Version 6.0.8.18.0
Oracle CORE Version 4.0.6.0.0 - Production
And My database is
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Linux: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
My Applicatin server details is
Oracle Application Server 10g 10.1.2.0.2 Usernames and Default password information: Please refer to the Oracle Application Server 10g Administrator Guide for more information.
Install Type: Oracle Application Server Forms and Reports Services
Thanks
Regards
Gowthaman -
Hi,
I am migrating my ejb application from weblogic to oracle 9i application server.What changes are needed to be made in code and what configuration changes are required.
In my application i use a couple of session beans wherin a session bean calls the method of the other session bean which acceses the database.I am using a jdbc thin driver for the database connection. is it possible for a session bean to call a method of another session bean which access the database??This concept works well in weblogic where the current application is running.
The problem is that while migrating the application to the orion server, it gives an OrionCMTException ...
memory leak..etc.
Could any one clarify.
Thanks in advance!!!Hi Avi and Harrison,
Cease Fire avi!!!!.First of all let me clear the issue of posting the same problem twice.Well, when i mentioned the problem the first time , i found the title session bean deployment was not right and few people would look into it as it was a common problem so i thought it would be appropriate if i mentioned the title correctly , so i posted the query again with the change in title.
Now coming to the answer for ur questions.
The platform used is MS Windows NT.
The (OC4J) version is 1.0.2.2.1.
I am not using JDeveloper.
The database is oracle 8i and i am using the thin driver.
The beans to be deployed are stateless session beans.
The client involved is a web client i.e a jsp application.
The first session bean is as follows.
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import java.sql.Timestamp;
import java.rmi.RemoteException;
import java.util.Date;
import javax.ejb.*;
import javax.naming.*;
import initcontext;
import PrintMessage;
import JB_B2B_ERROR_PARSER;
* @stereotype SessionBean
* @homeInterface DB_UTILITYHome
* @remoteInterface DB_UTILITYRemote
public class DB_UTILITY implements SessionBean
private SessionContext context;
private ResultSet rs = null;
private Statement stmt = null;
private Connection con = null;
private PrintMessage print = null;
public DB_UTILITY()
rs = null;
stmt = null;
con = null;
print = new PrintMessage();
public Connection getConnection()throws RemoteException
InitialContext initctx = null;
Connection con = null;
try
initctx = initcontext.getContext();
javax.sql.DataSource ds =
(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
con = ds.getConnection();
//(javax.sql.DataSource)initctx.lookup("java:comp/env/jdbc/ePool");
catch(NamingException namingexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", namingexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("AppError",
"Epool-10001", "DB_UTILITY.getConnection"));
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception),
"DB_UTILITY.getConnection"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
epoolException(JB_B2B_ERROR_PARSER.getErrorMessage("EpoolError",
"Epool10005", "DB_UTILITY.getConnection"));
return con;
public String getDate()throws RemoteException
String Date=null;
try
con=getConnection();
stmt=con.createStatement();
rs=stmt.executeQuery("SELECT
TO_CHAR(SYSDATE,'YYYY-MM-DD HH:MI:SS') FROM DUAL");
while(rs.next())
Date=rs.getString(1);
stmt.close();
con.close();
catch(SQLException sqlexception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", sqlexception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("DBError",
JB_B2B_ERROR_PARSER.getSQLCode(sqlexception), "DB_UTILITY.getDate"));
catch(Exception exception)
print.printUserMessage("DB_UTILITY", (new
Date()).toString(), "", exception);
throw new
EpoolException(JB_B2B_ERROR_PARSER.getErrorMessage("epoolError",
"Epool10005", "DB_UTILITY.getDate"));
finally
try
if(con != null && !con.isClosed())
con.close();
catch(Exception exception2)
stmt = null;
con = null;
return Date;
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
Also the xml files are as follows.
web.xml
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- A friendly name for this web application, this name can be used in visual development environments, for instance -->
<display-name>AddressBook Web Application</display-name>
<!-- A human-readable description of this web application -->
<description>Web module that contains an HTML welcome page, and 4 JSP's.</description>
<!-- The file(s) to show when no file is specified, i.e. only the directory is specified. -->
<welcome-file-list>
<welcome-file>B2B_COUNTRY_CODE.jsp</welcome-file>
</welcome-file-list>
<ejb-ref>
<ejb-ref-name>SB_B2B_COUNTRY_CODEHome</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>SB_B2B_COUNTRY_CODEHome</home
<remote>SB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref></web-app>
Application.xml
<?xml version="1.0"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Country Code</display-name>
<module>
<ejb>epool_CountryCode-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>epool_CountryCode-web.war</web-uri>
<context-root>/epool_CountryCode-web</context-root>
</web>
</module>
</application>
ejb-jar.xml:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<description>epool_CountryCode</description>
<enterprise-beans>
<session>
<display-name>CountryCode Session
Bean</display-name>
<ejb-name>SB_B2B_COUNTRY_CODERemote</ejb-name>
<home>SB_B2B_COUNTRY_CODEHome</home>
<remote>SB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>SB_B2B_COUNTRY_CODE</ejb-class>
<session-type>Stateless</session-type>
<ejb-ref>
<description>EJB Epool DButility</description>
<ejb-ref-name>DB_UTILITYRemote</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
</ejb-ref>
<ejb-ref>
<description>EJB Entity Bean</description>
<ejb-ref-name>EB_B2B_COUNTRY_CODERemote</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
</ejb-ref>
</session>
<session>
<display-name>DbUtility Session Bean</display-name>
<ejb-name>DB_UTILITYRemote</ejb-name>
<home>DB_UTILITYHome</home>
<remote>DB_UTILITYRemote</remote>
<ejb-class>DB_UTILITY</ejb-class>
<session-type>Stateless</session-type>
</session>
<entity>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<home>EB_B2B_COUNTRY_CODEHome</home>
<remote>EB_B2B_COUNTRY_CODERemote</remote>
<ejb-class>EB_B2B_COUNTRY_CODE</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>EB_B2B_COUNTRY_CODEPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>country_code_desc</field-name>
</cmp-field>
<cmp-field>
<field-name>phone_format_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_code</field-name>
</cmp-field>
<cmp-field>
<field-name>active_date</field-name>
</cmp-field>
<cmp-field>
<field-name>date_created</field-name>
</cmp-field>
<cmp-field>
<field-name>active_flag</field-name>
</cmp-field>
<cmp-field>
<field-name>country_phone_code</field-name>
</cmp-field>
<cmp-field>
<field-name>country_tax_percent</field-name>
</cmp-field>
<cmp-field>
<field-name>sort_order</field-name>
</cmp-field>
<cmp-field>
<field-name>date_modified</field-name>
</cmp-field>
<cmp-field>
<field-name>user_created</field-name>
</cmp-field>
<cmp-field>
<field-name>user_modified</field-name>
</cmp-field>
<resource-ref>
<description></description>
<res-ref-name>jdbc/ePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>EB_B2B_COUNTRY_CODERemote</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<security-role>
<description>Users</description>
<role-name>users</role-name>
</security-role>
</assembly-descriptor>
</ejb-jar>
The session bean which uses the above session bean is as follows.
import javax.ejb.SessionContext;
import javax.ejb.SessionBean;
import java.sql.*;
import javax.naming.Context;
import java.sql.Timestamp;
import java.util.Vector;
import initcontext;
import DB_UTILITYHome;
import DB_UTILITYRemote;
import EB_B2B_COUNTRY_CODEHome;
import EB_B2B_COUNTRY_CODERemote;
import EB_B2B_COUNTRY_CODEPK;
* @stereotype SessionBean
* @homeInterface SB_B2B_COUNTRY_CODEHome
* @remoteInterface SB_B2B_COUNTRY_CODERemote
public class SB_B2B_COUNTRY_CODE implements SessionBean
private SessionContext context;
* Sets the context of the bean
* @param context The Bean's Context
public Vector selectCountryCode(String query,String
countquery, String pagenos) throws Exception
Context ctx = initcontext.getContext();
Connection con=null;
Vector records=new Vector();
int pageno=Integer.parseInt(pagenos);
int min=(pageno-1)*10;
int max=pageno*10;
int counter=0;
boolean recordsfound=false;
try
DB_UTILITYHome home =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote remote =
(DB_UTILITYRemote)home.create();
con=remote.getConnection();
Statement stmt = con.createStatement();
ResultSet rscount =
stmt.executeQuery(countquery);
while(rscount.next())
int temp=rscount.getInt(1);
int pagecount=temp;
pagecount=pagecount/10;
if((temp%10)>0)
pagecount=pagecount+1;
records.addElement(""+pagecount);
ResultSet rs = stmt.executeQuery(query);
while(rs.next())
counter++;
if(counter>min && counter<=max)
String row[]=new String[8];
recordsfound=true;
row[0]=rs.getString(1);
row[1]=rs.getString(2);
row[2]=rs.getString(3);
row[3]=rs.getString(4);
row[4]=rs.getString(5);
row[5]=rs.getString(6);
row[6]=rs.getString(7);
row[7]=rs.getString(8);
records.addElement(row);
con.close();
catch(Exception e)
System.out.println("Error in selecting Country
Code "+e);
throw new Exception("Error in selecting Country
Code "+e);
return(records);
public void insertCountryCode(String country_code, String
country_code_desc, String country_phone_code, String
phone_format_flag,String active_flag, String sort_order,String
country_tax_percent)throws Exception
Context ctx = initcontext.getContext();
Double Sort_Order=null;
Double cntry_tax_prct=null;
if(sort_order!=null && sort_order.length()>0)
Sort_Order=new Double(sort_order);
if(country_tax_percent!=null &&
country_tax_percent.length()>0)
cntry_tax_prct=new Double(country_tax_percent);
String user_created=null;
Timestamp date_created=null;
Timestamp active_date=null;
String user_modified=null;
Timestamp date_modified=null;
try
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote =
(DB_UTILITYRemote)dbhome.create();
user_created=dbremote.getUser();
date_created=Timestamp.valueOf(dbremote.getDate());
active_date=date_created;
EB_B2B_COUNTRY_CODEHome home =
(EB_B2B_COUNTRY_CODEHome)ctx.lookup("java:comp/env/EB_B2B_COUNTRY_CODER
emote");
EB_B2B_COUNTRY_CODERemote remote =
(EB_B2B_COUNTRY_CODERemote)home.create(country_code, country_code_desc,
country_phone_code,active_flag, phone_format_flag,user_created,
date_created, active_date, Sort_Order, user_modified,
date_modified,cntry_tax_prct);
catch(Exception e)
System.out.println("Error in Creating COUNTRY
Code "+e);
throw new Exception("Error in Creating COUNTRY
Code "+e);
public void setSessionContext(SessionContext context)
this.context = context;
public void ejbActivate()
public void ejbPassivate()
public void ejbCreate()
public void ejbRemove()
The jsp client which acces the beans is as follows.
<BODY >
<%@ page language="java" %>
<%@ page import="java.sql.*" %>
<%@ page import="initcontext" %>
<%@ page import = "java.util.*" %>
<%@ page import="DB_UTILITYHome"%>
<%@ page import="DB_UTILITYRemote"%>
<%@ page import="javax.naming.*"%>
<%Connection con=null; %>
<script src="search_getvalues.js">
</script>
<form name=frm1>
<%! int intCount,intI,intRowCount,intJ;
String strtname=new String();
String strhidden=new String("txthdn");
Statement st;
ResultSet rs;
ResultSetMetaData rmeta;
....%>
<%
try
Context ctx = initcontext.getContext();
DB_UTILITYHome dbhome =
(DB_UTILITYHome)ctx.lookup("java:comp/env/DB_UTILITYRemote");
DB_UTILITYRemote dbremote = (DB_UTILITYRemote)dbhome.create();
con=dbremote.getConnection();
st=con.createStatement();
rs=st.executeQuery(strsqlquery);
rmeta=rs.getMetaData();
intCount=rmeta.getColumnCount();
....... %>
</form>
</BODY>
</HTML>
The resulting exception generated is as follows:
D:\oc4j\j2ee\home>java -jar orion.jar
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... done.
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e\epool_CountryCode-web.war... done.
Auto-deploying epool_CountryCode (New server version detected)...
Auto-deploying epool_CountryCode-ejb.jar (No previous deployment
found)... done.
Error deploying
file:/D:/oc4j/j2ee/home/demo/messagelogger/messagelogger-ejb.jar homes:
No javax.jms.Destination found a
t the specified destination-location (jms/theTopic) for
MessageDrivenBean com.evermind.logger.MessageLogger
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
Auto-deploying epool countryCode example (New server version
detected)...
************************1
************************2
COUNT QUERY :SELECT COUNT(COUNTRY_CODE) FROM BAP_COUNTRY_CODE
QUERY :SELECT
COUNTRY_CODE,COUNTRY_CODE_DESC,COUNTRY_PHONE_CODE,PHONE_FORMAT_FLAG,COU
NTRY_TAX_PERCENT ,SORT_ORDER,ACTIVE
FLAG,ACTIVEDATE FROM BAP_COUNTRY_CODE order by COUNTRY_CODE
Error in selecting Country Code java.rmi.RemoteException: Error
(de-)serializing object: com.evermind.sql.OrionCMTConnec
tion; nested exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
JB:Error in selecting country cd java.lang.Exception: Error in
selecting Country Code java.rmi.RemoteException: Error (d
e-)serializing object: com.evermind.sql.OrionCMTConnection; nested
exception is:
java.io.NotSerializableException:
com.evermind.sql.OrionCMTConnection
Error in Selecting Records
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked
connection was created)
Auto-unpacking
D:\oc4j\j2ee\home\applications\epool_CountryCode\build\epool_CountryCod
e.ear... Error unpacking: IO Error:
The system cannot find the path specified
Error updating application epool_CountryCode: Unable to find/read
assembly info for D:\oc4j\j2ee\home\applications\epool_C
ountryCode\build\epool_CountryCode (META-INF/application.xml)
But if the DBUTILITY session bean is changed to a simple bean and accessed the code works fine and i am able to retrieve the data.Is the problem there because u one session bean cannot access a database connection method from another one or could it be because of the driver???
I hope i am clear.Please revert back in case any more references are needed.
Thanks in advance!!!!!!
Maybe you are looking for
-
USB Latency on MSI GT 735.
Hi, I have a MSI GT 735 006 with a Traktor Scratch Pro (Native Instruments) with an external sound card and vinyls to control the tracks. I have problems when playing it plays : blanks crackles jumps etc... Native Instruments Hotline told me to check
-
Why won't my Set Dynaminc Data Attributes timestamp my data
Using LabView 2011. Built a program that uses a DAQ Assistant to read some sensors. Output is a Dynamic Data Array. Using the Write to Measurement File Express vi to log the data. Set the X Value (time) Columns to One Column only. Result: I get the d
-
hi JCO experts, I am connecting to a really slow back end system using Jco. Lets say a) JCO Client.execute takes 5 minutes. b) I want to run this execution in a seperate thread Is there a way I can kill the JCO connection itself after 2 minutes? (Ima
-
How can I scroll horizontally with my mouse?
I am using Dreamweaver CC 2014.1 6947 Build on 64 bit Windows 7 Pro SP1 and I can't get my mouse to scroll horizontally in code view or any view. Looking/working with wrapped code is a no go for me. I have tried using apps to solve the problem like M
-
Hi all , I want to know in which table we can find the information related to machines used to produce an FG or SFG ( Like how many mins the machine was run and what is the cost for that ) . I can find this in the Tcode KOB1 . But its giving me a