[jboss-user] [Persistence] - Re: Problem by loading huge data to the MSSQL Database

2009-09-27 Thread lafr
You get an transaction timeout after the default duration of 5 minutes.
You can change the default value of the transaction manger by changing the xml 
config file or you can specify other timeouts by using the following annotation:
@TransactionTimeout(value = 3600).

You'll have to define this at the business method which starts the transaction 
implicitly.


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

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


[jboss-user] [Persistence] - Re: @Column atttributes name and length does not work in JBo

2009-09-11 Thread lafr
As far as I know mixing the location of annotations within one class is not 
supported.
Either put them on the fields or on the getters, but not one here and one there.

But I doubt that you get a char 255 column for an integer property.


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

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


[jboss-user] [JBossWS] - Re: NotSerializableException: org.jboss.ws.core.soap.SOAPFau

2009-06-11 Thread lafr
I downloaded jbossws-3.0.1-native-2.0.4.GA-src
and modified src/main/java/org/jboss/ws/core/soap/SOAPFaultElementImpl.java
and
src/main/java/org/jboss/ws/core/soap/SOAPFaultImpl.java
adding an implements java.io.Serializable to their class definition.
This helped me to avoid the NotSerializableException.

In the scenario the problem problem occurred, there are three apps involved.
The MS Axapta system as the WS-provider.
An EAR / EJB3 app as the WS-consumer.
And an standalone java app as the driver of this (unit test) calling the EJB3 
session beans via their remote interface.

The WS provider gets an exception and send this to WS consumer using a 
SOAPFault.
The WS consumer does not catch the exception, so it has to be transferred to 
the client.
And as this is a remote client the SOAPFault has to serialized.
And there the Exception occurred while trying to send the SOAPFault from 
JBoss-Server to the standalone client app using serialization.


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

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


[jboss-user] [JBossWS] - Re: Call WebService in EJB 3.0 (Differences to EJB 2.1)

2009-06-11 Thread lafr
You did not mention the JBoss version you are using.
We are using JBoss-4.2.4GA including jbossws-3.0.1-native-2.0.4.GA.

You can find out the service URIs by looking at 
http://Nebelos-C2Q:18080/jbossws/.

You can define the name of the service:
@WebService(serviceName = WebServiceController)

The naming of parameters using @WebParam(name=...) works for us.
This might have to do with the JBoss/JBoss-WS version you're using 

P.S.: are you working for Cursor Software AG in Germany?


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

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


[jboss-user] [Performance Tuning] - Re: Server very slow

2009-06-11 Thread lafr
May be you can tune this a little bit, but I doubt you get major improvements.
The T1000 has a 6 or 8 cores with 4 execution threads in each, so up to 32 
virtual CPUs.

But on startup and executing single requests you do not benefit from that.
Here you are limited to the slow single thread performance. The CPU has only 1 
GHz.
Running the same app on a recent laptop with 2.x GHz dual core CPU is much 
faster.

The main advantage of SUNs coolthread architecture is the scalability.
As long as the application is supporting it, you can serve up to 32 requests in 
parallel with near constant response times which won't work with your laptop.


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

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


[jboss-user] [EJB 3.0] - Re: Oracle 10g with Jboss 4.2.3 Entity Manager / Hibernate

2009-06-11 Thread lafr
XA-connections seem to be very complicated. It took us some time to find the 
right settings.
What's the content of XA-Datasource description?
Ours is
?xml version=1.0 encoding=UTF-8?
  | datasources
  |   xa-datasource
  | jndi-nameora-11g/jndi-name
  | track-connection-by-tx/
  | isSameRM-override-valuefalse/isSameRM-override-value
  | 
xa-datasource-classoracle.jdbc.xa.client.OracleXADataSource/xa-datasource-class
  | xa-datasource-property 
name=URLjdbc:oracle:thin:@sb2000:1521:11g/xa-datasource-property
  | xa-datasource-property name=Userlafr/xa-datasource-property
  | xa-datasource-property name=Password.../xa-datasource-property
  | 
valid-connection-checker-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker/valid-connection-checker-class-name
  | 
exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  | prepared-statement-cache-size100/prepared-statement-cache-size
  | metadata
  |   type-mappingOracle9i/type-mapping
  | /metadata
  |   /xa-datasource
  | /datasources
  | 

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

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


[jboss-user] [JBossWS] - Re: NotSerializableException: org.jboss.ws.core.soap.SOAPFau

2009-05-27 Thread lafr
A Fault occurs on the server side while executing the webservice request from 
my client.
The server side code is not under my control, its under the control of 
Microsoft.
They give back a soap message containing a fault like it is defined in the wsdl 
contract.
Example:
2009-05-27 21:40:22,329 TRACE [org.jboss.ws.core.MessageTrace#traceMessage] 
Incoming Response Message
  | s:Envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'
  |  s:Body
  |   s:Fault xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'
  |faultcodes:Client/faultcode
  |faultstring xml:lang='en-US'Request Failed. See the Exception Log for 
details./faultstring
  |detail
  | AifFault 
xmlns='http://schemas.microsoft.com/dynamics/2008/01/documents/Fault' 
xmlns:i='http://www.w3.org/2001/XMLSchema-instance'
  |  CustomDetailXml i:nil='true'/
  |  FaultMessageListArray i:nil='true'/
  | /AifFault
  |/detail
  |   /s:Fault
  |  /s:Body
  | /s:Envelope
  | 

JBossWS was not able to read or unmarshal such a message into the corresponding 
objects.
I downloaded the the code and added implements Serializable to SOAPFaultImpl 
and a few others and now the communication between JBossWS-Client and the MS 
software based on WCF (Windows Communication Foundation) on the server side.

I wonder that nobody had the problem before and that the released versions of 
JBossWS are not capable of reading answers like the one above.


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

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


[jboss-user] [JBossWS] - NotSerializableException: org.jboss.ws.core.soap.SOAPFaultIm

2009-05-23 Thread lafr
I'm using JBoss-4.2.4GA with jbossws-3.0.1-native-2.0.4.GA.

I used wsconsume to generate the client artefacts from an MS Dynamics Axapta 
2009 instance.
Calling a Webservice I get this exception:
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: org.jboss.ws.core.soap.SOAPFaultImpl
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
  | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
  | at 
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObjectVersion2_2(JavaSerializationManager.java:239)
  | at 
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:133)
  | at 
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:120)
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedRead(MicroSocketClientInvoker.java:945)
  | at 
