Tony Bateman

Ranch Hand
+ Follow
since Mar 21, 2005
Merit badge: grant badges
For More
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 Tony Bateman

6 years ago; did you really need to be so acerbic? Have you grown as a person in that time?
I have managed to create a message with an XML DOM payload, but I want to transform that to s String so I can write it to a file in XML format.

I'm sure there must be a simple way to do this, but I can't figure out how to configure a transform bean to do it.

Could somebody help?
9 years ago
So as I start to become more aware of the capabilities of Spring Integration, I have to ask what I am sure is a fundamental question: how can I invoke the sending of a message without touching the business logic of a POJO at all?

Seems to me one way to do it is to use AOP and intercept a message call, sending out the message from that interception (excuse if the terminology is not quite right at the moment - a lot to learn).

Is that a reasonable way to do it?
9 years ago
I've been working for years with the SAP integration hub PI; this has good message monitoring tools for searching messages, checking the status, viewing the payload, reprocessing.

I'm exploring the Spring Integration framework, and was wondering if there is an off the shelf solution available to do the same, rather than re-invent the wheel.

Is anybody aware of such a solution? Sort of thing I'm looking for is in an attached screenshots.
9 years ago
OK, I'll try here for a start thanks!
9 years ago
Does anybody know if there is a forum anywhere alive and kicking that discusses Spring Integration issues specifically? I checked the forum at http://forum.spring.io/forum/spring-projects/integration, but it is closed for posting.

I'm new to Spring Integration and would like to find a forum that caters for newcomers.

BR,

Tony.
9 years ago
Hi,

I'm using "Java How to Program" by Dietel and Dietel. Plenty of exercises at the end of each chapter.

BR,

Tony.
9 years ago
I have been going through a Java text book, and am currently wrestling with Threads (apt metaphor since I'm getting tied up in knots).

I'm trying to understand the relationship between them and what is really happening at runtime. I have a few questions.

Consider this code snippet:



1) Why does the await() method have to be in a while{} loop? Is the while loop actually running all the time in the thread, constantly invoking the await() method??
2) Isn't it enough that await() is invoked once? (that is assuming the loop is running all the time).
3) How can a ReentrantLock be locked, and yet released by the await() statement, and yet still be locked?

As you can see, this is not at all clear to me.

Could anybody help me understand this?

Also, does anybody have any good material that shows what is happening with Threads, locks and conditions in a graphical manner, in a way that could help consolidate my understanding of this subject?

Much appreciated!

- Tony.
9 years ago
I've been a programmer for many years using SAPs ABAP language. I've been dabbling with learning Java for a few years, mostly in hobby mode, but I'm totally overwhelmed; the area is SO big, I don't know where to start after the basics, and more importantly, where to go after the basics have been somewhat mastered.

There are so many different areas to study. Things that I'd like to know:

- Good Java fundamentals (understand the classes available, best way to use them)
- Java Enterprise Service Beans
- REST services built in Java
- JAXP
- JSP
- JSF

I'm so totally overwhelmed, I don't know how to proceed! I currently have a copy of Java™: How to Program, Ninth Edition by Paul Deitel, which is within my comfort zone. I dabbled with the Head Start series (patterns, JSP and Java books a few years ago then dropped them. I guess they were entertaining but somehow not suitable for my learning style).

I'm familiar with OO concepts and use them in ABAP, so not inexperienced with the OO paradigm.

I had a list of fundamental questions, but then I realised that a list adds complexity to an answer, so I cut it down to one question:

- How can I develop an effective learning roadmap to cover the areas above?

I consider myself to be a person of reasonable intelligence, but not exceptional, and enjoy learning, but I just cannot seem to figure out a way to proceed without feeling totally overwhelmed! Every time I read a book above basic Java level, I realise there is an interconnectedness of knowledge that supports the subject I am trying to learn that I don't have sufficient breadth and depth of knowledge yet. For instance, I had a look at the book "RESTful Java with JAX-RS 2.0, 2nd Edition", and the target audience was suggested to be fluent with writing java EE applications. I'm not. So what to do? Learn Java EE I suppose. But how? What's the best resource? And what knowledge and skills does that rely on? Where's my map?

Can somebody please suggest a way to untangle this morass of interconnected knowledge and suggest a way I could structure my learning to achieve my objectives? I'm good at problem solving, bad at figuring out a roadmap to acquire the knowledge needed.

Has anybody else ever been in a similar situation? I'd love to hear from you! I need moral support and advice.

Help!!
9 years ago
So, to summarise:

1) Use a class as a data storage element,
2) Use setters and getters to ensure he data is consistent and hidden from the outside world.

Is that correct? is there anything else that could be relevant best practice?
10 years ago
Structures and data are declared like this:

TYPES: BEGIN OF struct,
number_1 TYPE i,
number_2 TYPE p DECIMALS 2,
END OF struct.

DATA: wa_struct TYPE struct,
number LIKE wa_struct-number_2,
date LIKE sy-datum,
time TYPE t,
text TYPE string,
company TYPE s_carr_id.

The data is accessed in a program by referring to it directly. For example if I wanted the value stored in the date field, I would reference it by writing wa_struct-date. The data structures are comparable to classes without any methods I guess.
10 years ago
I come from the SAP ABAP world where it is easy to construct simple but deep nested structures of data. What is the best way to do the equivalent in Java? Is there a way to define pure data structures without any methods? Or am I going to be told that is bad practice because the data should always be verified by getter and setter methods?

ABAP is probably not a good language to learn programming with; it is an old language that has been constantly upgraded but lends itself to potentially poor practices.

Any help appreciated.
10 years ago
Hi,
Thanks, I followed the threads and understand a bit more now. Problem is, I don't seem to have a copy of appserv-rt.jar on my system. I assume it should have come with the J2EE server download.

Any idea why that .jar is missing?

Kind Regards,

Tony.
I have just managed to successfully deploy my first bean on my local server, which was the example in the "Head First EJB" book.

I am trying to create a client application that uses this been (as in the book), but I am trying to use Eclipse to do so.

Whenever I run my client code, I get a NoInitialContextException after these lines:


Could anybody help me with this? Apologies if this is the inappropriate forum to post such a basic question.

Kind Regards,

Tony.
I tried to install the Tomcat 4.x patch for JSP debugging from Sysdeo (I know it says 4.x and I have 5.5 but it was the only patch I could find) but it caused the servlet code to crash when a forward method was invoked to call a JSP page. Removing the files fixed the problem.

Is there anybody who is successfully debugging using the configuration that I have? If so could they please tell me how they are doing it?

Kind regards,

Tony.