Re: [JBoss-user] C/C++-Client connecting to JBoss via JMS

2003-11-24 Thread Langelage, Frank
Hi Holger,

we are thinking about different scenarios to advance our legacy "old" 
ERP-System with "new" modules written in java/j2ee running on jboss.
I implemented an JCA interface to call "old" procedures from "new" java 
technology.
But the other way is not quite clear so far. I thought about using JMS 
for this approach.
Someone else (Ulf Schroeter) already recommended using web services. 
Seems it will be easier to find a "ready" solution (library) to do web 
service calls from our "old" app.
So I think I will give this a try.

Thanks,
   Frank
Holger Baxmann @ mac wrote:

Hi Frank,

i currently have a client who is trying to implement this via SLSB and 
native library calls. Not the recommended way, but it works to some 
degree ;-)

The problem here is that the C MQ is communicating (in the Prod 
systems) via SHMem and so there is no JMS lib for the interface.

We are thinking about implementing a JCA, if it is worth the efforts 
and/or use simple POJOs as a Service Locator/Builder and expose them 
via JBoss.net. In this case it is a MQSeries (beware of the 
bit-transparency) Command and Oracle Feedback scenerio.

Going the two folded way: feed command one way via a POJO Singleton 
Command Wallpaper Pattern :) and beeing notified via DB triggered MDBs.

IMHO it depends mostly on the legacy arch there 
performance/scalability parameters and the 'standard' api which they 
expose, but is always handmade and homebrewn.

Any further details avail or are they secret? :)

bax

Am 20.11.2003 um 22:35 schrieb Langelage, Frank:

I would like to interface our C/C++ ERP-App with JBoss JMS to 
delegate some tasks to MDB's.
Has anybody done something like this successfully ?
Any advice for an C/C++ JMS-client-lib to interconnect those two 
systems ?

Thanks in advance
Frank


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] C/C++-Client connecting to JBoss via JMS

2003-11-20 Thread Langelage, Frank
I would like to interface our C/C++ ERP-App with JBoss JMS to delegate 
some tasks to MDB's.
Has anybody done something like this successfully ?
Any advice for an C/C++ JMS-client-lib to interconnect those two systems ?

Thanks in advance
Frank


---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss 3.2.3 and Oracle 9iR2

2003-11-09 Thread Langelage, Frank
I recently switched my database from informix to oracle and encountered 
some problems.

With informix, you have one instance and many separate databases. Each 
datasource connects to exactly one database.
With oracle you have one instance and database objects per user. You 
connect to the whole instance.

I use the feature of jboss to build database tables on deployment, if 
they don't exist.
With oracle DB I got messages that some tables already exist.
But this table exist for another user (schema), not for the jboss user.

This leads to exceptions (Table does not exist) when an foreign key 
constraint to this supposedly existing table.

Shouldn't jboss use the username of oracle-ds.xml as schema for metadata 
access ?
If I set schema to "jboss" instead of null in SQLUtil.tableExists(), the 
deployment and table creation works fine.

Regards
Frank


---
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JVM Crashed while starting Jboss3.2 on solaris

2003-10-14 Thread Langelage, Frank

category : j2ee
release : 1.3.1
subcategory : other
type : bug
synopsis : JVM crashed Function name=JVM_NewInstanceFromConstructor
description : FULL PRODUCT VERSION :
java version "1.3.1_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_02-b02)
Java HotSpot(TM) Client VM (build 1.3.1_02-b02, mixed mode)
FULL OS VERSION :
SunOS dumont 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-60
 

This is not a problem of jboss but of your JDK or OS.
So you should upgrade your JDK to 1.3.1_09 or JDK 1.4.2_01. I'm using 
1.4.2_01 and have never seen such errors.
Perhaps you also may update your OS with current patches. The JDK uses 
dynamic libraries at runtime which sometimes have errors. Look for 
PatchPro at sun.com for this task.

Regards
Frank


---
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Exception staring Persistence Manager for JBoss3.2.2 with MySQL 4 .1

2003-09-26 Thread Langelage, Frank
FUHRER Patrik wrote:

