[jboss-user] [JBoss Messaging] - Re: Messages stucking in JBM_MSG (JBoss Messaging 1.4.0.SP3)

2008-12-16 Thread fheldt
You were right and i was totally blind :-(

The Messages were in the DLQ. I wrote a little program that pulled them out of 
the DLQ and just resend them, as you suggested.

Many thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4196844#4196844

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4196844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Messages stucking in JBM_MSG (JBoss Messaging 1.4.0.SP3)

2008-12-15 Thread fheldt
We are using JBoss Messaging 1.4.0.SP3 and ran into a problem. A MDB failed 
while consuming a message (throwing an Exception).

So now i have a bunch of messages stucking in jbm_msg. How can i tell JBoss 
that it can redeliver these immediately (now that i've fixed the problem in the 
MDB)?

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4196507#4196507

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4196507
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: charset problem with jbossws 2.0.2 and .net clients

2008-01-08 Thread fheldt
Well that's a good question and i have no answer...

See also: http://jira.jboss.org/jira/browse/JBWS-1716

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117923#4117923

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117923
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: charset problem with jbossws 2.0.2 and .net clients

2008-01-07 Thread fheldt
Start JBoss with JAVA_OPTS=-Dfile.encoding=UTF-8, that should fix it.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117547#4117547

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117547
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Question about webservice returning array with nillable=

2007-11-28 Thread fheldt
I changed the wsdl by hand and it works now, but i also investigated this topic 
a little further. No matter what i change the return type to, JBossWS always 
generates the same result (and that's a bug imho):


  | @WebMethod
  | public Integer[] GetSteps(String ugid) {
  | ...
  | }
  | 
  | or
  | 
  | @WebMethod
  | public int[] GetSteps(String ugid) {
  | ...
  | }
  | 

give both


  | ...
  |   xs:schema targetNamespace=http://jaxb.dev.java.net/array; version=1.0 
xmlns:xs=http://www.w3.org/2001/XMLSchema;
  |xs:complexType final=#all name=intArray
  | xs:sequence
  |  xs:element maxOccurs=unbounded minOccurs=0 name=item 
nillable=true type=xs:int/
  | /xs:sequence
  |/xs:complexType
  |   /xs:schema
  | ...
  |   message name=QMWebService_GetStepsResponse
  | part name=return type=ns1:intArray
  | /part
  |   /message
  | 

in the int[] case i would suppose nillable=false, else nillable=true, right?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108575#4108575

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108575
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Question about webservice returning array with nillable=fals

2007-11-21 Thread fheldt
I've got a problem with a webservice and no idea how to solve this. Maybe 
someone can give me a hint:

Java Webservice snippet:


  | @WebMethod
  | public Integer[] GetSteps(String ugid) {
  |   Session session = (Session) em.getDelegate();
  |   List? list = session.createSQLQuery(SELECT QVZAHL FROM MQVAL WHERE 
QVUGRP=:ugid AND QVSTAT'*')
  | .addScalar(QVZAHL, Hibernate.INTEGER)
  | .setString(ugid, ugid)
  | .list();
  |   return list.toArray(new Integer[list.size()]);
  | }
  | 

Now i want to use this in a C# .NET project, it generates this 

  | public System.Nullableint[] GetSteps(string arg0) {
  |   object[] results = this.Invoke(GetSteps, new object[] {arg0});
  |   return ((System.Nullableint[])(results[0]));
  | }
  | 

As you see, it generates a function returning an array of nullable ints.

The question is: how can i change the Java webservice so that the elemnets of 
the array are nillable=false. Is there any annotation to do this?

Thanks in advance for any help.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106634#4106634

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106634
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - question about @ManyToOne and @Where

2007-11-21 Thread fheldt
I've got a nasty problem and no idea how to solve this.

First: This is a legacy database, which i cannot change :-(

I have 2 entities Drvor and Vdrau both with the same compound key. Vdrau 
contains additional information, but only if the column DVABNR is 1500

With this solution it works (i had to add the @NotFound annotation, see below), 
but not optimal. It generates a seperate sql call for every row that has no 
data in Vdrau.

I looked at the @WhereJoinTable annotation, but it doesn't work with @MayToOne 
:-(


  | @Entity
  | public class Drvor implements Serializable {
  |   @EmbeddedId
  |   private DrvorPK pk = new DrvorPK();
  | 
  |  @ManyToOne(fetch = FetchType.LAZY)
  |  @Fetch(FetchMode.JOIN)
  |  @JoinColumns({
  | @JoinColumn(name=DVAUN1, insertable=false, updatable=false),
  | @JoinColumn(name=DVAUN2, insertable=false, updatable=false),
  | @JoinColumn(name=DVAUJJ, insertable=false, updatable=false),
  | @JoinColumn(name=DVABNR, insertable=false, updatable=false)
  |   })
  |   @NotFound(action=NotFoundAction.IGNORE)
  |   public Vdrau vdrau;
  |   ...
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4106639#4106639

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106639
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMS Bridge Question

2007-09-04 Thread fheldt
I tested the JBossMessaging Bridge (with 1.4.0.CR2) successfully here. I think 
you made a mistake on the configuration of the remote queue. Here's my 
remoteserver-jms-ds.xml


  | ?xml version=1.0 encoding=UTF-8?
  | server
  |   mbean code=org.jboss.jms.jndi.JMSProviderLoader 
name=jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider
  | attribute name=ProviderNameRemoteJMSProvider/attribute
  | attribute 
name=ProviderAdapterClassorg.jboss.jms.jndi.JNDIProviderAdapter/attribute
  | attribute name=FactoryRef/XAConnectionFactory/attribute
  | attribute name=QueueFactoryRef/XAConnectionFactory/attribute
  | attribute name=TopicFactoryRef/XAConnectionFactory/attribute
  | attribute name=Properties
  |java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |java.naming.provider.url=remoteservername:1099
  | /attribute
  |   /mbean
  | /server
  | 

First check that it's /XAConnectionFactory not XAConnectionFactory.

Second, you have to give the address of the remote jndi under 
java.naming.provider.url, e.g. 192.168.xxx.xxx or server.domain.org

I hope this helps...


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4080955#4080955

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080955
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: BASIC Authentication with jbossws-2.0.0.GA

2007-08-03 Thread fheldt
Here are the relevant lines from the log (i enabled trace for 
org.jboss.security.auth.spi):


  | 2007-08-03 15:08:18,623 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] initialize, [EMAIL 
PROTECTED]
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Security domain: 
dhcRealm
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] 
DatabaseServerLoginModule, dsJndiName=java:/DHCDS
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] principalsQuery=SELECT 
user_pass FROM Users WHERE UserID=? AND Expires=CURRENT_DATE
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] rolesQuery=SELECT 
Role,'' AS RoleGroup FROM Roles R,Users U,Users_Roles_Link UR WHERE U.UserID=? 
AND U.Id=UR.UserID AND R.Id=UR.RoleId
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] suspendResume=true
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] login
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Authenticating as 
unauthenticatedIdentity=null
  | 2007-08-03 15:08:18,624 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] suspendAnyTransaction
  | 2007-08-03 15:08:18,625 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Excuting query: SELECT 