org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:633)
  | at 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
  | at org.jboss.remoting.Client.invoke(Client.java:1634)
  | at org.jboss.remoting.Client.invoke(Client.java:548)
  | at 
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
  | at $Proxy3.sendAggregatedValues(Unknown Source)
  | ...
  | Caused by: java.io.NotSerializableException: 
org.jboss.ws.core.soap.SOAPFaultImpl
  | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
  | at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
  | at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
  | at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
  | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
  | at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
  | at 
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
  | at java.lang.Throwable.writeObject(Throwable.java:648)
  | at sun.reflect.GeneratedMethodAccessor206.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:597)
  | at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
  | at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
  | at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
  | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
  | at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
  | at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
  | at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
  | at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
  | at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
  | at 

[jboss-user] [JBossWS] - Getting IAE using JBossWS to access MS Dynamics AX

2009-05-21 Thread lafr
Server: JBoss-4.2.4GA with jbossws-3.0.1-native-2.0.4.GA.
I used wsconsume to generate the client artefacts from an MS Dynamics Axapta 
2009 instance.
When trying to use one of them I get
Caused by: java.lang.IllegalArgumentException: Illegal null argument:ns
  | at 
org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.createNamespaceItemIfNotExistent(JBossXSModel.java:511)
  | at 
org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.addXSElementDeclaration(JBossXSModel.java:351)
  | at 
org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSModel(WSSchemaUtils.java:707)
  | at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:202)
  | at 
org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:401)
  | at 
org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:178)
  | at 
org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128)
  | at 
org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:295)
  | at 
org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:86)
  | at 
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.init(ServiceDelegateImpl.java:140)
  | at 
org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:64)
  | at javax.xml.ws.Service.init(Service.java:81)
  | at 
com.microsoft.schemas.dynamics._2008._01.services.GeneralJournalService_Service.init(GeneralJournalService_Service.java:40)
at 
biz.mbisoftware.fn.ejb.session.inventory.GeneralLedgerIfAx2009.sendAggregatedValues(GeneralLedgerIfAx2009.java:36)
  | 
I found https://jira.jboss.org/jira/browse/JBWS-686 which is solved, but 
studying the wsdl a question came up to my mind.
The wsdl contains an import without namespace. Can this cause the exception?
If yes, what can I do?

First lines of WSDL:

  | wsdl:definitions name=GeneralJournalService 
targetNamespace=http://schemas.microsoft.com/dynamics/2008/01/services;
  | wsp:Policy wsu:Id=BasicHttpBinding_GeneralJournalService_policy
  | wsp:ExactlyOne
  | wsp:All
  | http:NegotiateAuthentication/
  | /wsp:All
  | /wsp:ExactlyOne
  | /wsp:Policy
  | wsdl:types
  | xsd:schema 
targetNamespace=http://schemas.microsoft.com/dynamics/2008/01/services/Imports;
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd0;
 namespace=http://schemas.microsoft.com/dynamics/2008/01/services/
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd6;
 namespace=http://schemas.microsoft.com/dynamics/2008/01/documents/Fault/
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd1;
 namespace=http://schemas.microsoft.com/2003/10/Serialization//
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd2;
 
namespace=http://schemas.microsoft.com/dynamics/2008/01/documents/LedgerGeneralJournal/
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd3/
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd4;
 
namespace=http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList/
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd5;
 namespace=http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey/
  | xsd:import 
schemaLocation=http://ax-srv-01.contoso.com/MicrosoftDynamicsAXAif50/generaljournalservice.svc?xsd=xsd7;
 
namespace=http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria/
  | /xsd:schema
  | /wsdl:types


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Configuring data source for Oracle / MS SQL

2007-12-13 Thread lafr
Try driver-classoracle.jdbc.driver.OracleDriver/driver-class.

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

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


[jboss-user] [EJB 3.0] - All SLSB and MDB are listed as TimedObjects on jmx-console/l

2007-09-21 Thread lafr
If I call the listTimers operation using the jmx-console I see all Stateless 
session Beans and all Message Driven Beans now, but only 5 of this 64 are 
really TimeObjects:
Output is for example:
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MbiWaehrFacade]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-planning.jar,name=MbiProbfSelect]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-costing.jar,name=PreliminaryCosting]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-common.jar,name=Version]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=Calendar]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-inventory.jar,name=StockManagement]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-sales.jar,name=SalesOrder]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-sales.jar,name=SalesItem]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MailService]
   handle: 
[id=1190398872277,target=[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MailService],first=21-Sep-2007
 20:23:00.000,periode=6]
  
[id=1190398872277,target=[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MailService],remaining=47564,periode=6,in_timeout]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MbiFistaFacade]
[target=jboss.j2ee:service=EJB3,ear=mbi2e-lafr-sb2000-ipc.ear,jar=ejb-session-core.jar,name=MessageRetrieval]

MailService implements TimeObject, but all others do not.
My Stateful Session Beans don't appear in the list.
I use JBoss-4.2.2.GA, built from the current sources.

Can anybody confirm this for his EJB3-application?

I don't think this is intended to be so, or?


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

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


[jboss-user] [EJB 3.0] - QuerySyntaxException