Hi,

While starting the persistence manager, JBoss throws the following
exception...
10:47:19,988 INFO  [PersistenceManager] Starting
10:47:20,759 ERROR [PersistenceManager] Starting failed
org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions.
Message recovery may not be accurate; - nested throwable:
(java.sql.SQLException: General error,  message from server: "Table
'test.jms_messages' doesn't exist")
.
What does this mean? Is there an xml file somewhere which would be
responsible for this. Do I have to change some parameters? Can anybody
explain this?
Thanks a lot!

Patrik Fuhrer
 

You'll find a file named hsqldb-jdbc2-service.xml in 
$JBOSS_HOME/server//deploy/jms.
If you want to use mysql I'd recommend to
- rename this file to mysql-jdbc2-service.xml
- possibly replace the datasource name DefaultDS with your name (line 56)
- create the tables jms_messages and jms_transactions by hand. Look for 
CREATE_MEESAGE_TABLE and CREATE_TX_TABLE

If everything was correct, you will not see the error messages again.

Regards - Frank



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Core dumps in Jboss3.2.2.RC2 !

2003-08-21 Thread Langelage, Frank
I've no problems with JBoss 3.2.2RC3 on Solaris 9 (08/03) and J2SE 1.4.2 
on SunBlade 150.
I would advise you to use the newest JDK (1.4.2) and be up to date with 
system library patches for the OS.

Regards - Frank

Sacha Labourey wrote:

I am not using Solaris, is anyone using Solaris has a JVM to suggest? What
version of Solaris do you run (on which hardware?)
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Nishant Aggarwal
Sent: mercredi, 20. août 2003 02:49
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Core dumps in Jboss3.2.2.RC2 !

Hi Sacha,
Can you please let me the resolution of the problem? Which 
JVM version I
should use with JBoss3.2.2.RC2?

TIA,
Nishant.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sacha
Labourey
Sent: Tuesday, August 19, 2003 4:38 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Core dumps in Jboss3.2.2.RC2 !
I suspect this to be a JVM issue (there weas the same think 
with a previous
IBM JVM if I remember correctly)

Cheers,

sacha

   

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Nishant Aggarwal
Sent: mercredi, 20. août 2003 01:49
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Core dumps in Jboss3.2.2.RC2 !
Hi,
I am running "JBoss3.2.2RC2_Jetty4.2.11" on my Solaris 5.8
workstation and
the jboss installation is mounted
on NFS.
Now I connect to 2 machines and try running JBoss from these
machines.JBoss
comes up fine in both the machines.
I am also running "Mod-jk2_2.0.47" as load-balancer in
Apapche 2.0.47.The
http requests are forwarded by this
load balancer to my 2 Jboss servers.
As soon as I make a web-invocation , a core dump happens in
one of the JBoss
instance.
Can we run JBoss from the same directory but from different
machines,as it
happens quite often?
I am pasting the "core-dump" from the log file generated by JBoss:
-
An unexpected exception has been detected in native code
outside the VM.
Unexpected Signal : 10 occurred at PC=0xFF331134
Function=memcpy+0xB44
Library=/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
Current Java thread:
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1000(ZipFile.java:26)
at
java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:434)
- locked  (a java.util.jar.JarFile)
at java.util.zip.ZipFile$1.fill(ZipFile.java:227)
at
java.util.zip.InflaterInputStream.read(InflaterInputStream.java:134)
at sun.misc.Resource.getBytes(Resource.java:64)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:247)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at
org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClass
Loader.java:41
7)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
- locked  (a org.jboss.mx.loading.UnifiedClassLoader3)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(Unifi
edClassLoader.
java:256)
at
org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoad
ingTask.java:1
14)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:281)
at
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClas
sLoader3.java:
170)
- locked  (a org.jboss.mx.loading.UnifiedClassLoader3)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
- locked  (a org.jboss.mx.loading.UnifiedClassLoader3)
at org.mortbay.http.HttpMessage.(HttpMessage.java:78)
at org.mortbay.http.HttpRequest.(HttpRequest.java:133)
at
org.mortbay.http.HttpConnection.(HttpConnection.java:113)
at
org.mortbay.http.ajp.AJP13Connection.(AJP13Connection.java:52)
at
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Liste
ner.java:198)
at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:454)
Dynamic libraries:
0x1 /user/sujan/JDK1.4/j2sdk1.4.1_02/bin/java
0xff35  /usr/lib/libthread.so.1
0xff39  /usr/lib/libdl.so.1
0xff20  /usr/lib/libc.so.1
0xff33  /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
0xfe00
/user/sujan/JDK1.4/j2sdk1.4.1_02/jre/lib/sparc/server/libjvm.so
0xff1d  /usr/lib/libCrun.so.1
0xff1b  /usr/lib/libsocket.so.1
0xff10  /usr/lib/libnsl.so.1
0xff0d  /opt/SUNWspro/SC5.0/lib/libm.so.1
0xff30  /usr/lib/libw.so.1
0xff0b  /usr/lib/libmp.so.2
0xff08
/user/sujan/JDK1.4/j2sdk1.4.1_02/jre/lib/sparc/native_threads/
libhpi.so
0xff05
/user/sujan/JDK1.4/j

