Toplink and WebSphere 5.1
I recently downloaded 10.1.2.0/9.0.4.5 version of toplink from this location:
http://www.oracle.com/technology/software/products/ias/htdocs/904topsoft.html
Is this the right version for WebSphere 5.1? If yes, where are the classes to enable External Transaction Controller?
Why two version tags? Sorry for the dumb question.
Yes this is the right version. See:
http://www.oracle.com/technology/products/ias/toplink/technical/support/websphere.html
The Transaction controller is also described at:
http://download-west.oracle.com/docs/cd/B14099_06/web.1012/b15903/oracle/toplink/jts/was/WebSphereJTSExternalTransactionController.html
Doug
Similar Messages
-
Hi,
The configuration : toplink 9.0.4.8, websphere 5.1.1.7, oracle 9.2.0.6, application j2ee, servlets, jsp.
Actually the application runs with toplink internal pool. it uses Toplink source java class not xml files.
I'm trying to use websphere pool.
In the application, I wrote :
Project lc_project = null;
try {
lc_project = (Project) Class.forName("com.beaufouripsen.seas.mapping.SeasV2").newInstance();
} catch (ClassNotFoundException cnfe) {
} catch (IllegalAccessException iae) {
} catch (InstantiationException ie) {
DatabaseLogin lc_login;
lc_server = lc_project.createServerSession();
lc_login = lc_server.getLogin();
DataSource lc_dataSource = null;
try {
Context lc_context = new InitialContext();
lc_dataSource = (DataSource) lc_context.lookup("java:comp/env/jdbc/SEAS");
} catch (NamingException e) {
Connector lc_connector = new JNDIConnector(lc_dataSource);
lc_login.setConnector(lc_connector);
lc_login.setUsesExternalConnectionPooling(true);
lc_login.setShouldTrimStrings(false);
lc_login.getPlatform().setUsesStreamsForBinding(true);
lc_server.login();
In the web.xml :
<resource-ref id="ResourceRef_1134138661750">
<res-ref-name>jdbc/SEAS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
On the webshere server i configured a datasource and J2C Authentication Data Entries :
Resources/JDBC providers/oracle 9 JDBC driver/data Sources
JNDI name : jdbc/SEAS
It did not work very well, this error message was written : One or more resources rolled back. An unresolved LocalTransactionContainment had an unresolved action of rollback.
So I modified the ibm.web.ext-xmi to manage local transaction :
<extendedServlets xmi:id="ServletExtension_1134139478078">
<extendedServlet href="WEB-INF/web.xml#Servlet_1099905191078"/>
<localTransaction xmi:id="LocalTransaction_1134139478078" boundary="BeanMethod" resolver="Application" unresolvedAction="Commit"/>
</extendedServlets>
Now I have an error : Exception Description: com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Connection is closed.
Any help will be appreciated.
Regards,
AnnieWith only one user and one TopLink client session only one connection should be used from the pool. Are there any other application components using that connection pool? Does the application throw this error on the first Query? What operations are being performed prior to the exception? Scrollable Cursors?
--Gordon -
does anyone deploy 10.1.3 applications (adf & toplink) in websphere 6.0?
We are migrating the Jdev code to 10.1.3 and make some more development.
do any of you deploy 10.1.3 in websphere 6.0?
ThanksI am not using the ADF or Toplink.
Just a simple welcome page. I followed the steps from metalink and downgrade
Jdeveloper JDK 1.4.2 still doesn't work. any Idea? -
Crystal Report 9.0 and Websphere
hi can any body give me some steps regarding
integration of crystal report and websphere
i have already search this forum and i got lot many topics
regarding this but all were using cyrstal report version 8 and 8.5
which requires mandatory using IIS server which i dont wont to use
i want a pure websphere and 9.0 version communication
i had read the docs whihc states that 9.0 supports but i dont know how?
can any bosy help regarding thishere's the report code
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page session="true"%>
<%@ page import="javax.servlet.jsp.*"%>
<%@ page import="java.util.Locale"%>
<%@ page import="java.net.*" %>
<%@ page import="java.text.DateFormat" %>
<%@ page import="javax.servlet.jsp.JspWriter"%>
<%@ page import="javax.servlet.http.HttpServletRequest" %>
<%@ page import="javax.servlet.http.HttpSession" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.application.*" %>
<%@ page import="com.crystaldecisions.report.web.viewer.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
<%@ page import="com.crystaldecisions.sdk.occa.report.definition.*" %>
<!--Code Starts here ........... -->
<%
System.out.println("$$$$$$$$$$$$$$$$$$$$$$$$");
String reportName=(String)request.getAttribute("ReportName");
String requestNumber=(String)request.getAttribute("RequestNumber");
String requestNumber="RPT_112";
System.out.println("********************");
ParameterField newParameter = new ParameterField();
ParameterField newField = null;
System.out.println("@@@@@@@@@@@@@@@@@@@@@@@@@");
ParameterFieldDiscreteValue newValue = null;
System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^");
try{
ReportClientDocument rptClientDoc = new ReportClientDocument();
//System.out.println("11111111111111111111111111");
/* Change DCWKS0241AB to the name of Machine where RAS is installed for ex like DCWKS0237 */
rptClientDoc.setReportAppServer("DCWKS0241AB");
System.out.println("22222222222222222222222222");
/* Change this E:\\Crystal\\Reports\\ to the path where your reports are kept */
String reportPath="E:\\RAS\\Reports\\Percentages.rpt";
rptClientDoc.open (reportPath, 0);
rptClientDoc.getDatabaseController().logon("bbva","bbva");
System.out.println("After Creating the Client Document on the Report");
/* folowing Code remove any default value to the report and append the request number in the input parameter*/
newField = (ParameterField)rptClientDoc.getDataDefinition().getParameterFields().getField(0);
newField.copyTo(newParameter,true);
newParameter.getCurrentValues().removeAllElements();
newValue=new ParameterFieldDiscreteValue();
newValue.setValue(requestNumber);
newParameter.getCurrentValues().add(newValue);
/* Just for Testing Purpose
Values v=newParameter.getCurrentValues();
IValue iv=v.getValue(0);
System.out.println("---> "+iv.computeText());
rptClientDoc.getDataDefController().getParameterFieldController().modify(newField, newParameter);
/* Specifying the Format */
PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
//Create the ExportOptions object, set the PDF export options, and set the format type to PDF.
ExportOptions exOpts = new ExportOptions();
exOpts.setFormatOptions(PDFExpOpts);
exOpts.setExportFormatType(ReportExportFormat.from_int(ReportExportFormat._PDF));
System.out.println("After Setting the format");
System.out.println("Before getting source");
//Create the ReportExportControl object and set the report source to the report that will be exported to PDF.
ReportExportControl expViewer = new ReportExportControl();
System.out.println("Before getting source");
expViewer.setReportSource (rptClientDoc.getReportSource());
System.out.println("3");
//Set the export options to the ReportExportControl object.
expViewer.setExportOptions(exOpts);
System.out.println("After Setting the Export Options to the ReportExportControl object.");
//Set the exported report to display in the browser.
//The setExportAsAttachment method is set to false by default. If it is set to true the user will be presented with the File Download dialog box to save the exported report to disk.
expViewer.setExportAsAttachment(false);
//Export and view the report.
expViewer.processHttpRequest(request, response, (getServletConfig()).getServletContext(),null);
System.out.println("After Exporting and viewing the report back in the Browser.");
//Destroy the control.
expViewer.dispose();
catch (Exception e)
out.write("Error: Open" + e.toString() + "\n");
%> -
EJB communication between weblogic and websphere
Hello:
I have weblogic 7.1 instance running in machine A and websphere running in machine B. I want to make a call to the ejb deployed from weblogic to websphere. Any experience in this would be very helpful. Or pl. post the procedure.
Thx in advance.I don't think that there is any magic here, although I've never tried it.
All you need is the compiled EJBHome and EJBObject interfaces in the
classpath of the calling EJB, get an InitialContext in the JNDI namespace of
the target EJB container using the name of the JNDI InitialContext Factory,
do a lookup on the bean making sure to do a PortableRemoteObject.narrow when
you are casting the Home stub with the vendor specific version of
PortableRemoteObject(and that may be the real trick), call the appropriate
create method, and you are rolling.
I guess the question becomes how to make sure that when you are calling
PortableRemoteObject.narrow on the Home stub, that you get the vendor
specific version for the EJB container and JNDI namespace from which you are
doing the lookup.
I guess the answer is, I'm guessing. Have you tried it?
bill
"nebs om" <[email protected]> wrote in message
news:30035468.1103738722864.JavaMail.root@jserv5...
Hello:
I have weblogic 7.1 instance running in machine A and websphere runningin machine B. I want to make a call to the ejb deployed from weblogic to
websphere. Any experience in this would be very helpful. Or pl. post the
procedure.
>
Thx in advance. -
Help me for Configuration on Oracle AS 10g and WebSphere MQ
If there someone can share there experience on configuration on Oracle AS 10g and WebSphere MQ. Is there some quite easy ways or tools to do this?
Welcome any advise!Hi,
The only thing I know of is the documentation to configure the resource provider and I think there is an example on Technet:
"Declaring an IBM WebSphere MQ Resource Provider Reference"
[http://download.oracle.com/docs/cd/B32110_01/web.1013/b28958/jms.htm#i1086751|http://download.oracle.com/docs/cd/B32110_01/web.1013/b28958/jms.htm#i1086751]
and
[http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html|http://www.oracle.com/technology/tech/java/oc4j/1013/how_to/index.html]
I think the important thing is to note step 3 of the documentation,
Add to J2EE_HOME/applib any JAR files required by a Websphere MQ JMS client
as described in the IBM documentation.
I assume this comes from an MQ library that should be installed in OC4J.
If you use applib you must restart OC4J before it will be seen also.
I hope this can guide you in the right path.
Sincerely,
Steff -
SAP XI and WebSphere Application Server v6
Hello,
has anyone made integration projects between SAP XI and WebSphere App Server v6 using JMS?
Thanks for any feedback
JensWebSphere is not a Sun Microsystems product.
It does not make sense to ask questions here, about a third party product,
particularly when that third party is such a large organization.
Can you describe what guidance you have received from IBM ?
They would be the best source of all nuances on their own product.
They created it.
They've undoubedly installed it once or twice.
They are expected to be prepared to answer questions about it. -
JDeveloper, Toplink, and ADF advice.
We have application that was completely developed JDeveloper 10.1.3/4 with Toplink, JSF, ADF, and Session Facade; extremely similar to the SRDemo.
I am want to upgrade to JDeveloper 11g; however, the ADF Faces JSF will be migrated to Apache MyFaces Trinidad.
1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?
2. Is Apache MyFaces Trinidad the future of Oracle's ADF?
3. What would be the best approach for upgrade to Toplink and ADF 11g?
Thank you.1. Why would this be better than migrating to ADF Faces 11g? Pros and cons?It won't be better than using ADF Faces 11g - it is just more feasible for automatic conversion - we can't do automatic conversion from ADF FAces 10.1.3 to ADF Faces 11g since the UI capabilities are so drastically different. We migrate to Trinidad to allow you to combine Trinidad and ADF Faces 11g in the same application. (You can't use ADF Faces 10.1.3 and 11g in the same application).
2. Is Apache MyFaces Trinidad the future of Oracle's ADF?No. ADF Faces Rich Client is the present and future. Those are based on Trinidad.
3. What would be the best approach for upgrade to Toplink and ADF 11g?The basic thing to do is open the application in JDeveloper 11g - things should work after the migration.
Then you can start leveraging new capabilities such as the new ADF Faces 11g UI in new parts of the application.
You might want to ask on the TopLink forum if they have any specific migration tips. -
[svn] 2773: Update excludes list for JBoss and WebSphere.
Revision: 2773
Author: [email protected]
Date: 2008-08-07 04:35:10 -0700 (Thu, 07 Aug 2008)
Log Message:
Update excludes list for JBoss and WebSphere.
Modified Paths:
blazeds/trunk/qa/features/excludes.propertiesJGroups is an open source project that allows processes to send messages to one another. LiveCycle data services uses it for its messaging implementation (basically it configures the server to multicast messages to all the listening clients...even in a clustered environment across different LAN/WAN).
In most cases the default configuration will work fine, the problem is that if you are running a firewall on the server (or your local machine...i.e. windows firewall) the ports that JGroups uses for its communications can be blocked. In a local environment its easy enough to disable windows firewall and bounce your server to get things working.
In a production environment you need to open the ports that JGroups is using. These settings are in the Global Administration settings (as mentioned by WorkspaceUser above). If you export it and look at the JChannelConnectionProperties you'll see the ports its using and you can set your firewall to allow communication to those ports.
Bryan -
BUG!?! Toplink and XE in Jdev 10g Rel 3 SU4
Good ... evening/morning ... everyone! :-)
Trying to follow (teach using) the tutorial on creating an Web App using Toplink
and ADF Faces. After creating the Map I am getting problems on the Java object
generation. I get the exception:
java.lang.NullPointerException
at oracle.ideimpl.log.TabbedLogManager.getMsgPag (TabbedLogManager.java:101)
at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1049)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:231)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:201)
at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
at java.lang.Thread.run(Thread.java:595)
and JDev get in a endless loop in the generation progress dialog. The only
difference from the tutorial setting is XE instead of a full server!
Hope someone have some hints; just let me know if further details of the setting
is needed!
Dan.Good ... evening/morning ... everyone! :-)
Trying to follow (teach using) the tutorial on creating an Web App using Toplink
and ADF Faces. After creating the Map I am getting problems on the Java object
generation. I get the exception:
java.lang.NullPointerException
at oracle.ideimpl.log.TabbedLogManager.getMsgPag (TabbedLogManager.java:101)
at oracle.toplink.addin.log.POJOGenerationLoggingAdapter.updateTask(POJOGenerationLoggingAdapter.java:42)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.fireTaskUpdated(MappingCreatorImpl.java:1049)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:231)
at oracle.toplink.addin.mappingcreation.MappingCreatorImpl.generateMappedDescriptorsForTables(MappingCreatorImpl.java:201)
at oracle.toplink.addin.wizard.jobgeneration.JobWizard$1.construct(JobWizard.java:401)
at oracle.ide.util.SwingWorker$1.run(SwingWorker.java:119)
at java.lang.Thread.run(Thread.java:595)
and JDev get in a endless loop in the generation progress dialog. The only
difference from the tutorial setting is XE instead of a full server!
Hope someone have some hints; just let me know if further details of the setting
is needed!
Dan. -
Hi,
In a three-tier architecture, has anyone successfully implemented VPD in combination with Toplink and a ConnectionPool?
When all my web-users are connecting to the database with the same (connection pool) credentials, how, when and where do I tell my database who is really logged in (web-user) and thus how to set the specific VPD for that web-user?
Thanks. I already read another post on this forum mentioning that VPD support would be included in an upcoming release of TopLink.
Re: toplink and Oracle VPD
I also heard of a patch to download. Can anyone verify this?Just to add an extra question: Is it true that when one is using chained Toplink actions in a request-response cycle that each action will fetch its own connection from the pool and thus for each time a connection is fetched the VPD needs to be set again?
This in contrast with BC4J, where all actions in a request-response cycle will share the same application module and thus the same connection.
Bottom line: how to configure Toplink so that for each fetched connection it tells the database: "Hey, its me again, please set the application context (VPD) to my own personal values, so I will only see my own records"?
. And to clean it up nicely: just before the connection is released to the pool: "Ok, I'm done, please reset the application context, so other users will not be bothered by my context".
Hard to believe nobody has tried this before. -
What are the difference between TopLink and TopLink Essentials...?
What are the difference between TopLink, TopLink Essentials, EclipseLink and TopLink Essentials-GlassFish?
What is the difference of their functions?
Edited by: qkc on Nov 21, 2009 10:52 AMDifference between TopLink and ToPLink Essentials:
TopLink Essentials are the reference implementation (RI) of JPA, is an open source effort that is licensed under the Common Development and Distribution License (CDDL) v1.0. It can be freely downloaded and used under the terms of this license agreement. This means, you can only use it for the management of persistence and orm with Java EE and Java SE. The binary distribution of TopLink consist of 2 jars:
* toplink-essentials-agent.jar: contains Java Persistence API; XML Schemas and TopLink essentials implementation
* toplink-essentials.jar: contains java agent class requires in a standolane Java SE application
In addition to TopLink Essentials that makes the JPA implementation alive, Oracle offers its Oracle TopLink product (10.1.3) that contains an earlier preview binary of JPA and also offers developers additional object-relational capabilities, object-XML mapping (JAXB), non-relational mapping using Java 2.0 Connector Architecture (JCA).
Let's wait other person to answer these questions. -
Weblogic and Websphere intergration
Hi,
I would like to make a call from EJB bean deploeyd on WLS8.1 to another
bean deployed on Websphere 6.0 but I have no idea how to do that.
When I do sth like that in EJB in WLS:
InitialContext tx = new InitialContext();
Object obj =
(Object)tx.lookup("corbaname:iiop:localhost:2809#comarch/test/ejb/BasicCalculator");
I get the following exception:
javax.naming.NameNotFoundException: Exception in lookup.:
`comarch/test/ejb/Basi
cCalculator' could not be found. Root exception is
org.omg.CosNaming.Nami
ngContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHe
lper.java:72)
at
org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:
251)
at
weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:187)
at
weblogic.corba.j2ee.naming.ContextImpl.lookup(ContextImpl.java:174)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at examples.HelloBean.hello(HelloBean.java:71)
BasicCalculator bean is deployed on websphere and websphere runs on
localhost.
What should i do to get it running?
Any help appreciated.looser0 <[email protected]> writes:
BasicCalculator bean is deployed on websphere and websphere runs on
localhost.
What should i do to get it running?
Any help appreciated.This definitely works but there have been several patches to both
products to support things well. First of all check what name you
should actually use for websphere - I have a feeling that it has some
bizarre prefix on all of its names. Next make sure you are running
with WLS 8.1sp4. I don't know what version of WebSphere 6.0 you need -
I know there were fixes in WAS 5.1.3.
andy
-- -
Can I implement the ORM task without TopLink and Hibernate?
Can I implement the ORM (Objest/Relational Mapping) task without TopLink and Hibernate tools?
Any opinions are welcome.
-
Behaviour of updateObject and writeObject in toplink and eclipse link
Hi all ,
Please let us know if there is any difference between updateobject and writeobject being used in toplink and eclipselink.jar ?
It would be greatly helpful if someone can say the scenarios to use both the objects in eclipselink.jar .
Thanks in advance.
Regards
MythiliIn general you should not use either of these, but either use JPA, or use the UnitOfWork.
updateObject and writeObject are only defined in a single user DatabaseSession.
updateObject will just update the object, it assumes the object exists
writeObject can either insert or update an object, it first performs a doesExist check to see if an insert or an update should be done.
James : http://www.eclipselink.org
Maybe you are looking for
-
Calendar project help needed! TIA!
I have a client who wishes to create a week at a glance calendar. He would like for it to be available for download and for his clients to be able to enter appointment information on specific dates? Any thoughts as to how I can accomplish this.. I ha
-
Deployment From JDeveloper 11.1.1.1.0
Hi All, I am currenly using JDeveloper 11.1.1.1.0. We have developed an application and need to deploy it at one of our customers. They currently have Weblogic 10.3 installed with 1 ADF Application developed using the previous version of JDeveloper 1
-
Before the upgrade I think I was running V 10.1 (Win 7). At the top left-hand corner had been a big orange FireFox logo-button; when clicked, it dropped down a handy menu: Print, print Preview, History, Downloads, etc. Now suddenly there is a whole n
-
AirPlay vs. Airplay Mirror
Running into an issue with my ATV 3 and Airplay Mirroring when I upgraded to 10.8. My Setup: Mid 2012 MBA (10.8.2) + ATV3 (5.1) + 2012 Airport Express (@300Mbit/s) When I play a movie with iTunes I noticed on my network monitor that the MBA send the
-
I recently installed a bios update and now I can't locate the built-in webcam on my 210-2190 laptop
After installing a recent BIOS update, the search and webcam disappeared from the start menu. I got the search function fixed, but I can't locate the webcam sofware. How do I turn the software back on?