2007-09-17 Thread lafr
On the way migrating a EJB 2.1 App to EJB 3.0 I got a problem with an EJB-QL 
query:
SELECT OBJECT(k)
FROM MbiFesta AS k, IN( k.mbiFekvw ) AS v
WHERE k.tstNr = ?1 AND k.varId = ?2
AND v.verwTabelle = 1 AND v.afCompNr = ?3 AND v.afLfdNr = ?4 AND v.afPosNr = ?5

As a result I get:
javax.ejb.EJBException: java.lang.IllegalArgumentException: 
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: v near lin
e 1, column 80 [SELECT k FROM biz.mbisoftware.fn.ejb.entity.MbiFesta AS k, IN( 
k.mbiFekvw ) AS v WHERE k.tstNr = ?1 AND k.varId = ?2
 AND v.verwTabelle = 1 AND v.afCompNr = ?3 AND v.afLfdNr = ?4 AND v.afPosNr = 
?5]

Why is this not legal?
I also tried JOIN instead of IN, but got a similar exception: (unexpected token 
JOIN):
FROM MbiFesta AS k, JOIN k.mbiFekvw AS v

After spending much time to test different versions the following version works:
SELECT DISTINCT k
FROM MbiFesta AS k, MbiFekvw AS v
WHERE k.festaSerial = v.festaSerial
AND k.tstNr = ?1 AND k.varId = ?2
AND v.verwTabelle = 1 AND v.afCompNr = ?3 AND v.afLfdNr = ?4 AND v.afPosNr = ?5

But I'd like to understand why before searching and modifying other queries.


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

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


[jboss-user] [EJB 3.0] - Re: Foreign keys with 0 and not NULL

2007-09-14 Thread lafr
The ID-field of MbiMsgss is of type Integer:
@Entity
  | @Table(name=mbi_msgss)
  | public class MbiMsgss implements java.io.Serializable
  | {
  | @Id
  | @GeneratedValue(strategy=GenerationType.IDENTITY)
  | @Column(name=msgss_serial)
  | private java.lang.Integer msgssSerial;
  | ...
  | 

The problem is, that our legacy app fills in a zero instead of a null into the 
database table field which works as a foreign key field.
So when I access the entity which has a OneToOne relation (uni-directional) to 
the above, I get that exception.
@Entity
  | @IdClass(value=MbiMsgdi.PK.class)
  | @Table(name=mbi_msgdi)
  | public class MbiMsgdi implements java.io.Serializable
  | {
  | @Id
  | @Column(name=bp_id)
  | private java.lang.Integer bpId;
  | 
  | @Id
  | @Column(name=seq_no)
  | private java.lang.Integer seqNo;
  | 
  | 
  | @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
  | @JoinColumns({
  | 
@JoinColumn(name=msgss_serial,referencedColumnName=msgss_serial,insertable=false,updatable=false)
  | })
  | private MbiMsgss mbiMsgss;
  | ...
  | 


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

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


[jboss-user] [EJB 3.0] - Re: Foreign Key fields not set for child entity

2007-09-13 Thread lafr
Is this a restriction of the JBoss version or what?
All examples I saw on the net an in the book I bought didn't do this.

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

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


[jboss-user] [EJB 3.0] - Re: How to map this?

2007-09-13 Thread lafr
No, it's uni-directional.
So in the part bean I have the key-fields marked with id and so on. No hint 
that part is used in a relation.
@Entity
  | @IdClass(value=Part.PK.class)
  | @Table(name=part)
  | public class Part implements Serializable
  | {
  | @Id
  | @Column(name=msghd_serial)
  | private Integer msghdSerial;
  | 
  | @Id
  | @Column(name=part_no)
  | private Integer partNo;
  | ...
  | 


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

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


[jboss-user] [EJB 3.0] - Key class conflict with OneToOne relation

2007-09-13 Thread lafr
Using JBoss-4.2.2.GA.
Using a uni-directional OneToOne Relation between two entities with a composite 
PK.

First class:
@Entity
  | @IdClass(value=MbiMsgpa.PK.class)
  | @Table(name=mbi_msgpa)
  | public class MbiMsgpa implements java.io.Serializable
  | {
  | @Id
  | @Column(name=msghd_serial)
  | private java.lang.Integer msghdSerial;
  | 
  | @Id
  | @Column(name=part_no)
  | private java.lang.Integer partNo;
  | 
  | @Column(name=message_type)
  | private java.lang.String messageType;
  | 
  | @Column(name=source)
  | private java.lang.String source;
  | 
  | /** Field line. */
  | @Column(name=line)
  | private java.lang.Integer line;
  | 
  | @Column(name=time_created)
  | private java.util.Date timeCreated;
  | 
  | @Column(name=bp_task_id)
  | private java.lang.Integer bpTaskId;
  | 
  | @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
  | @JoinColumns({
  | 
@JoinColumn(name=msghd_serial,referencedColumnName=msghd_serial,insertable=false,updatable=false),
  | 
@JoinColumn(name=part_no,referencedColumnName=part_no,insertable=false,updatable=false)
  | })
  | private MbiMsgpt mbiMsgpt;
  | 
  | 
Second class is
@Entity
  | @IdClass(value=MbiMsgpt.PK.class)
  | @Table(name=mbi_msgpt)
  | public class MbiMsgpt implements java.io.Serializable
  | {
  | @Id
  | @Column(name=msghd_serial)
  | private java.lang.Integer msghdSerial;
  | 
  | @Id
  | @Column(name=part_no)
  | private java.lang.Integer partNo;
  | ...
  | 
Using this, I get exceptions like this:
2007-09-13 17:51:14,832 INFO  [biz.mbisoftware.fn.ejb.session.core.MessageSink] 
Calling MessageSink.appendMessage(INFO, 4756, [1.2007-09-13 
17:51:14.mbi_distol.ec.282.null[Verarbeitung beendet]])
  | 2007-09-13 17:51:14,836 INFO  [STDOUT] Hibernate: select 
mbimsghd0_.msghd_serial as msghd1_99_0_, mbimsghd0_.session_id as 
session2_99_0_, mbimsghd0_.process_id as process3_99_0_, mbimsghd0_.hostname as 
hostname99_0_, mbimsghd0_.time_created as time5_99_0_, 
mbimsghd0_.login_bez_created as login6_99_0_, mbimsghd0_.state as state99_0_, 
mbimsghd0_.bp_id as bp8_99_0_, mbimsghd0_.iso_sprach_id as iso9_99_0_, 
mbimsghd0_.iso_sprach_id_def as iso10_99_0_, mbimsghd0_.adress_nr as 
adress11_99_0_ from mbi_msghd mbimsghd0_ where mbimsghd0_.msghd_serial=?
  | 2007-09-13 17:51:14,859 INFO  [STDOUT] Hibernate: select 
mbimsgpa0_.msghd_serial as msghd1_1_, mbimsgpa0_.part_no as part2_1_, 
mbimsgpa0_.msghd_serial as msghd1_101_0_, mbimsgpa0_.part_no as part2_101_0_, 
mbimsgpa0_.message_type as message3_101_0_, mbimsgpa0_.source as source101_0_, 
mbimsgpa0_.line as line101_0_, mbimsgpa0_.time_created as time6_101_0_, 
mbimsgpa0_.bp_task_id as bp7_101_0_ from mbi_msgpa mbimsgpa0_ where 
mbimsgpa0_.msghd_serial=? order by mbimsgpa0_.msghd_serial asc, 
mbimsgpa0_.part_no asc
  | 2007-09-13 17:51:14,887 WARN  [org.hibernate.engine.loading.LoadContexts] 
fail-safe cleanup (collections) : [EMAIL PROTECTED][EMAIL PROTECTED]
  | 2007-09-13 17:51:14,887 WARN  
[org.hibernate.engine.loading.CollectionLoadContext] On 
CollectionLoadContext#cleanup, localLoadingCollectionKeys contained [1] entries
  | 2007-09-13 17:51:14,896 ERROR 
[org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
  | javax.ejb.EJBException: org.hibernate.TypeMismatchException: Provided id of 
the wrong type. Expected: class biz.mbisoftware.fn.ejb.entity.MbiMsgpt$PK, got 
class biz.mbisoftware.fn.ejb.entity.MbiMsgpa$PK
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | 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 

[jboss-user] [EJB 3.0] - Foreign keys with 0 and not NULL

2007-09-13 Thread lafr
We have a legacy application which is prepared to use NULL values for most 
datatypes (exception: date and timestamp).
So a foreign key field of type integer is filled with a zero instead of null in 
the database.
Using Entity Beans now with relations we get this:
Caused by: javax.persistence.PersistenceException: 
javax.persistence.EntityNotFoundException: Unable to find 
biz.mbisoftware.fn.ejb.entity.MbiMsgss with id 0
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)
  | at 
com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
  | at 
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
  | at 
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
  | at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
  | at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1382)
  | ... 8 more
  | Caused by: javax.persistence.EntityNotFoundException: Unable to find 
biz.mbisoftware.fn.ejb.entity.MbiMsgss with id 0
  | at 
org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:107)
  | at 
org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:79)
  | at 
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:72)
  | at 
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
  | at 
org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:64)
  | at 
