Problem with dsp:setvalue bean="FH.method" value="Submit"/ !
Hi ATG'ers,
instead of this (which WORKS):
<dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationSuccessURL" value="../checkout/checkoutReviewPlaceOrder.jsp"/>
<dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationErrorURL" value="../checkout/checkoutPayment.jsp"/>
<dsp:form name="moveToConfirmationForm" action="testWebPaymentConfirmation_EUR.jsp" method="post">
<dsp:input bean="ShoppingCartModifier.moveToConfirmationSuccessURL" type="hidden"/>
<dsp:input bean="ShoppingCartModifier.moveToConfirmationErrorURL" type="hidden"/>
<dsp:input bean="ShoppingCartModifier.moveToConfirmation" priority="-100" value="Submit" type="hidden"/>
</dsp:form>
<script type="text/javascript">
document.moveToConfirmationForm.submit();
</script>
I want to use this (because I've been told I can't use javascript to submit this form) :
<dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationSuccessURL" value="../checkout/checkoutReviewPlaceOrder.jsp"/>
<dsp:setvalue bean="ShoppingCartModifier.moveToConfirmationErrorURL" value="../checkout/checkoutPayment.jsp"/>
<dsp:setvalue bean="ShoppingCartModifier.moveToConfirmation" value="Submit"/>
But when I do it, it goes into the handle (pre and post) as expected but it DOES NOT redirect to "../checkout/checkoutReviewPlaceOrder.jsp", the moveToConfirmationSuccessURL.
It just seems to hang and not redirect there.
Can someone tell me why or if this is even actually possible?
Regards,
Dan
PS please note there will be other values too but i didn't include these just to make it simple to read but I hope you get the idea :)
Edited by: 881389 on 24-Aug-2011 11:35
<dsp:form name="moveToConfirmationForm" action="testWebPaymentConfirmation_EUR.jsp" method="post">
<dsp:input bean="ShoppingCartModifier.moveToConfirmationSuccessURL" value="../checkout/checkoutReviewPlaceOrder.jsp" type="hidden"/>
<dsp:input bean="ShoppingCartModifier.moveToConfirmationErrorURL" value="../checkout/checkoutPayment.jsp" type="hidden"/>
<dsp:input bean="ShoppingCartModifier.moveToConfirmation" value="" type="hidden"/>
a href="#" class="button" onclick="javascript:moveToConfirmation();">
Move to Confirmation
</a
</dsp:form>
<script type="text/javascript">
function moveToConfirmation() {
window.document.addToCartForm["/atg/commerce/order/purchase/ShoppingCartModifier.moveToConfirmation"].value="submit";
document.moveToConfirmationForm.submit();
</script>
Can you try this, use your movetoconfirmation button instead of anchor tag.
Thanks,
Suresh
Edited by: Suresh Repalle on Aug 25, 2011 12:09 PM
Edited by: Suresh Repalle on Aug 25, 2011 12:12 PM
Edited by: Suresh Repalle on Aug 25, 2011 12:15 PM
Similar Messages
-
A simple problem with sateful Session beans
Hi,
I have a really novice problem with stateful session bean in Java EE 5.
I have written a simple session bean which has a counter inside it and every time a client call this bean it must increment the count value and return it back.
I have also created a simple servlet to call this session bean.
Everything seemed fine I opened a firefox window and tried to load the page, the counter incremented from 1 to 3 for the 3 times that I reloaded the page then I opened an IE window (which I think is actually a new client) but the page counter started from 4 not 1 for the new client and it means that the new client has access to the old client session bean.
Am I missing anything here???
Isn�t it the way that a stateful session bean must react?
This is my stateful session bean source.
package test;
import javax.ejb.Stateful;
@Stateful
public class SecondSessionBean implements SecondSessionRemote
private int cnt;
/** Creates a new instance of SecondSessionBean */
public SecondSessionBean ()
cnt=1;
public int getCnt()
return cnt++;
And this is my simple client site servlet
package rezaServlets;
import java.io.*;
import java.net.*;
import javax.ejb.EJB;
import javax.servlet.*;
import javax.servlet.http.*;
import test.SecondSessionRemote;
public class main extends HttpServlet
@EJB
private SecondSessionRemote secondSessionBean;
protected void processRequest (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
response.setContentType ("text/html;charset=UTF-8");
PrintWriter out = response.getWriter ();
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet main</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Our count is " + Integer.toString (secondSessionBean.getCnt ()) + "</h1>");
out.println("</body>");
out.println("</html>");
out.close ();
protected void doGet (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
processRequest (request, response);
protected void doPost (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
processRequest (request, response);
}You are injecting a reference to a stateful session bean to an instance variable in the servlet. This bean instance is shared by all servlet request, and that's why you are seeing this odd behavior.
You can use type-leve injection for the stateful bean, and then lookup the bean inside your request-processing method. You may also save this bean ref in HttpSession.
@EJB(name="ejb/foo", beanName="SecondBean", beanInterface="com.foo.foo.SecondBeanRemote")
public MyServlet extends HttpServlet {
ic.lookup("java:comp/env/ejb/foo");
} -
I have tried 3 cards already but still the same problem with app store Your payment method is not valid in this Store. Please enter a new payment method.
Is there any ways to solve the issue?
Thank you in advance for your help!If you still have problem, contact iTune Support
https://ssl.apple.com/emea/support/itunes/contact.html -
Problems with loading native library/missing methods: no ttJdbcCS1121
Hi guys,
Im getting this problem in glassfish 2.1, but in glassfish 3 or in tomcat, i dont get this problem. (Windows)
Any thoughts?
java.sql.SQLException: Problems with loading native library/missing methods: no ttJdbcCS1121 in java.library.path
at com.timesten.jdbc.JdbcOdbcConnection.connect(JdbcOdbcConnection.java:1750)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:305)
at com.timesten.jdbc.TimesTenDriver.connect(TimesTenDriver.java:161)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at com.summitinvt.mdaq.db.handler.DBConnector.getConnection(DBConnector.java:108)
at com.summitinvt.mdaq.db.handler.DBConnector.initiateConnection(DBConnector.java:101)
at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:34)
at com.summitinvt.mdaq.db.handler.DBConnector.<init>(DBConnector.java:14)
at com.summitinvt.mdaq.db.handler.DBConnector$DBConnectorUtil.<clinit>(DBConnector.java:24)
at com.summitinvt.mdaq.db.handler.DBConnector.getInstance(DBConnector.java:28)
at com.summitinvt.mdaq.rats.server.CommunicatorImpl.getPnLByCurrency(CommunicatorImpl.java:1074)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:382)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
regards
JohnA similar problem was reported before on this Forum - see
Re: not able create connection to timesten
checking the Release Notes I can see 11.2.1.8.0 has been tested against Glassfish 3 but I
can't see any mention about Glassfish 2 in the v7 or v11 Release Notes (albeit only on a quick
search).
In my full install on XP, ttJdbcCS1121.dll is in C:\TimesTen\tt1121_32\bin -
Problems with loading native library/missing methods:no ttJdbcCS in java.li
Iam facing one problem while connecting the timesten client to the server The SQL Exception which Iam getting is pasted below:-
Problems with loading native library/missing methods: no ttJdbcCS in java.library.path
I am working with MAC OS X 10.7.2 and my timesten client version is 11.2.1.0
I have also changed the Java Preferences from 64-bit to 32-bit but still whenever i tried to connect with the SQL Developer it gives me the above error.I just tried this out. My environment is OS X 10.7.4, Timesten (32-bit) client 11.2.1.9.0, SQL Developer 3.1.07, Oracle Java 1.7.0_04.
The key things you need to be sure to do (in a terminal window) are:
1. Be sure to . in the TimesTen environment script <tt_install_dir>/bin/ttenv.sh to set the full TT environment.
2. Change directory to SQLDeveloper.app/Contents/Resources/sqldeveloper
3. Run 'sh sqldeveloper.sh -J-d32'
and all should be fine.
Note that if you are using Java7 as I am then there is a step 1a. Change the CLASSPATH environment variable to specify ttjdbc6.jar not ttjdbc5.jar. For some reason running the app directly from Finder does not work even if you add -J-d32 into the sqldeveloper launch script. I'm still looking into that.
Chris -
Problems with loading native library missing methods ttJdbc1122.dll
Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
Hi,
I have installed TimesTen 11.2.2 64-bit version on 64-bit windows 7.
I have TimesTen 7 64-bit as well installed on my machice
When trying to connect to TimesTen (Direct connection) using jdbc from eclipse, I get the following error "Problems with loading native library/missing methods: C:\TimesTen\tt1122_64\bin\ttJdbc1122.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform".
The JDK version is 1.6.25 - 64 bit version.
Please help me resolving this error.
Thanks in Advance,
BalamuruganAre you using SQL Developer?
There is or used to be a restriction of only being able to using 32 bit. A suggestion might be to try the 32 bit client. -
Problem with OBIEE Web Service getHTMLForReport() Method
Hello, I´m trying to develop an example using the OBIEE Web Services and I have a problem with the method “getHTMLForReport(String pageID,String pageReportID,String sessionID)” (http://download.oracle.com/docs/cd/E12103_01/books/AnyWebServ/AnyWebServ_Methods8.html).
The problem is the next one: In the pageReportID parameter should contain a character string ID returned by the addReportToPage() method, but the addReportToPageMethod is a void method. (http://download.oracle.com/docs/cd/E12103_01/books/AnyWebServ/AnyWebServ_Methods4.html#wp1008810)
Which is the value of the pageReportID parameter?
Thank you.Yes, there seems to be a bug in the oracle documentation. Basically, the second parameter of the addReportToPage() method is a free text. You can put "report101" as value of second parameter. Then you have to use the same string in the getHTMLForReport()method.
For example ..
addReportToPage(pageId, "report2", reportRef, "Jaggi Di Report", null, null, sessionID);
getHtmlForReport(pageId, "report2", sessionID);
Regards
Jagdeep Singh -
Problem with "System.in.read()" read() method!
import java.io.*;
import java.lang.*;
class Count {
public static void main(String args[]) throws IOException
int count = 0;
while (System.in.read()!=-1)
count++;
System.out.println("Input has " + count + " chars.");
in this code the loop stucks and it increments the count variable infinitely of course as long as i hit enter. I am trying to understand the problem with read() method of system class's in object. in its definition it says; when the inputstream ends it returns -1, but in this code it does not return -1 ever. another question of mine is that what args[] array do? what does it store??Java doesn't bother much with the dos console and it a bit limited and limiting - no pretty colours /graphics options - just text - that's because java graduates to GUI's where there is laods of power and object /component support to do everything and everything you could imagine and more. System.in.read() ??? - thats a fine start!
what args[] array do? what does it store??
Good question !
It provides a means of passing a parameter argument from the command line to the program - consider this;-public class HelloWithArgs {
public static void main(String[] args) {
System.out.println("Hello I am " + args[0]);
}What does it do and how does it work? Or this;-public class HelloWithArgs2 {
public static void main(String[] args) {
try{
String myName = args[0];
catch(ArrayIndexOutOfBoundsException aob){
System.out.print("No names: program will end");
System.exit(0);
System.out.println("Hello I am " + myName);
}Study them and have fun. Though to answer the question -
" public static void main(String[] args) {" // or
" public static void main(String[] parameters) {"
is the 'entry point' of all java programs, in order to do something it has to have a main() method and if youre going to pass on parameters, then why not a String array? If you think about it anything else would be fairly useless. -
Problem with ADF Table and doDML method.
HI,
I have a problem with ADF Trinidad Table. I have one search form and which i click on search button the result is coming it's working fine, And when i click on CreateInsert button to insert a new row it's adding after entering all the data into the table when i click on button on the page i am getting error like
Messages for this page are listed below.
Error
Missing mandatory attributes for a row with key oracle.jbo.Key[1 ] of type AppModule.CmSubscribersView1
Error
Attribute Name in AppModule.CmSubscribersView1 is required
Error
Attribute CreatedBy in AppModule.CmSubscribersView1 is required
Error
Attribute CreationDate in AppModule.CmSubscribersView1 is required
Here Created By and Creation Date are not available in the table i need to set these data from back end for that i have used doDML() method in the entity object and i written the logic but this method not even invoking as i couldn't able to see the logs in the server.
protected void doDML(int operation, TransactionEvent e) {
super.doDML(operation, e);
System.out.println("^^^^^^^^^^^^^^^^66666Inside entity object^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ");
// AppModuleImpl am=new AppModuleImpl();
// Number userID= am.getUserId();
//System.out.println("User id in the Entity Object Is: "+userID);
oracle.jbo.domain.Date dt = new Date();
if(operation ==DML_INSERT){
EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
Number n=new Number(1599);
newSubscribers.setCreatedBy(n);
newSubscribers.setCreationDate(dt);
newSubscribers.setLastUpdateDate(dt);
newSubscribers.setLastUpdatedBy(n);
But still the same problem can any one help me inthis.
Regards,
Edited by: user5802014 on Aug 21, 2009 2:04 PMHi,
Modify your method to call super.doDML() after initialization of mandatory attributes as below:
protected void doDML(int operation, TransactionEvent e) {
oracle.jbo.domain.Date dt = new Date();
if(operation ==DML_INSERT){
//PRE-INSERT code begins
EntityDefImpl cmSubscribers=CmSubscribersImpl.getDefinitionObject();
CmSubscribersImpl newSubscribers=(CmSubscribersImpl)cmSubscribers.createInstance2(getDBTransaction(),null);
Number n=new Number(1599);
newSubscribers.setCreatedBy(n);
newSubscribers.setCreationDate(dt);
newSubscribers.setLastUpdateDate(dt);
newSubscribers.setLastUpdatedBy(n);
//PRE-INSERT code ends
super.doDML(operation, e);
//POST-INSERT code if any
}else
super.doDML(operation, e);
}Sireesha -
Problems with a java bean in Weblogic 5.1
Hello,
I am having a problem deploying a java bean in Weblogic 5.1:
I have been given a .class and a .jar file for a java bean (not an EJB). I
placed the .class file into e:\temp\WEB-INF\classes and added the following
line to my weblogic.properties file:
weblogic.httpd.webApp.testApp=e:/temp/
I have also updated the web.xml file in the WEB-INF directory as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>EdIface</servlet-name>
<jsp-file>test.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>EdIface</servlet-name>
<url-pattern>EdIface</url-pattern>
</servlet-mapping>
</web-app>
When I try to access my http:\\server:port\testApp\test I get an "Error
500 - internal server error".
Has anyone had experice with deploying a java bean with jsut the .class and
.jar file? Where should I put the .jar file?
I appreciate any advice!
Bump
-
Problem with Pop up key list of values
I have been looking at a problem with key popup list of values. I have some sql in a report region :
select <columns>,"HTMLDB_ITEM.POPUPKEY_FROM_QUERY (47,resource_id,'select last_name,resource_id from rm_resource',30) "resource" ,
<other columns> from
<table name>
now, when I select the value from the pop up it gets returned to the wrong row. Everything appears to be one row out of sync, so selecting an item for row 3 gets returned to row 2. Row 10 returns to row 9 etc.
Looking at the code that is generated it appears to have messed up the sequences - I end up with two "genList0_f48_0" functions being generated.
Any ideas why this happens?http://htmldb.oracle.com/pls/otn/f?p=37683:39
On the page there are four records. selecting an Item from pop up in the last row gets placed in the row above.
If you look at the javascript that gets run on the first two lines they both have the code "javascript:genList0_f21_0()" the third line has
"javascript:genList0_f21_1()" when it should be "javascript:genList0_f21_2()"
Hope this makes sense. -
il havez a cisco as5300 i use it for voip after 5 or 6 hours i must reboot cisco because i observe a large difference between DSP and DS0
ALG01#show call resource voice stats
Resource Monitor - Dial-up Resource Statistics Information:
DSP Statistics:
Utilization: 36 percent
Total channels: 90
Inuse channels: 63
Disabled channels: 0
Pending channels: 0
Free channels: 27
DS0 Statistics:
Utilization: 35 percent
Total channels: 124
Addressable channels: 60
Inuse channels: 21
Disabled channels: 0
Free channels: 39
can any one explaine me the cause of this problem?
think youHi!
I have the same problem with one of my 5300 boxes. I think this is IOS related issue, because all other 5300 boxes don't have this problem. This one has c5300-jk8s-mz.122-5.bin
IOS upgrade would probably help...
If you find out something more, I'll be glad to know!
Regards,
Nikola -
Problem with sqldir invoked by host method in Forms10g on Unix
Hi,
I have a problem with invoking sqlldr from Forms10 using host command in
Unix environment(Solaris). I have two ORACLE_HOME's , one for IDS10g and second where is Oracle Client with sqlldr, which I have to invoke.
I have a script:
#!/bin/sh
NLS_NUMERIC_CHARACTERS=., ;export NLS_NUMERIC_CHARACTERS
ORACLE_HOME=/export/home/oracle/oracle/product/10.2.0/client_3
export ORACLE_HOME
echo $ORACLE_HOME > env1.txt
LD_LIBRARY_PATH=/export/home/oracle/oracle/product/10.2.0/lib32
export LD_LIBRARY_PATH
sqlldr TEST/TEST@orcl control='UOFE050.ctl' log='UOFE050.log' errors=1000000 skip=1
ORACLE_HOME=/u01/app/oaspers/frs; export ORACLE_HOME
echo $ORACLE_HOME > env2.txt
I have all neccesary paths in my default.env file (/usr/bin:/export/home/oracle/oracle/product/10.2.0/client_3/bin:
/usr/bin:/export/home/oracle/oracle/product/10.2.0/client_3) for FormsServer. I have tried invoke sqlldr with full path
and I have tried to change LD_LIBRARY for current ORACLE_HOME (in shell script). Of course from command line the script is working.
I know that only the line with sqlldr is not executed, so I have found a couple of threads on this forums but i have not found solution
for my issue - with two ORACLE_HOME's - the invocation of script in Forms is - host('scr.sh').
I am using webutil for uploading file to AS, and I do not want to use sqlldr on client.
ps. the experiment for Windows was OK - with Host('cmd /k scr.bat',no_screen);
thanks for help,
gregorySo my question to a Forms guru is that Do I have to really upload with webutil files to database and then put it down with utl_file and invoke sqlldr from database by f.e. java stored procedure ? A customer rejected solution with invoking sqlldr from client (reasonable - instalation Oracle client on every PC).
-
Problems with loading native library/missing methods: no ttJdbc1121 in java
Hi,
Can anyone help me? I keep getting this error when trying to start my jboss server. I have no problem with this when i run my standalone java application. My jboss version is 4.2 and my timesten version is 11.2.1.6.1 . My oracle version is 10G express edition. Any ideas?
Thank you very much.The TimesTen JDBC driver is not a pure Java driver. It requires to load several native code libraries. Most appservers have to be told what directories to search for those libraries (a bit like the O/S LD_LIBRARY_PATH variable). This error occures when you have not told the appserver where to look to find hte native code libraries (<tt_install_dir>/lib).
I'm not a JBOSS expert so I can't advise you on this; you need to consult the JBOSS documentation to find out what parameter/setting you need to modify to fix this.
Chris -
Problem with getting Entity Beans refreshed within Session bean methods
I hav following code in session and entity beans:
Session bean pseudo code: (PrimaryKey is primary key class for the entity
bean referred here, and MySessionHome is the home interfac class for this
session bean).
public class MySession implements SessionBean {
// This method is present in remote interface class as well.
public void methodA(PrimaryKey pk) {
// code to find entity bean by primary key specified.
update the entity bean, and mark it as isModified.
public void methodB(PrimaryKey pk) {
// code to find entity bean by primary key specified.
do something.
public void methodC() {
MySessionHome sessHome = code to lookup sessionhome from JNDI.
MySessionRI sess = sessHome.create(); // MySessionRI is the remote
interface class for MySession
PrimaryKey pk = new PrimaryKey(params);
sess.methodA(); // LINE ABC1
sess.methodB(); // LINE ABC2
all the entity and session bean methods have required as the TX attribute.
In methodB() on LINE ABC2, the entity bean obtained by findByPrimaryKey does
not reflect the changes made in call to methodA() on LINE ABC1.
Now if I change the LINE ABC1 and LINE ABC2 to
methodA(); // LINE ABC1
methodB(); // LINE ABC2
in this case the entity bean obtained in methodB() has the changes made in
methodA().
Any idea why this is happening?Hi ad13217 and thanks for reply.
I'm sorry but my code is like this:
javax.naming.Context ctx=new javax.naming.InitialContext();
arguments was an error on copy, but it doesn't work.
Thanks
Fil
Maybe you are looking for
-
how can I acess my ipad content from the pc, without enter the security code on ipad? I broke the screen and it doesn´t work. theres a way to enter the code on the pc? thank you
-
HR Master Data Distribution through ALE
Hi All, Iam new to HR module. I want to know what are the transactions to create HR master data like employee etc. I want to send this HR master data from one SAP system to another SAP/non-SAP system through Idocs. Can anyone guide me with an example
-
Can't launch iTunes!! please help!!
Hi, I can't launch iTunes, I keep getting this error: "The iTunes Music Library.itl file is locked, on a locked disk, or you do not have write permission for this file." It's driving me crazy I don't know what to do, someone please help!!
-
HT204053 Have just got iPhone 4S but can not face time to iPad please help
HAve just got iPhone 4S but can not face time to my iPad please help
-
How to get a quiz developed with a timer in Adobe captivate 8
I want to develop a quiz with 10 questions. So those who answer max correct answers with less time should be announced as winner Current version 8 doesn't show the option to publish file into exe. Also I have few issues with the current package I pre