Porting j2ee application from Weblogic to Oracle 10g AS
What are the common guidelines/consideration when we port a J2EE application on Oracle Application server 10g. from WebLogic 8.1. If you have some inputs on pin points/guidelines/Architecture decisions that we might need to consider when we port a J2EE application on different J2EE application server
I got the link for app server migration but it is broken :
http://www.oracle.com/consulting/technology/appserver_migration_ds.pdf
Our application uses the following J2EE components
1. JDBC 2.0
2. JNDI
3. DAO
4. EJB
5. JMS
6. JAAS
7. JAVA Mails.
8. Servlets, JSP’s
I can think following point that needs to take care while porting
1. Its deployment configuration vis-a-vis the apps on top
2. The APIs it exposes (actually the information it allows the apps to pass in to the framework
3. The data it encapsulates (in order to be app-server agnostic; does it need to be now exposed to apps?)
Some J2EE specific areas
1. JNDI usage and exposure to apps 2. Properties files/XML files
2. Location specification 3. Resource bundle location specification
4. EJB deployment descriptors
5. Class/jar references between wars and ears
6. Jar sharing model across ears
7. Class loader differences across app-servers
8. JMS settings (queues, topics, factories, durability etc)
9. UI tags 10. Startup services
11. Managed services (JMX)
12. Security context passing
13. Clustered configurations if any and how they port across app-servers
Thanks
Santosh Maskar
This document is very old.
Take a look at the recent migration guide in the Oracle AS 10.1.3.1 documentation
http://download-uk.oracle.com/docs/cd/B31017_01/migrate.1013/b31269/toc.htm
Similar Messages
-
How to migrate a full J2EE application from WebLogic to NetWeaver?
I have an independent J2EE application which can be run on WebLogic successfully. Now, I want to migrate it to the platform of NetWeaver. Could you tell me how to do with it? And where can I find the jar files of the application I deployed?
Thank you very much!Have you tried the "exploded" format?
Also, do you mean Weblogic 6.1 (sp2?).
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"adurthy" <[email protected]> wrote in message
news:[email protected]..
>
> HI All,
>
> I am trying a migrate a application Jsp application with taglibs from
tomcat 4.0
> to weblogic 6.2
>
> I tried the example way but none seems to work
>
> any help or articles are appreciated
>
> thanks
> sivaji
-
Tim,
We will have development-only support for MDBs in the 6.5 release which is scheduled to release this month. The full EJB 2.0 spec will be supported in the next iteration of the product which is scheduled to be released in the summer. -
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!!!!!! -
What is the best way to port complete applications from DEV - Test - PROD
Hi,
One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
What is the best way to port complete applications from DEV -> Test -> PROD ??
Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
Best RegardsIt has been discussed here in detail-
SOA 11g Composite Deployment across multiple Instances: Best Practice
since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?You may use deployment plan for this purpose. For access control, you may use Role Based access of Weblogic and EM. Please refer -
http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10226/appx_roles_privs.htm#BABIHDFJ
Regards,
Anuj -
ANN: J2EE Applications & BEA WebLogic Hardcopies Available!
** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000.** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000. -
J2EE Applications & BEA WebLogic Hardcopies Available!
** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000.** J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank you.
In just a few short weeks we have moved up to the No. 42 spot on Amazon.
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/ref=ase_learnweblogic/103-
5396741-5920623
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000. -
** ANNOUNCE: J2EE Applications & BEA WebLogic Hardcopies Available! **
** ANNOUNCE: J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank
you.
In just a few short weeks we have moved up to the No. 636 spot on Amazon.
This is great interest in considering the official ship date is not until
August 16!
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/learnweblogic/102-1778325-
4765749
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000.** ANNOUNCE: J2EE Applications & BEA WebLogic Hardcopies Available! **
The first hardcopies of the only programming book to cover J2EE & WebLogic 6
are now available. For those of you that have already ordered, we thank
you.
In just a few short weeks we have moved up to the No. 636 spot on Amazon.
This is great interest in considering the official ship date is not until
August 16!
If you have not ordered already, you can order now and copies will be
shipped in just a few short days. The book can be located Amazon.com at the
following URL:
http://www.amazon.com/exec/obidos/ASIN/0130911119/learnweblogic/102-1778325-
4765749
More information on this book can be located at:
http://www.learnweblogic.com/.
** Overview **
Building J2EE Applications & BEA WebLogic is targeted at Java programmers
developing applications for the BEA WebLogic platform, the leading Web
Application Server in the marketplace today. This book focuses on best
practices for developing enterprise applications using the WebLogic APIs.
After reading this book, intermediate or professional-level Java developers
will possess the skills and knowledge required to develop scalable and
robust applications on the WebLogic platform.
The book combines reference and tutorial, taking a step-by-step approach
that introduces each API and uses it to build a component of the WebAuction
application, which supports on-line Auctioning on the Web. All software
needed to build the sample application is included on a CD-ROM that
accompanies the book. The WebAuction project gives users the opportunity to
explore significant areas of building a distributed Enterprise Java
application, including:
· Planning in advance for scalability and deployment
· Building presentation logic
· Establishing database connectivity
· Creating Enterprise Java Beans for the BEA WebLogic application server
· Packaging the whole application so that it can be easily managed and
maintained.
** About the Authors **
Rob Woollen is a Senior Software Engineer at BEA Systems. He is currently
the lead developer for the WebLogic Server EJB Container. Before joining
BEA, Rob worked on UNIX Kernel networking for Hewlett-Packard. Rob holds a
Bachelors degree in Computer Science from Princeton University.
Michael Girdley is the Director of Product Management for WebLogic Server at
BEA, a role in which he acts as chief marketing liaison to over 200
engineers. An experienced application developer in Java, HTML, C, and C++,
Michael is a co-author of Web Programming with Java (Sams-net Publishing,
1996) and Java Unleashed, Second Edition (Sams-net Publishing, 1997).
Michael holds a Bachelors degree in Computer Science with Honors from
Lafayette College.
Sandra L. Emerson is a technical writer and consultant with 20 years'
experience in the software industry. She is a co-author of four computer
trade books: The Business Guide to the UNIX System (Addison-Wesley, 1984);
Database for the IBM PC (Addison-Wesley, 1984); Troff Typesetting for UNIX
Systems (Prentice-Hall, 1987); and The Practical SQL Handbook
(Addison-Wesley, 1989-99). The fourth edition of The Practical SQL Handbook
is scheduled for Fall, 2000. -
SSO to J2EE application from SAP Portal
Hi
I am trying to do SSO from SAP Portal to a J2EE engine which runs on SAP Web AS.
Here are my queries
1. When I deploy a J2EE application on Web AS , I dont get any login screen. How can I make sure that if a user wants to access this J2EE application he should get a login screen and provide his login credentials first, only then would he be able to access the J2EE application.
2.When I am done with Part 1. If a user tries to access this J2EE application from the Portal (asuming the user Id's in Portal and J2EE application are same and both are in the same domain) , I should not get any login screen and should be able to view the J2EE application.
3.I want to use SAP Logon tickets generated by the Portal to enable SSO.
I have done all the necessary configurations in the J2EE server.
1. Imported the Portal's verify.der certificate.
2. Adjusted the login modules stack for the application accordingly.
Can anyone please help me out with this or throw some light.
Please help.
Thanks in advance,
Vivek
PS - Points will be definitely rewardedHi Vivek,
Let me give you the solution for both questions differently.
<b>Ques 1. When I deploy a J2EE application on Web AS , I dont get any login screen. How can I make sure that if a user wants to access this J2EE application he should get a login screen and provide his login credentials first, only then would he be able to access the J2EE application.</b>
<b>Ans:</b> For doing this in the code of your J2EE application you have to write a if statement which will check if the user ID is coming from the backend or not. If yes then you display that logon page else you just pass that username which is coming from backend and displ;ay the page accordingly.
<b>Ques 2.When I am done with Part 1. If a user tries to access this J2EE application from the Portal (asuming the user Id's in Portal and J2EE application are same and both are in the same domain) , I should not get any login screen and should be able to view the J2EE application.</b>
<b>Ans:</b> Yes, this is what I am explaining you. Even I had also made same kind of J2EE application in which if the user is coming from the backend then he/she will look the J2EE screen else if the username is not coming then he will se the Login screen. Exactly same as what are looking for.
<b>3.I want to use SAP Logon tickets generated by the Portal to enable SSO.</b>
<b>Ans:</b> I have used User Mapping instead of SAP Logon ticket. Well that is also the option for SSO but personally I think User Mapping is easy and better way for implementing SSO.
I dont know whether this will help you or not. Please let me know. I can definately help if you want to implement SSO using User Maping.
Regards
Pravesh
PS: Please dont forget to reward points. -
Licensed version and free download from OTN of Oracle 10g DB
I had a doubt with any difference with the licensed version and free download from OTN of Oracle 10g DB. We had downloaded a free version of oracle 10g
database from OTN and are using it in our live environment. It seems to be working fine. We are trying to get a licensed copy of Oracle 10g DB also but that may take sometime. So, my doubt is whether the free download from OTN should not create any problems in our live environment.
I hope, my question is clear.
Please, help in solving the doubt.
regardsHello,
There is no difference whether you download from OTN or get so called licensed copy of oracle software. It's free to download and free to use you are using for personal eduction purpose, but if you are using for commercial purpose then you should contact oracle sales for pricing but you can continue with the same software. See following link for certification on different platform
http://www.oracle.com/technology/support/metalink/index.html
Regards -
What is the best way to port complete applications from DEV - Test - PRD?
Hi,
One of my customers recently asked me, Supposing I do the complete integrations and modelling in SOA Suite on the DEV Environment. Then,
What is the best way to port complete applications from DEV -> Test -> PROD ??
Also, since the URLs in use in the DEV environment would be very different from other environments, what is the easiest way to maintain them, and to build in Access Control mechanisms ?
Best RegardsHi AJ,
Nice PDF !
Though the PDF does give a basic idea as to how we can go about the deployments using ANT and EM in Test and Prod, it doesn't really give extensive details. For eg. ANT would obviously need huge ANT scripts to be written for migrations to multiple Test servers, etc.
Similarly, when we talk about EM, does it mean each of the services has to be manually deployed on Production ?
I am sure we would be looking more towards a fully automated solution. No ?
Best Regards
Nitin -
Moving web-application from WebLogic 10.0.0 to 10.3.3 - EJB Exception
Hello all,
I've moved my web-application from weblogic 10.0.0 to the new platform with Weblogic 10.3.3. After this I had some JMSEceptions (unable to run JMS methods inside of servlet or EJB) and they were fixed. For now I got new exception:
####<07.12.2012 16:03:06 FET> <Info> <EJB> <pc-XXXXXX> <AdminServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-00340877198035A73969> <1354885386932> <BEA-010227> <EJB Exception occurred during invocation from home or business: weblogic.ejb.container.internal.StatelessEJBHomeImpl@14df37f threw exception: javax.ejb.EJBTransactionRolledbackException: EJB Exception: : java.lang.ClassCastException: com.XXX.XXXX.XXXXXX.persistence.OperatorBean cannot be cast to com.XXX.XXXX.XXXXXX.persistence.SwitchboardBean
at com.XXX.XXXX.XXXXXX.SwitchboardDataImpl.initialize(SwitchboardDataImpl.java:147) // itsSwitchboardBean = itsEntityManager.find(SwitchboardBean.class, switchboardNumber);
at com.XXX.XXXX.XXXXXX.SwitchboardDataImpl.create(SwitchboardDataImpl.java:86)
at com.XXX.XXXX.XXXXXX.SwitchboardDataEJB.create(SwitchboardDataEJB.java:64)
persistence.xml:
... <persistence-unit name="xxxSwitchboard_PU" transaction-type="JTA">
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
<jta-data-source>jdbc/xxSwitchboard</jta-data-source>
<non-jta-data-source>jdbc/xxSwitchboard</non-jta-data-source>
<class>com.XXX.XXXX.XXXXXX.switchboard.persistence.OwnerBean</class>
<class>com.XXX.XXXX.XXXXXX.switchboard.persistence.OperatorBean</class>
<class>com.XXX.XXXX.XXXXXX.switchboard.persistence.SwitchboardBean</class>
<class>com.XXX.XXXX.XXXXXX.switchboard.persistence.CallBean</class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
</persistence-unit>...
@Entity
public class OperatorBean extends OwnerBean
@ManyToOne(optional = true, fetch = FetchType.EAGER)
private SwitchboardBean switchboard;
@Entity
public class SwitchboardBean extends OwnerBean
@OneToMany(mappedBy = "switchboard", cascade = CascadeType.PERSIST, fetch = FetchType.LAZY)
private List<OperatorBean> itsOperators = new ArrayList<OperatorBean>();
Seems that it happened due to updating weblogic version (changes in jee, jms, ejb, jpa versions?). Could you please advice me how to fix this issue?
Thanks, IlyaI belive there is no problems for this change, because the versions are the same for java at least for OaS, for weblogic you should see documentation. I think you can try deploying you app to new environment if you get any noclassdeffound error or something like it then you could have problems for versions.
Regards -
Migrating database from PostgreSql to Oracle 10g
Hi
can anybody help me by providing steps to migrating database from PostgreSql to Oracle 10g. its very urgent requirement. so please let me know if anyone know about this setps.
thanks in advance.
jayesh
cignex technology pvt ltdNPD wrote:
Hi Guys,
Can one migrate database from sql2005 to Oracle.
Thanx.You can use [Oracle Migration Tool |http://www.oracle.com/technology/tech/migration/workbench/index.html]
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
Porting data from Oracle8i to XML and from XML to Oracle 10g
Hai
I have a client database (using oracle 8i) and a server database (oracle 10g).
Due to lack of leased line connectivity i want to port these offline data from 8i to 10g
using a modem(dial up connection).Is there is any way to port data from 8i to XML
and from XML to 10g.
thanks in advance
dejiesThanks Nicolas,
As per documentation, it seems to be difficult for export/import from Oracle8i to 10g. Is that any way to achieve this? I have to append the newly imported data with old or exisiting data into Oracle10g.
Regards
Nikhil -
J2ee Web application exploded format in oracle 10g
Hi,
I am trying to develop a simple j2ee application in Exploded Format
in oracle 10g AS. i have created a new OC4J instance called
TestOC4j for this. A .war file works fine in this instance.
I have placed the application under applications directory of TestOC4j.
I have made entries in server.xml, oc4j_mod.conf,
default-web-site.xml,http-web-site.xml and application.xml in META-INF
of the application.
The application get deployed with no errors.gets created in
application-deployments too.
But the url http://server-ipaddress:7778/test_app is not working.
Please help.
The folder struture is as follows:
test_app
--META-INF
-----application.xml
--test_web
-----pages
-------welcome.jsp
-----WEB-INF
-------web.xml
-------lib
-------src
The entries in server.xml is as follows:
<application name="test_app" path="../applications/test_app" auto-start="true" />
<web-site path="./http-web-site.xml" />
The entries in application.xml is as follows :
<module>
<web>
<web-uri>test_web</web-uri>
<context-root>/test_app</context-root>
</web>
</module>
The entries in default-web-site.xml is as follows:
<web-app application="test_app" name="test_web" load-on-startup="true" root="/test_app" />
The entries in http-web-site.xml is as follows:
<web-app application="test_app" name="test_web" load-on-startup="true" root="/test_app" />
The entries in oc4j_mod.conf is as follows:
Oc4jMount /test_app TestOC4j
Oc4jMount /test_app/* TestOC4j
Regards,
RoopaRoopa, it looks like there is no problem with the deployment of your application in exploded format. Have you accessed http://server-ipaddress:7778/test_app/pages/welcome.jsp? Any problem access http://server-ipaddress:7778/j2ee/, the default home page of the default-web-app ?
When you say the url http://server-ipaddress:7778/test_app is not working, what is the error message if any on the browser, on server console, in the server.log and http-web-access.log of ORACLE_HOME/j2ee/home/log/, ORACLE_HOME/j2ee/home/application-deployments/test_app/application.log?
Maybe you are looking for
-
Return of a Function Module ??
Hi Friends, I have a FM 'A' which calls another FM 'B' ... which calls another FM 'C' ... C displays a LIST output with the values it has in an internal table ITAB .... now my requirement is : I have a program 'ZABC' which calls the FM 'A' ... and i
-
FM for reversing parking documet
Hi, Can you please provide me FM or any method on how to cancel or reverse or delete Park document Thanks,
-
O.T. For U.S. Readers Only
Apple dumps old G4 Mac Minis at Costco Apple is getting rid of its old G4 powered Mac Mini computers at Costco, the store where America buys its cat food and pallets of toilet paper at steep discounts. The $699 price tag gets consumers a 512Mb Mac Mi
-
Best way to wipe device data before downgrading
Hi all, few questions: 1. What is the best way to wipe my device before downgrading the device? 2. Is it possible to downgrade os without wiping? 3. Alots of downgrades/upgrades and everything may damage the device some how? Im using windows vista 64
-
Access denied when publishing?
Hi folks, I've been publishing RH8 content to a folder on our network for a while and now it's telling me that Access is denied. Before I go and hassle the admin is there anything in RH that would cause this? The funny thing is that I can manually co