org.hibernate.impl.SessionImpl.firePersistOnFlush(SessionImpl.java:644)
  | at 
org.hibernate.impl.SessionImpl.persistOnFlush(SessionImpl.java:636)
  | at 
org.hibernate.engine.CascadingAction$9.cascade(CascadingAction.java:323)
  | at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
  | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
  | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
  | at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
  | at 
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
  | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
  | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
  | ... 13 more
  | 

Any hints how to deal with this?


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

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


[jboss-user] [EJB 3.0] - Re: Sequence generators in Embedded PK

2007-09-12 Thread lafr
I don't know what the spec says about this, but I just made the experience that 
this is not supported at least for the EJB3 implementation for JBoss 4.2.2.

I'm sure I read about this somewhere in the JBoss' Wiki.


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

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


[jboss-user] [EJB 3.0] - Foreign Key fields not set for child entity

2007-09-12 Thread lafr
My parent Entity looks like this:
public class MbiMsghd implements java.io.Serializable
  | {
  | /** Field msghdSerial. */
  | @Id
  | @GeneratedValue(strategy=GenerationType.IDENTITY)
  | @Column(name=msghd_serial)
  | private java.lang.Integer msghdSerial;
  | /** Relation with MbiMsgpa. */
  | 
@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY,mappedBy=msghdSerial)
  | @OrderBy(msghdSerial,partNo)
  | private java.util.CollectionMbiMsgpa mbiMsgpa = new 
java.util.ArrayListMbiMsgpa();
  | 

