Velmurugan Periasamy

Ranch Hand
+ Follow
since Nov 09, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Velmurugan Periasamy

Thanks for the information.
20 years ago
We're implementing a typical Struts -> Stateless Session Bean Service Layer -> DAO -> Backend application. Why I called it a service layer is becuase there may be other clients than the web app we're building, might interact with the service layer.

I have a basic question on implementing security and want to know how people generally handle it. Basically how do I design the service layer interface without requiring some form of user identification for each method? Or is that the way the service layer supposed to be designed?
Hope I'm making it clear. Basically if we say any method can be called after the authentication is done, this is ok for the web app (since the users cannot do anything until they login), but doesn't this leave a hole?

The other question is regarding implementing the authentication itself.
Let's say we require that each service layer method should pass a security token as well. What's the general strategy for generating a Security Token when the user is authenticated? Where can this token be cached and where do we put the logic of revalidating the security token?

In the past, we've authenticated the users against LDAP or database and stored the login and other authorization information for the user in the HttpSession. This worked because the web app was the only client which was consuming the services. How do I make this generic across the clients?

Thanks.
20 years ago
I am running with jboss-3.2.1_tomcat-4.1.24 connecting to Oracle 8i.
I have an ear file which contains a jar (with a simple ejb) and a war file.
I use data transfer objects (between the jar and war) and those classes are *only* packaged in the ejb jar.
Everything works fine until I redeploy the ear file.
When I redeploy the ear file, it gives me classcastexception in the dao layer (which populates the transfer object). DAO layer is called from ejb to retrieve the data.
I even tried adding <loader-repository> tag in jboss-app.xml. It doesn't work.
If I restart Jboss it works. But I don't want to do that everytime I redeploy.
Any suggestions?
[ October 03, 2003: Message edited by: Velmurugan Periasamy ]
21 years ago
Thanks Mark.
And congrats to you!
I took the exam on July 7 (the last day) and passed with a score of 95.
Thanks to Kathy and Bert (for the tips, mock questions and explanations), Valentin Cretaz(for the wonderful visuals), Evelyn and to everybody in this forum. Thank you very much.
21 years ago
Thanks for the input.
21 years ago
JSP
Any ideas/suggestions?
21 years ago
JSP
Thanks for the response.
As I mentioned before, order and order item have some common attributes (so they wanted to use the same columns). Also order and order item have similar lifecycles - meaning that from the creation until the fulfillment they need to be tracked. An order item can be tracked individually.
Few other tables can have relationships with both order and order item. This is one more reason given for why they use the same table.
One more thing to mention is that the new requirement says order items can have sub-order items. (but not to infinite levels of depth)
Thanks.
We are migrating a legacy web application to a J2EE solution. The old solution was implemented using frames. It's like this - a frame to display a list, when a particular item is selected, it loads other frames with the details of the item selected. When the details are updated, it triggers a refresh of the list frame. (Lot of inter-frame communication)
We're discussing possible alternatives. I want to find out general/specific advantages/disadvantages of using frames with a Struts/JSP application.
Thanks.
21 years ago
JSP
We are designing the object model for a new system. But we have a legacy data model which stores both orders and order items in the same table. The relationship (between order and order items) is maintained through a self foreign key to the same table. We are discussing possible alternatives to this model.
The developers of the old system say that the problem with storing both orders and order items is the complexity of the SQL code (with self-joins) and maintenance over time.
To the legacy model's defense, order and order items do have some common attributes and similar life-cycles (like an order item could be tracked in its separate workflow [as an order would be tracked]).
I agree it would be cleaner to separate the order item into its own table. But I would like to find about general perspective, suggestions on this issue. Which is better? What are the issues to be considered from the perspective of designing the object model? From the performance perspective?
(Note atabase is Oracle and the new solution is going be J2EE)
Thanks.
Thanks Simon! I really wish something concrete is provided by the specs!
Hello,
Section 24.1.2 of the EJB 2.0 spec states "An
enterprise bean must not use the java.io package to attempt to access files and directories in the file system."
The EJB API does not provide a logging mechanism
similar to the ServletContext.log() methods.
How does one log methods in an EJB (besides
System.out and w/o violating the spec's)?
Thanks.
I have some study notes available on my home page.
http://www.geocities.com/velmurugan_p
This document consolidate various notes (Miftah Khan and Michelle) in a single document and it also contains some cheat sheets. Thanks to Miftah Khan and Michelle.
Hope this is helpful for your SCWCD preparation.
Best wishes.
------------------------------------------------------------------------------------
Velmurugan Periasamy
Sun Certified Java Programmer for Java 2 Platform
Sun Certified Web Component Developer for J2EE platform
Sybase Certified EAServer Developer (similar to jCert level 3)
------------------------------------------------------------------------------------
Study notes for Sun Java Certification
http://www.geocities.com/velmurugan_p/
------------------------------------------------------------------------------------
I have some study notes available on my home page.
http://www.geocities.com/velmurugan_p
This document consolidate various notes (Miftah Khan and Michelle) in a single document and it also contains some cheat sheets. Thanks to Miftah Khan and Michelle.
Hope this is helpful for your SCWCD preparation.
Best wishes.
------------------------------------------------------------------------------------
Velmurugan Periasamy
Sun Certified Java Programmer for Java 2 Platform
Sun Certified Web Component Developer for J2EE platform
Sybase Certified EAServer Developer (similar to jCert level 3)
------------------------------------------------------------------------------------
Study notes for Sun Java Certification
http://www.geocities.com/velmurugan_p/
------------------------------------------------------------------------------------