[JBoss-user] tomcat instead of jetty: where is my Servlet ?

2003-06-30 Thread Langelage, Frank
Some days ago, the servlet engine was changed from jetty to tomcat in 
JBoss-3.2.2RC2.

Today I tried to access my servlet, but I could not find it.
With jetty I could acces it with 
"http://localhost:8080/mbi4/servlet/LoadDataServlet";.

What is the correct URL now ?

Regards
Frank


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] massive performance decrease

2003-04-04 Thread Langelage, Frank
Today I executed my little performance test with current cvs-versions of 
3.2 and HEAD.
The execution time for this testcase dropped to ~ 60 min with HEAD: a 
significant improvement.
But the execution time with 3.2RC5 is even better: ~ 50 min.

So I will take your suggestion and use 3.2 for now.

regards - frank

Dain Sundstrom wrote:

Ok now it should be faster then is has ever been.  I have another idea 
on how to make it even better, but it should be super fast right now.

-dain

On Thursday, March 27, 2003, at 02:08 PM, Dain Sundstrom wrote:

JBoss HEAD is a work in progress.  The performance will get worse and 
better; there will be bugs.  You can't make an omelet without 
breaking a few eggs.  I suggest you use 3.2.

-dain

On Thursday, March 27, 2003, at 09:12 AM, Langelage, Frank wrote:

After the cvs update of JBoss-head yesterday, I encountered a 
massive performance decrease for one of my testcases.
The update included the changes from Dain of the last days.

Three EJB's are involved by this task:
1. Item, CMP EntityBean
   PK itemId
2. BoM, CMP EntityBean,
   PK primItemId+posNr
3. LoadData, StatelessSessionBean
Item has a unidirectional relation to BoM 
(Item.itemId->BoM.primItemId).
BoM has a relation back to Item (BoM.subItemId -> Item.subItemId).
LoadData opens a File, reads line by line and creates the beans for 
the data, all within one big transaction.
First loadItemData is executed, then loadBoMData.

The performance of loadBomData has dropped from about 1h 20min to 6h 
20min now (~36600 rows in file).
When loadBoMData starts, the CPU usage of my AppServer increases to 
85 - 90%. The CPU usage of database server drops to 7-9%.
(to compare: while loadItemData is running, AppServer 25%, DBServer 
75%).

Other data loads which also create beans with CMR work well or even 
slightly better than before.

Any comments ?

Regards - Frank



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for 
just $79/mo with 500 GB of bandwidth! No other company gives more 
support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] massive performance decrease

2003-03-27 Thread Langelage, Frank
After the cvs update of JBoss-head yesterday, I encountered a massive 
performance decrease for one of my testcases.
The update included the changes from Dain of the last days.

Three EJB's are involved by this task:
1. Item, CMP EntityBean
   PK itemId
2. BoM, CMP EntityBean,
   PK primItemId+posNr
