Fred Victa

Ranch Hand
+ Follow
since May 01, 2008
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
4
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 Fred Victa

I have a file that has this filename: someText-2020-01-29.zip
The "2020" in the filename is the year. The "01" in the filename is the month and the "29" in the filename is the day.

How can I divide that filename into substrings using a bash shell script? I would like to extract the year, month, and day from the filename and set them equal to different variables.

I have several different files in a folder and some of those files are zip files. How can I write a bash shell script that can find out whether or not the files in my folder are zip files?
3 months ago

Al Hobbs wrote:Spring does have support for ibatis/mybatis.    It isn't jpa but it does handle object mapping.



Thank you for answering my question.
10 months ago

Tim Holloway wrote:I have been using Spring Framework with JavaServer Faces successfully for years. It integrates very nicely, thanks to a bridge that allows Spring Objects to be seen like they're JSF objects. My primary use for Spring has been with Spring Data/JPA where I use Spring to interact with Hibernate JPA or Apache OpenJPA. However, I've used other components such as Spring's scheduler, email interface and many more.

I think just about any web framework that does backend processing can benefit from Spring. And of course, non-web applications as well. For example, I've written off-line database utilities that use Spring JPA. Spring JPA automatically handles a lot of grunt work that brute-force JPA would require you to (correctly!) code over and over again. I think that I've even used Spring to help handle ReST services, although it's been long enough that I forget details. And I've used Spring Data's Neo4J for a node-based DBMS project.

I also think that there may be an iBatis implementation of Spring JPA or at least Spring Data. I've never worked with iBatis, although I did work with JDO before JPA became the ORM standard. And my impression is that iBatis is both JPA-like and has Spring support. But check their docs before believing me



Thank you for answering my questions.
10 months ago

Matthew Keller wrote:Q: What view technology can be used with the Spring framework besides JSP?
A:  JSP if you want to return HTML.  Jackon for REST JSON (restful services).  There are also libraries for XML, but I am unfamiliar with them.

Q: Does the Spring framework allow the use of making calls to stored procedures through MyBatis?
A: You can use raw JDBC or use the connection pool of your container (example JNDI) to call stored procs.  They are just database calls.  I have no experience with MyBatis.  I do recommend avoiding Hibernate because it abstracts database transactions in what in my opinion is a bad way.  If you like to bring your database down because of unreleased connections use Hibernate, ha ha.

Q: Which servers can Spring applications be deployed on? Can they be deployed on Resin or WebSphere?
Any J2EE container.  WebSphere and Weblogic would be overkill because you don't need EJB's if you have Spring.  Tomcat and derivatives like Jboss are good.  I really like Tomcat.  It's solid and simple.  If you don't need anything more then that is my choice.  My favorite fully stacked J2EE container is Weblogic.  WebSphere is the worst J2EE container I have dealt with, especially since it doesn't support autodeploy by simple class file update in an expanded jar.  Websphere is supposedly integrated with Irad, but they both seem to be really unstable when used together for development.



Thank you for answering my questions.
10 months ago

Claude Moore wrote:1.Spring is essentially a backend technology, so you can design your UI using the framework you prefer. Most of times, you will expose some REST aoi to a modern web frontend.
2.Yes, you can use mybatis with spring, provided that you are running a supported configuration (spring 5, mybatys 2, JDK 8).Have a look at Mybatis web site for further details.
3.Yes, you can deploy a Spring project in a Websphere ( or other appserver) instance,  but it's not a solution I have personally seen many times. More often I've seen spring deployed in a lightweight web container like tomcat (with spring) , or very often as standalone application with an embedded tomcat instance (spring boot).



Thank you for answering my questions.
10 months ago
I'm learning about Spring Boot on my own. I'm a developer, but I don't use it at work. I'm developing some Spring Boot applications at home and I'm running them on my local machine.

In the workplace, where are Spring Boot applications developed and how are they deployed?

