Rick Bos

Greenhorn
+ Follow
since Feb 27, 2004
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 Rick Bos

Hi.

We are trying to use an Apache Derby database with Message Broker.

When we do a select, we get this message:

[IBM][CLI Driver][Apache Derby] SQLSTATE 01517: A character that could not be converted was replaced with a substitute character. '

The database and Message Broker are running on AIX.

It looks like a codepage problem.

Any assistance would be appreciated.
15 years ago
Hi.

The MySQL driver jar file is in the library for the EJB project.

Note that I followed the same process for the DB2 driver, and it works
correctly when I generate Entity beans from a datasource.

Also if I go to the Runtime tab, I can see the tables on the MySQL database.
I have two questions:

I am using NetBeans 5.5 and am trying to generate Entity Classes from a MySQL database. The database works on the Runtime tab, and I am able to see the tables there. I created a new J2EE project. I try to create entity beans from database on the EJB project. When I choose the data source connected to MySQL, it says Unable to find driver.

I am trying to learn EJB 3.0 using MySQL and an application server ( I have not decided whether to use JBoss or Glassfish ) . Since I am having the above problem with NetBeans, which IDE would you suggest.

Thanks.
Hi.

I am looking for a simple EJB 3 sample using free / open source technologies.

I tried the JBoss TrailBlazer example but have not been able to
get it to work yet.

I am trying to develop an application using JBoss, MySQL and EJB3.

I am familiar with EJB from around 5 years ago, but have not kept up with it. I have also learned Hibernate.

Any suggestions would be appreciated.
Hi.

We use Visio as our standard UML diagram tool.

We use WSAD to develop our Java code. WSAD has a built in tool
that generates UML from the Java code, but it saves them as .dnx files.

I was wondering if there is a way to convert these to Visio diagrams ( .vsd).

If that is not possible, are there any other inexpensive tools to generate Visio diagrams from Java code.
Hi.

From what I understand, Axis and Castor play different roles.

Castor is used to marshall/unmarshall java objects and xml files.

Axis provides an easy way to provide Web Services (SOAP) from existing
Java classes.

Axis shields you from the complexities of SOAP such as the message envelope etc.

I hope that helps.
18 years ago
Hello.

I am trying to learn how to use Optimize It Enterprise Suite 6.0.

I was wondering if anyone knows of any training/books for this product.

Thanks.
18 years ago
Hello.
I have generated a UML diagram in WSAD 5.1.0.
It creates a file with an extension .dnx.
I was wondering if it was possible to open this in Microsoft Visio.
Thanks.
Hello.
Is it possible to open the UML diagram generated in WSAD ( .dnx) in
Microsoft Visio ?
Thanks.
18 years ago
I still am not able to get my Calendar fields into my xml file.
Any suggestions would be appreciated.
Here is what I tried:
GeneralInfoRequest.java
private Calendar reviewDate_;
public Calendar getReviewDate() { return reviewDate_ ; }
public void setReviewDate( Calendar cal ) { reviewDate_ = cal; }
CalendarFieldHandler.java:
public class CalendarFieldHandler extends GeneralizedFieldHandler {
public final DateFormat format = new SimpleDateFormat("yyyy-MM-dd");


public Object convertUponGet(Object value) {
if ( value instanceof Calendar ) {
Calendar cal = (Calendar) value;

return format.format(cal.getTime());
} else {
return value;
}

}

public Object convertUponSet(Object value) {
String dateStr = (String) value;
Object result = null;
try {
Date date = (Date) format.parse(dateStr);
Calendar cal = new GregorianCalendar();
cal.setTime(date);
result = cal;

} catch (ParseException e) {

}
return result;
}
public Class getFieldType() {
return Calendar.class;
}
}
mapping.xml:
<?xml version="1.0" encoding="UTF-8"?>
<mapping xmlns="http://castor.exolab.org/" xmlns:cst="http://castor.exolab.org/">
<description>Castor generated mapping file</description>
<class name="services.types.GeneralInfoRequest" >
<field name="reviewDate" handler="ca.cooperators.tests.xml.mapping.CalendarFieldHandler"
type="java.util.Date" >
</field>
</class>
</mapping>
[ March 02, 2004: Message edited by: Rick Bos ]
Hi.
Could you point me to a document that would explain how to
add java.util.Calendar to the mapping file ?
Ideally I would just like to map it once, as opposed to for each
field.
Thanks again.
Hello.
I am using Castor to unmarshall a Java Bean class to an XML file.
The only fields that are not going to the XML file are the Calendar fields:
private Calendar effectiveDate;
public Calendar getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Calendar aCal ) {
effectiveDate = aCal;
}
These fields are just being ignored.
When I generate the a mapping.xml file it also ignores these fields.
Any suggestions would be appreciated.
Rick Bos
Rick_Bos@cooperators.ca