3. LoadData, StatelessSessionBean
Item has a unidirectional relation to BoM (Item.itemId->BoM.primItemId).
BoM has a relation back to Item (BoM.subItemId -> Item.subItemId).
LoadData opens a File, reads line by line and creates the beans for the 
data, all within one big transaction.
First loadItemData is executed, then loadBoMData.

The performance of loadBomData has dropped from about 1h 20min to 6h 
20min now (~36600 rows in file).
When loadBoMData starts, the CPU usage of my AppServer increases to 85 - 
90%. The CPU usage of database server drops to 7-9%.
(to compare: while loadItemData is running, AppServer 25%, DBServer 75%).

Other data loads which also create beans with CMR work well or even 
slightly better than before.

Any comments ?

Regards - Frank



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EJBQL Help

2003-03-25 Thread Langelage, Frank
kiuma wrote:

Hello !
Can some one tell me why on this query 
* @ejb.finder
   *signature="java.util.Collection findByActivityEnabled(String
activityCode)"
   *query="SELECT OBJECT(center) FROM WaActivityCenter center WHERE
(center.activities.code = ?1) AND (center.status > 0)"
   *result-type-mapping="Local"
   * @jboss.query
   *signature="java.util.Collection findByActivityEnabled(String
activityCode)"
   *query="SELECT OBJECT(center) FROM WaActivityCenter center WHERE
(center.activities.code = ?1) AND (center.status > 0) ORDER BY
center.description"
   *result-type-mapping="Local"
   *strategy="on-load"
   *page-size="10"

during deployment I've the following error message?

08:06:55,473 WARN  [verifier] EJB spec violation: 
Bean   : ActivityCenter
Method : public abstract Collection findByActivityEnabled(String) throws
FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be associated
with a query element in the deployment descriptor.


With JBoss-4.0alpha I have to use a fully qualified classname also for 
the args of the finder.
Otherwise I get: "org.jboss.deployment.DeploymentException: Parameter 
class not found: String".
This is not the error message you get, but its the only significant 
difference I can see between your finder and mine.

@ejb.finder signature="java.util.Collection findByActivityEnabled(java.lang.String activityCode)"

You may give this a try.

Regards

Frank



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] default JNDI location for entity beans

