André-John Mas

Ranch Hand
+ Follow
since Oct 18, 2008
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 André-John Mas

Someone has just told me about CXF ( http://cxf.apache.org/ ), so I will see if this provides me what I am looking for.
11 years ago
I am maintaining an application for a client that uses "Mind Electric Glue" (now known as WebMethods Glue) and because of a few issues I would like to find anyone with access to the code of the "the free unsupported "Standard" version", as it was known back then. I tried looking for this at WebMethods, but it trying to find anything useful to the developer seems to be a lost cause.

Failing that I would be happy to find an equivalent, but current solution. The needs are:
- remote method invocation
- direct connection from client to server (no need of a discovery server)
- Can be Java centric,
- light weight, ie enough for communicating between a client and a server using standard Java
- connection-less, possibly using HTTP, so it can tolerate dropped connections

In the meantime, I am going to look to what extent the java.lang.reflect.Proxy class can serve as a basis.

11 years ago
We would like to store the texts of our resource bundle in a database, to make it easier to update the translations. I have started looking at implementing a web application that would allow the updating of the keys and provide a UI for editing the values. Someone suggested that I should see if there are already some existing solutions for doing just that, but I have not been able to find anything to do this. Does anyone know of any existing solutions, preferably open source, that does what I am wanting?

In short:
- DB stored message texts for localised web pages
- web based editor
- Will want to use with struts2.
When you put it that way, I suppose I could use grep.

What I meant with regards to ActionSupport.getText() is that I over-rided hoping that it would be called with the key.
11 years ago
Not really a solution, since I would still need to need to copy and paste. I am looking for all keys, no just certain ones.

I tried ActionSupport.getText(), but it does not seem to be used in all cases.
11 years ago
I would like to be able to generate a list of localisation keys in my project. Basically I want to be able to add the key to the page and then output to file the keys. Is there any way I could do this? It would mean visiting each page in my project, but I just figured it would be simpler than copy and pasting from each page. I am using the struts 'text' tag in general:

11 years ago
Last time I tried something similar was on a Unix system and I was using VT100 control codes. Doing a quick search turns up this post which may of interest:

http://www.javaworld.com/javaworld/javaqa/2002-12/02-qa-1220-console.html
11 years ago
I am in the process of developing a struts2 based web site, involving a number of different services and the size has become a distraction. Currently it is all presented as one project, but I would like to reduce it into more maintainable components, yet not have any duplicated libraries, to avoid unnecessary memory overhead.

I have considered splitting each part into a separate web application, but that is likely to cause havoc with my session management for logged in users. Another approach I have considered is splitting the project into 'functional areas' and then have a build script that merges them into one project in a staging area.

How have you been able to make a large project easier to face, so that it doesn't feel so daunting? Any ideas would be appreciated.
11 years ago
I am trying to display a box similar to what iCal does for the date entries. An example of the iCal info box can be seen here:

http://blog.raamdev.com/2008/07/16/ical-missing-ampm-option-change-to-24-hour-mode

Not finding a freely available solution already available I decided to make my own. The problem is that I am getting flickering when the mouse is moved over the element I am interested in. Below is the HTML, containing the style and Javascript. Can anyone suggest a solution?



BTW While not included in the example, the 'left-marker-2.png' image is a left facing triangle, with a little more white to the base to avoid seeing the border of the info box. The point is shown over the element.

Edit: img attributes were stripped by posting!? Now fixed.
I have two databases that I need to access from my application. They are both part of the same MySQL instance. While I can connect to the database that I declared in the connection, I am not sure what they best way of accessing the second database is. Can anyone advise me on the best way to do this?
Turns out the issues was with where I was putting my annotations. Moving them to the public getters and setters in both cases cleared up the issue.
I have two tables: user and phone_number. The phone_number id corresponds to the id of the user. A user can have one phone number, and it is optional. I just don't get what I should be doing.

I tried:



What I get is:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'openEntityInView' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: com.realbusinesses.entity.PhoneNumber, at table: user, for columns: [org.hibernate.mapping.Column(phoneNumber)]

Any help would be appreciated. I am pulling my hair out here. It is probably 'obvious', but I am just not seeing it.
In Java I would do this (off the top of my head, as pseudo code ):



I am not sure how I would form the conditions and increment the values using struts2 tags.
12 years ago
I am wanting to display a grid of items in a JSP. The data is returned as a list from the action. For example:


Now, if I was to use Java code I would simply use two for statements, one for the rows and one for the columns. Since I am wanting to avoid Java code in the JSP, I am looking at the using the iterator to do this, but I am not sure how I would go about it. The result should be something like:



Can someone suggest how I would go about this using iterators?
12 years ago
Up until now I have been declaring all my service classes in the applicationContext.xml file and passing the service via the constructor. Doing things this way we could easily perform transactional operations, though it was decided that having a having single service factory that can be passed to the Action classes, would be a useful approach for a number of reasons, and then use that to get the services. I am now at the point where I have written the ServiceFactory, and retrieving services from it. The service factory includes the method:


The value is then delegated to the services. While all this 'works', I now find msyelf in a position where upon trying to a transaction, I get:


There is clearly something I have misunderstood and not doing, though I am not sure what that is. Could anyone help enlighten me?

Just for reference here is my ServiceFactory class: