Michael A Hoffman

Ranch Hand
+ Follow
since Mar 04, 2009
Michael A likes ...
jQuery Spring Java
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael A Hoffman

I have the following in a SQL string:

[column_name] ||'^'|| [column_name]

Any idea of what ||'^'|| is doing?
While I will disclose that I have some personal stake in on-line training, I would like to see the Book section of the forum expanded to also include on-line training course reviews. Similar to books, there are a growing number of offerings in the market. It would be good to review and highlight courses on topics in a manner that is similar to that of books.
7 years ago
I've posted on my blog regarding my experience with producing on-line training content. The market for producing on-line training courses is rapidly growing and I hope this can help you to understand what it takes to get started.

http://llamaspunk.blogspot.com/2014/04/producing-online-training-course.html

Best Regards,

Michael
e: mike@michaelhoffmaninc.com
I've just published my first course on Pluralsight.com called Building JAX-WS Web Services with Apache CXF:

http://www.pluralsight.com/training/Courses/TableOfContents/building-jax-ws-web-services-apache-cxf

In the course, I dive into the Apache CXF architecture and capabilities through lecture and demonstration. If you are interested, there is a 30-day free trial prior to a subscription requirement.
7 years ago
Remove the double slash before server name. Also, remove the additional colon after network protocol.
7 years ago
Can you check the installed features for Glassfish? By some chance, is it set as JavaEE 5?
7 years ago
Not sure of many people implementing Glassfish ESB. This is purely speculation, but given the announcement last week by Oracle that they would no longer be supporting Glassfish 4 going forward, I would suspect the same to happen with this product.

Its always good to add niche products to your resume in a way that captures how you learned the patterns and can apply to various other ESBs. ESBs are still a niche product in my opinion.
8 years ago
It depends on your requirements. Most shopping cart checkouts are a flow (some support multi-cart, some require more steps, some less steps). If this is the case and the login may be required at more than one step in your flow, you can consider an Interceptor to centralize the logic. Otherwise, you can re-direct them to the login page as part of the shopping cart controller.

Also, some best practice / standard suggestions. I would narrow the scope of your @SessionAttributes annotation to the user form object if that is all you plan to store. I would create another component with the @Service annotation and put the logic for getting the user from the database:



Hopefully you are encrypting your password in the database? If not, highly recommend that you should, especially in a purchasing capability.

Finally, you may want to add a check to see if the user is already in session; otherwise, you are authenticating them every time.
8 years ago
What is the JSP you are trying to resolve to? You may want to use <url-pattern>/*</url-pattern> as well.
8 years ago
Take a look at Spring MVC, part of the Spring Framework. MVC provides a concept of Interceptors (similar to Servlet filters), where you can manage security and session management.

- Link to Spring MVC Interceptor Example: http://www.mkyong.com/spring-mvc/spring-mvc-handler-interceptors-example/
- Authentication management with Interceptors: http://www.sivalabs.in/2011/06/authentication-checking-using-springmvc.html

You can also take a look at Spring Security, which is also based on Interceptors, for securing an application.

The examples on the spring.io site are invaluable, but there are also a LOT of videos on YouTube for each of these frameworks. Let me know if there is anything more specific I can help with.
8 years ago
I don't believe your problem is with JDK 7 as much as an issue with the bean configuration for logInbound:

<bean id="logInbound" class="org.apache.cxf.interceptor.LoggingInInterceptor">
<!--<constructor-arg ref="messageLogger"/>-->
<!--<property name="limit" value="16777216"/>-->
</bean>

I'm not an AOP expert, but a few posts on the web refer to changing to a newer dependency for the AOP provider, such as AspectJ. Try that for starters.
8 years ago
Can you please post your config (WEB-INF/applicationContext-rclWebservices.xml).

I'm curious why you chose 2.5.3 to upgrade to?
8 years ago
To borrow from Object-Oriented Modeling and Design by Rumbaugh, Blaha, Premerlani, Eddy and Lorensen:

"Superficially the term 'object-oriented' means that we organize software as a collection of discrete objects that incorporate both data structure and behavior... There is some dispute about exactly what characteristics are required by an object-oriented approach, but they generally include four aspects: identity, classification, polymorphism and inheritance."

That said, most people don't measure how OO their code is. They measure other things, such as how maintainable the code is, how flexible the code is to changes, how easy the code is to test, how easy the code is to read, etc. With these in mind:

- Are you using design patterns and using them as intended? Design patterns are powerful and proven and can help achieve code that is built in a manner that extends the life of the software.
- The test-driven development community has done a good job of preaching, "if your code is hard to test, you are probably writing bad code." I agree with this in principle. There is, of course, a lot more involved in this message, much of which guides OO principles. Modeling smaller components, loose coupling, clear behavior naming, etc.
- Are you programming to interfaces?

I suggest reading Freeman and Pryce's book Growing Object-Oriented Software Guided by Tests, http://www.amazon.com/Growing-Object-Oriented-Software-Guided-Tests/dp/0321503627
8 years ago
Yes, good point. Spring is based heavily on design patterns. If you have not read and know the GoF patterns, as well as many of the patterns from Martin Fowler, its recommended as well before starting Spring.
8 years ago
Everyone learns differently, but I prefer to grab sample code and debug away. Spring's samples can be found here:

http://www.springsource.org/samples

As Bear mentioned, you don't need much of the JEE spec for what you will likely be doing.

First, you should understand how Spring does dependency injection. Its fundamental to Spring.

Once you understand it, as Bear mentioned, focus on SpringMVC. Again, the samples should help.

As you go along, feel free to ask more specific questions to get you through.
8 years ago