2003-03-22 Thread Langelage, Frank
Simply try this:

   try{
   _context = (Context) new InitialContext();
   _messageLocalHome = (MessageLocalHome) 
_context.lookup("Message");
   }catch(NamingException ned){
   _systemLogger.error("Couldn't initialize all of the business 
objects: " + ned.getMessage());
   }

The type of the Message - Bean (MDB or Entity) doesn't matter.

Regards
Frank
Matthew Hixson wrote:

On Friday, March 21, 2003, at 11:29 AM, Adrian Brock wrote:

You need to specify an ejb-local-ref in your message driven bean
that points at the entity bean.


See below, in my original email, where I state that this is not a 
message driven bean.

Or just lookup the bean in global jndi (drop the java:comp/env/ejb).


As my email stated, I've tried that and I get:

09:41:03,404 ERROR [system] Couldn't initialize all of the business 
objects: ejb not bound

  -M@


Regards,
Adrian
From: Matthew Hixson <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [JBoss-user] default JNDI location for entity beans
Date: Fri, 21 Mar 2003 10:15:17 -0800
I have a service locator class that tries to find my Message entity 
bean. (Note the name of this bean is 'Message', but it really is an 
entity bean, not a Message Driven Bean.  It will store email messages.)

try{
_context = (Context) new 
InitialContext().lookup("java:comp/env/ejb");
_messageLocalHome = (MessageLocalHome) 
_context.lookup("Message");
}catch(NamingException ned){
_systemLogger.error("Couldn't initialize all of the 
business objects: " +

ned.getMessage());
}

On the console I see this:

 09:41:03,404 ERROR [system] Couldn't initialize all of the business 
objects: ejb not bound

Is there anything special I have to do to place my bean at a certain 
place in JNDI?  I'm using xdoclet to generate jboss.xml and 
jbosscmp-jdbc.xml.  Here's what I have in my MessageBean class.

/**
 * @ejb.bean
 * view-type="local"
 * name="Message"
 * type="CMP"
 * cmp-version="2.x"
 * schema="messages"
 * local-jndi-name="Message"
 * primkey-field="messageId"
 * @jboss.create-table create="true"
 * @ejb.interface
 * generate="local"
 * local-extends="javax.ejb.EJBLocalObject"
 * @ejb.home
 * local-extends="javax.ejb.EJBLocalHome"
 * @ejb.persistence
 * table-name="messages"
 */
I thought that the default location was "java:com/env/ejb".  Is 
there another value I should use in the call to 
InitialContext().lookup()?
  Thanks,
-M@

---
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


_
Chat online in real time with MSN Messenger http://messenger.msn.co.uk


---
This SF.net email is sponsored by:Crypto Challenge is now open! Get 
cracking and register here for some mind boggling fun and the chance 
of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by:Crypto Challenge is now open! Get 
cracking and register here for some mind boggling fun and the chance 
of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Out of Memory Exception

2003-03-17 Thread Langelage, Frank
Hi Michael,

how much memory did you jboss allow to allocate ?
By default, the JVM is able to allocate 64 MB before getting "Out of 
memory exception".
You may set environment variable "JAVA_OPTS" to "-Xms256m -Xmx256m" e.g. 
for allocating a maximum of 256 MB.

Regards
Frank
Michael Ukpong wrote:

Hi all

I have an application running on Jboss-Jetty 3.0.3.

We tested it in three environments.

1. Intel PIII 1.4Ghz 256MB ram ECC

 21 Users with frequent clicks...it was slow...thats all...

2. Duron 1.2 GHz 1GB ram. SDRAM

21 Users with frequent clicks...a little faster

   but started having OUT OF MEMORY EXCEPTION

3. Dual PIII 1.0GHz 1GB ram ECC

   21 Users with frequent clicks...much faster

   but very frequent OUT OF MEMORY EXCEPTION

So you see, I dont get it at all, the more the memory, the more 
frequent the out of memory exception...What does this mean?

Thanx in anticipation

 

 



-
Michael Ukpong
Enterprise Portal Architect
SocketWorks Ltd
+2348033473455
-

*With Yahoo! Mail you can get a bigger mailbox -- choose a size that 
fits your needs* 





---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] How to do a 'like' search using CMP in entity beans?

2003-02-22 Thread Langelage, Frank
Carsten Hammer wrote:

Hi,
I want to implement a search for all names that begin with 'Sm'.
Monson-Haefel claims this is impossible using EJB QL on a CMP field.
What does this mean?
It seems to be easy to build queries with a fixed pattern like

SELECT OBJECT(c) FROM Customer c WHERE c.lastName LIKE '%-%'

But how to do it if the pattern should be '%%'
where  is something that I catch from the 
GUI of my client application?

Thanks in advance,
Carsten 


You have to use a JBoss specific extension called JBoss-QL in this case.
In my AddressBean I declare a ejb.finder with a constant expression 
after like and use a jboss.query with a placeholder instead.
XDoclet generates the query in ejb-jar.xml and in jbosscmp-jdbc.xml.

* @ejb.finder  signature="java.util.Collection findByMatchcode( 
java.lang.String matchcode )"
*   view-type="local"
*   query="SELECT OBJECT(o) FROM Address AS o WHERE o.matchcode LIKE 
'SIEMENS%'"
*   result-type-mapping="Local"
* @jboss.query signature="java.util.Collection findByMatchcode( 
java.lang.String matchcode )"
*   query="SELECT OBJECT(o) FROM Address AS o WHERE o.matchcode LIKE ?1 
ORDER BY o.id"

Regards
Frank


---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss-HEAD: No tx support found for method: ....

2003-02-17 Thread Langelage, Frank
Yes, EntityBeans methods are called from a SessionBeans with BMT within 
a UserTransaction.

Regards
Frank

David Jencks wrote:

Thanks for reminding me, bill.

UserTransaction currently works only with TrunkInvoker.  If you are not
using UserTransaction when this problem occurs please let me know

thanks
david jencks

