Eduardo F. Sandino

Greenhorn
+ Follow
since Dec 10, 2009
Merit badge: grant badges
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Eduardo F. Sandino

Can anyone explain me - Why this code compiles and runs correctly ?

Test01.java



As far as I know, the class should be public in order to have 1 public class in the file.

Thanks in Advance!
12 years ago
Thanks for the help...

Peter Johnson wrote:After creating your two *-ds.xml files, then:

a) Configure a DatabaseServerLoginModule in login-config.xml to reference the Oracle database.

b) For a web app I would say to configure web.xml and jboss-web.xml to use the login module from step a). But I am not sure where that configuration would go in Seam.

c) Configure Hibernate to use the MySQL database.

At least, I hope it is that simple and that Seam doesn't require some additional/alternate configuration.

14 years ago
Hi Konda, I have a problem with the Sequences in Oracle, I am not using triggers + sequences in Oracle DB, only sequences, and i have defined my entities using hbm.xml files.

The problem I have is that the sequence doesn't start using the value defined in DB, and when the Application is running It creates records with Id=50, the next time I start the Oracle Server It start records are created using ID=100 and increments.. I really don't figure out, What is the problem ? Do you have any Idea? I have left part of my code here...

The Id's finally are generated and save in db, but I want to have a normal flow... 1,2,3,4,5, N and actually I get.. 50,51,52, restart oracle and Application and then.. 50,51,52,53... other restart more and I get .. 100,101,102,103...

Any Idea ?

regards

Eduardo





And the generated Java Entity is:




Konda Golamaru wrote:Hi Paul,

Finally It works as I expected. I have changed the hbm ddl property value from create to update and it works.

<prop key="hibernate.hbm2ddl.auto">update</prop>


Now, it picks the next sequence value and also It creates the new record for each JUnit execution.

Your reply helped me to dig further on the issue and finally here we are.

Thanks again.

Hi there... folks... i am in a big dilema i need to use two databases from my project.
One in Oracle the other in MySQl. and the problem is that the Oracle's ones should have the user and roles. Please anyone there could give me good advices in how to manage this in my jboss seam web project ?

thanks...
14 years ago
Hi there you can try:
RichFaces Live Demo
14 years ago
JSF
Hi there, i been having problems actually in finding really how to made work a rich:contextMenu is shows.. but i want to execute some action on the server and after that rerender a rich:Panel...

Can you give me some advices ?

Actually i am planing to have a group of images and each image has a contextMenu, the option is to remove this Image that represent a entity in my domain model... The richMenu is calling my method in the bean, but i can not reRender the rich:panel Container...



on my bean i have...


and is running ok the problem is to rerender the rich:panel that contains the Images...

I will put almost all the full view in the next lines:
14 years ago
JSF