My child entity like this:
@Entity
  | @IdClass(value=MbiMsgpa.PK.class)
  | @Table(name=mbi_msgpa)
  | public class MbiMsgpa implements java.io.Serializable
  | {
  | /** Field msghdSerial. */
  | @Id
  | @ManyToOne
  | @Column(name=msghd_serial)
  | private java.lang.Integer msghdSerial;
  | 
  | /** Field partNo. */
  | @Id
  | @Column(name=part_no)
  | private java.lang.Integer partNo;
  | 

So the child has a composite primary key and one part of this PK is a FK to the 
parent.

In my session bean I can create the parent successfully, but the created and 
added child did not get set the PK/FK fields.
MbiMsgpa mbiMsgpa = new MbiMsgpa();
  | mbiMsghd.getMbiMsgpa().add( mbiMsgpa );
  | // set all attributes of child entity
  | this.entityManager.persist( mbiMsgpa );
  | 
The key values of the child entity are null when they are inserted into the 
database.

From all examples I saw in my book and on the Web I expected the EJB3 
container to set the key fields of the child entity.
It does not make any difference if I set up the OneToMany relation uni- or 
bidirectional.

Did anyone of you get something like this running on JBoss 4.2.2.GA?


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

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


[jboss-user] [EJB 3.0] - How to map this?

2007-09-11 Thread lafr
I'm migrating an EJB 2.1 application to EJB 3.0 using JBoss 4.2.2.GA.
Some question on how to map fields and relations.
Object message contains a message header, message parts and each message part 
contains message lines.
message head has a generated id.
message part has a composite pk build of message head id and part_no.
@Entity
  | @Table(name=head)
  | public class Head implements Serializable
  | {
  | @Id
  | @GeneratedValue(strategy=GenerationType.IDENTITY)
  | @Column(name=head_id)
  | private Integer headId;
  | 
  | @OneToMany(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
  | @OrderBy(partNo)
  | @JoinColumns({
  | @JoinColumn(name=head_id,referencedColumnName=head_id)
  | })
  | private CollectionPart parts = new ArrayListPart();
  | 
This gives me an Exception saying
Repeated column in mapping for entity: Head column: head_id (should be mapped 
with insert=false update=false).

Is adding 'insert=false update=false' to the JoinColumn properties the 
right way to solve this duplicate field?
What about using Transient?

I get similar problems with ManyToOne relations.
Database table for Order has a field order_type.
This field is a FK to the OrderType table id.
But order_type in combination with output_type is a composite FK to 
OrderProperties.
So I would have in Order.java:
- a field of type Integer named orderType
- a field of type Integer named outputType
- a ManyToOne relation to EB OrderType with JoinColumn orderType
- a ManyToOne relation to EB OrderProperties with JoinColumns orderType and 
outputType
So three mappings for column order_type and two mapping for column output_type.
Should I omit the plain fields in this case and mark the JoinColumn orderType 
for OrderProperties with 'insert=false update=false' then?
Or what's the best practice for something like this?

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

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


[jboss-user] [EJB 3.0] - Re: Can not seem to name foreign keys in relationships

2007-09-01 Thread lafr
did you try to specify the name with referencedColumnName:
@JoinColumn(name=catalogueFk,referencedColumnName=catalogue)


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Configuring JBoss to use Informix

2007-08-21 Thread lafr
There probably is more interesting output in the log.
If you pick the create statement for jms_subscriptions and try to run it on the 
database via dbaccess you get a syntax error.
So create the table by hand.

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

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


[jboss-user] [Beginners Corner] - Re: Lookup ejb by its COMP_NAME

2007-07-16 Thread lafr
I think you misunderstood something.
You'll have to add the ejb-local-ref to the bean where you want to lookup 
LicenseVerfifierFrom from by COMP_NAME.

Just one example from my code base.
In SalesOrderImportMDB I have this for XDoclet to generate the deployment 
descriptor entries:

  |  * @ejb.ejb-external-ref view-type=local type=Session
  |  *   ref-name=ejb/MailServiceLocal
  |  *   home=ejb.session.core.MailServiceLocalHome
  |  *   business=ejb.session.core.MailServiceLocal
  |  *   jndi-name=test/MailServiceLocal
  | 

ejb-jar.xml:

  | message-driven
  | display-nameSalesOrderImportMDB/display-name
  | ...
  | ejb-local-ref 
  | ejb-ref-nameejb/MailServiceLocal/ejb-ref-name
  | ejb-ref-typeSession/ejb-ref-type
  | local-homeejb.session.core.MailServiceLocalHome/local-home
  | localejb.session.core.MailServiceLocal/local
  | /ejb-local-ref
  | ...
  | /message-driven 
  | 
jboss.xml:

  | message-driven
  | ejb-nameSalesOrderImportMDB/ejb-name
  | ...
  | ejb-local-ref
  | ejb-ref-nameejb/MailServiceLocal/ejb-ref-name
  | local-jndi-nametest/MailServiceLocal/local-jndi-name
  | /ejb-local-ref
  | ...
  | /message-driven
  | 
jmx-console, JNDI-view:

  | java:comp namespace of the SalesOrderImportMDB bean:
  |   +- env (class: org.jnp.interfaces.NamingContext)
  |   |   +- ejb (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- MailServiceLocal[link - test/MailServiceLocal] (class: 
javax.naming.LinkRef)
  | 


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Bug or featur

2007-07-16 Thread lafr
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html#MONTH

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: EJB QL table name with underscores?

2007-07-09 Thread lafr
Is TABLE_NAME_WITH_UNDERSCORES identical to the abstract-schema-name?

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

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


[jboss-user] [Beginners Corner] - Re: foreach (= advanced for) in JSPS

2007-06-27 Thread lafr
See http://www.jboss.com/index.html?module=bbop=viewtopict=80296

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

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


[jboss-user] [Messaging, JMS JBossMQ] - Re: Message visible before transaction commit

2007-06-27 Thread lafr
Use search engines or anything else to retrieve infos.
See e.g. http://www.odi.ch/prog/jms-tx.php.

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

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


[jboss-user] [EJB/JBoss] - Re: How to deploy on JBoss a CMP bean that uses a composite

2007-06-25 Thread lafr
Add @ejb.pk-field to getPartNumber and getRevision in your EB.

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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - ORDER BY and FOR UPDAE

2007-06-25 Thread lafr
Since my JBoss App shares the database with a C++-App I'd like to enable 
row-locking for the Entity Beans.
But this is incompatible with accessing data in a defined order.
The SQL-statement for a finder SELECT ... ORDER BY a, b FOR UPDATE is, at 
least for Informix DB, illegal.
You can only use either ORDER BY or FOR UPDATE.
But I can't do without one of them.

Any similar experience?
Any hints how to solve this dilemma?


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

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


[jboss-user] [EJB/JBoss] - Enum parameter for EJB, Bug or simply not supported?

2007-06-25 Thread lafr
Recently I changed a Method parameter in a SessionBean from String to an Enum.
After that I got some serious problems which where caused by the not recognized 
transaction attribute. The first method parameter in this example is an Enum.
The method was obviously not recognized for RequiresNew and as a consequence no 
asynchronous behaviour.
We're using JBoss-4.0.4.GA with JDK 1.5.

container-transaction 
  |   method
  |  ejb-nameMessageSink/ejb-name
  |  method-intfLocal/method-intf
  |  method-nameappendMessageAsync/method-name
  |  method-params
  | method-paramejb.session.core.MessageSink.Type/method-param
  | method-paramjava.lang.Integer/method-param
  | method-paramtypes.core.MessagePart/method-param
  |  /method-params
  |   /method
  |   trans-attributeRequiresNew/trans-attribute
  |/container-transaction
  | 

Is using Java5 extensions simply (silently) not supported or is this a bug?


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

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


[jboss-user] [Beginners Corner] - Re: Error Running JBoss with Oracle 10g

2007-06-10 Thread lafr
anonymous wrote : reason: No ClassLoaders found for: org.jboss.resourc
  | e.adapter.jdbc.vender.oracle.OracleXAExceptionFormatter;

The is a typo: use 'vendor' instead of 'vender'.

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

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


[jboss-user] [Beginners Corner] - Re: JBOSS really slow on Solaris 64 bit system

2007-05-27 Thread lafr
What in you opinion is slow?
What kind of CPUs. Show us the head output of prtdiag.
What operating system:
 cat /etc/release
 uname -a
Startup parameters of JBoss?



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

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


[jboss-user] [Installation, Configuration Deployment] - Re: JBoss 4.0.0 is slow on Solaris 8 (64bit SunFire v120) 4

2007-05-27 Thread lafr
Different performance on two systems is mostly based on the hardware used
The operating system only has minor influence on it.

So you showed us you have 16 CPUs in your Solaris box.
But what kind of CPU? Show us the head output of prtdiag.
What's the CPU used for your Linux box?

Don't know much about JMeter. How many threads do you use?
If you increase threads, the Solaris box should scale well, if your test 
application is good.


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

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


[jboss-user] [JBossWS] - Re: JBoss 4.0.5--JAX-RPC has Issues?

2007-05-12 Thread lafr
The problem has been solved with JBossWS 1.2.1.
See http://jbws.dyndns.org/mediawiki/index.php/Install_JBossWS how to install 
JBossWS or checkout JBoss-4.0.5.SP1.


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

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


[jboss-user] [Performance Tuning] - Re: High CPU consumption.

2007-03-11 Thread lafr
You set the MaxPermSize but not the starting value: add -XX:NewSize=128m to 
the parameter list.
Don't know much about the flags -XX:+UseParNewGC and 
-XX:+CMSParallelRemarkEnabled and JBoss on Linux, but I would try to run 
without it.
JDK 1.5 checks the system for available CPUs and memory and set's values based 
on that.

You also may add -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps 
-XX:-TraceClassUnloading to see GC messages and see if there are messages 
generated constantly when the CPU load increases.


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

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


[jboss-user] [Performance Tuning] - Re: High CPU consumption.

2007-03-04 Thread lafr
Execute jmap -heap  to see the memory use.
If the memory use reaches 100% the server is constantly running garbage 
collections which consume many CPU cycles.
Perhaps you'll have to adjust the memory settings on startup.

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

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


[jboss-user] [Beginners Corner] - Re: Mapping CMP field and PK (DB sequence) column

2007-02-01 Thread lafr
Erase class level ejb.pk as you marked your pk-field.
Erase jboss.unknown-pk.

Modify entity-commmand to this
 * @jboss.entity-commandname=postgresql-fetch-seq
 * @jboss.entity-command-attribute  name=sequence 
value=info_allegato_xmoid_seq

Erase field level auto-increment.


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

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


[jboss-user] [JBossWS] - Re: Exception with JBoss-4.0.5-SP1 and JBossWS-1.0.3-SP1 but

2007-02-01 Thread lafr
we'll have to wait for a JBossWS version including the fix for 
http://jira.jboss.com/jira/browse/JBWS-1284.


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

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


[jboss-user] [EJB/JBoss] - Re: EJB SLSB question

2007-01-07 Thread lafr
Yes.

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

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


[jboss-user] [J2EE Design Patterns] - Re: How to configure the number of consumers (MDB) in a Queu

2006-12-28 Thread lafr
You may use container-configuration Singleton Message Driven Bean if already 
available in your JBoss version.
To check, look into  $JBOSS_HOME/server/?/conf/standardjboss.xml.


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Remove item from CMR

2006-12-28 Thread lafr
Calling mover.remove() should be enough.
The row in the database is deleted and the object is removed from the 
collection.
You don't have to remove the object from the collection first.


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

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


[jboss-user] [EJB/JBoss] - Re: CMP EJB Issue when connect to SQL Server

2006-12-28 Thread lafr
Which table is jboss trying to create here?
Does it contain a file named user?
user may be a reserved word fos MS SQLServer.
You should try something like username or user_id.


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Store pdf files in the database

2006-12-28 Thread lafr
We have an antity storing an excel file in database. The field is declared as 
following:
/**
 * @ejb.interface-method
 * @ejb.persistence
 *  column-name=losgr_attachment
 *  sql-type=BYTE
 *  jdbc-type=LONGVARBINARY
 * @return Returns the losgrAttachment.
 */
public abstract java.lang.Object getLosgrAttachment();
/**
 * @ejb.interface-method
 * @param losgrAttachment  The losgrAttachment to set.
 */
public abstract void setLosgrAttachment( final java.lang.Object 
losgrAttachment );

The database field is of type byte (Informix DB) or blob (Oracle 9i).

The parameter given to the setter is of type byte[].


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

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


[jboss-user] [JBossWS] - Re: Exception with JBoss-4.0.5-SP1 and JBossWS-1.0.3-SP1 but

2006-12-17 Thread lafr
Now I had the time to test my app with Branch_4_2.
On startup I get this Exception:
22:34:22,299 ERROR [MainDeployer] Could not start deployment: 
file:/mbi/tools/jboss/4.2/server/mbi/tmp/deploy/tmp28034mbi2e-lafr-sb2000-ipc.ear-contents/ws-common.war
  | java.lang.ExceptionInInitializerError
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:164)
  | at 
org.jboss.ws.soap.attachment.ContentHandlerRegistry.clinit(ContentHandlerRegistry.java:51)
  | at 
org.jboss.ws.xop.JBossXBContentAdapter.clinit(JBossXBContentAdapter.java:67)
  | at 
org.jboss.ws.jbossxb.SchemaBindingBuilder.buildSchemaBinding(SchemaBindingBuilder.java:85)
  | at 
org.jboss.ws.metadata.ServiceMetaData.getSchemaBinding(ServiceMetaData.java:343)
  | at 
org.jboss.ws.metadata.ServiceMetaData.eagerInitialize(ServiceMetaData.java:442)
  | at 
org.jboss.ws.metadata.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:183)
  | at 
org.jboss.ws.deployment.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:134)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:104)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy36.start(Unknown Source)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  | at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy8.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke

