Levent Gurses

Greenhorn
+ Follow
since Apr 08, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Levent Gurses

Hi,

I need to schedule my JMS topic to run MDBs in certain times of the day. Since the application needs to run in multiple J2EE application servers and the standard JMS javax.jms.MessageProducer does not have a time based delivery method such as WebLogic's weblogic.jms.extensions.WLMessageProducer.setTimeToDeliver(long), it makes the application rely on cron tabs and other system-dependent scheduling tools.

An alternative may be if the MDBs implement J2EE 1.4's javax.ejb.TimedObject, but that's impossible because the app is running J2EE 1.3 and an upgrade is not coming any time soon.

So, I am stuck with this problem. If any of you had to deal with a similar scenario, please let me know.

Thank you in advance.
[ November 22, 2005: Message edited by: Levent Gurses ]
AJAX plays well with others and Struts is no different than any servlet, so you should be OK. The question that I am having is the whole MVC paradigm which is in a way changed by AJAX. You can have multiple AJAX components in the same page and there is very little that these can do to notify each other of their states. So, it is not like Flex where components are aware of their neighbor's states and can change accordingly. In AJAX this kind of behavior will have to be maintained manually, which is not so easy.

Another thing to consider is the notion of user interface state as a whole. AJAX will not help in maintaing this, on the client. You can try to keep in on the server, but then you'll have memory issues.

Lastly, there is the issue of cross-browser JS compatibility. In a recent project we had to spend considerable amount of time making an AJAX app work well in IE and Firefox.
I agree with Ryan that integrating AJAX and Struts is fairly straightforward. Make sure you post to the right action and set the right content type inside the run method of the action. You can have multiple functions in the AJAX JSP, just make sure to pass them to the AJAX action.

Here is one example:


[ December 10, 2005: Message edited by: Levent Gurses ]
Sunitha,

While Hibernate is definitely a good option to research, you should know that it is not the only one. iBATIS for instance is another widely supported framework framework for Java and .NET. iBATIS couples objects with stored procedures or SQL statements using a XML descriptor. What it brings on the table is simplicity. Now, arguably Hibernate is also based on simplicity. So, do the research, run two small prototypes and see for yourself.

On the features side, with iBATIS Data Mapper, you rely on your own objects, XML, and SQL. So, it claims to give you greater power of both SQL and stored procedures for your business logic. Whether you want to put business logic on the data layer is another question that only you can answer.