On 2003.02.17 17:41 Bill Burke wrote:
 

User transactions are broken I think, (if you're using them).

Bill

   

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Langelage,
Frank
Sent: Monday, February 17, 2003 4:34 PM
To: [EMAIL PROTECTED]
Cc: David Jencks
Subject: [JBoss-user] JBoss-HEAD: No tx support found for method: 


Hi All,

since cvs-update last weekend I get this warning for every method call 
on my entity beans.
But all bean transcations are CMT with transaction attribute Required.
 

I 
   

checked this in ejb-jar.xml.
I use XDoclet-1.2b2 for creating deployment descriptors.
Even setting transaction atribute on method level does not solve this 
problem.

Anybody else out there who gets the same problem now ?
Any solution for this ?


Regards
   Frank



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 

---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


   



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

 





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss-HEAD: No tx support found for method: ....

2003-02-17 Thread Langelage, Frank
Hi All,

since cvs-update last weekend I get this warning for every method call 
on my entity beans.
But all bean transcations are CMT with transaction attribute Required. I 
checked this in ejb-jar.xml.
I use XDoclet-1.2b2 for creating deployment descriptors.
Even setting transaction atribute on method level does not solve this 
problem.

Anybody else out there who gets the same problem now ?
Any solution for this ?


Regards
   Frank



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Problem with Query containing LIKE

2003-02-02 Thread Langelage, Frank
Hi All,

I want to search addresses by matchcode with wildcards.
So I declared a finder like this:

* @ejb.finder  signature="java.util.Collection findByMatchcode( 
java.lang.String matchcode )"
*   view-type="local"
*   query="SELECT OBJECT(o) FROM Address AS o WHERE o.matchcode LIKE ?1"
*   result-type-mapping="Local"

From SessionBean I want to call "...findByMatchcode( "SIEMENS%" )" e.g.

On deployment of the EntityBean I get an exception.
The EJBQLCompiler JBoss4 doesn't like this. It wants a STRING_LITERAL 
after LIKE.

How do I have to modify the query to get what I want.
Or is this not possible ?


Regards
   Frank



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] javax.transaction.UserTransaction not bound in JBoss3.0 ???

2003-01-29 Thread Langelage, Frank
Artur Jonak wrote:


Hi,

I want to use javax.transaction.UserTransaction in my servlet which is a
client of my ejb session bean.
But I get:

javax.naming.NameNotFoundException: javax.transaction.UserTransaction not
bound
   at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
   at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)

when I try to obtain it using:

ctx.lookup("javax.transaction.UserTransaction");

I thought that it has to be available under this name, or???

I use Jboss 3.0

What's going on,
Artur

 

Try without package name: ctx.lookup("UserTransaction");

Regards
   Frank



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Using CMR with PK-Field as FK

2002-12-31 Thread Langelage, Frank
I have two beans Feature and FeatureOption with CMR.
JBoss-HEAD created the tables correct, using the new feature to have the 
same field as FK to parent and part of PK:
   create table feature ( feature_id smallint not null,  description 
varchar(30),  primary key (feature_id)  constraint pk_feature );
   create table feature_option ( feature_id smallint not null, 
option_id integer not null,  description varchar(30),  primary key 
(feature_id,option_id) constraint pk_feature_option );
   alter table feature_option add constraint (foreign key (feature_id) 
references feature  constraint fk_featur_1isvfy8);

But everytime I try to add FeatureOptions to Feature, I get an Exception:
   java.lang.IllegalStateException: CMR field Feature_options is mapped 
to a foreign key which is a part for a primary key,
   and primary key may only be set once in ejbCreate [EJB 2.0 Spec.10.3.5].

My code looks like this:
feature = featureHome.create( feature_id, description );
coll = feature.getOptions();
featureOption = featureOptionHome.create( feature_id, option_id, 
description );
coll.add( featureOption ); // this line throws the exception.

So my Question is: How to add a FeatureOption to Feature ?




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Question about CMP/CMR

2002-12-29 Thread Langelage, Frank
Hallo Alex,

I know you ported this feature not long ago from HEAD to 3.2.

