Frederico Benevides

Greenhorn
+ Follow
since Jan 15, 2006
Merit badge: grant badges
For More
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 Frederico Benevides

Hello, thank for your answer.

I'll explain with examples.

When I'm on the client and use remote session beans to find my "Person entity":



So I would like to understand how the container knows the the object Person that I find one "day" was managed or attached to him. I changed the Id just to test if it would let me to attach just to think as "new object". But not. I can't.

Since I'm using remote, and my method calls finished, why the container knows that object need to attached again, and don't let me add as a new object. So I think the container has a reference to this object that I find even I finished the method's call.
I load my object A, when I try to persist even I changed the Id of the object I got this exception. When I change to merge I don't get. So even my object is detached from the container, the container still has reference to this object?

How long the container will have this reference?
Thank you, that worked!

But one doubt.

I changed my ReceptorMDB to this




And for my client ejb to work I had to use this



I would like to know why I cannot use mappedName as mappedName="ReceptorQueue" since I put my Receptor with name "ReceptorQueue"

Thank you
I'm trying to create my MDB



But when I use theses, I get an error



So, if I change my property "destinationName" to "destination" only shows the error



Thank you,

Frederico
The only bean in my request is the userManagerMB.

About injecting my beans in the faces-config, it works normally.
16 years ago
JSF
I have my page



So as I'm testing, when I click in the button, after "editing". I don't know why I can't get a requestMap in my bean "userMB". Only shows the "userManagerMB" in the request.

my faces-config.


my classes


Someone has any idea why I can't get the my "userMB" in the request?

Thank you!
16 years ago
JSF
Thank you for the answer.

Yes I'm doing in container persistence. Using @PersistenceContext works without problem, without changing anything in my persistence.xml.

But I would like to try to access my persistence using this: "EntityManagerFactory emf = Persistence.createEntityManagerFactory("testJPAEJB3");". Just to study others ways to do the same thing, and to learn too.

Thank you.
I'm having problem to create my entitymanagerfactory with jboss 4.2.0.

It's saying this "The chosen transaction strategy requires access to the JTA TransactionManager"

The problem happens in this line "EntityManagerFactory emf = Persistence.createEntityManagerFactory("testJPAEJB3");"

This problems doesn't happen when I use @PersistenceContext.

My persistence.xml



my datasource only have the connection, no more property.

Thank you.
Hi,

Thank you for your answer, but I still trying to do this work.
When I try to insert person with the address, hibernate try to insert 0 in the address'id. And this is not the number of the person's id. If I insert just the person is working normal.

I'll show the pojos and my main.



Thank you,

Frederico
Hi,

I have two tables, Person and Address. The Address has the primary key "id", and this primary key is a foreign key to Person's id.
So I woud like to know how to write in jpa to say that the Address's primary id is a foreign key to Person's id.
I'm using Postgresql.






Thank you
You understood what I need!

Thank you.
[ April 09, 2006: Message edited by: Frederico Benevides ]
17 years ago
I would like to know how I do in java to send to the form the params the values of "username" "password" "__login", for I can get connect?

I want to try to do a program in java, that I will run in the console, and it will connect and update my ip address. But I don't know how to send the params to a form.




Thank you.
17 years ago
Today I passed SCJP with 77%, could be more, but wow it's great since I passed!

Thank for all who answered my doubts. Here is so great!

Thank you.
Frederico.
18 years ago
Wow, is true, how I didn't see that

thank you!