[jboss-user] [JBossWS] - Re: Exception with JBoss-4.0.5-SP1 and JBossWS-1.0.3-SP1 but

2006-11-28 Thread lafr
I enabled DEBUG for org.jboss.ws and got this:

2006-11-28 23:45:49,480 DEBUG [org.jboss.ws.server.StandardEndpointServlet] 
doPost: /mbi-ws/mbi2e-lafr-sb2000-ipc/core/MessageServic
  | eWS
  | 2006-11-28 23:45:49,488 DEBUG [org.jboss.ws.soap.MessageContextAssociation] 
pushMessageContext: org.jboss.ws.soap.SOAPMessageContext
  | [EMAIL PROTECTED]
  | 2006-11-28 23:45:49,525 DEBUG [org.jboss.ws.server.ServiceEndpoint] BEGIN 
handleRequest: jboss.ws:context=mbi-ws/mbi2e-lafr-sb2000-i
  | pc/core,endpoint=MessageServiceWS
  | 2006-11-28 23:45:49,525 DEBUG [org.jboss.ws.server.ServiceEndpoint] Init 
handler chain with [0] handlers
  | 2006-11-28 23:45:49,547 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] 
Create a handler chain for roles: []
  | 2006-11-28 23:45:49,547 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] 
init: [config=null]
  | 2006-11-28 23:45:49,548 DEBUG [org.jboss.ws.server.ServiceEndpoint] Init 