I use HEAD here and use this new feature for Bean2, if I understand it 
right.
Column festr.festa_serial is part of the primary key for festr and also 
foreign key for festr referencing festa.festa_serial.

But if the foreign key field is not part of the primary key, like in 
Bean3 (febdr), the foreign key field must not be CMP-Field in the bean. 
It's automatically added because of CMR.

As said, I would like jboss to recognize that the field already exists 
also in case of Bean3 and use this field for CMR.


Frank


Alex Loubyansky wrote:

Hello Frank,

in JBoss-3.2 (cvs version) you can map foreign key fields to primary
key fields. This is done by specifying the same column names for
foreign and primary key fields.

alex

Saturday, December 28, 2002, 9:12:26 PM, you wrote:

LF> JBoss-Head, JDK 1.4.1, Informix-DB

LF> Following given situation:
LF> Bean 1:
LF>  Name=Festa, DBTable=festa, PK=festa_serial
LF> Bean 2:
LF>  Name=Festr, DBTable=festr, PK=festa_serial+festr_pos_nr, 
FK=festa_serial ->> festa
LF> Bean 3:
LF>  Name=febdr, DBTable=febdr, PK=febdr_serial, FK=festa_serial -> festa

LF> As you can see, for bean 2 the CMR-Field festa_serial must be a 
LF> CMP-Field, because it's part of the PK.
LF> For bean 3 the CMR-Field festa_serial must not be a CMP-Field. Otherwise 
LF> you get a DeploymentException because of a "wrong" 
LF> SQL-CreateTable-Statement.
LF> The field festa_serial is mentioned twice here.
LF> I would like JBoss to recognize that the CMR-Field is already there as a 
LF> CMP-Field in both cases.

LF> So my question: Is this a Bug, a FeatureRequest or a must be which will 
LF> not be changed ?

 





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Question about CMP/CMR

2002-12-28 Thread Langelage, Frank
JBoss-Head, JDK 1.4.1, Informix-DB

Following given situation:
Bean 1:
Name=Festa, DBTable=festa, PK=festa_serial
Bean 2:
Name=Festr, DBTable=festr, PK=festa_serial+festr_pos_nr, 
FK=festa_serial -> festa
Bean 3:
Name=febdr, DBTable=febdr, PK=febdr_serial, FK=festa_serial -> festa

As you can see, for bean 2 the CMR-Field festa_serial must be a 
CMP-Field, because it's part of the PK.
For bean 3 the CMR-Field festa_serial must not be a CMP-Field. Otherwise 
you get a DeploymentException because of a "wrong" 
SQL-CreateTable-Statement.
The field festa_serial is mentioned twice here.
I would like JBoss to recognize that the CMR-Field is already there as a 
CMP-Field in both cases.

So my question: Is this a Bug, a FeatureRequest or a must be which will 
not be changed ?



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Transaction exception, possible timing problems?

2002-11-04 Thread Langelage, Frank
Jon Haugsand wrote:


When running a quite big transaction which takes around 5 minutes or
more, the following exception emerges.  Rerunning the transaction, it
fails on different places.

Are there any timout settings we have forgotten?
 

[Snipped]

The default transaction-timeout is 300 sec, defined in 
deploy/transaction-service.xml.
You may increase this value or use a UserTransaction.

Regards
Frank



---
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Programmatic Transaction Timeouts?

2002-11-01 Thread Langelage, Frank
Neal Sanche wrote:


Hi All,

For the most part, the default transaction timeout of 5 minutes is 
reasonable for my application. However there is one operation that 
the server needs to perform that, depending on the size of the files 
involved, can take 20 minutes, an hour, or more.

I'm interested in setting the transaction timeout for specific 
transactions to something much higher. Is that possible? I'm using 
JBoss 3.0.3, not using Tyrex, and Jetty for the web container.

Thanks for any advice.

-Neal
 

You can use a UserTransaction and set the TransactionTimeout:

   javax.transaction.UserTransaction trans;
   :