user_pass FROM Users WHERE UserID=? AND Expires=CURRENT_DATE, with username: 
null
  | 2007-08-03 15:08:18,626 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] Query returned no 
matches from db
  | 2007-08-03 15:08:18,626 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] resumeAnyTransaction
  | 2007-08-03 15:08:18,626 TRACE 
[org.jboss.security.auth.spi.DatabaseServerLoginModule] abort
  | 2007-08-03 15:08:18,626 ERROR 
[org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
  | javax.ejb.EJBAccessException: Authentication failure
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.handleGeneralSecurityException(Ejb3AuthenticationInterceptor.java:68)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:70)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:98)
  | at 
org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:206)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:396)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:260)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:177)
  | at 
org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:110)
  | at 
org.jboss.wsf.spi.invocation.EndpointServlet.service(EndpointServlet.java:72)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 

[jboss-user] [JBossWS] - Re: BASIC Authentication with jbossws-2.0.0.GA

2007-08-03 Thread fheldt
I used jboss-4.2.1.GA (which includes jbossws-1.2.1.GA) only tweaked for .NET 
Webservices (restrictedUserAgents=^.*MS Web Services Client Protocol .*$ n 
jboss-web.deployer/server.xml). Everything works lik charm here.

Then i installed jbossws-2.0.0.GA. The log file showed no problems, but i 
couldn't authenticate to the webservice any longer. A SLSB webservice without 
authenticaton works without a problem.