handler chain with [0] handlers
  | 2006-11-28 23:45:49,548 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] 
Create a handler chain for roles: []
  | 2006-11-28 23:45:49,548 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] 
init: [config=null]
  | 2006-11-28 23:45:49,548 DEBUG [org.jboss.ws.server.ServiceEndpoint] Init 
handler chain with [0] handlers
  | 2006-11-28 23:45:49,548 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] 
Create a handler chain for roles: []
  | 2006-11-28 23:45:49,548 DEBUG [org.jboss.ws.handler.HandlerChainBaseImpl] 
init: [config=null]
  | 2006-11-28 23:45:49,568 DEBUG [org.jboss.ws.soap.MessageFactoryImpl] 
createMessage: [contentType=text/xml]
  | 2006-11-28 23:45:49,693 DEBUG [org.jboss.ws.soap.SOAPContentElement] 
setXMLFragment: MessageHead_1businessProcessId3/businessPr
  | 
ocessIdhostnamesb2000/hostnameisoLanguageIdde/isoLanguageIdisoLanguageIdDef/loginBezCreatedmbi/loginBezCreatedmessag
  | 
eId0/messageIdprocessId26848/processIdsessionId763/sessionIdstatus0/statustimeCreated2006-11-28
 23:45:49/timeCreat
  | ed/MessageHead_1
  | 2006-11-28 23:45:49,694 DEBUG [org.jboss.ws.soap.SOAPContentElement] 
setXMLFragment: MessagePart_2additionalData/businessProces
  | 
sTaskId1/businessProcessTaskIdline3573/linemessageLineslineOfTextStart
 Reorganisation mit folgenden Funktionen:/lineOfTe
  | xt/messageLinesmessageLineslineOfText- L\303\266schen 
Bestellvorschl\303\244ge/lineOfText/messageLinesmessageLinesline
  | OfText- L\303\266schen Propositionskonto, Bestellvorschl\303\244ge - 
Neuaufbau/lineOfText/messageLinesmessageLineslineOf
  | Text- Neuaufbau  - Dispokonto (mbi_dispo, 
dispo_serial)/lineOfText/messageLinesmessageLineslineOfText- Neuaufbau 
Bedarfsdec
  | ker - Dispokonto (mbi_dispo, 
dispo_serial)/lineOfText/messageLinesmessageLineslineOfText- Neuaufbau 
Reservierungen aus Lager
  | best\303\244nden  
(mbi_dires)/lineOfText/messageLinesmessageLineslineOfText- Neuaufbau 
Reservierungen aus Fertigungsauft
  | r\303\244gen 
(mbi_dires)/lineOfText/messageLinesmessageLineslineOfText- Neuaufbau 
Reservierungen aus Nachbearbeitung (mb
  | i_dires)/lineOfText/messageLinesmessageLineslineOfText- Neuaufbau 
Reservierungen aus Bestellungen(mbi_dires)/lineOf
  | Text/messageLinesmessageLineslineOfText- Neuaufbau Reservierungen 
aus Vorabdispo - Neuaufbau BV/lineOfText/messageLine
  | smessageLineslineOfText- Neuaufbau Reservierungen aus Transport
   (mbi_dires)/lineOfText/messageLinesmessageLines
  | lineOfText- Anonymisieren 