What are some examples of challenging Spring Boot applications that I can develop on my own?

If I apply for a job that requires Spring Boot experience, do I have to say that my experience with Spring Boot comes from outside of work?
10 months ago
Is it more preferable to use a PreparedStatement object for sending SQL statements to the database or making calls to stored procedures through MyBatis? Under which conditions would one be more preferable than the other?
11 months ago
What view technology can be used with the Spring framework besides JSP?

Does the Spring framework allow the use of making calls to stored procedures through MyBatis?

Which servers can Spring applications be deployed on? Can they be deployed on Resin or WebSphere?
11 months ago

Giovanni Montano wrote:

Fred Victa wrote:I have been a Java developer for over eleven years and I work for a consulting firm that sends its employees to work for different clients. The length of time that an employee is contracted with a client varies considerably. My contract with one client ended and I'm looking for a new client. If I cannot find work as a developer, what do you think about getting a business analyst role or a position in QA? I wouldn't mind working in those roles if I could not find a developer position. What would clients think of those who switch to a business analyst or QA role from a development role and then back again to a development role?



I would like to ask three questions
1) Do you know scala and kotlin? Do you work always with the same frameworks? Do you like coding or you are bored because you do not learn new things?
2) A java developer with 11 years of experience can find a job, expecially with your CV, can I ask you where do you live and what is the reason you are afraid to not find another job?
3)If you like analysis become a Machine Learning Engineer, you can cover a lot of new topics, did you think about, or do you want something different than coding?



I'm still employed with my company, but I need to find another client to work with. My company gets contracts with different clients.

I have heard of scala and kotlin, but I have not learned them. I have used different frameworks and I like coding.

I live in the San Francisco Bay Area. I was thinking of what to do just in case I don't find another developer position.

I'm open to trying something else besides coding.
11 months ago
I have been a Java developer for over eleven years and I work for a consulting firm that sends its employees to work for different clients. The length of time that an employee is contracted with a client varies considerably. My contract with one client ended and I'm looking for a new client. If I cannot find work as a developer, what do you think about getting a business analyst role or a position in QA? I wouldn't mind working in those roles if I could not find a developer position. What would clients think of those who switch to a business analyst or QA role from a development role and then back again to a development role?
11 months ago
Suppose there is a String array called "myStringArray" and it is passed to a method called "myTestMethod".

Suppose this String array has the following values:
myStringArray[0] = "Arial;Arial;Greetings";
myStringArray[1] = "<strong>My name is John Doe</strong>";

I would like to set the String array called "text" equal to the values of the String array "myStringArray", but I don't want the String array "text" to have the font names and the xml tags.
In other words, I would like "text" to have these values:
text[0] = "Greetings";
text[1] = "My name is John Doe";

How can I do this? Below is the code I have written so far.

1 year ago
I'm trying to create an aspect, but I keep getting an error saying that an interface is required.

Here is my code:
aspect TimeZoneConversionAspect
{

}

I've also tried the following code and I got the same error. What could be going wrong?
public aspect TimeZoneConversionAspect
{

}
1 year ago

Rob Spoor wrote:What do you need to do with these properties?



If they are of type Date or Calendar and they are not null, then convert the timestamp to UTC.

The properties are private.
1 year ago

Ron McLeod wrote:You can use reflection to inspect the fields for their type:



Thank you.

Suppose the properties are private. If the field is of type Date or Calendar and it is not null, how can I convert the timestamp to UTC?
1 year ago

Ron McLeod wrote:Do you want to know what type of object was passed to your method?



I was thinking of having a method that takes an argument of type Object. Then, I would like to find out whether that object has any properties of type Date or Calendar. For example, if a Car object were passed to the method, I would like to find out if the Car object has any properties of type Date or Calendar. If a Person object were passed to the method, I would like to find out if the Person object has any properties of type Date or Calendar.
1 year ago