Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

K Ediz

Greenhorn
+ Follow
since Sep 25, 2009
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 K Ediz

The code example that I gave was a dummy example.In reality, the update statement tries to update a column which is not a POJO attribute, so I cannot use em.merge or em.persist, I need to use a custom jdbc query.

Anyway, I found the solution:

If I use a new Connection from the datasource, then the transaction is not managed by container and the query will use an independant transaction which cannot be attached to the CMP transaction.

So I changed the code a bit like this:



I am not using the JDBC Connection, I use the EntityManager's createNativeQuery method which means that the transaction that it uses for the update query is the one that is managed by the container. (same transaction for the persist operation)

Thanks.

Hi,

I am trying to persist a data by using EntityManager.persist method. I am using EJB 3.0 Stateless Session Facade Bean and its transaction is Container-Managed. (CMP)
After persist operation, within the same ejb method, I am trying to update the data by using a JDBC "Update" query. But the problem is that the data is not updated. The transaction is not committed before the execution of the ejb method finishes, I know that. But even if that's the case, the data should be updated, as I know.

The code is given below:



So when I check the data from the database, the created_by column remains as "H", it is not updated. But when I try to update the data by using the pojo and EntityManager.merge method with the given code below:



The data is updated in the database in the same transaction of persisting.

But I need to use the JDBC query within the ejbMethod.

I have tried "conn.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);" , but it did not work.

I think the transaction that the jdbc connection uses is different than the transaction that the persist operation uses.

How will I resolve this problem? Is there any setting that I need to configure?

Thanks in advance.
The url is correct. The web site is down temporarily, I think. I read that article just two days ago from that web site and actually it does not explain what a component really means and what type of "layers" should be included inside the component diagram.

In my opinion every layer/tier should be shown in the component diagram, not only the business components and ejb layer. Due to that, I will include the JSF related components as well.
Thanks guys,

I also thought that the second way is better, because first way requires lots of components which may make the scorer lose the concentration on the overall architectural design and a component is not a class, it is an item that performs a key functionality within a system and should be pluggable.

I am planning to use FacesServlet in the component diagram as well because the requirements of the component diagram in the assignment indicate that i should include the servlet.

But if I choose the second way, then another problem arises like how I will decide the provided/required interfaces between some specific components. For example between FacesServlet and BackingBeans components.

I've read the other topics related with this and the overall idea is to use "Reflection API" between them. It seems feasible, so agreed by me.

But what about the dependency between JSFPages and FacesServlet component? I don't know the provided/required interfaces between them. Better to show it with dependency arrow without naming the interfaces?

And I will use Transfer Object Design Pattern, but Transfer Objects are used in lots of layers/components like JSFPages, BackingBeans, SessionBeans, DAOs and Persistence. So if I try to show the dependencies between TransferObjects component and the other related components, my diagram will be complicated. Or should I only put dependency to the JSFPages and BackingBeans components because others are just transfering these objects?

Please supporters, continue sharing your thoughts and the others, please make some brainstorming.
Hi all,

i am trying to generate the component diagram for the assignment. But when i read the tutorials and posts, i see that there are two ideas for the definition of a component.

SCEA Study Guide-Mark Cade book gives a component diagram for each package and each component declared is actually a class used within the application, like "XPageForm" , "XController", "XDAO", etc. And the relations between the components are just indicated with dependency arrows, which are not named at all.

But when I read the tutorials, they say that the component should be a pluggable interface and should communicate with the interfaces. With this logic, one component diagram is enough, which contains very abstract components like "JSFPages", "ManagedBeans", "SessionBeans", "DAO", "Persistence", "University Database" and the relations between the components becomes like the generic interfaces given outside in each component.

Which way is the right way for the SCEA assignment?

Please share your thoughts.
Found the answer, no need to reply. thanks.

Prerequisites: Successful completion of the exam in Step 1 (CX-310-052), and submission of the architecture and design project in Step 2 (CX-310-301A).


http://www.sun.com/training/catalog/courses/CX-310-062.xml
Hi,

Is it possible to take Part 3 essay before uploading Part 2 assignment?

Thanks.
Answer from the whizlabs support team:

-------
Dear Kemal,

Thank you for contacting us.

As soon you make the payment,the full version is added into your account.you can login in our website with the mail id and password which you have used while registration.
--------

So, not like Epractizelabs.
I've got the licence key on Saturday, one business-day later than the purchase date. So no problem, that's their policy. But fyi, whizlabs is not doing like that, as soon as you buy the software, you are able to login their software and use it immediately.
Hi,

If I buy Whizlabs Mock exam from their website, will i be able to use it immediately or should I wait for a licence key or anything else for some time like Epractize Labs does?
FYI,

While I was buying the epractize labs training lab for SCEA part 1, I thought that I would start solving the exams just after downloading the product. But that was not the case. I realized that I need to send an email to support team with my key details.

I've purchased the mock exam this morning, and sent the key file to the support team as an email in order to get the licence key.

I needed to get the licence key immediately cause my exam is very soon and i would solve the exams in 2 or 3 days so I've sent email to support team saying it is very urgent. But no reply from them, and I've called the phone numbers mentioned on their web site at least 10 times till now, but no one is answering. I don't know what to do. Are these guys alive, or is it a fake support team?

Kemal.
Hi,

I have the vouchers for SCEA 5.0 and all of the payments were done for all the parts nearly one year ago.

My vouchers will expire at the end of October. And at 28th of September, I will enter to part 1 examination. My question is:

As soon as I leave the exam center, if I pass the exam, can I login to certmanager website and download the assignment immediately or should I wait for some time in order my pass score details to be activated by Sun?

I mean, does their system automatically process my passing score details to certmanager website and enable the assignment download process immediately?

This was the first part of my question. Second part is:

How should I schedule my part 2 assignment & part 3 essay? Will I be able to finish all of them till the end of October according to you? It seems that if I pass the part 1 exam, i will have only one month in order to finish all of them because of my validity of vouchers...

Regards,

Kemal.