How can I set a Session bean timeout
Hello !
How can I set a Session bean to time out eg. 48 hours ?
Thanks
Uiloq Slettemark
For stateful session beans you can use the timeout attribute in the orion-ejb-jar e.g.
<session-deployment timeout=1800 ..>
this is specified in seconds and Default Value: 30 (minutes)
regards
Debu
Similar Messages
-
How can i lookup a session bean from the client side
how can i lookup a session bean from the client side...........i am using sun appserver..............
this is my code.................[B]
private final static String JNDI_NAME="ejb/LmsBean";
private static String url="ldap://localhost:4848";
Hashtable h=new Hashtable();
h.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
h.put(Context.PROVIDER_URL,url);
System.out.println("Before Loading Context in Delegate");
Context ctx=new InitialContext(h);
System.out.println("Loaded Context in Delegate");
Object obj=ctx.lookup(JNDI_NAME);
System.out.println("Loaded Object in Delegate");
System.out.println("Before Loading Home in Delegate");
LmsHome home = (LmsHome )PortableRemoteObject.narrow(obj,com.parx.lms.controller.LmsHome.class);
System.out.println("Loaded Home in Delegate");
lms = home.create();
System.out.println("Loaded remote in Delegate");
[B]and i got the exception........
Inside Client before calling delegate
Before Loading Context in Delegate
javax.naming.CommunicationException: Request: 1 cancelled
javax.naming.CommunicationException: Request: 1 cancelled
at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)
at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)
at com.sun.jndi.ldap.LdapClient.ldapBind(LdapClient.java:340)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:171)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.ja
va:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.jav
a:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.parx.lms.lmsdelegate.LmsDelegate.getController(LmsDelegate.java:3
0)
at com.parx.lms.lmsdelegate.LmsDelegate.addUserDelegate(LmsDelegate.java
:50)
at com.parx.lms.client.consoleClient.Client.main(Unknown Source)
pls go tru the exception and pls help.........That url string should be having the server name or ip instead of localhost.
-
How can i set the session of a new window?
I am placing in session an object from an action class like this request.getSession().setAttribute("currentBean",orderInfoModel.getDetails()); and i use it into a jsp page to print some informations. The page name is called orders.jsp where i use the object: <jsp:useBean id = "currentBean" scope="session" type="miru.orderInfo.OrderInfoBean"/> on that page i have a button and when i click it it opens me a new window(not a new tab) <input type="button" value="Edit" onclick="openWindow('http://localhost:8080/miru/scrisoareTransport.jsp','ScrisoareDeTransport',1150,600)">
the jsp for the new window(scrisoareTransport.jsp) looks like this :
<%@ include file="taglibs.jsp" %>
<%@ page import="database.navigator.Navigator"%>
<jsp:useBean id = "currentBean" scope="session" type="miru.orderInfo.OrderInfoBean"/>
<html>
</html>
Because IE is starting a new session on new window i need to pass the session and probably the currentBean object from the parent page to the childpage and set the child page session with the one coming from the parent page
Advices?
10xwell, the Gaussian window and the Gaussian Monopulse vis are good starting points, I would start with the window vi, but with a shorter length and add zeros before and after to get the full window with the peak at the desired position.
If
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ' -
How can I set a breakpoint within a macro in order to debug a prog.?
Hello all,
How can I set a session Breakpoint inside a macro (i.e. DEFINE .... END-OF-DEFINITION) in order to debug a prog.?
I keep on getting the message: "The position of a breakpoint cannot be determined." What does this message mean?
Thanks for your help.Goharjou,
We cannot see the program control flow inside a Macro, instead we can place a break point on the statement which calls the Macro and we can see the content of variables and internal tables before and after the Macro call.
Reward if useful..
Thanks,
Madhan. -
How do i set a session bean in my JSF action? I have defined this session bean in my faces-config.xml file:
<managed-bean>
<managed-bean-name>SelectedHistoryRecord</managed-bean-name>
<managed-bean-class>com.myco.nps_history.model.NPSHistoryRecord</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
And so far I know how to retrieve it's value ...
javax.faces.application.Application app = ctx.getApplication();
NPSHistoryRecord selectedHistoryRecord = (NPSHistoryRecord)app.getVariableResolver().resolveVariable(ctx, "SelectedHistoryRecord");
but I don't know how to set the session bean to be an instance of a different bean than that returned. Your advice is appreciated, - DaveIndeed, ExternalContext#getSessionMap() returns a modifable map of session attributes (backed by HttpSession#get/setAttrbute() in a Servlet environment), including the session scoped managed beans which are keyed by their managed bean name.
You may find this article useful in general: [http://balusc.blogspot.com/2006/06/communication-in-jsf.html]. -
How can I set the value to a session bean from backing bean
Hi Experts,
How can I set the value to a session bean from backing bean where I have created getter and setter
methods for that variable.
Basically I am using ADFUtils class where I am able to get the value from session bean
using following expression
String claimType =
(String)ADFUtil.invokeEL("#{ClaimValueObj.getClaimType}");
Thanks
GayazGayaz,
Wrong Post !!
Post in JDeveloper and ADF
Thanks
--Anil -
Set maximum session bean pool size?
Using the embedded OC4J, how can I set the maximum pool size for my session beans? I am using Jdeveloper 10g. Do I have to manually edit some XML file?
Set the system property com.sun.jndi.ldap.connect.pool.maxsize
System.setProperty("com.sun.jndi.ldap.connect.pool.maxsize", "25"); -
How can I set BPEL server enviorment and create BPEL domain?
Without use the http console, how can I set BPEL server enviorment and create BPEL domain?
When I try to use API like below
import com.oracle.bpel.client.Server;
Server s = new Server(ServerAuthFactory.authenticate("oracle","localhost"));
But I always got four exceptions and one warning like below:
java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\security.properties (The system cannot find the path specified)
java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\ejb.properties (The system cannot find the path specified)
Warning: unable to read transaction.interoperability config property
java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\security.properties (The system cannot find the path specified)
java.lang.Exception: Failed to create "ejb/collaxa/system/ServerBean" bean; exception reported is: "javax.naming.CommunicationException: Can't find SerialContextProvider
Is it right to use com.oracle.bpel.client.Server like this, please help me.
Best regards,
VitaAnyone can help me? Because I need deploy BPEL process on production server, so I need the Java funtion to create domain. Thank you very much if you can tell me the correct method of using com.oracle.bpel.client.Server API.
-
How can I set a specific start play time after disc insertion?
How can I set an automatic play start time of (say, a minute after the DVD was inserted) if the watcher has not selected anything from the main menu?
TIA.
MacBook Pro 2.16 ghz 17 Mac OS X (10.4.9) FCP 5.1.2 DVDSP 4.1.1Set the timeout action for the menu in inspector
(General Tab for the menu, set the seconds and what
it should do there)
I set the At End menu to Timeout, set the seconds to the same as the time for the song playing in the background to finish, and set the Action to go to the Track where the video is. The song ends but it just remains on the Main menu. The video doesn't start.
What have I missed?
Again, TIA.
MacBook Pro 2.16 ghz 17 Mac OS X (10.4.9) FCP 5.1.2 DVDSP 4.1.1 -
How can i set a image dinamically in a image component (ADF Mobile)?
Hello everybody,
I have to consume a rest service and get a url. This url is redirected to one image. After reading this image, how can i set he in a adf mobile image component?Hi,
bind the mobile image component URL to a managed bean and have the managed bean. Then use the bean setter to set a new URL string and ensure (when creating the Java class for the managed bean) you have JDeveloper creating the property change event handlers.
Frank -
How can I set the data binding between Web Dynpro & Database table
Dear friend,
I am a beginner of Web Dynpro. I want to develop my simple project like these:
1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
1. How can I set the data binding between Web Dynpro and Database table ?
2. Are there any nescessary steps that I will concern for this case?
Sorry if my question is simple, I had try to find solution myself, but it not found
Thanks in advances,
SeMsHi,
You can write your own connection class for establishing the connection with DB.
Ex:
public class ConnectionClass {
static Connection con = null;
public static Connection getConnection() {
try{
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
con = ds.getConnection();
return con;
}catch(Exception e){
return null;
You can place the above class file in src folder and you can use this class in webdynpro.
You can have another UserInfo class for reading and writing the data into the DB .
Regards, Anilkumar
PS : Refer
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Message was edited by: Anilkumar Vippagunta -
How can I set time-out while accessing a url using URL object?
Hi
I'm trying to get the content of a URL using the following code. How can I set timeout
(example, 10 secs), if the webserver takes a while to respond.?
BufferedReader inbuf=null;
URL url=null;
try {
String urlString="http://host-machine/sms/index.jsp";
url = new URL(urlString);
inbuf = new BufferedReader(new InputStreamReader(url.openStream()));
String inputLine;
String LongString="";
while ( (inputLine=inbuf.readLine()) != null)
LongString=LongString+inputLine;
retString=LongString;
inbuf.close();
catch (Exception e) {System.out.println(e)}
Thanks a lot for your kind help
Regards
KandasamyIf you're using Java 5, see this thread (reply 10)
http://forum.java.sun.com/thread.jspa?forumID=31&threadID=576157 -
How can I set the Corporate Logo instead of Oracle Discoverer logo in 10g
Hi,
How can I set the corporate logo/corporate welcom html file instead of oracle discoverer logo in oracle discoverer plus for olap reports version 10.1.2.48.18. while loading the d4o sessions.
Exactly what are all the steps that I need to follow .
Thanks,
Natarajan.UHi Lance,
Thanks for the documents. Its really helpful to me.
I am able to change the look and feel of my reports. But I am unable to change the corporate logo.
The steps that I followed.
1.Goto discoverer Plus configruation.
2.Goto Logo change the option button from None to File and Choosed the .jpg file from C:\Logos.
3.Restarted the application server.
4.Open the BI plus reports in IE. But still I am seeing the same Oracle Logo only.
5.But whatever the look and feel like plastic/system/oracle I changed I am able to see the changes.
6.The logo change is not as simple as I thought??. I need to create Jar on this logo and I need to put the jar file in java /j2ee directory???.
Thanks,
Nats -
How can i set the character set ???
hello
now i have the following
Message msg =
new MimeMessage(Session.getDefaultInstance(props, null));
how can i set the character set to be 'windows-1256'
pleaze help if u can
thanks very much
BelalYou have to deal with the NLS_LANG environment variable,it is defined as NLS_LANG=<Language>_<Territory>.<clients characterset> .
Where is your oracle client installed? On the the server machine, where the database resides , on another Unix system or is it a Windows client? On Windows NLS_LANG is directly related to the OS settings and stored in the registry, on Unix NLS_LANG is not set automatically and defaults (if not set) to AMERICAN_AMERICA.US7ASCII. If you are working on UNIX, this could be the reason for disordering. I'm not familiar with Chinese, so I don't know the correct setting , but a good approach would be same setting as on the server.
Metalink note 158577.1 describes NLS_LANG very detailed. -
How can I set programmatically an ActionListener ?
Hi,
In my managed bean I create a HtmlCommandLink. How can I set its actionListener property in bean to point to some bean's method ?I forgot one method :)
public static MethodExpression createMethodExpression(String expr, Class out, Class[] in) {
FacesContext context = FacesContext.getCurrentInstance();
return context.getApplication().getExpressionFactory().
createMethodExpression(context.getELContext(), expr, out, in);
}
Maybe you are looking for
-
How do i replace the data that was previously on an iphone?
I connected my sister's iphone to a computer via USB to download some photos. Her husband's iphone data was on the computer. Instead of just presenting the option to open the folder to view files in trying to access her phone all of his data was do
-
Filename variable w/out filename extension
Hi, Is there a less kludgy way to create a variable that returns the filename without the filename extension, than putting a small, filled white box on top of it? Thanks, Mats Broberg
-
Where can I get software for my Canon laser printer D420? I didn't think I would need it for an iMac
-
Oracle Apps adapter not displaying any Business Events
Hello We have configured a Business Event in Oracle ebs R12 instance. Now we are trying to configure Oracle Apps Adapter in Oracle Jdeveloper. The version is 11.1.1.3. The apps adapter wizard; after connecting to the ebs instance; does not display an
-
BW and EP Integration using SNEAK ABAP & JAVA
Hi, I have NetWeaver 2004s - ABAP (SP6) installed along with NetWeaver 2004 - JAVA (SP15). Is it possible to execute a BI query in the web browser using these sneak versions. I get an error that an iView is missing - com.sap.ip.bi.bex I have read a f