The client is a simple C# .NET 2.0 program.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070540#4070540

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070540
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - BASIC Authentication with jbossws-2.0.0.GA

2007-07-31 Thread fheldt
I had some time to spend and did a short test of jbossws-2.0.0.GA (under 
jboss-4.2.1.GA). Most Webservices worked like under jbossws-1.2.0, but then i 
found a big problem. A secured SLSB that worked without a problem with a .NET 
2.0 Client stopped working :-(

I always get Authentification failed under jbosss-2.0.0.GA.


  | @Stateless
  | @WebService
  | @SOAPBinding(
  | style=SOAPBinding.Style.RPC,
  | use=SOAPBinding.Use.LITERAL
  | )
  | @SecurityDomain(myRealm)
  | @RolesAllowed({Admin, Operator, User})
  | @WebContext(authMethod=BASIC, transportGuarantee=NONE, 
secureWSDLAccess=false)
  | public class WebServiceEJB implements WebServiceIf
  | {
  | ...
  | }
  | 

Any hints what has changed here?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069198#4069198

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069198
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: JbossWS 1.2.1 and .Net 2.0 client

2007-04-24 Thread fheldt
I have the same problem!

I have a webservice that receives a class (fillled from a .NET 2.0 client) 
which contains some double values. Since 1.2.1 the EJB (JSR-181) receives null 
values for these doubles.

I'm currently trying to encircle the error, but at the moment i have no idea 
what is happening here...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4040189#4040189

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040189
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Mapping String attribute in EntityBean to CHAR(size) in

2007-03-26 Thread fheldt
I fixed this behavior with a simple UserType. Just annotate


  | import org.hibernate.annotations.Type;
  | ...
  | @Column(name = XYZ)
  | @Type(type = usertype.TrimmedStringType)
  | private String xyz;
  | 

The TrimmedStringType source is like this:

  | package usertype;
  | 
  | import java.io.Serializable;
  | import java.sql.PreparedStatement;
  | import java.sql.ResultSet;
  | import java.sql.SQLException;
  | import java.sql.Types;
  | 
  | import org.hibernate.HibernateException;
  | import org.hibernate.usertype.UserType;
  | 
  | 
  | public class TrimmedStringType implements UserType {
  | 
  | private static final int[] SQL_TYPES = { Types.CHAR };
  | 
  | public int[] sqlTypes() {
  | return SQL_TYPES;
  | }
  | 
  | public Class returnedClass() {
  | return String.class;
  | }
  | 
  | public Object assemble(Serializable cached, Object owner) throws 
HibernateException {
  | return cached;
  | }
  | 
  | public Object deepCopy(Object obj) throws HibernateException {
  | if (obj == null) {
  | return null;
  | }
  | return new String((String) obj);
  | }
  | 
  | public Serializable disassemble(Object value) throws HibernateException 
{
  | return (Serializable) value;
  | }
  | 
  | public boolean equals(Object x, Object y) throws HibernateException {
  | return (x == y) || (x != null  y != null  (x.equals(y)));
  | }
  | 
  | public int hashCode(Object x) throws HibernateException {
  | return x.hashCode();
  | }
  | 
  | public boolean isMutable() {
  | return false;
  | }
  | 
  | public Object nullSafeGet(ResultSet rs, String[] names, Object obj) 
throws HibernateException, SQLException {
  | String val = rs.getString(names[0]);
  | return val != null ? val.trim() : null;
  | }
  | 
  | public void nullSafeSet(PreparedStatement pstmt, Object obj, int i) 
throws HibernateException, SQLException {
  | pstmt.setString(i, (String)obj);
  | }
  | 
  | public Object replace(Object original, Object target, Object owner)  
throws HibernateException {
  | return original;
  | }
  | }
  | 

I hope this helps.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4031512#4031512

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4031512
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Issue with dotNet client and Credentials

2007-03-19 Thread fheldt
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWSAndDotNet should answer this...


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4029234#4029234

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4029234
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Encoding problem in jbossws-1.2.0

2007-03-08 Thread fheldt
Bingo !

This solved the problem, so many thanks for your tip :-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4026194#4026194

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4026194
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Encoding problem in jbossws-1.2.0

2007-03-06 Thread fheldt
Hi folks,

i gave jboss-2.4.0.CR1 with jbossws-1.2.0 a try and it started without any 
problems. Then i build a simple Webservice SB


  | @Remote
  | public interface HelloWS
  | {
  | public String hello(String s);
  | }
  | 


  | @Stateless
  | @WebService(
  | name=Hello,
  | serviceName=HelloService
  | )
  | @SOAPBinding(
  | style=SOAPBinding.Style.RPC,
  | use=SOAPBinding.Use.LITERAL
  | )
  | public class HelloEJB implements HelloWS
  | {
  | @WebMethod
  | public String hello(@WebParam(name=name) String s) {
  | return Hallöchen  + s;
  | }
  | }
  | 

After deploying (The WSDL looks fine under 
http://127.0.0.1:8080/HelloService/HelloEJB?wsdl), i can call the hello method 
from eg a .NET client or the Web Services Explorer in eclipse and get the 
following result:

  | calling hello(Müller):
  | 
  | return (string):  Hallöchen Müller  
  | 

As you can see, there's a problem with utf-8 encoding.

Did i miss something or is this a known problem?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025432#4025432

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025432

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - jbossws-1.2.0.CR3 generates lowercase classnames?

2007-02-20 Thread fheldt
Is it intended behaviour, that jbossws-1.2.0.CR3 generates lowercase classnames?

Here's a little excerpt from the log file:

  | [complexType={http://dhc.com/}colorVariant,javaType=com.dhc.ColorVariant]
  |   [complexType={http://dhc.com/}colorGroup,javaType=com.dhc.ColorGroup]
  | 

As you can see, from e.g. ColorVariant it generates colorVariant in the 
resulting wsdl. That wasn't so in jbossws 1.0.4.GA and earlier.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019275#4019275

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019275
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Using entities with collections?

2006-07-31 Thread fheldt
Here's what i did: The entity bean is field mapped and the getters/setters 
convert between Collection and Array.

A sample:


  | public class MyEntityBean implements java.io.Serializable {
  | @Id
  | @Column(name=id)
  | private int id;
  | ...
  | @OneToMany(mappedBy = abc)
  | private SetColumnHeader colHeaders;
  | ...
  | public ColumnHeader[] getColumns() {
  | return this.colHeaders.toArray(new ColumnHeader[ 
this.colHeaders.size() ]);
  | }
  | public void setColumns(ColumnHeader[] colHeaders) {
  | this.colHeaders.clear();
  | for (int i = 0; i  colHeaders.length; i++) {
  | this.colHeaders.add(colHeaders[ i ]);
  | }
  | }
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3961781#3961781

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3961781
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user