Sincerely,
Mark, you cracked me I could not say it more precisely! Thank you!!!
20 years ago
Joe,
Congratulations for bringing us an insightful article on a sensitive subject. I specially liked the way you take an open stand and express your ideas in a frank and non-provocative manner. I wish other people get inspired by this article and follow a similar approach.
As a foreign worker on a H1-B status, I could not agree more with you that the H1-B program was designed as a quick patch for a rather large problem. At the heart of this program lied the immeadiate need for trained IT personnel. Times have changed and the program certainly needs a fundamental revision. Especially, since the IT job marked had plunged, there is really little left to the domestic IT workforce, than lobbying the Congress for anti-outsourcing and anti-H-1B legislations. That's understandable. This is not to say that the domestic IT industry backs this type of legislations, though. It's only the couple of IT labor organizations, that make all the noise in Washington, DC. The industry, mainly represented by large corporation such as IBM, Microsoft, Dell, Hp, (http://www.h1bsponsors.com/Top100h1b.html) seems not to care that much. They even look scared, for a protectionist move from the administration may close their "new" window of opportunity. But they also know that this is unlikely to happen. They realize that the steel industry got what they needed - they got their high tarrifs on foreign steel imports. The textile industry is also happy - they are now protection from China. But, in the case of the IT industry, what they want is the total opposite. They do not want to be protected, contrary, they want to be left alone, so they can exapand as far as they can. And they should. If they do not get the relatively cheaper labor from India today, who guarrantees that French, German, Chinese and other competitors will not close that market tomorrow?
In a way, the the IT industry does not want to close a valuable valve of talent hidden in the un-explored fields of Asia, and East Europe.

Cheap labor is like anything else that's cheap: You get what you pay for. But the companies using these services don't see it...yet.


My assumption is that you are not referring to the H-1B visa workers, because as we all know they are far from cheap. In fact they are not even inexpensive.
Numerous reports from the Bureau of Labor statistics, Information Technology Association of America and other independent research organizations indicate that highly educated foreign workers earn more that their American counterparts. For instance a 1995(recent data shows similar paterns) survey by the Center for Immigration Studies in Washington D.C, found that median wages for foreign born math/Computer scientists and skilled labor were higher than for native American counterparts. Because nearly 40% of the foreign born computer professionals hold advanced degrees, compared to 16% of the native American IT workers, the share of the foreign born with high-earnings-more than $75,000 per year- was more than double that of
natives.
Ref: (http://www.epf.org/research/newsletters/1998/eb980917.asp)
Sample wage comparison(again, recent data shows similar patterns) :

Once again I would like to reiterate my heartly admiration for your work, and I would like to see more people discussing this issue.
[ November 24, 2003: Message edited by: Levent Gurses ]
20 years ago
Andy,
You are bringing a good point about the assignment. Sun wants us to design the application in order to demonstrate ability to support multiple client types. I would certainly agree with you, that in your judgement, you might think that a fat client is not necessary. If you justify your opinion with a solid argument, I do not see any reason why Sun should reject it. But there is also the requirements document, that the FBN wants to have a fat client. Also, you do not have the analyst to discuss the issue with. So, in a way it makes sense to play it safe and design for fat client, and in the meantime take the opportunity to think and learn about J2EE applications that serve to multiple client types. I had the same dilemma, but at the end it turned out that just adding the fat client transfomed my design into a more stable and sophisticated one. I hade more fun too.
Hope that helps, and wish you the best in the assignment.
Extending an entity bean will make your application difficult to map to a RDB source and port to other J2EE application servers. IBM's WebSphere AS supports entity bean inheritance, but you must define your hierarchy in a IBM-specific DD file. This makes it impossible to port to a different AS. The RDB mapping on the other hand, is a choice between a denormalized table structure and introduction of a new table.
I would suggest you rethink the idea of generalizing an entity bean. Sun does discourage the use of non-standard features in the implementation of EJBs. Providing a server neutrality is one of their chief goals.
On the other hand, one can find different ways to implement the same functionality without the use of entity bean inheritance. For instance, instead of reuse by subclassing, you can consider reuse by delegation.
I'd begin by asking myself what my real SCEA objective is. Given that I'll be spending considerable amounts of time with the assignment, it would be nice if I have a clear idea about my expectations from this certification.

If you think you can learn while doing the assignment then you should not need exam simulator or cheat sheets. You may need Sun Blueprints, Core J2EE Patterns, SCEA Study Guide and maybe J2EE APIs (Servlet, JSP, EJB), and most importantly time to digest. Yes, one should be ready to spend a lot of time thinking, designing, scrapping, starting all over again...

It is funny how just by using your own knowledge, experience and imagination you can create a much nicer solution that what's inside some of the cheat sheets. One can appreciate this exam only so much because it gives the opportunity to think in terms of original ideas, not blindly following some "smart" guides. In other words, ideas are the currency of this assignment. Sources are only as good as ones ability to scope, twist and apply them skillfuly to their domain.
[ December 13, 2005: Message edited by: Levent Gurses ]
Just found out that JBoss IDE has a code completion feature. That helps a lot. I saw your book on amazon.com but it was still not available. Thanks for the insights. Levent
That's exaclty what I meant! (BTW in my search that day they had 30 jojs). Looks like the moral of the story is that if they hire they prefer certified + experienced. Next comes experienced (no cert). Third is certified only. Forth is no exp, no cert. If they do not hire, hey you can't do much with anything.
So, take it easy
Could you experienced guys explain the differences between these two and typical scenarios where we use them? Thanks in advance...
21 years ago
Here are couple of XDoclet-related things I would like to see in Eclipse:
1. Code layers - a Photoshop-like layers where portions of code can be placed on different layers. When put on a layer the XDoclet code can be formatted and made invisible. The layers can even support images to support UML diagrams in the code[on a different layer].
2. XDoclets to be made tracable - this means that one can Ctrl+Click or F3 a given tag and Eclipse would show the DTD or Schema associated with that tag. It's the same as showing the source of a Java method. That would reduce the learning curve and provide instant helkp on the usage of the tag.
3. Code completion for XDoclet tags
Thanks for the responses.
Congrats!
When exactly did you take the exam? Thanks...
Guys,
Do not worry that much. It's just a darn assignment after all. Get something done as fast as possible and move on. Think about it: Sun wants as many certified people as possible. You have passed the difficult part(Step 1). The odds are that Sun will not fail you just for a minor flaw in the design. So any acceptable design should pass the exam. I would not worry about the number of classes, the level of detail, lack of requirements and such.
Given the fact that the evaluators do not have the opportunity to interview candidates, they will be as generous as possible. So my personal opinion is to scratch something down, document it and move on to normal life. As to whether people know or care about the certifications, go to monster.com and search for "Sun Certified Enterprise Architect". You will see if they do.
Take it easy,
Levent Gurses
Consultant