Win a copy of Rust Web Development this week in the Other Languages forum!

Mohamed Amri

Greenhorn
+ Follow
since Feb 17, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mohamed Amri

Do you know which file confiuration should I change.
Thanks !
13 years ago
I was asked to change the session timeout for an application using EJB, servlets and OC4J
How can I increase the session timeout (regardless of the session timeout in web.xml)

Thanks !
13 years ago
Hi

Can any one provide the instructions on how to setup oc4j in eclipsee 3.3

Thanks !
13 years ago
Hi

Can any one provide the instructions on how to setup oc4j in eclipse 3.3

Thanks !
Hi

I don't want to load all the database table records in the memory while visulizing it on the screen. On the creen the user can scroll over the records, and only 10 records are displayed at a time. Currently, When the user requires the Next 10 records to be displayed, I have to iterate through the whole list (The whole list is always in memory). I dont'want to load the whole list in memory (Very big list); I want to keep only a part of it (1000 records), when the user requires the Next 10 records to be displayed, If this Next 10 records are not available in the list in memory, that time I will have to refresh my List in memory by the Next 1000 records from the database.

This is my question, Does Hibernate allow to load a part of the records of a database table. How can I do that ?

Thanks !
Hi

I am using struts. I want to notify the user when the session has expired. How can I know that the session has expired ?
what is the best way to implemant such notification ?
Should all my actions extend one super action, within which I implement the business logic that checks whether the session has expired ?

Thanks
13 years ago
I have a list of Student type objects. I want the elements of this list to be sorted according to the Student name.

How should I deal with that ?
Thanks
13 years ago
Hi

I am iterating throug a collection. For each element there is an <html:radio associated to it. I want one of the displayed radios to be checked. How can I do that with <html:radio> struts tag

Thanks
13 years ago
In the following code, I could get reference to the stateless session bean "CalculatorBean", but if the bean is stefull, I could not get a reference to it using the same JNDI settings, how should I change the following code in order to be able to get a reference to the statefull bean? I am using Jboss

Thanks


Properties props = new Properties();
props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
props.put("java.naming.factory.url.pkgs","org.jboss.naming rg.jnp.interfaces");
props.put("java.naming.provider.url","localhost:1099");
InitialContext ic = new InitialContext(props);
CalculatorRemote calculator = (CalculatorRemote) ic.lookup("example/CalculatorBean/remote");
Hi,

I am really dispointed
I was close to submit the Assignent, one week will be enough to do so
but I bought the voucher for the essay exam one year ago
I read in your site that I can book an appointement and reschedule it.
I booked an appointment for march 30 (the voucher will expire on march 31)
when I tried to reschedule the appointment to one month ahead (even one week ahead) I get the message "Error: The testing date is out of the allowed range."

I leave in Algeria, and it is really difficult for me to buy another voucher - for me this is really difficult. I may have to cancel every thing!!!

Any way I'd like to thamk you all, especially Mr Anderwew whose suggestions and solutions were very helpfull

Best Regards
Hi,

Would it be ok if you can have a look at the solution I've suggested for the UrlyBird assignement
I've used RMI as network mode

the locks methods are called within the methods implemented within the Data class (create, remove and book).

The method that books a record starts by bookLock() and end up with bookUnlock() and all the methods run on the server side, so if the same client tries to book the same record twice at the same time, on the server side there will be two different threads that will call {bookLock(), update(recNo) and bookUnlock}, and the record locking solution will be valid and the server does not need to know if the client is trying to lock the record for the second time without releasing the record lock.

what do you think about that
your advices will be very appreciated

Mohamed
Best Regards