[EJB 3.0] - Re: Ejb3 sources in zipped form
by ALRubinger
"skajotde" wrote : I think it is great that library can be used outside EJB3 and provides model and metatada. But main purposes of this libraries are be part of EJB3 product so I think it should be versioned in one way with one version number for releases of all libraries. So change in library-a should increase version in all libraries ?
I have two arguments.
1) It takes time/resources away from dev to re-release projects with no changes.
2) If there's no difference in the code between 1.0.0 and 1.0.1, what does bumping the version number accomplish? You're labelling a new version, signalling that some change has been made.
It seems like your concerns would be alleviated with another matrix showing all component versions that comprise an EJB3 release?
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204744#4204744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204744
17 years, 2 months
[JBossWS] - DII client for DataHandler webservice?
by mendret
hello folks,
tec Notes:
JBoss 5AS
JBossWS 3.0
i've got the following problem. I have a webservice working with javax.activation.DataHandler. Now I have to write a DII client for it, i already got a client using proxy's but i was told that i have to use dii for the client, now my question is, how can I use DataHandler objects at an dii client?
I've tried a few things but nothing seems to work, my last approach was
| ...
| call.addParameter("arg0", new QName("http://test.org/", "documentPayload"), DataHandler.class, ParameterMode.IN);
| Object[] params = {new DataHandler(new FileDataSource("/tmp/test2.dat"))};
| DataHandler result = (DataHandler)call.invoke(params);
|
but i get this exception:
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to find read method or field for property 'commandMap' in class javax.activation.DataHandler
| at org.jboss.xb.binding.introspection.ClassInfo.getFieldInfo(ClassInfo.java:82)
| at org.jboss.xb.binding.introspection.FieldInfo.getFieldInfo(FieldInfo.java:155)
| at org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.getJavaValue(MarshallerImpl.java:1267)
| ...
|
what am i doing wrong? or better how is it right?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204735#4204735
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204735
17 years, 2 months
[EJB 3.0] - How to mix integer and double in the ejbql
by r_q_d
I have a entity bean like this:
PlayScoreBean
| public class PlayScoreBean implements java.io.Serializable{
| ...
| private Integer rawScore;
| public Integer getRawScore() {
| return rawScore;
| }
|
| public void setRawScore(Integer rawScore) {
| this.rawScore=rawScore;
| }
| }
|
then an ejbql here:
| Double mean=...
| query = entityManager.createQuery(
| "select sum((c.rawScore-:mean)*(c.rawScore-:mean)) "
| + " from PlayScoreBean as c ");
| query.setParameter("mean", mean);
| Double standardDeviation=(Double) query.getSingleResult();
|
the rawScore is an Integer , but I am trying to calculate a double value from it. I got this error:
| [IntegerType] could not bind value '150.14285714285714' to pa
| rameter: 1; java.lang.Double
| [STDERR] java.lang.ClassCastException: java.lang.Double
|
It complains that I cannot bind a double value to integer value.
If I change the rawScore in the entity bean from Integer to Double, then the query works OK, But that is not what I want.
Anybody knows how to mix the integer with double, or is there any number converter functions to call? Anybody can help me to make this work?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204733#4204733
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204733
17 years, 2 months
[JBoss Portal] - PermGen Space exception
by TdeVos09
Hi all,
first our environment: We are using JBoss AS 4.2.3 with the Jboss Portal 2.7.1. and JDK 1.6.0_11.
Excuse me if i picked the wrong thread.
In development we had the following problem. After a couple of deployments and undeployments JBoss is throwing a PermGen Space exception. We found a lot of informations on the web, but nothing was really helpful. The work around (Increase -XX:MaxPermSize up to 512 MB) is not an option, because it is just delaying the issue (The permGen Space will grow anyway). I wrote a little document on what we did and what we think the real issue is all about, but unfortunately I cannot attach it to the post. In the document is discribed that the class loader org.jboss.web.tomcat.service.WebAppClassLoader won't release the loaded classes in the permGen Space as the Portlet is undeployed. Has one of you guys another solution than doing a Jojo or increase the permGen Space as an startup value? Our tests are based on the blog form J. Kieviet http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded.
Thanks in advance
Thorsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204732#4204732
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204732
17 years, 2 months