Bedarfsdecker/lineOfText/messageLinesmessageType/sourcembi_proini.ec/sourcetimeCreated2006-1
  | 1-28 23:45:49/timeCreated/MessagePart_2
  | 2006-11-28 23:45:49,717 DEBUG [org.jboss.ws.soap.SOAPMessageDispatcher] 
getDispatchDestination: {http://core.ws.fn.mbisoftware.biz}c
  | reateMultiInfo
  | 2006-11-28 23:45:49,735 DEBUG 
[org.jboss.ws.binding.soap.SOAPBindingProvider] unbindRequestMessage: 
{http://core.ws.fn.mbisoftware.b
  | iz}createMultiInfo
  | 2006-11-28 23:45:49,741 DEBUG [org.jboss.ws.binding.EndpointInvocation] 
setRequestParamValue: [name=MessageHead_1,value=org.jboss.ws
  | .soap.SOAPContentElement]
  | 2006-11-28 23:45:49,741 DEBUG [org.jboss.ws.binding.EndpointInvocation] 
setRequestParamValue: [name=MessagePart_2,value=org.jboss.ws
  | .soap.SOAPContentElement]
  | 2006-11-28 23:45:49,742 DEBUG [org.jboss.ws.metadata.OperationMetaData] Get 
java method for: {http://core.ws.fn.mbisoftware.biz}crea
  | teMultiInfo
  | 2006-11-28 23:45:49,748 DEBUG [org.jboss.ws.metadata.OperationMetaData] 
Found best matching java method: public abstract biz.mbisoft
  | ware.fn.wstypes.ServiceIntegerResponse 
biz.mbisoftware.fn.ws.core.MessageServiceWSI.createMultiInfo(biz.mbisoftware.fn.wstypes.core.
  | MessageHead,biz.mbisoftware.fn.wstypes.core.MessagePart) throws 
java.rmi.RemoteException
  | 2006-11-28 23:45:49,748 DEBUG 
[org.jboss.ws.server.ServiceEndpointInvokerJSE] invokeServiceEndpoint: 
createMultiInfo
  | 2006-11-28 23:45:49,749 DEBUG [org.jboss.ws.binding.EndpointInvocation] 
getRequestPayload
  | 2006

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Jboss CMP and Blob fields

2006-10-29 Thread lafr
This is not an jboss problem but an informix config problem.
To store blobs in informix you'll have to define on table creation in which 
dbspace the blob should be placed. If not giving the info, a config parameter 
will be used (SBSPACENAME).
I prefer to use byte instead of blob. Data for byte is stored in the dbspace 
where the table/database lives.


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

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


[jboss-user] [Beginners Corner] - Re: Multiple instances of same J2EE app running simulateneou

2006-10-17 Thread lafr
Yes it is possible.
You'll have to use scoped classloading which is the  default for version 404 
AFAIK.
Look at the Wikis for this topic.

For the web-modules in aplication.xml we use this:
module
  | web
  | web-uriws-sales.war/web-uri
  | context-root/mbi-ws/@NAME@/sales/context-root
  | /web
  | /module
  | 
@NAME@ is replaced with a concrete name like prod or test on 
packaging/deployment.


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

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


[jboss-user] [Installation, Configuration Deployment] - Re: JBOSS Memory Utilization

2006-10-17 Thread lafr
What do you mean?
jmap -heap  ?
ps -lp 
pmap 
 ?


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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Startup Script for JBOSS on Solaris

2006-10-17 Thread lafr
Yes. Send me your email address and I may send you the script we use.


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

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


[jboss-user] [Beginners Corner] - Re: can i use oracle sequence for primary key in cmp ejb?hel

2006-09-26 Thread lafr
Using XDoclet you have to put
 * @jboss.entity-commandname=oracle-sequence
 * @jboss.entity-command-attribute  name=sequence value=Name of the 
Sequence to use
at class level.

This leads to
entity-command name=oracle-sequence
  | attribute name=sequenceName of the Sequence to use/attribute
  | /entity-command
  | 
in jbosscmp-jdbc.xml as child of the matching entity element.

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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Jboss mail-service.xml localhost, port 25

2006-09-26 Thread lafr
Do you still get the error message with localhost ?
What do oyou get if you execute nslookup smtp.test.com on the server running 
jboss.


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

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


[jboss-user] [JNDI/Naming/Network] - Re: HELP: Looking up to java:comp namespace problem!!

2006-07-28 Thread lafr
To get a mail session via java:comp/env/Mail I declared this tags for xdoclet:

  |  * @ejb.resource-ref
  |  *  res-ref-name=Mail
  |  *  res-type=javax.mail.Session
  |  *  res-auth=Container
  |  * @jboss.resource-ref
  |  *  res-ref-name=Mail
  |  *  jndi-name=java:/Mail
  | 

Using the global namespace you simply do a lookup of java:/Mail.
No narrowing.


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

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


[jboss-user] [EJB/JBoss] - Re: Migration to jboss4..0.4 problems

2006-07-28 Thread lafr
The entity bean was not deployed correctly.
Look for errors or warnings on deployment.

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

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


[jboss-user] [Beginners Corner] - Re: How to all oracle procedure in cmp bean?

2006-07-24 Thread lafr
CMP entity beans are for data and persistence only. SessionBeans are for 
business logic.

Where do you want to use a procedure?
Either build a session implementing the logic database independent or build an 
oracle PL/SQL module and call it from a session bean.


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

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


[jboss-user] [Installation, Configuration Deployment] - Re: Deploying with JBoss rules

2006-07-15 Thread lafr
The class org.eclipse.jdt.internal.compiler.CompilationResult is not part of 
any lib of jbossrules. The class is needed, when an error occured in your rules.
I added org.eclipse.jdt.core_3.2.0.v_671.jar from eclipse 3.2.0 to the libs.


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

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