trans = (javax.transaction.UserTransaction)ctx.lookup( 
"UserTransaction" );
trans.begin();
trans.setTransactionTimeout( 86400 );
   :
   :
   if ( error )
   trans.rollback();
   else
   trans.commit();




---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JCA: problems on deployment

2002-10-22 Thread Langelage, Frank




I hope somebody out there can help me with this problem:

I trying to get my first JCA example running.
First I build a jar-file containing the compiled class-files.
This jar-file I put together with META-INF/ra.xml into a rar-file. This file
is deployed first without any problems.


http://java.sun.com/j2ee/dtds/connector_1_0.dtd'>

MBI3
MBI
1.0
MBI3-Connection
1.0

jca.mbi3.ManagedConnectionFactoryImpl
javax.resource.cci.ConnectionFactory
jca.mbi3.ConnectionFactoryImpl
javax.resource.cci.Connection
jca.mbi3.ConnectionImpl
NoTransaction

ConnectionURL
java.lang.String
/tmp/test.properties


BasicPassword
javax.resource.security.PasswordCredential

false





My mbi3-service.xml looks like this:



   
  
 
jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper
jboss.jca:service=RARDeployment,name=MBI3
eis/MBI3
 
  
  
 
0
20
5000
15
ByContainer
 
  
   



When I deploy the service-file, I get an exception from jboss-server:

2002-10-22 22:08:55,090 INFO  [org.jboss.system.server.Server] JBoss started in 60s:770ms
2002-10-22 22:10:30,270 INFO  [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/home/jboss/java/JBoss-cvs/jboss-head/build/output/jboss-4.0.0alpha/server/rm200/deploy/mbi3.rar
2002-10-22 22:10:30,470 INFO  [org.jboss.resource.RARDeployer] looking for nested deployments in : file:/home/jboss/java/JBoss-cvs/jboss-head/build/output/jboss-4.0.0alpha/server/rm200/deploy/mbi3.rar
2002-10-22 22:10:30,480 INFO  [org.jboss.resource.RARDeployer] nested deployment: file:/home/jboss/java/JBoss-cvs/jboss-head/build/output/jboss-4.0.0alpha/server/rm200/tmp/deploy/server/rm200/deploy/mbi3.rar/59.mbi3.rar-contents/mbi3.jar
2002-10-22 22:10:30,550 INFO  [org.jboss.deployment.JARDeployer] looking for nested deployments in : file:/home/jboss/java/JBoss-cvs/jboss-head/build/output/jboss-4.0.0alpha/server/rm200/tmp/deploy/server/rm200/deploy/mbi3.rar/59.mbi3.rar-contents/mbi3.jar
2002-10-22 22:10:30,580 INFO  [org.jboss.deployment.MainDeployer] Deployed package: file:/home/jboss/java/JBoss-cvs/jboss-head/build/output/jboss-4.0.0alpha/server/rm200/deploy/mbi3.rar
2002-10-22 22:10:35,780 INFO  [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/home/jboss/java/JBoss-cvs/jboss-head/build/output/jboss-4.0.0alpha/server/rm200/deploy/mbi3-service.xml
2002-10-22 22:10:35,800 INFO  [org.jboss.deployment.SARDeployer] looking for nested deployments in : file:/home/jboss/java/JBoss-cvs/jboss-head/build/output/jboss-4.0.0alpha/server/rm200/deploy/mbi3-service.xml
2002-10-22 22:10:35,850 INFO  [org.jboss.system.ServiceConfigurator] Problem configuring service jboss.jca:service=LocalTxDS,name=MBI3
org.jboss.deployment.DeploymentException: No Attribute found with name: JndiName
	at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:350)
	at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:187)
	at org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:455)
	at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:368)
	at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:187)
	at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:124)
	at org.jboss.system.ServiceController.install(ServiceController.java:220)
	at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:81)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:159)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:547)
	at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
	at $Proxy6.install(Unknown Source)
	at org.jboss.deployment.SARDeployer.create(SARDeployer.java:226)
	at org.jboss.deployment.MainDeployer.create(MainDeployer.java:791)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:606)
	at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:56)
	at org.jboss.mx.server.Invocation.i