RE: [JBoss-user] Standalone lookup - StreamCorruptedException

2003-07-02 Thread saroj kumar
Mangesh

Please ensure that JDK Version is same on client and Server

-Saroj

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>Magesh Prabhu
>Sent: Wednesday, July 02, 2003 7:35 PM
>To: jboss-user
>Subject: [JBoss-user] Standalone lookup - StreamCorruptedException
>
>
>Hi Guys,
>
>I'm doing a JNDI lookup from my Standalone Client to an 
>Session Bean deployed on JBoss. I have the following files in 
>standalone clients classpath:
>jboss-common-client.jar
>jboss-j2ee.jar
>jnp-client.jar
>
>I see the following stack.. Could any body please suggest me. 
>Thanks in advance,
>Magesh
>
>Environment : jboss-3.2.1_tomcat-4.1.24 on Jdk1.4.1
>
>---
>
>[INFO] - got [EMAIL PROTECTED] from 
>environment [{java.naming.provider.url=localhost:11099, 
>java.naming.factory.initial=org.jnp.interfaces.NamingContextFac
>tory, 
>java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interface
>s:com.sun.enterprise.naming}]
>[INFO] - performing lookup for IPManager's RequestReceiverBean 
>on [ipmanager/RequestReceiver]
>[ERROR] - javax.naming.CommunicationException. Root exception 
>is java.io.StreamCorruptedException:
>Type code out of range, is 125
>at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1280)
>at java.io.ObjectInputStream.readObject(ObjectInputStream.java:282)
>at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
>at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:978)
>at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
>at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
>at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
>at 
>org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:30)
>at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
>at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
>at javax.naming.InitialContext.lookup(InitialContext.java:354)
>---
>
>Please Node that I've configured my JBoss to run on 11099 
>instead of default 1099.
>
>
>
>**
>This email and its attachments are intended for the above 
>named only and may be confidential.  If they have come to 
>you in error, you must take no action based on them, nor 
>must you copy or show them to anyone; please reply to this 
>email and highlight the error.
>Security Warning: Please note that this email has been 
>created in the knowledge that the internet email is not a 
>100% secure communications medium.  We advise that you 
>understand and observe this lack of security when emailing us.
>Viruses:  Although we have taken steps to ensure that this 
>email and attachments are free from any virus, we advise 
>that in keeping with good computing practice the recipient 
>should ensure they are actually virus free.
>If you have received this email in error please notify:
>[EMAIL PROTECTED]
>**
>
>
>
>---
>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_061
>203_01/01
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
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] Virtual machine problems

2003-03-01 Thread saroj kumar
If you do not have many tags then it is msot likely to do
With Thread Signals in Linux.

Pls. refer to JDC Bug Database and you will get the workarounds also.

-Saroj
>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>Jordi Valldaura
>Sent: Friday, February 28, 2003 10:49 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] Virtual machine problems
>
>
>Are you sure, I dont have a lot of tags on my jsps, and I have 
>only 3 jsps.
>Sometimes it crashes when I'm not doing anything, its strange 
>I will try to
>use Blackdown jdk and reinstall the machine.
>
>Can you explain me which is this 64k limit, I supose in 
>windows there is
>this limit too, and my application never crashes in windows, Im getting
>crazy may be
>my linux is kicking me???
>
>thanks
>- Original Message -
>From: "saroj kumar" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, February 28, 2003 6:07 PM
>Subject: RE: [JBoss-user] Virtual machine problems
>
>
>> I am afraid it is so because there also you have this 64k limit
>>
>> Reduce some tags and let me know
>>
>> >-Original Message-
>> >From: [EMAIL PROTECTED]
>> >[mailto:[EMAIL PROTECTED] On Behalf Of
>> >Jordi Valldaura
>> >Sent: Friday, February 28, 2003 10:03 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: Re: [JBoss-user] Virtual machine problems
>> >
>> >
>> >Hi,
>> >
>> >thanks, I am not using struts but I use jstl 1.0.2 is there the same
>> >problem??
>> >
>> >- Original Message -
>> >From: "saroj kumar" <[EMAIL PROTECTED]>
>> >To: <[EMAIL PROTECTED]>
>> >Sent: Friday, February 28, 2003 4:32 PM
>> >Subject: RE: [JBoss-user] Virtual machine problems
>> >
>> >
>> >> Hi There,
>> >>
>> >> This bug can be found in JDC Bug database.
>> >>
>> >> Are you using Struts? If yes then your JVM may crash due to
>> >> High no. of struts tags in JSP. THere is some 64k limit on method
>> >> Size of a servlet which if exceeded results in this error.
>> >>
>> >> Solution for this is to take out some Struts tags and replace with
>> >> Normal java scriptlet.
>> >>
>> >> All this is applicable if you use Struts.
>> >>
>> >> There are other possible cases which are listed in Bug Database.
>> >>
>> >> -Saroj
>> >>
>> >>
>> >> >-Original Message-
>> >> >From: [EMAIL PROTECTED]
>> >> >[mailto:[EMAIL PROTECTED] On Behalf Of
>> >> >Jordi Valldaura
>> >> >Sent: Friday, February 28, 2003 8:35 PM
>> >> >To: [EMAIL PROTECTED]
>> >> >Subject: Re: [JBoss-user] Virtual machine problems
>> >> >
>> >> >
>> >> >Hello,
>> >> >
>> >> >thanks for your answer, but I dont use JNI on my
>> >application, any other
>> >> >idea??
>> >> >
>> >> >Looking at the generated log file doesn't seem to be helpful
>> >> >because there
>> >> >are only the jars in memory and this message :
>> >> >
>> >> >> # HotSpot Virtual Machine Error : 11
>> >> >> # Error ID : 4F530E43505002E6
>> >> >> # Please report this error at
>> >> >> # http://java.sun.com/cgi-bin/bugreport.cgi
>> >> >
>> >> >Is there any place where I can't find a description of this
>> >> >error (Error ID
>> >> >4F530E43505002E6)
>> >> >
>> >> >Thanks in advance
>> >> >- Original Message -
>> >> >From: "Pete Beck" <[EMAIL PROTECTED]>
>> >> >To: <[EMAIL PROTECTED]>
>> >> >Sent: Friday, February 28, 2003 3:36 PM
>> >> >Subject: Re: [JBoss-user] Virtual machine problems
>> >> >
>> >> >
>> >> >> This is a JVM problem.
>> >> >> Theoretically it shouldn't be possible to get such an 
>error from
>> >> >> anything you do within the JVM.
>> >> >>
>> >> >> However, if you use any JNI, then exceptions outside the JVM
>> >> >will cause
>> >> >> it to ke

RE: [JBoss-user] Virtual machine problems

2003-02-28 Thread saroj kumar
I am afraid it is so because there also you have this 64k limit

Reduce some tags and let me know

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>Jordi Valldaura
>Sent: Friday, February 28, 2003 10:03 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] Virtual machine problems
>
>
>Hi,
>
>thanks, I am not using struts but I use jstl 1.0.2 is there the same
>problem??
>
>----- Original Message -
>From: "saroj kumar" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, February 28, 2003 4:32 PM
>Subject: RE: [JBoss-user] Virtual machine problems
>
>
>> Hi There,
>>
>> This bug can be found in JDC Bug database.
>>
>> Are you using Struts? If yes then your JVM may crash due to
>> High no. of struts tags in JSP. THere is some 64k limit on method
>> Size of a servlet which if exceeded results in this error.
>>
>> Solution for this is to take out some Struts tags and replace with
>> Normal java scriptlet.
>>
>> All this is applicable if you use Struts.
>>
>> There are other possible cases which are listed in Bug Database.
>>
>> -Saroj
>>
>>
>> >-Original Message-
>> >From: [EMAIL PROTECTED]
>> >[mailto:[EMAIL PROTECTED] On Behalf Of
>> >Jordi Valldaura
>> >Sent: Friday, February 28, 2003 8:35 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: Re: [JBoss-user] Virtual machine problems
>> >
>> >
>> >Hello,
>> >
>> >thanks for your answer, but I dont use JNI on my 
>application, any other
>> >idea??
>> >
>> >Looking at the generated log file doesn't seem to be helpful
>> >because there
>> >are only the jars in memory and this message :
>> >
>> >> # HotSpot Virtual Machine Error : 11
>> >> # Error ID : 4F530E43505002E6
>> >> # Please report this error at
>> >> # http://java.sun.com/cgi-bin/bugreport.cgi
>> >
>> >Is there any place where I can't find a description of this
>> >error (Error ID
>> >4F530E43505002E6)
>> >
>> >Thanks in advance
>> >- Original Message -
>> >From: "Pete Beck" <[EMAIL PROTECTED]>
>> >To: <[EMAIL PROTECTED]>
>> >Sent: Friday, February 28, 2003 3:36 PM
>> >Subject: Re: [JBoss-user] Virtual machine problems
>> >
>> >
>> >> This is a JVM problem.
>> >> Theoretically it shouldn't be possible to get such an error from
>> >> anything you do within the JVM.
>> >>
>> >> However, if you use any JNI, then exceptions outside the JVM
>> >will cause
>> >> it to keel over like this.
>> >>
>> >> Looking the log file it produced might give you some clues.
>> >>
>> >> On Thu, 2003-02-27 at 11:16, Jordi Valldaura wrote:
>> >> > Hello
>> >> >
>> >> > Sometimes while running jboss I get the following virtual
>> >machine error:
>> >> >
>> >> > #
>> >> > # HotSpot Virtual Machine Error : 11
>> >> > # Error ID : 4F530E43505002E6
>> >> > # Please report this error at
>> >> > # http://java.sun.com/cgi-bin/bugreport.cgi
>> >> > #
>> >> > # Java VM: Java HotSpot(TM) Server VM (1.4.1_01-b01 mixed mode)
>> >> > #
>> >> > # An error report file has been saved as hs_err_pid616.log.
>> >> > # Please refer to the file for further information.
>> >> >
>> >> > I work with a linux slackware(2.4.18) and with windows
>> >2000, it only
>> >happens
>> >> > in linux, anyone has the same problem. Is my linux
>> >version?? is a jboss
>> >> > fault or a virtual machine fault
>> >> >
>> >> > Thanks in advance
>> >> >
>> >
>> >> > Jordi Valldaura i Riqué
>> >> > CSI - Centre de Serveis Informàtics
>> >> > Enginyeria i Arquitectura La Salle
>> >> > Universitat Ramón Llull
>> >> >
>> >
>> >> >
>> >> >
>> >> >
>> >> > ---
>>
>> >
>>
>>
>>
>> ---
>> 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


RE: [JBoss-user] Virtual machine problems

2003-02-28 Thread saroj kumar
Hi There,

This bug can be found in JDC Bug database.

Are you using Struts? If yes then your JVM may crash due to
High no. of struts tags in JSP. THere is some 64k limit on method
Size of a servlet which if exceeded results in this error. 

Solution for this is to take out some Struts tags and replace with
Normal java scriptlet.

All this is applicable if you use Struts.

There are other possible cases which are listed in Bug Database.

-Saroj


>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>Jordi Valldaura
>Sent: Friday, February 28, 2003 8:35 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] Virtual machine problems
>
>
>Hello,
>
>thanks for your answer, but I dont use JNI on my application, any other
>idea??
>
>Looking at the generated log file doesn't seem to be helpful 
>because there
>are only the jars in memory and this message :
>
>> # HotSpot Virtual Machine Error : 11
>> # Error ID : 4F530E43505002E6
>> # Please report this error at
>> # http://java.sun.com/cgi-bin/bugreport.cgi
>
>Is there any place where I can't find a description of this 
>error (Error ID
>4F530E43505002E6)
>
>Thanks in advance
>- Original Message -
>From: "Pete Beck" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, February 28, 2003 3:36 PM
>Subject: Re: [JBoss-user] Virtual machine problems
>
>
>> This is a JVM problem.
>> Theoretically it shouldn't be possible to get such an error from
>> anything you do within the JVM.
>>
>> However, if you use any JNI, then exceptions outside the JVM 
>will cause
>> it to keel over like this.
>>
>> Looking the log file it produced might give you some clues.
>>
>> On Thu, 2003-02-27 at 11:16, Jordi Valldaura wrote:
>> > Hello
>> >
>> > Sometimes while running jboss I get the following virtual 
>machine error:
>> >
>> > #
>> > # HotSpot Virtual Machine Error : 11
>> > # Error ID : 4F530E43505002E6
>> > # Please report this error at
>> > # http://java.sun.com/cgi-bin/bugreport.cgi
>> > #
>> > # Java VM: Java HotSpot(TM) Server VM (1.4.1_01-b01 mixed mode)
>> > #
>> > # An error report file has been saved as hs_err_pid616.log.
>> > # Please refer to the file for further information.
>> >
>> > I work with a linux slackware(2.4.18) and with windows 
>2000, it only
>happens
>> > in linux, anyone has the same problem. Is my linux 
>version?? is a jboss
>> > fault or a virtual machine fault
>> >
>> > Thanks in advance
>> > 
>
>> > Jordi Valldaura i Riqué
>> > CSI - Centre de Serveis Informàtics
>> > Enginyeria i Arquitectura La Salle
>> > Universitat Ramón Llull
>> > 
>
>> >
>> >
>> >
>> > ---

>



---
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: 2nd Try(PLS...) Re: [JBoss-user] Service startup

2003-02-25 Thread saroj kumar
Title: Message



Hey 
Murali,
 
It is 
very easy. Just write a MBean and your -service.xml. Drop these 
in deploy folder.
 
You 
can have a look at JNDIMap example in paydocs.
 
It is 
very simple to understand. 
 
-Saroj

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Muraly 
  RSent: Tuesday, February 25, 2003 12:58 PMTo: 
  [EMAIL PROTECTED]Subject: 2nd Try(PLS...) Re: 
  [JBoss-user] Service startupHi 
  GURUS,Please 
  Help!!!RegardsMuralyAt 11:53 24/02/2003 +0530, Muraly R 
  wrote:
  Hi,Currently 
I am working on the project of migrating an existing application from JOnAs 
to JBoss3.0.4 . The migration resulted for two reasons:1. Multi-context 
support(at EAR level).2. Performance results statistics.Coming 
to the query, the current application has some services which will get 
started when the JOnAs server is started. This achieved by implementing 
org.objectweb.jonas.service.Service inetrface in the class.In JBoss, 
how can this be achieved?I have the paid docs, but from that what I 
understand is the service is dependent on one of the JBoss service(JNDI 
example).Can I know, if there is an independent class which can be 
used to start the service classes, during JBoss startup, which the 
application already has.A detailed example would help, 
:-).RegardsMuraly---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] CMP2 - Field To Persist In Updates But Not Inserts

2003-01-06 Thread saroj kumar
Hi Nicholas,

Do not Make this field a part of ejbCreate() and 
Do not call this setter in INSERT.

But, call this setter in UPDATE.

-Saroj

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]] On Behalf Of Nicholas
>Sent: Monday, January 06, 2003 5:49 PM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] CMP2 - Field To Persist In Updates But 
>Not Inserts
>
>
>How can I define a CMP2 field to only persist in
>UPDATEs and not the initial INSERT ?
>
>Thanks.
>
>//Nicholas
>
>=
>Nicholas Whitehead
>Home: (973) 377 9335
>Cell: (201) 615 2716
>Work: (212) 622 5639
>[EMAIL PROTECTED]
>
>
>---
>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] java.rmi.ConnectException: Connection refused to host

2003-01-05 Thread saroj kumar
Hi,

I am trying to call 1 method on a SLSB remotely. 
I am running the method call in a thread which are being created
In a loop. 

BASIC idea is to simulate 50 Users concurrently accessing

If I create 40 threads then everything goes fine. But, the moment
I cross 45, I start getting this error:

java.rmi.ConnectException: Connection refused to host: 192.168.146.134;
nested exception is:
java.net.ConnectException: Connection refused: connect
at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvoker
Proxy.java:129)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:1
08)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.jav
a:77)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy4.create(Unknown Source)
at TestQE$Tester.run(TestQE.java:310)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.(Socket.java:290)
at java.net.Socket.(Socket.java:118)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSoc
ketFactory.java:22)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSoc
ketFactory.java:122)
at
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
... 12 more


Code Implementation 

private void threadedTesting() throws Exception
{
  Context jndiContext=getInitialContext();
 Object obj = jndiContext.lookup(JndiNames.QUERY_ENGINE);
  qeHome =
(QueryEngineHome)javax.rmi.PortableRemoteObject.narrow( obj,
QueryEngineHome.class );
   QueryEngine qe = (QueryEngine)qeHome.create();
for (int i=0; i http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] A few J2EE/EJB design questions

2002-12-28 Thread saroj kumar
Regarding Singleton, We can keep a reference in JNDI context or
In a session bean.

Usage of log4j: I have explained earlier on the list.

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]] On Behalf Of 
>Peter Fagerlund
>Sent: Saturday, December 28, 2002 6:42 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] A few J2EE/EJB design questions
>
>
>
>fredagen den 27 december 2002 kl 21.23 skrev Sasidharan, Manoj:
>
>> 1. Can a singleton class object be garbage collected by App server 
>> (JBoss)??
>> If so, can this be avoided/controlled?
>
>Keep a reference to Your object valid for the lifespan of the 
>same ! ...
>
>> 2. How to use Log4J for logging? Some pointers to 
>implementation would 
>> be
>> helpful.
>
>Read The Manual ! ...
>
>> 3. What is the best design strategy to provide a 
>configuration file to 
>> an
>> EJB application - XML, JMX, etc..??
>
>The best design is governed by Your application ! ...
>
>> 4. Does App Server (JBoss) have some built-in Auditing features..
>
>Yes - while in the (JBoss)  VM You can extract 'ALL' ! ...
>
>> 5. Can we get some service performance statistics from App server
>> * what was the min, avg and max response time for a Session bean 
>> method call
>> * and some other performance matrix pointing out system wide 
>> bottlenecks
>
>Yes You can ... email :  [EMAIL PROTECTED]
>
>> Thanks in advance for your time.
>
>You are Welcome
>/peter_f
>
>
>
>---
>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



RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE

2002-12-21 Thread saroj kumar
In that case, these settings are not going to work.

Are you doing some "SELECT FOR UPDATE" in one method and trying to
Access the same thing in other method?

One Thing, Can you change the TX Attribute to "Requires" of second
method and
Try it once.

-Saroj


>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]] On Behalf Of 
>[EMAIL PROTECTED]
>Sent: Saturday, December 21, 2002 1:35 AM
>To: [EMAIL PROTECTED]
>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>
>
>
>Hi Saroi,
>
>not exactly - in this case I use session beans for calling data access
>layer that accesses database. Connection is picked up from 
>pool and used.
>So in this case I do not use entity beans.
>
>Thanks
>
>Mark
>
>
>
>   
>       
>
>"saroj kumar"  
>   
>
><[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]>
>
>Sent by:cc:
> (bcc: Marek Sedliak/BYS/SOFTIP)   
>
>[EMAIL PROTECTED]
>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE 
>   
>eforge.net 
>   
>
>   
>   
>
>   
>   
>
>20.12.2002 18:15   
>   
>
>Please respond to jboss-user   
>   
>
>   
>   
>
>   
>   
>
>
>
>
>
>Hi Marek,
>
>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]] On Behalf Of
>>[EMAIL PROTECTED]
>>Sent: Friday, December 20, 2002 10:13 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>>
>>
>>
>>Thank you veru much for you're helping me.
>>
>>I looked at standardjboss.xml but there is no change to set
>>commit option
>>for session bean - just for entity beans.
>
>Yes, there is no such thing for Session Bean.
>
>But, how are you accessing Entity Beans? You must be calling
>Them through Session Beans only.
>
>Or, you are making JDBC Calls?
>
>
>
>
>>
>>
>>Marek
>>
>>
>>
>>
>>
>>
>>
>>"saroj kumar"
>>
>>
>><[EMAIL PROTECTED]> To:
>> <[EMAIL PROTECTED]>
>>
>>Sent by:cc:
>> (bcc: Marek Sedliak/BYS/SOFTIP)
>>
>>[EMAIL PROTECTED]
>>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>>
>>eforge.net
>>
>>
>>
>>
>>
>>
>>
>>
>>20.12.2002 16:15
>>
>>
>>Please respond to jboss-user
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>Replies inline
>>
>>>-Original Message-
>>>From: [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]] On Behalf Of
>>>[EMAIL PROTECTED]
>>>Sent: Friday, December 20, 2002 7:49 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>>>
>>>
>>>
>>>Hi Saroj,
>>>
>>>thank you for your help.
>>>Ad 1 -  I'm sorry, but what is commit option B/C
>>
>>These are different ways to handle Transactions and bean life cycle.
>>Default Commit option is A. You can have a look at
>>JBOSS_HOME\server\

RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE

2002-12-20 Thread saroj kumar
Hi Marek,


>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]] On Behalf Of 
>[EMAIL PROTECTED]
>Sent: Friday, December 20, 2002 10:13 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>
>
>
>Thank you veru much for you're helping me.
>
>I looked at standardjboss.xml but there is no change to set 
>commit option
>for session bean - just for entity beans.

Yes, there is no such thing for Session Bean.

But, how are you accessing Entity Beans? You must be calling 
Them through Session Beans only.

Or, you are making JDBC Calls?




>
>
>Marek
>
>
>
>
>   
>       
>
>"saroj kumar"  
>   
>
><[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]>
>
>Sent by:cc:
> (bcc: Marek Sedliak/BYS/SOFTIP)   
>
>[EMAIL PROTECTED]
>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE 
>   
>eforge.net 
>   
>
>   
>   
>
>   
>   
>
>20.12.2002 16:15   
>   
>
>Please respond to jboss-user   
>   
>
>   
>   
>
>   
>   
>
>
>
>
>
>Replies inline
>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]] On Behalf Of
>>[EMAIL PROTECTED]
>>Sent: Friday, December 20, 2002 7:49 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>>
>>
>>
>>Hi Saroj,
>>
>>thank you for your help.
>>Ad 1 -  I'm sorry, but what is commit option B/C
>
>These are different ways to handle Transactions and bean life cycle.
>Default Commit option is A. You can have a look at
>JBOSS_HOME\server\default\
>Conf\standardjboss.xml.
>
>I use Commit Option B in this way:
>
>Snippet from jboss.xml
>--
>
>
>
>   "-//JBoss//DTD JBOSS 3.0//EN"
>   "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";>
>
>
>  false
>  
>
>
>
>Instance Per Transaction CMP 2.x
>EntityBean
>
>B
>
>  
>
>  
>
>
>
>  
>
> 
>   AddressTypeMaster
>   Instance 
>Per Transaction
>CMP
>2.x EntityBean
>   sdsdsdsd
>
>dsdsdsdlcoal
>
> 
>  
>
>
>
>May be you can try this.
>
>
>>Ad 2 - I have tried it but didn't help. Anyway, I see you use oci jdbc
>>driver (jdbc:oracle:oci8:@RPM-9I) and I use thin JDBC driver.
>>Do you think
>>it could be a source of my problem ? Why do you use oci driver ?
>
>This problem will not be due to thin driver. I use OCI to handle CLOB.
>
>
>>Thanks a lot.
>>
>>Mark
>>
>>
>>
>>
>>
>>
>>
>>"saroj kumar"
>>
>>
>><[EMAIL PROTECTED]> To:
>> <[EMAIL PROTECTED]>
>>
>>Sent by:cc:
>> (bcc: Marek Sedliak/BYS/SOFTIP)
>>
>>[EMAIL PROTECTED]
>>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>>
>>eforge.net
>>
>>
>>
>>
>>
>>
>>
>>

RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE

2002-12-20 Thread saroj kumar
Replies inline 

>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]] On Behalf Of 
>[EMAIL PROTECTED]
>Sent: Friday, December 20, 2002 7:49 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>
>
>
>Hi Saroj,
>
>thank you for your help.
>Ad 1 -  I'm sorry, but what is commit option B/C

These are different ways to handle Transactions and bean life cycle.
Default Commit option is A. You can have a look at
JBOSS_HOME\server\default\
Conf\standardjboss.xml.

I use Commit Option B in this way:

Snippet from jboss.xml
--



http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";>


  false
  



Instance Per Transaction CMP 2.x
EntityBean

B

  

  



  


AddressTypeMaster
Instance Per Transaction CMP
2.x EntityBean
sdsdsdsd
dsdsdsdlcoal


  



May be you can try this.


>Ad 2 - I have tried it but didn't help. Anyway, I see you use oci jdbc
>driver (jdbc:oracle:oci8:@RPM-9I) and I use thin JDBC driver. 
>Do you think
>it could be a source of my problem ? Why do you use oci driver ?

This problem will not be due to thin driver. I use OCI to handle CLOB.


>Thanks a lot.
>
>Mark
>
>
>
>
>   
>       
>
>"saroj kumar"  
>   
>
><[EMAIL PROTECTED]> To:
> <[EMAIL PROTECTED]>
>
>Sent by:cc:
> (bcc: Marek Sedliak/BYS/SOFTIP)   
>
>[EMAIL PROTECTED]
>Subject: RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE 
>   
>eforge.net 
>   
>
>   
>   
>
>   
>   
>
>20.12.2002 13:39   
>   
>
>Please respond to jboss-user   
>   
>
>   
>   
>
>   
>   
>
>
>
>
>
>Hi Mark,
>
>2 things come to my mind:
>
>1) Try commit option B/C They solve Deadlock problems quite nicely.
>
>2) Add READ COMMITED Isolation Level as shown here in 
>oracle-service.xml
>
>
>
>  
>  name="jboss.jca:service=LocalTxDS,name=OracleDS">
>
>OracleDS
>
>
>
>
>   type="java.lang.String">jdbc:oracle:thin:@youroraclehost:1521:y
>oursidonfig-property>
>   type="java.lang.String">jdbc:oracle:oci8:@RPM-9I
>   type="java.lang.String">oracle.jdbc.driver.OracleDriver-property
>>
>   
>   type="java.lang.String">SDSDS
>   type="java.lang.String">SDSDSD
>   type="java.lang.String">TRANSACTION_READ_COMMITTED
>
>  
>
>
>
>
>
>optional-attribute-name="OldRarDeployment">jboss.jca:service=RA
>RDeployme
>nt,name=JBoss LocalTransaction JDBC Wrapper
>  
>
>
>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]] On Behalf Of
>>[EMAIL PROTECTED]
>>Sent: Friday, December 20, 2002 5:47 PM
>>To: [EMAIL PROTECTED]
>>Subject: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>>
>>
>>
>>
>>Hi All.
>>
>>I have already searched the forum but haven't found any
>>answer. Pl

RE: [JBoss-user] TRANSACTION ISOLATION and ORACLE

2002-12-20 Thread saroj kumar
Hi Mark,

2 things come to my mind:

1) Try commit option B/C They solve Deadlock problems quite nicely.

2) Add READ COMMITED Isolation Level as shown here in oracle-service.xml



  
  

OracleDS




jdbc:oracle:thin:@youroraclehost:1521:yoursid
jdbc:oracle:oci8:@RPM-9I 
oracle.jdbc.driver.OracleDriver

SDSDS
SDSDSD
TRANSACTION_READ_COMMITTED
 
  
  




jboss.jca:service=RARDeployme
nt,name=JBoss LocalTransaction JDBC Wrapper
  



>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED]] On Behalf Of 
>[EMAIL PROTECTED]
>Sent: Friday, December 20, 2002 5:47 PM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] TRANSACTION ISOLATION and ORACLE
>
>
>
>
>Hi All.
>
>I have already searched the forum but haven't found any 
>answer. Please, I
>would appreciate any suggestions. I have the following problem :
>
>I've got two session beans. The first one has a method with Required
>transaction attribute and the second one has a method with RequiresNew
>transaction attribute. The following code hags - because the first
>transaction is blocking the second one.
>
>// the following code hangs
>class SessionBean {
>
>public void hasRequiredAttribute() {
>  .. . . . . . .
>   // it hangs here !!
>  anotherSessionBean.hasRequiresNewAttribute(); // method 2
>
>} //of method
>
>} //of class
>
>It looks like SERIALIZABLE isolation level is set - in the first method
>(Required attribute) I just query the data (just SELECT) but 
>it locks the
>bean. Does JBoss always use "pessimistic concurrency" at the 
>server level ?
>My DB is Oracle and it has its default isolation level set to
>READ_COMMITTED. With this isolation level, the above problem should not
>have occured. How can I determine what isolation level is 
>being implemented
>in JBoss? Or how can I change that?  I think it should be possible to
>change it in oracle-service.xml. But it looks it doesn't work 
>or I do that
>wrong. Also I have tried to set it for a SESSION - didn't help.
>
>
>Thanks a lot.
>
>Mark
>
>
>
>---
>This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
>Time is running out!  Thinkgeek.com has the coolest gifts for
>your favorite geek.   Let your fingers do the typing.   Visit Now.
>T H I N K G E E K . C O Mhttp://www.thinkgeek.com/sf/
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O Mhttp://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Virtual hosting question

2002-12-16 Thread saroj kumar
Hi Gary,

It would be great if you provide some more info.

TIA,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Gary S.
Cuozzo
Sent: Tuesday, December 17, 2002 4:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Virtual hosting question


i'm doing this right now and just got it working today.  i have a single

webapp "/global" that will serve all our virtual host customers a set of

functionality.  i'm using jboss 3.x series with embedded tomcat 
front-ended with apache.

i just have a straight-up .war file right now, with no jboss-web file. 
 just a bunch of servlets/jsp's.  all i did was tell apache to pass all 
requests for "/global" to tomcat via the connector with the proper mount

command in httpd.conf.

i'm on my way out, but can send more detailed info tomorrow if you need
it.

hth,
gary.


poo wrote:

> Hello,
>
> Is there a way to configure multiple virtual hosts to use the same 
> webapp?  It appears that jboss-web only allows one virtual-host param.
>
> thanks
>
> S
>
>
> Scott M Stark wrote:
>
>> I looked at the problem this morning and the problem is that you have

>> to setup
>> Host elements that matches the virtual host names used in the 
>> jboss-web.xml,
>> for example:
>>
>>
>>  
>> 
>>
>>   >  verbosityLevel = "trace" category = 
>> "org.jboss.web.localhost.Engine"/>
>> ...
>>   
>>  > "org.apache.catalina.valves.AccessLogValve"
>> prefix = "a_access" suffix = ".log"
>> pattern = "common" directory = 
>> "../server/default/log" />
>>  > "true" override = "true" />
>>   
>>   
>>  > "org.apache.catalina.valves.AccessLogValve"
>> prefix = "b_access" suffix = ".log"
>> pattern = "common" directory = 
>> "../server/default/log" />
>>  > "true" override = "true" />
>>   
>> ...
>>
>> With this I can deploy two wars to the a.dom.com and b.dot.com 
>> virtual hosts
>> with both using the root context:
>>
>> 14:34:03,706 INFO  [MainDeployer] Starting deployment of package:
>> file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/
>> 14:34:03,716 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=, 
>> warUrl=file:/C:
>> /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/a.war/
>> 14:34:03,786 INFO  [Engine] WebappLoader[]: Deploying class 
>> repositories to work
>> directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\a.dot.com\_
>> 14:34:03,786 INFO  [Engine] StandardManager[]: Seeding random number 
>> generator class java.security.SecureRandom
>> 14:34:03,786 INFO  [Engine] StandardManager[]: Seeding of random 
>> number generator has been completed
>> 14:34:04,828 INFO  [Engine] ContextConfig[]: Added certificates -> 
>> request attribute Valve
>> 14:34:05,048 INFO  [EmbeddedCatalinaServiceSX] Using Java2 parent 
>> classloader delegation: true
>> 14:34:05,048 INFO  [Engine] StandardWrapper[:default]: Loading 
>> container servlet default
>> 14:34:05,048 INFO  [Engine] StandardWrapper[:invoker]: Loading 
>> container servlet invoker
>> 14:34:05,098 INFO  [MainDeployer] Deployed package: 
>> file:/C:/tmp/JBoss/jboss-3.0
>> .3RC1/server/tomcat/deploy/a.war/
>> 14:34:05,098 INFO  [MainDeployer] Starting deployment of package:
>> file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/
>> 14:34:05,118 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=, 
>> warUrl=file:/C:
>> /tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/
>> 14:34:05,128 INFO  [Engine] WebappLoader[]: Deploying class 
>> repositories to work
>> directory C:\tmp\JBoss\jboss-3.0.3RC1\catalina\work\b.dot.com\_
>> 14:34:05,128 INFO  [Engine] StandardManager[]: Seeding random number 
>> generator class java.security.SecureRandom
>> 14:34:05,128 INFO  [Engine] StandardManager[]: Seeding of random 
>> number generator has been completed
>> 14:34:05,198 INFO  [Engine] ContextConfig[]: Added certificates -> 
>> request attribute Valve
>> 14:34:05,268 INFO  [EmbeddedCatalinaServiceSX] Using Java2 parent 
>> classloader delegation: true
>> 14:34:05,268 INFO  [Engine] StandardWrapper[:default]: Loading 
>> container servlet default
>> 14:34:05,268 INFO  [Engine] StandardWrapper[:invoker]: Loading 
>> container servlet invoker
>> 14:34:05,358 INFO  [MainDeployer] Deployed package: 
>> file:/C:/tmp/JBoss/jboss-3.0.3RC1/server/tomcat/deploy/b.war/
>>
>> testsuite 371>wget http://b.dot.com:8080/index.html
>> --14:45:55--  http://b.dot.com:8080/index.html
>>   => `index.html.2'
>> Resolving b.dot.com... done.
>> Connecting to b.dot.com[127.0.0.1]:8080... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 64 [text/html]
>>
>> 100%[>] 6462.50K/s

>> ETA 00:00
>>
>> 14:45:55 (62.50 KB/s) - `index.html.2' saved [64/64]
>>
>> testsuite 372>wget http://a.dot.com:8

RE: [JBoss-user] SQL Exception

2002-12-16 Thread saroj kumar
Hi Vassilis,

I think this post may be of your use:

http://p2p.wrox.com/archive/enterprise_java_beans/2002-09/1.asp


Oracle uses optimistic concurrency. As a consequence, even with a
setting of
TRANSACTION_SERIALIZABLE, Oracle does not detect serialization problems
until commit time. Hence the message :
java.sql.SQLException: ORA-08177: can't serialize access for
this 
transaction
Even if you use the TRANSACTION_SERIALIZABLE setting for an EJB, you may
receive exceptions or rollbacks in the EJB client if contention occurs
between clients for the same rows. To avoid these problems, make sure
that
the code in your client application catches and examines the SQL
exceptions,
and take you take the appropriate action to resolve the exceptions, such
as
restarting the transaction. 



-Saroj
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Mokas
Vassilis ([EMAIL PROTECTED])
Sent: Monday, December 16, 2002 7:38 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] SQL Exception


Hi all,

I am running an application (Session EJB) that adds some entries in an
OracleDB through entity beans.

When I execute only one client of me application, there is no problem at
all.

However when I execute 300 clients concurrently for the same application
a
message

"java.sql.SQLException: can't serialize access for this transaction"

appears.

Any help?

Thanks
Vassilis
  


---
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Complicated Issue - may require more experience

2002-12-06 Thread saroj kumar
Hi Will,

Why don't you re-post the question.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Will Senn
Sent: Thursday, December 05, 2002 7:10 PM
To: Jboss-User
Subject: [JBoss-user] Complicated Issue - may require more experience


Hi all,

Go back a couple of days and see if any of you can answer the
Tomcat/Jetty
question.  Or is it of such overwhelming complexity as to befuddle all
Jboss-User readers?

Thanks,

Will




---
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



RE: [JBoss-user] Re: JBoss-user digest, Vol 1 #3442 - 8 msgs

2002-12-04 Thread saroj kumar
Use this:

   

java:/OracleDS
Oracle9i

  false
false
   

It will stop JBOSS from trying to create and drop tables.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Barney
Rubble
Sent: Wednesday, December 04, 2002 4:58 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Re: JBoss-user digest, Vol 1 #3442 - 8 msgs


I knew about the forums (interface is kinda klunky) but the "user"
mailing
list claims you have to be a "member of this group" to view the archive
on
sourceforge: the other two archives are viewable. Anyway, I will try to
find
out why an attempt is made to create tables when I deploy my EJB when I
know
they already exist and do not want them auto-generated. I would ask you
but
then that would burn my support incident :)

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 03, 2002 2:51 PM
Subject: JBoss-user digest, Vol 1 #3442 - 8 msgs


> Send JBoss-user mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JBoss-user digest..."
>
>
> Today's Topics:
>
>1. Help!! accessing secure ejb from another ejb located on a
diferent
>server (=?ISO-8859-1?Q?Jordi_Valldaura_i_Riqu=E9?=)
>2. Using a JBOSS DataSource Outside of JBOSS (Ed Saikali)
>3. Re: custom function extensions to EJB-QL? (Glenn Lewis)
>4. Re: Using a JBOSS DataSource Outside of JBOSS (David Jencks)
>5. Re: custom function extensions to EJB-QL? (Dain Sundstrom)
>6. HELP!? Works in JBoss-3.0.4 with JBossWeb (Jetty), and Tomcat
4.1.12
Standalone  - not in JBoss-3.0.4+Tomcat-4.1.12-LE-jdk14 (Will Senn)
>7. Re: Using a JBOSS DataSource Outside of JBOSS (Dan
Christopherson)
>
> --__--__--
>
> Message: 1
> Date: Tue, 03 Dec 2002 21:20:49 +0100
> From: =?ISO-8859-1?Q?Jordi_Valldaura_i_Riqu=E9?=
<[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Help!! accessing secure ejb from another ejb
located
on a diferent
>  server
> Reply-To: [EMAIL PROTECTED]
>
> Hello,
>
> I'm developing my end of degree project. I have sevaral jboss
servers=20
> with the same secure ejbs in. Is there anyway to call an ejb inside
one=20
> of my servers from an ejb inside another jboss server without
jaas(but=20
> in a secure way), maybee some "homemade" authentication module.
>
> I've got it working with jaas clientloginmodule, but its ugly and
not=20
> portable to other application servers.
>
> I'm using jboss3.0.4 with jetty plus cocoon2.0.3.
>
> Any help would be appreciated
>
> Thanks in advance,
>
> 
> Jordi Valldaura i Riqu=E9
> CSI - Centre de Serveis Inform=E0tics
> Enginyeria i Arquitectura La Salle
> Universitat Ram=F3n Llull
> 
>
>
>
> --__--__--
>
> Message: 2
> Date: Tue, 3 Dec 2002 16:35:01 -0500
> From: "Ed Saikali" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: [JBoss-user] Using a JBOSS DataSource Outside of JBOSS
> Reply-To: [EMAIL PROTECTED]
>
> Hi,
>
> Is it possible to use a JBOSS data source outside JBOSS, is there a
way
> to put the JBOSS data source in the public part of the JNDI Tree?
>
> Thanks
> Ed
>
>
> --__--__--
>
> Message: 3
> Date: Wed, 04 Dec 2002 08:48:39 +1100
> From: Glenn Lewis <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] custom function extensions to EJB-QL?
> Reply-To: [EMAIL PROTECTED]
>
>
> Though it can be done without EJB-QL ... at the moment we call a
> database function from a standard SQL call.
>
> --
> Glenn
>
> Dain Sundstrom wrote:
> > No.  I'm considering adding it in 4.0.  I am thinking something like
this.
> >
> > stringFunction(name, arg1, arg2, ..., argN)
> >
> > There would be a function wrapper for each EJB-QL type.  This would
> > allow new functions to easily plug in to the strongly typed EJB-QL.
> > Again, I'm just considering this.
> >
> > -dain
> >
> > On Tuesday, December 3, 2002, at 03:37 AM, Matthew Hixson wrote:
> >
> >> Does JBoss support defining custom functions that map to functions
> >> defined in the database for extending EJB-QL?
> >>   Thanks,
> >>-M@
> >>
> >>
> >>
> >> ---
> >> This SF.net email is sponsored by: Get the new Palm Tungsten T
> >> handheld. Power & Color in a compact size!
> >> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> >> ___
> >> JBoss-user mailing list
> >> [EMAIL PROTECTED]
> >> https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> >
> >
> > 

RE: [JBoss-user] JBOSS documentation

2002-12-04 Thread saroj kumar
It is good and real HELPFUL.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Cristiano
Silva
Sent: Wednesday, December 04, 2002 11:19 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBOSS documentation


Hi friends! I'd like to know about the official JBoss docs: it's good or
not? 
May I buy them and have secure and easy information about configuring
it?



Cristiano Moreira Silva
http://computologo.vila.bol.com.br
[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Microsoft Visual Studio.NET 
comprehensive development tool, built to increase your 
productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Error Saving Entity with Oracle

2002-11-27 Thread saroj kumar
May be the DATA TYPE mapping is incorrect in dd.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Todd M
Benge
Sent: Wednesday, November 27, 2002 5:39 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Error Saving Entity with Oracle


Hi,

I'm running into troubles when saving an entity bean in Oracle 8.1.7. 
 The same code works properly when the datasource is a MS SQL Server 
database.  The following exception is displayed in the log file.  I'd 
appreciate any tips.

Thanks.

Todd

2002-11-26 16:50:20,619 ERROR [org.jboss.ejb.GlobalTxEntityMap] Store 
failed on entity: NetworkElementBean
java.rmi.ServerException: Store failed; nested exception is:
java.lang.ClassCastException
at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStore
EntityCommand.java:100)
at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersis
tenceManager.java:301)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceMa
nager.java:458)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.storeEn
tity(CachedConnectionInterceptor.java:388)
at
org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:708)
at 
org.jboss.ejb.GlobalTxEntityMap.syncEntities(GlobalTxEntityMap.java:99)
at 
org.jboss.ejb.GlobalTxEntityMap$GlobalTxEntityMapCleanup.beforeCompletio
n(GlobalTxEntityMap.java:168)
at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1394)
at org.jboss.tm.TxCapsule.commit(TxCapsule.java:364)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:73)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
CMT.java:201)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
a:130)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer
.java:313)
at org.jboss.ejb.Container.invoke(Container.java:712)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:381
)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
va:701)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassCastException
at 
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState
ment.java:1959)
at 
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState
ment.java:2052)
at 
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObject(L
ocalPreparedStatement.java:607)
at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.jav
a:351)
at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.setParameters(JDB
CStoreEntityCommand.java:133)
at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java
:175)
at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStore
EntityCommand.java:96)
... 27 more




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



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



RE: [JBoss-user] log4j and jboss: where is log4j.properties?

2002-11-26 Thread saroj kumar
Hi,

Sorry for delayed reply.

You need to create a Category like :

   --- Your package hier.
 -- the level of logging you want to enable
  

Then you need to use either default appenders (Console and File) or
You can have your own. Refer to log4j.xml. 

If you want to get the LOG msg. in your FILE Appender then
You may have to change the "Threshold" value to your "Priority"
value,say, Debug.
And NEED to change "Append" to "true".

EXAMPLE:

 
  




HTH,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of linuxman
Sent: Sunday, November 24, 2002 7:04 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] log4j and jboss: where is log4j.properties?


Thanks first!

Yes, I noticed that in $JBOSS_HOME/server/default/conf, there is 
log4j.xml, then you mean, I can use this default properties for my jboss

application deployed in $JBOSS_HOME/server/default/deploy?

But my test application run correctly, just say nothing:-), not log to 
log/server.log. Here is some snippits of my code:

static Logger logger = Logger.getLogger(UserInfoBean.class.getName());
..
logger.debug( "UserInfoBean: entering ejbCreate");


You see, very simple.

It seemed that, my looger can not find jboss's log4j.xml. Must I use 
PropertyConfigrator to load log4j.xml? I don't think so. I just want to 
use the default one that jboss give me:-). But how to?

Any hints?

Thanks in advance!


saroj kumar ??:

>Hi,
>
>You can configure your log4j.xml in JBOSS_HOME\conf
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]] On Behalf Of linuxman
>Sent: Saturday, November 23, 2002 9:40 PM
>To: jboss ml
>Subject: [JBoss-user] log4j and jboss: where is log4j.properties?
>
>
>hi,
>
>I want to use apache log4j in my jboss j2ee application, but where 
>should I put log4j.properties? which directory?
>
>thanks in advance!
>
>linuxman
>
>
>
>  
>





---
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: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] multi-threaded remote client

2002-11-26 Thread saroj kumar
Hi ,

1st Problem can be solved using Commit Option B/C. Refer to TX related
Stuff.

2nd Prob is due to the fact that you are iterating the CMR Collection
In a different TX. Error Message is explanatory.

Are you using TXNew Attribute in one of your methods? It may be due to
this.

Ex:

SLSB A.doSomething()  B.getX() 

A.doSomething() has TX Required And B.getX() has TX New and it returns 
You a CMR Collection.

Of Course, there may be other combinations as well.

-Saroj







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Beau Cronin
Sent: Tuesday, November 26, 2002 3:18 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] multi-threaded remote client


Hi all.  I've been having problems with a multi-threaded remote client. 
  I'd like to have two threads on a client accessing JBoss remotely, 
possibly the same data at the same time.  When I do this naively and 
both clients try to access the same entities, JBoss throws one of two 
errors:

13:40:57,457 ERROR [BeanLock] Application deadlock detected: 
TransactionImpl:XidImpl [FormatId=257, 
GlobalId=misosoup.ICSI.Berkeley.EDU//19663, BranchQual=] has deadlock 
conditions.  Two or more transactions contending for same resources and 
each have locks eachother need.

or

13:43:09,470 ERROR [STDERR] 
javax.ejb.TransactionRolledbackLocalException: The iterator of a CMR 
collection may only be used within the transction in which it which it 
was created

In the first case, it seems like each thread is creating its own 
transaction and that these transactions are in contention.  In the 
second, it seems like both threads are triggering calls in the same 
transaction and that these are trying to iterate over the same CMR 
Collection.

I've tried using both the same remote object and different ones; both 
situations lead to the same result.

So the question is: how do I do multithreaded remote access from a 
client to avoid this?  Note that different clients don't have this 
problem, only mutlitple threads from the same client.

Thanks,

Beau Cronin



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



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



RE: [JBoss-user] log4j and jboss: where is log4j.properties?

2002-11-23 Thread saroj kumar
Hi,

You can configure your log4j.xml in JBOSS_HOME\conf

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of linuxman
Sent: Saturday, November 23, 2002 9:40 PM
To: jboss ml
Subject: [JBoss-user] log4j and jboss: where is log4j.properties?


hi,

I want to use apache log4j in my jboss j2ee application, but where 
should I put log4j.properties? which directory?

thanks in advance!

linuxman



---
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] Looking for a scheduler

2002-11-14 Thread saroj kumar
Hi Folks,

I am looking for a J2EE Scheduler which works in a clustered
Environment.

Can anybody enlighten me about this? Any idea about Jboss Scheduler?

TIA,
Saroj



---
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Entity Bean Performance Tuning Help

2002-11-06 Thread saroj kumar

Running EJB-QL without Container/EB

We need to consider few points.

1) If there is no container then how do we parse the XML?

2) If there are no Entity beans then how do you query? 

3) If Above points are sorted out then how do we achieve complex
joins/unions?

4) Moreover, In case of large projects, describing the schema in XML may
require some tools
Otherwise, the sheer sixe of DB will prevent users.

This becomes crucial if the changes to DB are quite frequent.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Michael
Bartmann
Sent: Wednesday, November 06, 2002 6:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Entity Bean Performance Tuning Help


Absolutely!

I don't have to add much to this, but I think that this request
(non-container ejb-ql) is so important (and a good "workaround",
 too), that I simply couldn't resist to reply.

Anyway, would this be difficult to achieve?

Regards,
Michael Bartmann


Pete Beck wrote:

>On Tue, 2002-10-29 at 17:28, Bill Burke wrote:
>  
>
>>JBoss is being used in production everywhere.  I've been at 6 sites
myself
>>over the past year.  IMHO and experience, entity beans are not the
right
>>choice if you're doing complex reporting.  A handmade query cache with
>>direct JDBC will always be faster.  Besides, EJB QL doesn't have Group
By.
>>
>>
>
>Regarding Bill's comment about reporting; this is *so* true.  IMHO this
>is one of the biggest problems that needs to be addressed in the EJB
>spec.
>
>However dropping to JDBC is not the answer either.  Unfortunately,
there
>is currently little choice.
>
>What is needed is the ability to run queries directly in EJB-QL.
Having
>to use JDBC means your application is dependent on the database domain.
>In other words, the application designer has to know about the
>implementation specifics of the persistence layer (database). 
>
>Being able to execute queries in EJB-QL would allow us to use bean
names
>and property names. 
>
>  
>




---
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


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.








RE: [JBoss-user] JBOSS-EJB HOT DEPLOYMENT PROBLEM

2002-10-25 Thread saroj kumar
It may be due to different class loader loading the same bean during 
Hot deployment.

When JBOSS Starts up, it will load all the beans using (IMHO, Not Sure)
Default classloader and anything which is re-deployed may be getting
Loaded using different class loader.

So, When you refer to the same bean again, it is a different object as
It is loaded by another class loader.

If you are storing the remote/local ref in some instance variable of
Servlet then also it is possible as the object you are trying to refer
no
Longer is same as it is reloaded by different class loader.

May be I am off the mark.

-saroj


-Original Message-
From: [EMAIL PROTECTED]
[mailto:jboss-user-admin@;lists.sourceforge.net] On Behalf Of Jaydeep
Dhar
Sent: Friday, October 25, 2002 8:54 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBOSS-EJB HOT DEPLOYMENT PROBLEM


Hi,
I am using jboss 3.0.3 integrated with jetty web server.
I am getting following problem during devlepment of simple application.
1) I have developed a simple staless session bean and putted the .jar
file
in deploy directory. It works fine when i call it from the servlet but
once
I change anything thing in EJB and replace into the deploy directory, it
give following error when i call it from the same servlet.
20:48:44,171 INFO  [STDOUT]
GENERAL_EXCEPTIONjava.lang.ClassCastException
20:48:44,203 WARN  [jbossweb] WARNING: Exception for /test/servlet/Hello
java.lang.NullPointerException
at Hello.doGet(Hello.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

During replacement of jar it is showing Bean deployed properly.  IS the
above problem is due to hot deployement becouse if i restart the server
then everything works fine and the changes in bean also get reflected.

2) I have created a application directory which basically contain the
jsp
file and servlet and placed it into the deploy directory.when i try to
invoke any of the component, the server doesn't get it and give error.
But
if I create the war file of that application and place into the the
deploy
directory, than it works fine. Is it necessary to creat war file to run
it.


pls respond to above mail as I need it urgently.




---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.








RE: [JBoss-user] How can I access the JNDITree with JBoss3?

2002-10-17 Thread saroj kumar
Title: Message



localhost:8080/jmx-console

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Herve 
TchepannouSent: Thursday, October 17, 2002 8:32 PMTo: 
[EMAIL PROTECTED]Subject: [JBoss-user] How can I 
access the JNDITree with JBoss3?
How can I access the JNDITree with JBoss3? The URL http://localhost:8082 no longer works. 

PS: Im using jboss-3.0.3_Tomcat-4.1.12 on Win2K 
-Original Message- From: Seth 
Ladd [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 17, 2002 11:02 AM To: [EMAIL PROTECTED] Subject: 
[JBoss-user] JBossMQ messages being lost after restart Solution 
Hello, 
I solved the JBossMQ message being lost after restart.  I 
was using '/' characters in my queue name, and also 
using file persistence. Apparently the two don't 
match.  JBoss almost gets it to work, for it escapes out the '/' characters for the directory for storing messages. 
I believe somewhere in the code it is not escaping the 
queue names. 
So, bottom line: 
If using JBossMQ and file persistence, DO NOT put '/' characters 
in your queue name. 
Thanks, Seth 
--- 
This sf.net email is sponsored by: viaVerio will pay you up 
to $1,000 for every account that you consolidate with 
us. http://ad.doubleclick.net/clk;4749864;7604308;v? 
http://www.viaverio.com/consolidator/osdn.cfm 
___ 
JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 



RE: [JBoss-user] Strange Problem on Linux

2002-10-16 Thread saroj kumar

Hi All,

This problem is resolved now.

We had a while loop which was checking for some boolean value. This
boolean
Was updated by worker threads.

This update is done in a synchronized method call by worker threads.

On Windows, There is no problem. But, On Linux and Solaris, it creates a
deadlock.

It is resolved by making the main thread sleep for some time. Now, it
works fine on
Win2k, Solaris and Linux.

I am looking forward to some good design practices on Worker Thread
examples.

TIA,
Saroj




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Marius
Kotsbak
Sent: Saturday, October 12, 2002 3:00 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Strange Problem on Linux


saroj kumar wrote:

>HI All,
>
>I am facing  "Transaction Timeout " exception while running
>the code on Redhat Linux 7.3/JDK1.4/JBOSS 3.0.3/Oracle9i.
>
>Same code is working fine on Win2k/JBOSS 3.0.3/jdk1.4/Oracle9i.
>
>Scenario is:
>
>UI Layer makes a call to SLSB. This SLSB makes a call to another
>SLSB which uses a class. This class spawns two threads
>And one of these threads operates on Entity Bean using a Session Bean.
>When we make 1st call, it works fine but 2nd time onwards same call 
>fails with Exception "TX marked for rollback. Possibly timeout".
>
We actually get this too on linux, but probably because of a long 
transaction. But I think you arn't allowed to create any threads in
jboss.

>
>Any help would be more than welcome.
>
>TIA,
>Saroj
>
>
>
>---
>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: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Strange Problem on Linux

2002-10-14 Thread saroj kumar
ReferenceQueue.remove(ReferenceQueue.java:111)
- locked <0x44afa8e0> (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

"Reference Handler" daemon prio=1 tid=0x0x80b1748 nid=0x5cf waiting on
monitor [4c4c1000..4c4c186c]
at java.lang.Object.wait(Native Method)
- waiting on <0x44afa740> (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:426)
at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:113)
- locked <0x44afa740> (a java.lang.ref.Reference$Lock)

"VM Thread" prio=1 tid=0x0x80aedd0 nid=0x5ce runnable

"VM Periodic Task Thread" prio=1 tid=0x0x80b73e0 nid=0x5d1 waiting on
monitor
"Suspend Checker Thread" prio=1 tid=0x0x80b7e48 nid=0x5d2 runnable


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Bill Burke
Sent: Sunday, October 13, 2002 7:44 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Strange Problem on Linux


you can generate threads anytime within a JBoss application.  Just
remember,
you lose any transaction or security context when you spawn the thread.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Marius
> Kotsbak
> Sent: Friday, October 11, 2002 5:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Strange Problem on Linux
>
>
> saroj kumar wrote:
>
> >HI All,
> >
> >I am facing  "Transaction Timeout " exception while running
> >the code on Redhat Linux 7.3/JDK1.4/JBOSS 3.0.3/Oracle9i.
> >
> >Same code is working fine on Win2k/JBOSS 3.0.3/jdk1.4/Oracle9i.
> >
> >Scenario is:
> >
> >UI Layer makes a call to SLSB. This SLSB makes a call to another
> >SLSB which uses a class. This class spawns two threads
> >And one of these threads operates on Entity Bean using a Session
Bean.
> >When we make 1st call, it works fine but 2nd time onwards same call
> >fails with Exception "TX marked for rollback. Possibly timeout".
> >
> We actually get this too on linux, but probably because of a long
> transaction. But I think you arn't allowed to create any threads in
jboss.
>
> >
> >Any help would be more than welcome.
> >
> >TIA,
> >Saroj
> >
> >
> >
> >---
> >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] Strange Problem on Linux

2002-10-11 Thread saroj kumar

HI All,

I am facing  "Transaction Timeout " exception while running
the code on Redhat Linux 7.3/JDK1.4/JBOSS 3.0.3/Oracle9i.

Same code is working fine on Win2k/JBOSS 3.0.3/jdk1.4/Oracle9i.

Scenario is:

UI Layer makes a call to SLSB. This SLSB makes a call to another
SLSB which uses a class. This class spawns two threads
And one of these threads operates on Entity Bean using a Session Bean.
When we make 1st call, it works fine but 2nd time onwards same call 
fails with Exception "TX marked for rollback. Possibly timeout".

Any help would be more than welcome.

TIA,
Saroj



---
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] How do we specify Commit Options

2002-10-11 Thread saroj kumar
Hi All,

I would like to know how do we specify Commit Options.

I would like to use Commit Option B.

I see that in StandardJboss.xml has 

Instance Per Transaction CMP 2.x
EntityBean

As well as

Standard CMP 2.x EntityBean.

What is the different between them? 

If I don't specify anything like this in
Any of the xmls such as jboss.xml and jbosscmp-rdbms.xml then which one
is used?

TIA,
Saroj



---
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] Problem in connecting to oracle in JBOSS with Tomcat

2002-10-07 Thread saroj kumar
Title: Message



you 
need to use ORACLE-SERVICE.xml .
 
copy 
from docs\examples\jca
 
and 
modify the IP and UID/pwd

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of 
GangadharSent: Monday, October 07, 2002 2:16 PMTo: 
[EMAIL PROTECTED]Subject: [JBoss-user] Problem in 
connecting to oracle in JBOSS with Tomcat

Hi All,
 
I found in some of the sites/forums that we 
need to add some info in JBOSS.JCML file which i could not find in my JBOSS 
installed directory which i have downloaded from www.jboss.org. 
(jboss-3.0.0_tomcat-4.0.3)
 
 
Hence i copied this fiel from some examples 
and copied uner server/default/deploy directory
 
Please let me know what am i doing wrong 
here
 
Please consider the 
following information for your input.
 
JBOSS 3.0 with Tomcat 4.0.3
Database :    Oracle 
8.1.6
Database Name    : 
DBNAME
USERID    : 
UserId
PASSWORD   : 
Password
 
 
Thanks & Regards
Gangadhar
 
 
- Original Message - 
From: Gangadhar 
To: "JBoss User" 
Sent: Monday, October 07, 2002 4:24 PM
Subject: Facing problem in connecting to Oracle using JBOSS with 
Tomcat



Hi,
 
Iam trying to connect to Oracle 8.1.6 
database through JBOSS with Tomcat of version 3 and 4 
respectivelly.
 
Iam using only Session Beans without CMP/BMP.
Just calling my Database through the Session bean which internally talking 
to my DBManager class.
 
Will you please tell me the step by step procedure including the 
configuaration if required in JBOSS.
 
If you have a sample code that would be really nice.
 
 
Please reply to this mail ASAP.
 
 
Thanks & Regards
 
GangadharDISCLAIMER
 ---
 This email message and any attachments is confidential and intended only for
 the use of an individual or entity named above and may contain information
 that is privileged, confidential or exempt from disclosure under applicable
 law.  If you are not the intended recipient, you are notified that any
 dissemination, distribution or copying of this email is strictly prohibited.
 If you have received this email in error, please notify us immediately by
 return email or [EMAIL PROTECTED] and destroy the original message.
 Opinions, conclusions, and other information in this message that do not
 relate to the official business of SPAN, shall be understood to be neither
 given nor endorsed by SPAN

Mails are Scanned and Filtered for Virus
[EMAIL PROTECTED]




RE: [JBoss-user] jboss + tomcat problem

2002-09-30 Thread Saroj Kumar

It seems that your port 8080 is captured by some other app or by JBOSS
itself
Try changing the port no and use that one for Tomcat

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Arijit
Ghosh
Sent: Tuesday, October 01, 2002 9:18 AM
To: JBoss User
Subject: [JBoss-user] jboss + tomcat problem


I am using Jboss3.0 with TOmcat 4.0.3

Wjen I start my Jboss, and type in the web browser --
http://localhost:8080

I am getting the following error --

Apache Tomcat/4.0.3 - HTTP Status 500 - No Context configured to process
this request




type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context
configured to process this request) that prevented it from fulfilling
this request.






Any suggestions ???


Regards,
  Arijit




---
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: DEDICATED SERVERS only $89!
Linux or FreeBSD, FREE setup, FAST network. Get your own server 
today at http://www.ServePath.com/indexfm.htm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] RE: Io exception: Stream closed while using CLOB

2002-09-27 Thread Saroj Kumar

Hi Stephen,

I agree that Oracle Thin JDBC Drivers have a problem. But, JBossCMP 
Does not support Oracle CLOB as well(with OCI).

If we use BMP then using Oracle API or JDBC, it is possible to use CLOB.
But, if we use CMP then even OCI drivers are of no use.

I have tried OCI Drivers with CMP and it fails.

Now comes the Apparent GOOD NEWS...

I have made some changes in JDBCCreateEntityCommand and I am able to
persist
CLOB in Oralce using JbossCMP.

I am unable to read the data in the CMP for now. I am trying to figure a
way out.

Any ideas would be more than welcome.

I will keep updating the list.

Thanks,
Saroj




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Stephen Coy
Sent: Friday, September 27, 2002 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] RE: Io exception: Stream closed while using
CLOB


Saroj,

This simply does not work if you are using the Oracle "thin" JDBC  
drivers. There is no work around.

You need to install Oracle client software on your JBoss machine and  
use the "oci" drivers.
Previously, you mentioned that you are using Linux. If that is the  
case, then maybe you need to do
an Oracle install, just don't start it up. You need to be in a position

where the Oracle sqlplus tool
works.


On Thursday, September 26, 2002, at 11:11  PM, Saroj Kumar wrote:

>
> Hi All,
>
> I am trying to insert a CLOB column using CMP. CLOB data is 6028
chars.
>
> I get the error "
> java.sql.SQLException: Io exception: Stream closed"
>
> I have been hunting the issue. It is JBOSS3.0.2 + Oracle 9I
>
> It appears that JDBCCreateEntityCommand invokes
> AbstractCMPFieldBridge.setInstanceParams. Method calls are
>
> JDBCCreateEntityCommand.insertEntity() ---
> **
>
> // set the parameters
> int index = 1;
> for(Iterator iter = insertFields.iterator(); iter.hasNext(); ) {
>   JDBCFieldBridge field = (JDBCFieldBridge)iter.next();
>   index = field.setInstanceParameters(ps, index, ctx);
> }
>
> field.setInstanceParameters(ps, index, ctx) makes a call to
> JDBCAbstractCMPFieldBridge.
>
> JDBCAbstractCMPFieldBridge
> **
> JDBCAbstractCMPFieldBridge.setInstanceParameters()
> {
> .
>   setArgumentParameters(ps, parameterIndex, instanceValue);
> }
>
> setArgumentParameters(ps, parameterIndex, instanceValue) makes a call

> to
>
>
> JDBCUtil.setParameter(log, ps, parameterIndex++,
> jdbcTypes[i],columnValue);
>
> This sets the value in PreparedStatement and then
>
> rowsAffected = ps.executeUpdate(); is called in  
> JDBCCreateEntityCommand.
>
> Since inputStream is closed and ORACLE uses Streams to read/write
> CLOB/BLOB it gives the error that
> OutputStream is closed.
>
> Any workaround???
>
> NOTE: I tried to use getParameterMetaData for PreparedStatement but it
> fails.
>   Oracle drivers are not implementing this JDBC3.0 feature.
>
> Any idea for solving this CLOB issue would be more than welcome.
>
> TIA,
> Saroj
>
>
> -Original Message-
> From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 25, 2002 9:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: Io exception: Stream closed while using CLOB
>
>
> Hi All,
>
> I am trying to insert a CLOB column using CMP.
>
> I get this error. CLOB size is 6028.
>
> java.sql.SQLException: Io exception: Stream closed
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
> at
>
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java 
> :
> 1460)
> at
>
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java: 
> 1
> 371)
> at
>
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement 
> .
> java:1900)
> at
>
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepared 
> S
> tatement.java:363)
> at
>
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeUpd 
> a
> te(LocalPreparedStatement.java:308)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(JDB 
> C
> CreateEntityCommand.java:196)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCrea 
> t
> eEntityCommand.java:131)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreM 
> a
> nager.java:527)
> at
>
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(

RE: [JBoss-user] Stateful Session Bean problem (newbie?)

2002-09-27 Thread Saroj Kumar

I think you need to keep that Remote reference in session so that
You get that in another JSP.

Otherwise, you will get the different SFSB.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of wonder
sonic
Sent: Friday, September 27, 2002 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Stateful Session Bean problem (newbie?)


AFAIK, a stateful session bean means, for a client, it
is the same, in the 1st point, the loginCheck.jsp
create the Object, in the 2nd point, an other JSP try
to retrieves the object... I begin to see where does
the problem comes from. But how to do what I intend
to?

It's not the same HTTP request (2 different business
methods)

half a second because the JSP is being compiled ;)

thanks for the answer :)
Wonder Sonic

 --- Stephen Coy <[EMAIL PROTECTED]> a écrit :
> How do you know that you are getting the same
> instance of the SFSB on 
> the second call?
> 
> Is the second call on the same JSP and responding to
> the same HTTP 
> request?
> If not,  how are you caching the instance reference
> between requests?
> 
> Half a second seems like a long time to be
> processing the same page.
> 
> 
> Steve Coy
> 
> On Friday, September 27, 2002, at 06:06  PM, wonder
> sonic wrote:
> 
> > Hello,
> > I've spent about 4 hours on this but I couldn't
> find
> > the problem.
> > I've got a local SFSB with one attribut : an
> Object
> > (that implements the Serializable interface).
> > I use it from a JSP (embedded JBOSS+Tomcat):
> >
> > -1- call to the SFSB => the attribut receives an
> > instance of the Object.
> > -2- call (about 500ms after) to the SFSB => the
> > attribut is now equals to null!
> >
> > The SFSB is configured to be used with XDoclet
> 1.1.2
> > with trans-type:"Required".
> > I've also a create method:
> >
> > public void ejbCreate() {}
> >
> > What should I do to make this work?
> 
> 
> 
>
---
> 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 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
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



RE: [JBoss-user] JBOSS - Components library

2002-09-27 Thread Saroj Kumar

Hi Wonder Sonic,

Yeah, this seems to be a good idea.

Certainly it can be done.

Let us discuss it in depth.

Q-
1) What kind of components are u thinking about?
2) Which domain they work in?

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of wonder
sonic
Sent: Friday, September 27, 2002 1:51 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBOSS - Components library


Hi,
I was wondering:
-1- JBoss seems to be free
-2- JBoss seems to be the most downloaded Application
Server
-3- JBoss seems to be the most used by developpers
-4- A part of these developpers seems to be involved
in
the development of the open source community
-5- These developers develop things, particularly
EJBs...

So, according to the number of developers. How many of
them have RE-developed an EJB?

My question is: How about add to JBoss a Components
library (ie: a set of EJBs) that could be reused by
others? Imagine the time spent to RE-develop the same
things each time...

Waiting for replies... :)

Best regards to the JBoss and the Open Source
community,
Wonder Sonic

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


---
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] RE: Io exception: Stream closed while using CLOB

2002-09-26 Thread Saroj Kumar


Hi All,

I am trying to insert a CLOB column using CMP. CLOB data is 6028 chars.

I get the error "
java.sql.SQLException: Io exception: Stream closed"

I have been hunting the issue. It is JBOSS3.0.2 + Oracle 9I

It appears that JDBCCreateEntityCommand invokes
AbstractCMPFieldBridge.setInstanceParams. Method calls are

JDBCCreateEntityCommand.insertEntity() ---
**

// set the parameters
int index = 1;
for(Iterator iter = insertFields.iterator(); iter.hasNext(); ) {
JDBCFieldBridge field = (JDBCFieldBridge)iter.next();
index = field.setInstanceParameters(ps, index, ctx);
}

field.setInstanceParameters(ps, index, ctx) makes a call to
JDBCAbstractCMPFieldBridge.

JDBCAbstractCMPFieldBridge
**
JDBCAbstractCMPFieldBridge.setInstanceParameters() 
{
.
setArgumentParameters(ps, parameterIndex, instanceValue);
}

setArgumentParameters(ps, parameterIndex, instanceValue) makes a call to


JDBCUtil.setParameter(log, ps, parameterIndex++,
jdbcTypes[i],columnValue);

This sets the value in PreparedStatement and then 

rowsAffected = ps.executeUpdate(); is called in JDBCCreateEntityCommand.

Since inputStream is closed and ORACLE uses Streams to read/write
CLOB/BLOB it gives the error that
OutputStream is closed.

Any workaround???

NOTE: I tried to use getParameterMetaData for PreparedStatement but it
fails.
Oracle drivers are not implementing this JDBC3.0 feature.

Any idea for solving this CLOB issue would be more than welcome.

TIA,
Saroj


-Original Message-----
From: Saroj Kumar [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 25, 2002 9:17 PM
To: '[EMAIL PROTECTED]'
Subject: Io exception: Stream closed while using CLOB


Hi All,

I am trying to insert a CLOB column using CMP.

I get this error. CLOB size is 6028.

java.sql.SQLException: Io exception: Stream closed
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
at
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:
1460)
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1
371)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.
java:1900)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedS
tatement.java:363)
at
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeUpda
te(LocalPreparedStatement.java:308)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(JDBC
CreateEntityCommand.java:196)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreat
eEntityCommand.java:131)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreMa
nager.java:527)
at
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceM
anager.java:253)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createE
ntity(CachedConnectionInterceptor.java:270
)
at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:728)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityCont
ainer.java:1116)
at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor
.java:73)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Entity
SynchronizationInterceptor.java:209)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeH
ome(CachedConnectionInterceptor.java:215)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanc
eInterceptor.java:88)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterce
ptor.java:79)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreatio
nInterceptor.java:44)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
ptor.java:111)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
CMT.java:178)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:
52)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor
.java:105)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at org.jboss.ejb.Container.invoke(Container.java:738)
at
org.jboss.ejb.En

[JBoss-user] Io exception: Stream closed while using CLOB

2002-09-25 Thread Saroj Kumar

Hi All,

I am trying to insert a CLOB column using CMP.

I get this error. CLOB size is 6028.

java.sql.SQLException: Io exception: Stream closed
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
at
oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
at
oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:
1460)
at
oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1
371)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.
java:1900)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedS
tatement.java:363)
at
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeUpda
te(LocalPreparedStatement.java:308)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(JDBC
CreateEntityCommand.java:196)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreat
eEntityCommand.java:131)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreMa
nager.java:527)
at
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceM
anager.java:253)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createE
ntity(CachedConnectionInterceptor.java:270
)
at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:728)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityCont
ainer.java:1116)
at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor
.java:73)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Entity
SynchronizationInterceptor.java:209)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeH
ome(CachedConnectionInterceptor.java:215)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanc
eInterceptor.java:88)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterce
ptor.java:79)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreatio
nInterceptor.java:44)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
ptor.java:111)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
CMT.java:178)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:
52)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor
.java:105)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at org.jboss.ejb.Container.invoke(Container.java:738)
at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:370
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
va:701)
at java.lang.Thread.run(Thread.java:536)
20:57:37,909 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=mdpcad110773//0, BranchQual=] timed out. status=ST
ATUS_ACTIVE



---
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] Interrupted while requesting permit!

2002-09-24 Thread Saroj Kumar

I don't see any need for using finder Inside ejbCreate as JBOSS does it
automatically before insert.

It does like:

SELECT COUNT(*) FROM TABLE WHERE PK_COLUMN=?

Try without finder. 

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jon
Haugsand
Sent: Tuesday, September 24, 2002 8:13 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Interrupted while requesting permit!



JBoss 3.0.1 where we within ejbCreate we use a finder to detect double
creation of a bean instance.  The following message was printed at the
log:

2002-09-24 16:32:33,169 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.VpKriterie.findByVpKriter
ieIdAndTilstand] Find failed
org.jboss.util.NestedSQLException: Interrupted while requesting permit!;
- nested throwable: (javax.resource.ResourceException: Interrupted while
requesting permit!)
at
org.jboss.resource.adapter.jdbc.local.LocalDataSource.getConnection(Loca
lDataSource.java:106)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbst
ractQueryCommand.java:92)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEnt
ityCommand.java:44)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreMana
ger.java:541)
at
org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceMan
ager.java:336)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEnt
ity(CachedConnectionInterceptor.java:301)
at
org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:634)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityCont
ainer.java:1116)
at
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor
.java:73)
at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Entity
SynchronizationInterceptor.java:209)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeH
ome(CachedConnectionInterceptor.java:215)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanc
eInterceptor.java:88)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterce
ptor.java:79)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreatio
nInterceptor.java:44)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
ptor.java:111)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
CMT.java:178)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:
52)
at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor
.java:105)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(BaseLoc
alContainerInvoker.java:230)
at
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:11
0)
at $Proxy368.findByVpKriterieIdAndTilstand(Unknown Source)
at
norgesbank.bank.sil.entiteter.vpkriterie.VpKriterieBean.ejbCreate(VpKrit
erieBean.java:156)
  

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, 



---
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



RE: [JBoss-user] JBoss 3.0.1 and Oracle-XA

2002-09-23 Thread Saroj Kumar

Set the path of ORACLE_HOME\jdbc\lib in Your Path or copy classes12.zip
in SERVER\lib.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jon
Haugsand
Sent: Monday, September 23, 2002 7:37 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss 3.0.1 and Oracle-XA



I am trying to get Oracle-XA to work with JBoss 3.0.1, by doing the
following:

 1. I copy the docs/examples/jca/oracle-xa-service.xml
 2. I change the line with URL=jdbc:oracle:oci8:@tc
to URL=jdbc:oracle:oci8:@banklab3:1521:ora8
 3. I insert username and password
 4. I include an true into
jboss-service.xml


It looks like the mbean is registrated, but I get error message that
complain with "no ocijdbc8 in java.library.path"

 I assume no 2 above is not correct.  But how should the URL be then?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, 



---
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



RE: [JBoss-user] Serious problem with wrong data returned.

2002-09-23 Thread Saroj Kumar

It seems that you are getting duplicate data in collection.

Try using java.util.Set for Collection. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jon
Haugsand
Sent: Monday, September 23, 2002 3:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Serious problem with wrong data returned.


We have a serious problem with JBoss 3.0.1 that I guess is not easy to
reproduce or else it should have been reported long time ago.  I post
here so that I can get help to identify where the problem really is.
My (BA devoted) collegue thinks it _is_ a problem with JBoss, but if
so, it should be corrected quite soon...

The following is a snapshot of a Cactus test:

public void testberegnSikkerhet() throws Exception{
final Collection c = ff.findAlleKunder();
for( final Iterator i = c.iterator(); i.hasNext(); ) {
final KundeLocal kunde = (KundeLocal) i.next();
cat.debug( "kunde.pk=" + kunde.getPrimaryKey() );
cat.debug( "kunde.foretaks=" + kunde.getForetaksnr() );
cat.debug( "kunde.data=" + kunde.getData() );
kunde.beregnSikkerhet( null, true );
}
}

The above getters are what is standard CMP 2.x and it is without doubt
wrong data that is written out:

   kunde.pk=[.1.]   kunde.foretaks=9
   kunde.pk=[.2.]   kunde.foretaks=9

In reality, the KUNDE table's FORETAKS should contain something very
different in both cases.  (FORETAKS is what was found in the last
entry of the table.)

Please help us to solve the problem.  (We use Oracle with
driver oracle.jdbc.driver.OracleDriver if it is interesting.)

--
More output below:

2002-09-23 11:01:12,115 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeTest] kunde.pk=[.1.]
2002-09-23 11:01:12,119 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing
SQL: SELECT foretaksnr, bere
2002-09-23 11:01:12,155 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeTest] kunde.foretaks=9
2002-09-23 11:01:12,159 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing
SQL: SELECT foretaksnr, bere
2002-09-23 11:01:12,187 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Foretak.findByForetaksnr]
Executing SQL: SELECT t0_f
2002-09-23 11:01:12,208 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Foretak] Executing
SQL: SELECT foretaksNr, NA
2002-09-23 11:01:12,232 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeTest]
kunde.data={foretaksnr=9 beregnetSikkerhet=
2002-09-23 11:01:12,237 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing
SQL: SELECT foretaksnr, bere
2002-09-23 11:01:12,259 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeBean] beregnSikkerhet()
2002-09-23 11:01:12,263 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.Pant.findPantForKunde]
Executing SQL: SELECT t0_p.id
2002-09-23 11:01:12,280 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeBean] beregnSikkerhet(): Fant
0 pant for kunde 9.
2002-09-23 11:01:12,280 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeBean] beregnSikkerhet()={NOK=0
Utl=0}
2002-09-23 11:01:12,283 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeTest] kunde.pk=[.2.]
2002-09-23 11:01:12,287 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing
SQL: SELECT foretaksnr, bere
2002-09-23 11:01:12,326 DEBUG
[norgesbank.bank.sil.entiteter.kunde.KundeTest] kunde.foretaks=9
2002-09-23 11:01:12,332 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.Kunde] Executing
SQL: SELECT foretaksnr, bere



---
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



RE: [JBoss-user] Re: Can an ejb function as a daemon?

2002-09-23 Thread Saroj Kumar

This will break the ACID property no doubt.

This must certainly be one of reasons behind not having threads in
beans.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Pete Beck
Sent: Monday, September 23, 2002 3:06 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: Can an ejb function as a daemon?


Wouldn't having multiple threads in a transaction break the ACID
principle anyway?

Particular the consistency and isolation parts.

Imagine the scenario:
Thread A reads object 1.
Thread B reads object 1.
Thread B updates object 1.
Thread A adds 1 to the value of object 1.

In this transaction the value of the object can be changed by thread B,
thus providing inconsistency to thread A.

On Sun, 2002-09-22 at 18:51, David Jencks wrote:
> I'd like to see a concrete example where you need several threads to
be
> working within the same transaction concurrently.  Thinking about it
it
> seems to me that it might work ok if each thread only talked to one
> resource manager (db) but that there would be no way to expect
reproducible
> results if 2 threads worked on one resource manager. (thread A writes
data
> d, thread B reads d.  Results depend on who goes first).  In any case
it
> seems to me that allowing multiple threads on one transaction can at
best
> reduce latency/request while doing nothing for throughput.
> 
> I think this was one of the simplifications adopted by ejbs to make
> distributed computing comprehensible...so far I still think its
reasonable.
> 
> Still, I'd like to see a scenario.
> 
> thanks
> david jencks
> 
> On 2002.09.22 12:56:38 -0400 Rick LaBanca wrote:
> > I agree with those reasons I suppose. If the need of safely doing
multi
> > threads within one ejb call were realized, the spec could accomodate
them
> > (if the consituents you mention are worrying about multi thread
issues,
> > an
> > api to give concrete hints toward the state would actually help).
> > 
> > Anyway, all I know is when I first started learning about ejb's, I
found
> > it
> > a sorely lacking thing, especially in the area of services. I guess
I am
> > a
> > purist, I really want them to achieve a nice generic platform and
not
> > have
> > to do things outside j2ee for services, database etc.. I guess with
> > mbeans
> > being rolled in that would help (now if only cmp relations!)
> > 
> > rick
> > 
> > 
> > - Original Message -
> > From: "David Jencks" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, September 22, 2002 10:33 AM
> > Subject: Re: [JBoss-user] Re: Can an ejb function as a daemon?
> > 
> > 
> > > Another reason might be that transaction and security contexts may
not
> > be
> > > propagated to the child threads.  Also, the jca 1.5 spec goes to
some
> > pains
> > > to prevent 2 threads that import the same transaction from running
at
> > once:
> > > in general the effects of running several threads within one
> > transaction
> > > may be difficult to predict, and I think it is appropriate to
> > internally
> > > prevent more than one thread working within a transaction as well.
> > >
> > > thanks
> > > david jencks
> > >
> > > On 2002.09.22 09:30:42 -0400 Rick LaBanca wrote:
> > > > I think a session bean doing threads is not encouraged, but
accessing
> > > > something else that happens to be threaded could be ok. In my
testing
> > it
> > > > is
> > > > ok in jboss right now anyway, I do spawn off threads for
multiple
> > > > requests.
> > > >
> > > > I really don't understand the restriction anyway. So long as
your
> > > > response
> > > > to a call in a session bean blocks until all internal threads
are
> > done,
> > I
> > > > can't see why the server would care.
> > > >
> > > > I think what they mean to restrict is a bean spawning a thread,
then
> > > > returning he original call while it runs. Then the container
could
> > try
> > to
> > > > passivate something really running. So using threads within one
> > blocking
> > > > call of a bean should be safe. Wish it was clearer.
> > > >
> > > > In fact I wish they would just allow it for those that need it
in the
> > > > case I
> > > > mentioned too. All they need do is has a call to either poll a
bean
> > to
> > > > see
> > > > if it's active or not, or have the bean do callbacks to indicate
when
> > > > it's
> > > > idle (no threads running).
> > > >
> > > > Rick
> > > >
> > > >
> > > >
> > > > > Isn't accessing threading facilities a no no in session beans?
If
> > you
> > > > > have a deamon like service then I assume that it's multi
threaded,
> > so
> > > > is
> > > > > calling your singleton in effect breaking the ejb rules?
> > > > >
> > > > > How do other people deal with this. I've recently had the need
to
> > > > access
> > > > > a file based content store from session beans and considered
> > creating
> > a
> > > > > jca module. Is this the right way to do it?
> > > > >
> > > > > -k.
> > > > >
> > > >
> > > > >
> > > > >
> > > > > --

RE: [JBoss-user] home.findByPrimaryKey HANGS!!!!!!!!!!!!!!!!!!!!!!!!!

2002-09-22 Thread Saroj Kumar

Thanks Jason.

I will try that.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jason
Westra
Sent: Friday, September 20, 2002 10:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] home.findByPrimaryKey
HANGS!


Saroj,

You could try configuring your  settings in
ejb-jar.xml to be "Supports" for your entity bean "getters" and finders.
This should keep locks from happening as well.

Jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Saroj Kumar
Sent: Friday, September 20, 2002 4:35 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] home.findByPrimaryKey
HANGS!


Hi Dain,

The Problem is solved. But, I am not able to pinpoint the reason.

I just made a small change in my Oracle-Service.xml
To reflect the TX Isolation Level.

TRANSACTION_READ_COMMITTED

I did this change because of this reason :

StackTrace shows that
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock class
Is waiting for TX Lock. I checked the ORACLE 9i for any lock but
could not find
any such lock.

QueuedPessimisticEJBLock gave me the idea that may be
Jboss is making the
ISOLATION LEVEL as SERIALIZABLE and thus trying to get a
EXCLUSIVE Lock whereas
Oracle is using READ COMMITED Lock and not allowing the
container to get the
EXCLUSIVE Lock.

This led me to add this line as per David Jencks's earlier mail( Thanks
a lot David).

Once I added this line, it worked fine.

Now comes the puzzling behaviour. I removed these lines again from
Oracle-service.xml to
Make sure that this was the cause of the problem.

But, Surprise!!! It was working fine. Still It is working fine without
this line in oracle-service.xml.

I am not able to understand this behaviour at all.

Anyway, it is working fine.

Thanks,
Saroj





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dain
Sundstrom
Sent: Thursday, September 19, 2002 10:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] home.findByPrimaryKey
HANGS!


Have you done a thread dump when it hangs?  Where is it waiting.  My
guess is you database is locked somehow.

-dain

Saroj Kumar wrote:
> Hi!
>   Ive been struggling with this for quite some time.I have some Jsps
> deployed in
>   Tomcat 4.04 which then call EJB components hosted on Jboss 3.0.1.
>   I have session and entity beans(CMP2.0) deployed on Jboss.
>
>   My session beans calls a java class which in turn tries to do a
> home.findByPrimaryKey on
>   an entity and hangs.When I do the same using a standalone java
client
> it works..but not
>   through the Jsps hosted on Tomcat.
>
>   Also setEntityContext is called and ejbActivate and EJBLoad are not
> called.
>   It just hangs and then times out after some time with the following
> stack trace
>
>
>
> 22:29:03,839 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=mdpcad110773//13, BranchQual=] timed out. status=S
> TATUS_ACTIVE
> 22:29:07,104 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=mdpcad110773//17, BranchQual=] timed out. status=S
> TATUS_ACTIVE
> 22:29:07,224 ERROR [BeanLock] Thread[Thread-20,5,RMI Runtime]Saw
rolled
> back tx=TransactionImpl:XidImpl [FormatId=257, Global
> Id=mdpcad110773//17, BranchQual=] waiting for txLock
> 22:29:07,264 ERROR [LogInterceptor]
TransactionRolledbackLocalException,
> causedBy:
> java.lang.RuntimeException: Transaction marked for rollback, possibly
a
> timeout
> at
>
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPess
> imisticEJBLock.java:325)
> at
>
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPes
> simisticEJBLock.java:189)
> at
>
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessi
> misticEJBLock.java:140)
> at
>
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor
> .java:103)
> at
>
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInt
> erceptor.java:69)
> at
>
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
> ptor.java:107)
> at
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
> CMT.java:178)
> at
>
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
> at
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
> a:130)
> at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
> at
> org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
> at
>
org.jboss.ejb.plugins.local.Ba

RE: [JBoss-user] Specifying isolation level

2002-09-20 Thread Saroj Kumar

Hi David,

Thanks for the reply.

Sorry. I mentioned postgres-xa wrongly. It is Informix-xa-service.xml. 

Thanks,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of David
Jencks
Sent: Friday, September 20, 2002 5:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Specifying isolation level


All jboss versions use the db default tx isolation level unless you set
it
explicitly in the config file.  

AFAIK Oracle xa is the only db that disagrees with our code that sets tx
isolation.

Where did you get postgres-xa?? postgres doesn't support xa and I don't
see
any such file in cvs.

thanks
david jencks


On 2002.09.20 06:43:58 -0400 Saroj Kumar wrote:
> What is the default TX Isolation Level in JBOSS 3.0.1?
> 
> I noticed That Oracle-Xa and Postgres-xa service xmls in Jboss 3.0.2
> have this but commented.
> 
>   
> 
> 
> Other db-service.xmls are not having this entry.
> 
> Is it the case that Jboss will take TX Isolation Level supported by
the
> DB?
> 
> -Saroj
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of David
> Jencks
> Sent: Thursday, September 19, 2002 11:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Specifying isolation level
> 
> 
> You could have a bunch of properties per connection factory and per
> ejb-method that could be set just before a connection was enlisted in
a
> transaction for the first time.  Transaction isolation could be one of
> these.  Weblogic does something like this.  I think it would be
> ridiculously confusing because:
> 
> bean A, all methods tx required, specifying say READ_UNCOMMITTED
> 
> bean B, all methods tx required, specifying say SERIALIZABLE
> 
> method surprise on A calls doWork on B, isolation is READ_UNCOMMITTED
> 
> If you call doWork on B directly, you get isolation SERIALIZABLE
> 
> I think it would be hell to implement and maintain and provide
> questionable
> benefits at best.  Having another db pool with another isolation level
> and
> using it when you want the other isolation level seems simpler,
> straightforward, and less apt to result in unpleasant surprises.
> 
> david jencks
> 
> On 2002.09.19 13:26:59 -0400 Dain Sundstrom wrote:
> > Is this even possible?  I don't think it is.  Isolation level is an 
> > attribute of the connections and not the transaction, so unless we
> used 
> > a separate connection for each bean we would not be able to have 
> > different levels in the same transaction.  If we did use different 
> > connections for each bean, the connections would be isolated from
each
> 
> > other so queries that depend on data changed in the transaction (by
a 
> > different bean) would fail.
> > 
> > -dain
> > 
> > David Jencks wrote:
> > > Rereading the post you responded to I still think I explained the
> > situation
> > > fairly well.  This feature has not been requested often (I think
> twice
> > so
> > > far).  It's possible, but would require a fair amount of code,
would
> > > probably be extremely confusing to use, and doesn't seem to be a
> high
> > > priority.
> > > 
> > > david jencks
> > > 
> > > On 2002.09.19 12:12:54 -0400 Emerson Cargnin - SICREDI Serviços
> wrote:
> > > 
> > >>why there isn't a property at jboss.xml to define the transaction 
> > >>isolation at ejb level, isn't it possible?
> > >>
> > >>David Jencks wrote:
> > >>
> > >>>You can only specify it per-datasource, not per-bean.  Most dbs
> seem
> > to
> > >>>commit or throw an error if you try to change the isolation level
> > >>
> > >>inside a
> > >>
> > >>>transaction.  I guess it would be possible to include a tx
> isolation
> > >>
> > >>spec
> > >>
> > >>>with the method transaction specs, but I think it would be pretty
> > >>>confusing, since only the method call that actually started the
tx
> > >>
> > >>would
> > >>
> > >>>have an effect.
> > >>>
> > >>>
> > >>>To set it, include something like
> > >>>
> > >>> >
>
>>>name="TransactionIsolation>TRANSACTION_READ_COMMITTED y>
> > >>>
> > >>>in your db-service.xml file.
> > >>>
> > >>>david jencks
> > >>>
> > >>>On 2002.09.19 11:20:34 -0400 Jim Crossley wrote:
> > >&

RE: [JBoss-user] Specifying isolation level

2002-09-20 Thread Saroj Kumar

What is the default TX Isolation Level in JBOSS 3.0.1?

I noticed That Oracle-Xa and Postgres-xa service xmls in Jboss 3.0.2
have this but commented.

  


Other db-service.xmls are not having this entry.

Is it the case that Jboss will take TX Isolation Level supported by the
DB?

-Saroj


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of David
Jencks
Sent: Thursday, September 19, 2002 11:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Specifying isolation level


You could have a bunch of properties per connection factory and per
ejb-method that could be set just before a connection was enlisted in a
transaction for the first time.  Transaction isolation could be one of
these.  Weblogic does something like this.  I think it would be
ridiculously confusing because:

bean A, all methods tx required, specifying say READ_UNCOMMITTED

bean B, all methods tx required, specifying say SERIALIZABLE

method surprise on A calls doWork on B, isolation is READ_UNCOMMITTED

If you call doWork on B directly, you get isolation SERIALIZABLE

I think it would be hell to implement and maintain and provide
questionable
benefits at best.  Having another db pool with another isolation level
and
using it when you want the other isolation level seems simpler,
straightforward, and less apt to result in unpleasant surprises.

david jencks

On 2002.09.19 13:26:59 -0400 Dain Sundstrom wrote:
> Is this even possible?  I don't think it is.  Isolation level is an 
> attribute of the connections and not the transaction, so unless we
used 
> a separate connection for each bean we would not be able to have 
> different levels in the same transaction.  If we did use different 
> connections for each bean, the connections would be isolated from each

> other so queries that depend on data changed in the transaction (by a 
> different bean) would fail.
> 
> -dain
> 
> David Jencks wrote:
> > Rereading the post you responded to I still think I explained the
> situation
> > fairly well.  This feature has not been requested often (I think
twice
> so
> > far).  It's possible, but would require a fair amount of code, would
> > probably be extremely confusing to use, and doesn't seem to be a
high
> > priority.
> > 
> > david jencks
> > 
> > On 2002.09.19 12:12:54 -0400 Emerson Cargnin - SICREDI Serviços
wrote:
> > 
> >>why there isn't a property at jboss.xml to define the transaction 
> >>isolation at ejb level, isn't it possible?
> >>
> >>David Jencks wrote:
> >>
> >>>You can only specify it per-datasource, not per-bean.  Most dbs
seem
> to
> >>>commit or throw an error if you try to change the isolation level
> >>
> >>inside a
> >>
> >>>transaction.  I guess it would be possible to include a tx
isolation
> >>
> >>spec
> >>
> >>>with the method transaction specs, but I think it would be pretty
> >>>confusing, since only the method call that actually started the tx
> >>
> >>would
> >>
> >>>have an effect.
> >>>
> >>>
> >>>To set it, include something like
> >>>
> >>>
>>>name="TransactionIsolation>TRANSACTION_READ_COMMITTED
> >>>
> >>>in your db-service.xml file.
> >>>
> >>>david jencks
> >>>
> >>>On 2002.09.19 11:20:34 -0400 Jim Crossley wrote:
> >>>
> >>>
> I hope this isn't too dumb of a question, but how do I specify a 
> READ_COMMITTED isolation level for one of my CMP beans?
> 
> The QuickStart guide mentions the different isolation levels, but
it
> doesn't 
> tell me how to specify them.
> 
> Thanks,
> Jim
> 
> 
> ---
> 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
> >>>
> >>
> >>
> >>-- 
> >>
> >>| Emerson Cargnin  |
> >>| Analista de Sistemas Sr. |
> >>| Tel : (051) 3358-4860|
> >>| SICREDI Serviços |
> >>| Porto Alegre - Brasil|
> >>|xx|
> >>
> >>
> >>
> >>---
> >>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 h

RE: [JBoss-user] home.findByPrimaryKey HANGS!!!!!!!!!!!!!!!!!!!!!!!!!

2002-09-20 Thread Saroj Kumar

Hi Dain,

The Problem is solved. But, I am not able to pinpoint the reason.

I just made a small change in my Oracle-Service.xml
To reflect the TX Isolation Level.

TRANSACTION_READ_COMMITTED

I did this change because of this reason :

StackTrace shows that
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock class 
Is waiting for TX Lock. I checked the ORACLE 9i for any lock but
could not find 
any such lock.

QueuedPessimisticEJBLock gave me the idea that may be
Jboss is making the
ISOLATION LEVEL as SERIALIZABLE and thus trying to get a
EXCLUSIVE Lock whereas
Oracle is using READ COMMITED Lock and not allowing the
container to get the 
EXCLUSIVE Lock.

This led me to add this line as per David Jencks's earlier mail( Thanks
a lot David).

Once I added this line, it worked fine.

Now comes the puzzling behaviour. I removed these lines again from
Oracle-service.xml to
Make sure that this was the cause of the problem. 

But, Surprise!!! It was working fine. Still It is working fine without
this line in oracle-service.xml.

I am not able to understand this behaviour at all.

Anyway, it is working fine.

Thanks,
Saroj





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dain
Sundstrom
Sent: Thursday, September 19, 2002 10:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] home.findByPrimaryKey
HANGS!


Have you done a thread dump when it hangs?  Where is it waiting.  My 
guess is you database is locked somehow.

-dain

Saroj Kumar wrote:
> Hi!
>   Ive been struggling with this for quite some time.I have some Jsps
> deployed in 
>   Tomcat 4.04 which then call EJB components hosted on Jboss 3.0.1.
>   I have session and entity beans(CMP2.0) deployed on Jboss.
>
>   My session beans calls a java class which in turn tries to do a
> home.findByPrimaryKey on 
>   an entity and hangs.When I do the same using a standalone java
client
> it works..but not
>   through the Jsps hosted on Tomcat.
> 
>   Also setEntityContext is called and ejbActivate and EJBLoad are not
> called.
>   It just hangs and then times out after some time with the following
> stack trace
> 
> 
>   
> 22:29:03,839 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=mdpcad110773//13, BranchQual=] timed out. status=S
> TATUS_ACTIVE
> 22:29:07,104 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
> GlobalId=mdpcad110773//17, BranchQual=] timed out. status=S
> TATUS_ACTIVE
> 22:29:07,224 ERROR [BeanLock] Thread[Thread-20,5,RMI Runtime]Saw
rolled
> back tx=TransactionImpl:XidImpl [FormatId=257, Global
> Id=mdpcad110773//17, BranchQual=] waiting for txLock
> 22:29:07,264 ERROR [LogInterceptor]
TransactionRolledbackLocalException,
> causedBy:
> java.lang.RuntimeException: Transaction marked for rollback, possibly
a
> timeout
> at
>
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPess
> imisticEJBLock.java:325)
> at
>
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPes
> simisticEJBLock.java:189)
> at
>
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessi
> misticEJBLock.java:140)
> at
>
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor
> .java:103)
> at
>
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInt
> erceptor.java:69)
> at
>
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
> ptor.java:107)
> at
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
> CMT.java:178)
> at
>
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
> at
>
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
> a:130)
> at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
> at
> org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
> at
>
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalCo
> ntainerInvoker.java:301)
> at
> org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
> at $Proxy232.getCreatedBy(Unknown Source)
> at
>
com.cadmus.rpm.domain.session.ModelFactory.ModelFactoryGenBean.getArticl
> e(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
>

[JBoss-user] home.findByPrimaryKey HANGS!!!!!!!!!!!!!!!!!!!!!!!!!

2002-09-19 Thread Saroj Kumar

Hi!
  Ive been struggling with this for quite some time.I have some Jsps
deployed in 
  Tomcat 4.04 which then call EJB components hosted on Jboss 3.0.1.
  I have session and entity beans(CMP2.0) deployed on Jboss.
   
  My session beans calls a java class which in turn tries to do a
home.findByPrimaryKey on 
  an entity and hangs.When I do the same using a standalone java client
it works..but not
  through the Jsps hosted on Tomcat.

  Also setEntityContext is called and ejbActivate and EJBLoad are not
called.
  It just hangs and then times out after some time with the following
stack trace



22:29:03,839 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=mdpcad110773//13, BranchQual=] timed out. status=S
TATUS_ACTIVE
22:29:07,104 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=mdpcad110773//17, BranchQual=] timed out. status=S
TATUS_ACTIVE
22:29:07,224 ERROR [BeanLock] Thread[Thread-20,5,RMI Runtime]Saw rolled
back tx=TransactionImpl:XidImpl [FormatId=257, Global
Id=mdpcad110773//17, BranchQual=] waiting for txLock
22:29:07,264 ERROR [LogInterceptor] TransactionRolledbackLocalException,
causedBy:
java.lang.RuntimeException: Transaction marked for rollback, possibly a
timeout
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPess
imisticEJBLock.java:325)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPes
simisticEJBLock.java:189)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessi
misticEJBLock.java:140)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor
.java:103)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInt
erceptor.java:69)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
ptor.java:107)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
CMT.java:178)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
a:130)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalCo
ntainerInvoker.java:301)
at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy232.getCreatedBy(Unknown Source)
at
com.cadmus.rpm.domain.session.ModelFactory.ModelFactoryGenBean.getArticl
e(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stat
elessSessionContainer.java:660)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(
CachedConnectionInterceptor.java:186)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Statele
ssSessionInstanceInterceptor.java:77)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
ptor.java:107)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
CMT.java:178)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
a:130)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer
.java:313)
at org.jboss.ejb.Container.invoke(Container.java:711)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:1
02)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.jav
a:73)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionI
nterceptor.java:111)
at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy191.getArticle(Unknown Source)
at
com.cadmus.rpm.domain.workflow.actions.WFInboxEntryAction.executeProcedu
re(Unknown Source)
at
com.wipro.flowbrix.workflow.WFActivityPerformer.run(WFActivityPerformer.
java:272) 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECT

RE: [JBoss-user] How to use application specific properties

2002-09-12 Thread Saroj Kumar

Yes!!!

This is the trade-off .

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kim, Yong
Sent: Thursday, September 12, 2002 7:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] How to use application specific properties


That's useful... but it's kind of JBoss specific... isn't it!

I prefer not to use heavy vendor specific solutions.

Mitchell

-Original Message-
From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 9:42 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] How to use application specific properties


You can use property-service.xml to define the path of external file and
And access it like

System.getProperty(key);


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kim, Yong
Sent: Thursday, September 12, 2002 6:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] How to use application specific properties


I use external configuration file just because of the reason you
mentioned,
"I am not sure I like this because different machines/servers need
different
properties".  And I created a static class that reads in the key=value
pairs
from the file and store in memory as long as the contains stays running.

Mitchell

-Original Message-
From: Jon Haugsand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 7:15 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] How to use application specific properties


We have a local property file containg such things like name of
machines, files, ip-addresses and such for legacy interfaces.  I found
out (the hard way) that I could place this file in the
${JBOSS_HOME}/bin directory, presumably because it is from there we
run the server.  It shouldn't stay there of course, and further we
need it within the client too.

I know we could use some property mechanism within ejb-jar.xml, but I
cannot figure out how to get this with XDoclet and I am not sure I
like this because different machines/servers need different
properties.

Is there a Right (tm) way to do this?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



---
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



---
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] How to use application specific properties

2002-09-12 Thread Saroj Kumar

You can use property-service.xml to define the path of external file and
And access it like

System.getProperty(key);


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kim, Yong
Sent: Thursday, September 12, 2002 6:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] How to use application specific properties


I use external configuration file just because of the reason you
mentioned,
"I am not sure I like this because different machines/servers need
different
properties".  And I created a static class that reads in the key=value
pairs
from the file and store in memory as long as the contains stays running.

Mitchell

-Original Message-
From: Jon Haugsand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 7:15 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] How to use application specific properties


We have a local property file containg such things like name of
machines, files, ip-addresses and such for legacy interfaces.  I found
out (the hard way) that I could place this file in the
${JBOSS_HOME}/bin directory, presumably because it is from there we
run the server.  It shouldn't stay there of course, and further we
need it within the client too.

I know we could use some property mechanism within ejb-jar.xml, but I
cannot figure out how to get this with XDoclet and I am not sure I
like this because different machines/servers need different
properties.

Is there a Right (tm) way to do this?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, 



---
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] Which one to upgrade to? 3.0.1 or 3.0.2

2002-09-11 Thread Saroj Kumar

Hi All,

We are faced with a dillema.

We are working on a big project which is having around 200 tables and
125 use cases. We have been using 3.0.0 but We found that 3.0.1 fixes
the Char Problem with ORACLE.

Now, 3.0.2 is also out.

We have to decide which one to use: 3.0.1 or 3.0.2. It is very important
that none of the code written for 3.0.0 breaks.

As we are a big team(20 members) and working on a very tight schedule,
it is very important for us to know which one is more stable. 

Please help me take the wise decision.

Thanks,
Saroj



---
In remembrance
www.osdn.com/911/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Java.lang.Character mapping in ORACLE 9I and ClassCastException

2002-09-09 Thread Saroj Kumar

Thanks Dain.

It solved the problem.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dain
Sundstrom
Sent: Monday, September 09, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Java.lang.Character mapping in ORACLE 9I and
ClassCastException


Are you using JBoss 3.0.0?  If so, upgrade to JBoss 3.0.1.  Characters 
are now converted into strings before setting a parameter, because it 
breaks oracle.

-dain

Saroj Kumar wrote:
> Hi All,
> 
> I am using a Java.lang.Character column which is giving me this CLASS
> CAST EXCEPTION.
> 
> java.lang.ClassCastException: java.lang.Character
> at
>
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState
> ment.java:2759)
> at
>
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState
> ment.java:2905)
> at
>
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObject(L
> ocalPreparedStatement.java:607)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.setParameter(JDBCUtil.java:156)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setArgu
> mentParameters(JDBCAbstractCMPFieldBridge.
> java:283)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setInst
> anceParameters(JDBCAbstractCMPFieldBridge.
> java:262)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(JDBC
> CreateEntityCommand.java:192)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreat
> eEntityCommand.java:131)
> at
>
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreMa
> nager.java:450)
> at
>
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceM
> anager.java:253)
> at
>
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createE
> ntity(CachedConnectionInterceptor.java:270
> )
> at
>
org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:579)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
> 
> 
> 
> Has anybody tried this?//
> 
> TIA,
> sAROJ
> 
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to handle NOT NULL Fields which have DEFAULT values in DB

2002-09-08 Thread Saroj Kumar

Hi All,

I have a scenario which I think is very common.

Some fields are defined as NOT NULL in DB but they do have DEFAULTS set.
If I don't include them in ejbCreate params then it fails to create any
Record. 

Is there a way to specify that this value is to be taken from DB
If not defined in ejbCreate.

How is this case handled? If I have to pass the value in ejbCreate()
Then I am unable to get the benefit of DB Defaults as I need to pass 
Them.

Any ideas??

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Java.lang.Character mapping in ORACLE 9I and ClassCastException

2002-09-08 Thread Saroj Kumar

Hi All,

I am using a Java.lang.Character column which is giving me this CLASS
CAST EXCEPTION.

java.lang.ClassCastException: java.lang.Character
at
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState
ment.java:2759)
at
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedState
ment.java:2905)
at
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObject(L
ocalPreparedStatement.java:607)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.setParameter(JDBCUtil.java:156)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setArgu
mentParameters(JDBCAbstractCMPFieldBridge.
java:283)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setInst
anceParameters(JDBCAbstractCMPFieldBridge.
java:262)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(JDBC
CreateEntityCommand.java:192)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCreat
eEntityCommand.java:131)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreMa
nager.java:450)
at
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceM
anager.java:253)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createE
ntity(CachedConnectionInterceptor.java:270
)
at
org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:579)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)



Has anybody tried this?//

TIA,
sAROJ



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] PK Generator

2002-09-05 Thread Saroj Kumar

Hi Alex,

Thanks for the mail.

How do I use the key? Any doc or sample??

TIA,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Alex
Loubyansky
Sent: Thursday, September 05, 2002 11:29 PM
To: Saroj Kumar
Subject: Re: [JBoss-user] PK Generator


Hello Saroj,

yes, in HEAD. In default and all configurations.
HEAD version also supports uknown primary keys.

alex

Thursday, September 05, 2002, 8:41:36 PM, you wrote:

SK> HI All,

SK> Does JBOSS have one PK Generator?

SK> Any pointers??

SK> TIA,
SK> Saroj




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Different Commit Options

2002-09-05 Thread Saroj Kumar

Hi All,

There are 4 commit option A,B,C,D.

What is the diff. between them and when should one use them?

Forgive me for asking these basic questions.

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] PK Generator

2002-09-05 Thread Saroj Kumar

HI All,

Does JBOSS have one PK Generator?

Any pointers??

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Saw rolled back tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=mdpcad110773//4, BranchQual=] waiting for txLock

2002-09-05 Thread Saroj Kumar

Hi All,

I am trying to use "SEQUENCE BLOCK Primary KEY GENERATOR" as described
in Floyd's book. Jboss3.0 + ORACLE9i + win2k

I am getting this kind of weird error: "waiting for txLock"

22:16:53,139 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=mdpcad110773//6, BranchQual=] timed out. status=STATUS_ACTIVE

22:16:53,339 WARN  [TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=mdpcad110773//7, BranchQual=] timed out. status=STATUS_ACTIVE


22:26:24,531 ERROR [BeanLock] Thread[RMI TCP
Connection(5)-192.168.146.134,5,RMI Runtime]Saw rolled back
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=mdpcad110773//7,
BranchQual=] waiting for txLock



I am using a Session Bean which makes call to the entity bean to
get a Chunk of Keys from the DB.

Session Bean runs in a Required TX and EB run is RequiresNew
Mode to ensure that it is not a part of any Client
Transaction. Entity Bean is getting called but it is unable to
complete the TX. It just hangs there.








Sequence

getValueAfterIncrementingBy

RequiresNew




  SequenceSession

getNextSequenceNumber

Required






Any pointers???

Did anyone use it successfully??

TIA,
Saroj




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] What is the default Transaction Attribute??

2002-09-05 Thread Saroj Kumar

Hi All,

We are reqrd. To declare TRANS-ATTRIBUTE for Beans in ejb-jar.xml like
following.


  
Journal
*
  
  Required


What if I don't declare the   block for my
JOURNAL bean. What kind of 
TRANSACTION will be supported by the container? 

Is Default Value?? -

Supported

Because, I have seen that if bean is invoked under a Transaction even
then there is no problem.

Please help me understand this.

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Strange Problem

2002-09-05 Thread Saroj Kumar

Hi All,

I faced a strange problem just now. Jboss3.0 + win2k + ORACLE9i + SSB +
CMP EB + classes12.zip

I have got a Session Bean which makes a call to an CMP Entity Bean to
Update the record. I pass some java.lang.Double Values 
To the Entity Bean from Session Bean. In Session Bean, We convert
BigDecimal Values in Double. If I  check for null
And set the value like this:

java.math.BigDecimal obj = issue.getAvgDaysInComposition();
  if (obj != null)
 {
 local.setAvgDaysInComposition( new
Double(obj.doubleValue()));
  
 }

Then it works fine and ejbStore completed successfully.

But, if I code like this:

local.setAvgDaysInRapidEdit( new Double(
issue.getAvgDaysInRapidEdit().doubleValue() ) );

Then ejbStore() does not complete and it HANGS!!!
issue.getAvgDaysInRapidEdit() is null and calling 
issue.getAvgDaysInRapidEdit().doubleValue() does not throw any NULL
POINTER but it waits indefinitely.

ANOTHER ISSUE: On Some m/c, even the NULL checked code hangs.

Any idea???

TIA,
Saroj




---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] CMP2 java.lang.Short mapping for Oracle 9i

2002-09-03 Thread Saroj Kumar
Title: Message



Try 
INTEGER.

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Boris 
TamarkinSent: Wednesday, September 04, 2002 3:44 AMTo: 
'[EMAIL PROTECTED]'Subject: [JBoss-user] CMP2 
java.lang.Short mapping for Oracle 9i
What correct mapping for "java.lang.Short" should be for Oracle 
9i in standardjbosscmp-jdbc.xml file? I have 
tried     
java.lang.Short     
NUMERIC     
NUMBER(5) also 
    
java.lang.Short     
SMALLINT     
SMALLINT also 
    
java.lang.Short     
NUMERIC     
SMALLINT also 
    
java.lang.Short     
SMALLINT     
NUMBER(5) and no 
success. I got java.lang.ClassCastException in 
ejbCreate(..., java.lang.Short arg, ). 
It happens when using CMP2 on JBoss3.0.0-tomcat4.0.3. 
Also I tried both SMALLINT and Number(5) types for column in 
table in Oracle 9i database that corresponds to Short type.
with all combinations above. Will 
appreciate help. Thanks,   
Boris 
* 
14:25:57,104 ERROR [ScheduleTask] Could not create entity 
java.lang.ClassCastException: java.lang.Short     at 
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt 
atement.java:2351)     at 
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedSt 
atement.java:2449)     at 
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObjec 
t(LocalPreparedStatement.java:607)     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.setParameter(JDBCUtil.java:15 
6)     at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setA 
rgumentParameters(JDBCAbstractCMPFieldBridge.java:283) 
    at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.setI 
nstanceParameters(JDBCAbstractCMPFieldBridge.java:262) 
    at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.insertEntity(J 
DBCCreateEntityCommand.java:192)     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.execute(JDBCCr 
eateEntityCommand.java:131)     at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStor 
eManager.java:450)     at 
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersisten 
ceManager.java:253)     at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.crea 
teEntity(CachedConnectionInterceptor.java:270)     at 
org.jboss.ejb.EntityContainer.createLocalHome(EntityContainer.java:57 
9)     at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. 
java:39)     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces 
sorImpl.java:25)     at 
java.lang.reflect.Method.invoke(Method.java:324)     at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityC 
ontainer.java:1116)     at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractIntercep 
tor.java:73)     at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(Ent 
itySynchronizationInterceptor.java:257)     at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo 
keHome(CachedConnectionInterceptor.java:215)     at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInst 
anceInterceptor.java:134)     at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInte 
rceptor.java:79)     at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCrea 
tionInterceptor.java:44)     at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte 
rceptor.java:98)     at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep 
torCMT.java:167)     at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.ja 
va:52)     at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep 
tor.java:104)     at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1 
09)     at 
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487) 
    at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invokeHome(Base 
LocalContainerInvoker.java:227)     at 
org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java 
:110)     at $Proxy85.create(Unknown 
Source)     at 
com.rendition.appserver.ScheduleTaskManagementEJB.addScheduleTaskInte 
rnal(ScheduleTaskManagementEJB.java:248)     at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. 
java:39)     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces 
sorImpl.java:25)     at 
java.lang.reflect.Method.invoke(Method.java:324)     at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S 
tatelessSessionContainer.java:664)     at 
org.jboss.resource.connection

[JBoss-user] How is TRANSACTION handled (jboss 3.0 , ORACLE 9i)

2002-09-02 Thread Saroj Kumar

Hi,

I am puzzled by this sequence of events. Any hint??

I am having a session bean which is running under transaction. It calls
a 
JAVA Class. This java class makes 1st call to a Session Bean. This
session
 bean B invokes method on a Entity Bean. Then it invokes another Session

Bean C which makes Direct JDBC calls to DB for the data updated by
Session B
using Entity Bean. All this happens in one method which by the virtue of
being 
Invoked by a Session bean which is under a transaction also participates
in TX.

PROBLEM: JDBC calls show that there is no data INSERTED in earlier call
to Session
Bean B. SELECT for the inserted data does not return any row. It is as
if no insert is
Working.

Scenario is :

Session Bean A ---> Java Class --  Session Bean B --- Entity Bean EB1 ,
EB2
 +-- Session Bean C --- jdbc
call

PUZZLE:
I added some EJB finders on my CMP using ejb-ql and get the
correct data in the same
Method. Once this finder is called then all JDBC calls show correct
result.

Please note that Session Bean c gets its own SQLConnection from
javax.sql.DataSource.

Why is it so? I think that even if Session Bean C gets its own
connection, it should be 
Part of TX started in Session Bean A and should return correct result
for all the updates/INSERT
By Session Bean B.

Please help.

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Is it a normal behaviour or Bug?

2002-09-01 Thread Saroj Kumar

Hi All,

We were trying to use "Block Sequence Generator" pattern as described in
Floyd's book.

It shows the ejb-jar.xml as this:



SequenceSession
*

Required


When we deploy the bean there is no prob. Once, We run the client, it
does not respond and hangs. 

But, if we modify the  as following then it works
FINE. We just removed * and coded
The method name.



SequenceSession
getNextNumberInSequence

Required


Is it a Normal Behaviour??? * should work just fine as it indicates
methods defined in HOME/Component Interface.

Any ideas?

TIA,
Saroj



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] How to read an XML in JAR File

2002-08-31 Thread Saroj Kumar
Title: Message



HI 
Edward,
 
I am 
giving the RELEVANT code snippet here:
 
package com.cadmus.rpm.server.util;
 
import 
org.apache.xerces.parsers.DOMParser;import org.w3c.dom.Document;import 
org.w3c.dom.NamedNodeMap;import org.w3c.dom.Node;import 
org.w3c.dom.NodeList;import org.w3c.dom.Attr;import 
org.w3c.dom.Element;import org.w3c.dom.NodeList;import 
org.xml.sax.SAXException;import org.xml.sax.InputSource;import 
java.io.InputStream;import java.io.InputStreamReader;import 
java.io.IOException;import java.util.Hashtable;
 
 
public class QueryUtil 
{
 
 // Array to hold the list of 
Queries private static Hashtable objQueryList = null;
 
 // Arraylist initial 
capacity private static int intialCapacity = 100;
 
 // Query object 
instance private static Query objQuery = null;
 
   public Hashtable 
getQueries(String xmlFile) throws QueryEngineException 
{  //  Create 
a Xerces DOM Parser  //DOMParser parser = new 
DOMParser(); InputStream fi = 
this.getClass().getClassLoader().getResourceAsStream(xmlFile) 
;   
InputStreamReader isr = new 
InputStreamReader(fi);  
InputSource is = new 
InputSource(isr);   
DOMParser parser = new DOMParser();
  
//  Parse the Document  //  and 
traverse the DOM  try {
 
 //parser.parse(xmlFile); 
// parse the xml file 
parser.parse(is); Document 
document = parser.getDocument(); // get the Document object   
objQueryList = new Hashtable(intialCapacity); // initialize the 
Arraylist traverse 
(document);  } catch 
(SAXException saxe) {
 
  throw new 
QueryEngineException(saxe.getMessage());
 
  } 
catch (IOException ioe) {
 
  
System.out.println("qe uitl " + 
ioe.getMessage());  
throw new QueryEngineException(ioe.getMessage());
 
  
}   return 
(Hashtable)objQueryList.clone();    }
 
 
Don't include DOCTYPE in xml. Put that in jar 
root.
 
 
Thanks,
Saroj
 
 
 

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of ed 
banfaSent: Sunday, September 01, 2002 12:17 AMTo: 
[EMAIL PROTECTED]Subject: RE: [JBoss-user] How to read 
an XML in JAR File
Hi Saroj, 
Thanks a million, you have set me on the right path my man. 
my work includes parsing an xml file, read the settings within it, and then 
configure an object based on the entries in the xml file, as u may have noticed 
I am new to xml, but I love it and everything it represents, I just have to find 
a way to make it work for me, Do u have any suggestions/advice? 
Once again thanks for ur help I really appreciate it. 
Best Wishes 
 Edward 
 Saroj Kumar <[EMAIL PROTECTED]>wrote: 

  
  Hi 
  Edward,
   
  I am 
  having my xml in jar and need to read this once the bean is invoked in a 
  DOM Tree. 
   
  Code 
  is :
   
   InputStream fi = 
  this.getClass().getClassLoader().getResourceAsStream(xmlFile) ; 
  // xmlfile is name of 
  file   
  InputStreamReader isr = new 
  InputStreamReader(fi); 
  InputSource is = new 
  InputSource(isr);  
  DOMParser parser = new DOMParser();  //  Parse the 
  Document  //  and traverse the 
  DOM  try {
   
   
  parser.parse(is);
   
      }
  catch(Exception e)
  {
  }
  
  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of ed 
  banfaSent: Saturday, August 31, 2002 4:09 PMTo: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] How to 
  read an XML in JAR File
  hello, 
  could you pls tell me more about your xml file like its location and any 
  more info , I would be very grateful , I am working on something similar too, 
  thanks in advance 
  Edward. 
   Saroj Kumar <[EMAIL PROTECTED]>wrote: 
  Hi 
All,I have fixed this. Just made the method an instance 
method from static method and used.InputStream fi 
=this.getClass().getClassLoader().getResourceAsStream(xmlFile) 
;Then, I removed the DOCTYPE from the XML File and it 
works.-Saroj-Original Message-From: 
[EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] 
On Behalf Of Saroj KumarSent: Saturday, August 31, 2002 12:30 AMTo: 
[EMAIL PROTECTED]Subject: [JBoss-user] How to read an XML 
in JAR FileHi All,I have got a XML which defines some 
constants which are read by mySession Bean while serving some requests. 
Reading is done in a helperclass. I am unable to read this XML 
file.I use :InputStream fi = 
ClassLoader.getSystemResourceAsStream(xmlFile) ;I am getti! ! ng fi 
as NULL.InputStreamReader isr = new 
InputStreamReader(fi);InputSource is = new 
InputSource(isr);DOMParser parser = new 
DOMParser();parser.parse(is)Any help would be 
great;SAROJ---This 
sf.net email is sponsored by: OSDN - Tired of that same oldcell phone? 
Get a new here for 
FREE!https

RE: [JBoss-user] How to read an XML in JAR File

2002-08-31 Thread Saroj Kumar
Title: Message



Hi 
Edward,
 
I am 
having my xml in jar and need to read this once the bean is invoked in a 
DOM Tree. 
 
Code 
is :
 
 InputStream fi = 
this.getClass().getClassLoader().getResourceAsStream(xmlFile) ; // xmlfile 
is name of 
file   
InputStreamReader isr = new 
InputStreamReader(fi); 
InputSource is = new 
InputSource(isr);  
DOMParser parser = new DOMParser();  //  Parse the 
Document  //  and traverse the 
DOM  try {
 
 
parser.parse(is);
 
    }
catch(Exception e)
{
}


-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of ed 
banfaSent: Saturday, August 31, 2002 4:09 PMTo: 
[EMAIL PROTECTED]Subject: RE: [JBoss-user] How to read 
an XML in JAR File
hello, 
could you pls tell me more about your xml file like its location and any more 
info , I would be very grateful , I am working on something similar too, 
thanks in advance 
Edward. 
 Saroj Kumar <[EMAIL PROTECTED]>wrote: 
Hi 
  All,I have fixed this. Just made the method an instance method 
  from static method and used.InputStream fi 
  =this.getClass().getClassLoader().getResourceAsStream(xmlFile) 
  ;Then, I removed the DOCTYPE from the XML File and it 
  works.-Saroj-Original Message-From: 
  [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] 
  On Behalf Of Saroj KumarSent: Saturday, August 31, 2002 12:30 AMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] How to read an XML 
  in JAR FileHi All,I have got a XML which defines some 
  constants which are read by mySession Bean while serving some requests. 
  Reading is done in a helperclass. I am unable to read this XML 
  file.I use :InputStream fi = 
  ClassLoader.getSystemResourceAsStream(xmlFile) ;I am getti! ng fi as 
  NULL.InputStreamReader isr = new 
  InputStreamReader(fi);InputSource is = new 
  InputSource(isr);DOMParser parser = new 
  DOMParser();parser.parse(is)Any help would be 
  great;SAROJ---This 
  sf.net email is sponsored by: OSDN - Tired of that same oldcell phone? Get 
  a new here for 
  FREE!https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390___JBoss-user 
  mailing 
  list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-user---This 
  sf.net email is sponsored by: OSDN - Tired of that same oldcell phone? Get 
  a new here for 
  FREE!https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390___JBoss-user 
  mailing list! 
  [EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-user


Do You Yahoo!?Yahoo! 
Finance - Get real-time stock quotes


RE: [JBoss-user] How to read an XML in JAR File

2002-08-31 Thread Saroj Kumar

Hi All,

I have fixed this. 

Just made the method an instance method from static method and used.

InputStream fi =
this.getClass().getClassLoader().getResourceAsStream(xmlFile) ;

Then, I removed the DOCTYPE from the XML File and it works.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Saroj Kumar
Sent: Saturday, August 31, 2002 12:30 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] How to read an XML in JAR File


Hi All,

I have got a XML which defines some constants which are read by my
Session Bean while serving some requests. Reading is done in a helper
class. I am unable to read this XML file.

I use :


 InputStream fi = ClassLoader.getSystemResourceAsStream(xmlFile) ;

I am getting fi as NULL.
 
 InputStreamReader isr = new InputStreamReader(fi);
 
 
 InputSource is = new InputSource(isr);
 
 
 DOMParser parser = new DOMParser();
 
 parser.parse(is)

Any help would be great;

SAROJ



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to read an XML in JAR File

2002-08-30 Thread Saroj Kumar

Hi All,

I have got a XML which defines some constants which are read by my
Session Bean while serving some requests. Reading is done in a helper
class. I am unable to read this XML file.

I use :


 InputStream fi = ClassLoader.getSystemResourceAsStream(xmlFile) ;

I am getting fi as NULL.
 
 InputStreamReader isr = new InputStreamReader(fi);
 
 
 InputSource is = new InputSource(isr);
 
 
 DOMParser parser = new DOMParser();
 
 parser.parse(is)

Any help would be great;

SAROJ



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] RE: illegalArgumentException while removing the entity bean (Saroj Kumar)

2002-08-28 Thread Saroj Kumar

Hi,

I have no idea about Jboss-2.4.x. It is fine with Jboss 3.0.x.

It may have something to do with serialization of PK??/ (Just a wild
guess!!!)

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Ooi Leng
Chai
Sent: Tuesday, August 27, 2002 3:21 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] RE: illegalArgumentException while removing the
entity bean (Saroj Kumar)


Hi,

   I am having the same problem.

   I am deploying the CMP bean that use composite key. I have no 
problem load and update the same bean.

   I have tried on both JBoss-2.4.7_Tomcat-4.0.4 and JBoss-2.4.8_Tomcat-
4.0.4 both throw the IllegalArgumentException when I attemp to invoke 
home.remove(key) from whithin a servlet.

   I wrote a jboss-client to test out the same bean, calling home.remove
(key). This time it doesn't any exception.

   I tried those (remove from servlet & remove from jboss-client) a few 
times, and the result are consistence. The servlet always throws 
exception and the jboss-client always no problem. I also try running 
jboss on Linux and NT server (using IBM JVM, hotspot1.3 and hotspot1.4) 
all give same result.

   The next thing I did was to download the JBoss-3.0.1_Tomcat-4.0.4 
and test my bean on it. I have no problem calling the remove on ny bean 
home interface.

   Has anybody ever try cmp + composite key + servlet + JBoss 2.4.x + 
Tomcat-4.0.4 with a successful result before?

   Can this be a bug for JBoss-2.4.x_Tomcat-4.0.4?

Cheers



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
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] When ejbCreate() is called

2002-08-21 Thread Saroj Kumar

Hi All,

I have a doubt about the time when ejbCreate() is called by JBOSS while
loading the beans. 

Is it the case that when bean is loaded in the memory, ejbCreate is
called or when any client looks up Home interface(ctx.lookup(JNDI Home)?


I understand that ejbCreate is called only if there is a need for new
instance and client has either called home.create()
Or remote.getXXX(). If free beans are there then no need for new
instance and hence no ejbCreate() is called.

Looking forward to your knowledge,
TIA,
Saroj



 



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Default database

2002-08-20 Thread Saroj Kumar

I have never tried the second option.

No Idea..

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Sebastien
CHAUSSON
Sent: Tuesday, August 20, 2002 1:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Default database


Thanks again,

But...What's the difference between :
1- Adding those 2 lines in the 'defaults' section of
'jbosscmp-jdbc.xml'
2- Adding the 2 same lines for each 'entity' of  'enterprise-beans'
section
I thought it should work in the same way, no ?

Sebastien

----- Original Message -
From: "Saroj Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 9:13 AM
Subject: RE: [JBoss-user] Default database


> Welcome Sebastian.
> You can specify it in this way..
>
>
>
>   java:/OracleDS
>   Oracle8
>
>  true
> true
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Sebastien
> CHAUSSON
> Sent: Tuesday, August 20, 2002 12:05 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Default database
>
>
> Thank you Saroj, It seems to be OK, although it doesn't create
> tables during deployment :-(
>
>
> - Original Message -
> From: "Saroj Kumar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 19, 2002 6:23 PM
> Subject: RE: [JBoss-user] Default database
>
>
> >
> > Hi Sebastian,
> >
> > No Need to remove "hsqldb-service.xml" from default/deploy
directory.
> >
> > Just add oracle service xml in deploy directory and add following to
> > your
> >
> >
> >
> >   java:/OracleDS
> >   Oracle8
> >
> >
> >
> > To jbosscmp-jdbc.xml at top before  tag.
> >
> > This should work.
> > Saroj
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]] On Behalf Of
Sebastien
> > CHAUSSON
> > Sent: Monday, August 19, 2002 8:42 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Default database
> >
> >
> > Thank you Eric, but I didn't manage to make it work :
> > I removed "hsqldb-service.xml" from default/deploy directory to
> > be sure to use my oracle db.
> > I added following snippet to the conf/login-config.xml :
> > 
> >
> >> "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag =
> > "required">
> >   > "principal">viewcomdba
> >   "userName">viewcomdba
> >   "password">viewcomdba
> >   >
>
"managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS
> >  > dule-option>
> >   
> >
> > 
> >
> > My oracle-service.xml :
> > 
> > 
> >> code="org.jboss.resource.connectionmanager.LocalTxConnectionManager"
> > name="jboss.jca:service=LocalTxCM,name=OracleDS">
> >
> > 
> >   
> >> name="jboss.jca:service=LocalTxDS,name=OracleDS">
> >
> > OracleDS
> > 
> >   
> >  >
>
type="java.lang.String">jdbc:oracle:thin:@orion:1521:viewcom > pert
> > y>
> >  >
>
type="java.lang.String">oracle.jdbc.driver.OracleDriver > >
> > 
> >  > type="java.lang.String">viewcomdba
> >  > type="java.lang.String">viewcomdba
> >   
> >
> > 
> >
> > >
>
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployme
> > nt,n
> > ame=JBoss LocalTransaction JDBC Wrapper
> >   
> > 
> >
> > 
> >>
code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
> > name="jboss.jca:service=LocalTxPool,name=OracleDS">
> >
> > 0
> > 50
> > 5000
> > 15
> >ByContainer
> >   
> >
> > 
> >  >
>
optional-attribute-name="CachedConnectionManager">jboss.jca:service=Cach
> > edCo
> > nnectionManager
> >
> >  >
>
optional-attribute-name="JaasSecurityManagerService">jboss.security:serv
> > ice=
> > JaasSecurityManager
>

RE: [JBoss-user] Default database

2002-08-19 Thread Saroj Kumar

Welcome Sebastian.
You can specify it in this way..

   
   
java:/OracleDS
Oracle8
   
true
true
   

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Sebastien
CHAUSSON
Sent: Tuesday, August 20, 2002 12:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Default database


Thank you Saroj, It seems to be OK, although it doesn't create
tables during deployment :-(


- Original Message - 
From: "Saroj Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 6:23 PM
Subject: RE: [JBoss-user] Default database


> 
> Hi Sebastian,
> 
> No Need to remove "hsqldb-service.xml" from default/deploy directory.
> 
> Just add oracle service xml in deploy directory and add following to
> your 
> 
>
>
>   java:/OracleDS
>   Oracle8
>
>
> 
> To jbosscmp-jdbc.xml at top before  tag.
> 
> This should work.
> Saroj
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Sebastien
> CHAUSSON
> Sent: Monday, August 19, 2002 8:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Default database
> 
> 
> Thank you Eric, but I didn't manage to make it work :
> I removed "hsqldb-service.xml" from default/deploy directory to
> be sure to use my oracle db.
> I added following snippet to the conf/login-config.xml :
> 
>
>"org.jboss.resource.security.ConfiguredIdentityLoginModule" flag =
> "required">
>   "principal">viewcomdba
>  viewcomdba
>  viewcomdba
>  
"managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS
>  dule-option>
>   
>
> 
> 
> My oracle-service.xml :
> 
> 
>code="org.jboss.resource.connectionmanager.LocalTxConnectionManager"
> name="jboss.jca:service=LocalTxCM,name=OracleDS">
> 
> 
>   
>name="jboss.jca:service=LocalTxDS,name=OracleDS">
> 
> OracleDS
> 
>   
> 
type="java.lang.String">jdbc:oracle:thin:@orion:1521:viewcom pert
> y>
> 
type="java.lang.String">oracle.jdbc.driver.OracleDriver >
> 
>  type="java.lang.String">viewcomdba
>  type="java.lang.String">viewcomdba
>   
> 
> 
> 
>
optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployme
> nt,n
> ame=JBoss LocalTransaction JDBC Wrapper
>   
> 
> 
> 
>code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
> name="jboss.jca:service=LocalTxPool,name=OracleDS">
> 
> 0
> 50
> 5000
> 15
>ByContainer
>   
> 
> 
> 
optional-attribute-name="CachedConnectionManager">jboss.jca:service=Cach
> edCo
> nnectionManager
> 
> 
optional-attribute-name="JaasSecurityManagerService">jboss.security:serv
> ice=
> JaasSecurityManager
> 
>  name="TransactionManager">java:/TransactionManager
> 
> 
> jboss.jca:service=RARDeployer
>   
> 
> 
> Now, when I start Jboss, I get following error message :
> .
>  state: FAILED
>  I Depend On:
>  Depends On Me: org.jboss.deployment.DeploymentException: Error: can't
> find
> data source: java:/DefaultDS; - nested throwable:
> (javax.naming.NameNotFoundException: DefaultDS not bound), ObjectName:
> jbo
> ss.j2ee:service=EJB,jndiName=com.viewcom.model.telco.Region
>  state: FAILED
>  I Depend On:
>  Depends On Me: org.jboss.deployment.DeploymentException: Error: can't
> find
> data source: java:/DefaultDS; - nested throwable:
> (javax.naming.NameNotFoundException: DefaultDS not bound), ObjectName:
> jbo
> ss.j2ee:service=EJB,jndiName=com.viewcom.model.telco.Site
>  state: FAILED
>  I Depend On:
> .
> Any idea ?
> 
> TIA,
> 
> Sebastien
> 
> - Original Message -
> From: "Eric Kaplan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 19, 2002 2:56 PM
> Subject: RE: [JBoss-user] Default database
> 
> 
> > I think that as long as you declare a name for your new oracle pool
> and
> > modify jboss.xml
> > to have the resource ref "foo" which was pointing at the hy

FW: [JBoss-user] illegalArgumentException while removing the entity bean

2002-08-19 Thread Saroj Kumar
Title: Message



Hi Kamran, My reply was 
bumped off the server so I am 
resending it again 10 hours 
late.
Hi 
Kamran,
 
I 
would like to point out something regarding use of remove() method on 
EJBHome/EJBObject.
 
EJBObject : No need to use Handle here.  
I think that you are not using this method. It seems that you are 
calling EJBHome.remove();
 
EJBHomeObject: There are 2 ways to remove. 

 
    1) Use PK . home.remove(pk) - I 
generally use this or EJBObject.remove()
 
    
2) home.remove(handle) 
 
Observation: Mostly It looks fine to me except one 
small suggestion.
 
Suggestion: Instead of using this for EQUALS check , 
try the following :
    
 
    EXISTING CODE
    
**

    public boolean equals(Object 
obj) {    if 
(this.getClass().equals(obj.getClass())) 
{    
ApplicationPK that = (ApplicationPK) 
obj;    
return this.appID.intValue() == 
that.appID.intValue();    
}    return 
false;    }
 
    SUGGESTED CODE
    ***
    public boolean equals(Object 
obj) {  boolean 
retVal = false;
 
  if ( obj instanceof ApplicationPK 
)   {   ApplicationPK 
pk = (AddressPK) obj;
 
   retVal = this.appID.intValue() == pk.appID.intValue();  }  return 
retVal; }
 

    
EXISTING CODE
    
**

    public 
ApplicationPK() {    appID = new 
Integer(0);    }
    
SUGGESTED CODE
    **
    public ApplicationPK()
    {
    }
 
I 
think this should solve the problem.
 
-Saroj
 
PS. was out on the weekend. That caused the late reply.  And, I surely Love HOCKEY. Rarely 
Miss INDO-PAK matches. Love Shahbaz and of late, Sohail 
Abbas. 

 
 
 


RE: [JBoss-user] Default database

2002-08-19 Thread Saroj Kumar


Hi Sebastian,

No Need to remove "hsqldb-service.xml" from default/deploy directory.

Just add oracle service xml in deploy directory and add following to
your 

   
   
java:/OracleDS
Oracle8
   
   

To jbosscmp-jdbc.xml at top before  tag.

This should work.
Saroj


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Sebastien
CHAUSSON
Sent: Monday, August 19, 2002 8:42 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Default database


Thank you Eric, but I didn't manage to make it work :
I removed "hsqldb-service.xml" from default/deploy directory to
be sure to use my oracle db.
I added following snippet to the conf/login-config.xml :

   
  
 viewcomdba
 viewcomdba
 viewcomdba
 jboss.jca:service=LocalTxCM,name=OracleDS

  
   


My oracle-service.xml :


  


  
  

OracleDS

  
jdbc:oracle:thin:@orion:1521:viewcom
oracle.jdbc.driver.OracleDriver

viewcomdba
viewcomdba
  



   jboss.jca:service=RARDeployme
nt,n
ame=JBoss LocalTransaction JDBC Wrapper
  



  

0
50
5000
15
   ByContainer
  


jboss.jca:service=Cach
edCo
nnectionManager

jboss.security:serv
ice=
JaasSecurityManager

java:/TransactionManager


jboss.jca:service=RARDeployer
  


Now, when I start Jboss, I get following error message :
.
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: Error: can't
find
data source: java:/DefaultDS; - nested throwable:
(javax.naming.NameNotFoundException: DefaultDS not bound), ObjectName:
jbo
ss.j2ee:service=EJB,jndiName=com.viewcom.model.telco.Region
 state: FAILED
 I Depend On:
 Depends On Me: org.jboss.deployment.DeploymentException: Error: can't
find
data source: java:/DefaultDS; - nested throwable:
(javax.naming.NameNotFoundException: DefaultDS not bound), ObjectName:
jbo
ss.j2ee:service=EJB,jndiName=com.viewcom.model.telco.Site
 state: FAILED
 I Depend On:
.
Any idea ?

TIA,

Sebastien

- Original Message -
From: "Eric Kaplan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 19, 2002 2:56 PM
Subject: RE: [JBoss-user] Default database


> I think that as long as you declare a name for your new oracle pool
and
> modify jboss.xml
> to have the resource ref "foo" which was pointing at the hypersonic
pool
to
> point at
> this new oracle pool you'll be set.
>
> Eric
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sebastien
> CHAUSSON
> Sent: Monday, August 19, 2002 8:36 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Default database
>
>
> Hi,
>
> I'm really newbie with jboss, and for the moment, I only
> used default database Hypersonic during developpement.
>
> Now, I'd like to replace this datasource by an oracle
> instance, and I don't know how to tell jboss to use
> oracle instead of hypersonic (I already wrote an
> oracle-service.xml file and put it in default/deploy directory) ?
>
> TIA,
>
> Sebastien CHAUSSON
>
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] illegalArgumentException while removing the entity bean

2002-08-18 Thread Saroj Kumar
ityContext() 
{    entityContext = 
null;    }    public Integer getAppID() 
{    return 
appID;    }    public String getAppDesc() 
{    return 
appDesc;    }    public void 
setAppDesc(String appDesc) {    
this.appDesc = appDesc;    }}
 
ejbjar.xml
http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">    
    
    
ApplicationCOMP    
com.cst.pps.ejbs.cmp.tmpcomp.ApplicationHome    
com.cst.pps.ejbs.cmp.tmpcomp.Application    
com.cst.pps.ejbs.cmp.tmpcomp.ApplicationBean    
Container    
com.cst.pps.ejbs.cmp.tmpcomp.ApplicationPK    
False    
    
appID    
    
    
appDesc    
    
    
jdbc/PPSDS    
javax.sql.DataSource    
Container    
    
    
    
    
    
    
ApplicationCOMP    
*    
    
Required    
    

jboss.xml
 
    
    
    
ApplicationCOMP    
TempComp    
    
jdbc/PPSDS    
java:/PPSDS    
    
    

 
jaws.xml
 
    
    
    
ApplicationCOMP    
    
appID    
AppID    
    
    
appDesc    
AppDesc    
    
    
findAll    
    
    
    
Application    
    

 
Test client jsp (just put code snipet in 
jsp client will be there u may need to add some more debug 
messages)
 
  Object  obj = 
cont.lookup("TempComp");    
ApplicationHome home = 
(ApplicationHome)PortableRemoteObject.narrow(obj,ApplicationHome.class);    
if(request.getParameter("opt").equals("1")){    
home.create(new Integer(15),"My Application 
Comp");    
}    else 
if(request.getParameter("opt").equals("0")){    
Application app = home.findByPrimaryKey(new ApplicationPK(new 
Integer(15)));    
out.println(((ApplicationPK)app.getPrimaryKey()).toString());    
out.println(app.getAppDesc());    
System.out.println("removing from 
home");    
home.remove(app.getHandle());    
}    else 
if(request.getParameter("opt").equals("2")){    
Application app = home.findByPrimaryKey(new ApplicationPK(new 
Integer(2)));    
out.println(app.getAppDesc());    
}    
}    catch(NamingException 
ex){ 
System.out.println("tmperror"+ex.toString()+ex.getMessage()+ex.getCause());    
ex.printStackTrace(); }    
catch(RemoveException ex){ 
System.out.println("tmperror"+ex.toString()+ex.getMessage()+ex.getCause());    
ex.printStackTrace(); }    
catch(RemoteException ex){ 
System.out.println("tmperror"+ex.toString()+ex.getMessage()+ex.getCause());    
ex.printStackTrace(); }    
catch(CreateException ex){ 
System.out.println("tmperror"+ex.toString()+ex.getMessage()+ex.getCause());    
ex.printStackTrace(); }
 
 

  - Original Message - 
  From: 
  Saroj 
  Kumar 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, August 16, 2002 4:38 
  PM
  Subject: RE: [JBoss-user] 
  illegalArgumentException while removing the entity bean
  
  Hi 
  Kamran, 
   
  There may be a problem with PK Class. post ur code.
   
  -Saroj
   
  P.S.: Kamran, ur name reminds me of Kamran Ashraf,  Great Pak 
  Hockey Player.
   
   
  
  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] 
  On Behalf Of Nayyer KamranSent: Friday, August 16, 2002 5:56 
  PMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] illegalArgumentException while removing the entity 
  bean
  Dear Fellows, 
  I have an entity bean and its primary key is 
  java.lang.Integer I created a record through it, it works fine. Then I tried 
  to remove it by calling findByPrimaryKey(java.lang.Integer)  it works 
  fine. 
  but when I made my own class as primarykey 
  class(in new entity bean over the same table) and then Problem arises when I 
  tried to remove the entity bean it throws IllegalArgumentException. The 
  problem most probably in jaws but what should i do to remove it. 
  The exception stacktrace is given below. Any help 
  will be appreciated. it too urgent.
   
  
  javax.transaction.TransactionRolledbackException: Load failed; nested 
  exception is: 
  java.lang.IllegalArgumentException; nested exception is: 
  java.rmi.ServerException: Load failed; nested exception is: 
  java.lang.IllegalArgumentException
  at 
  org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:188)
  at 
  org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
  at 
  org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorC

RE: [JBoss-user] Local Interfaces to seperate Jars

2002-08-16 Thread Saroj Kumar

Yes. It is possible.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Anthony
Geoghegan
Sent: Friday, August 16, 2002 9:34 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Local Interfaces to seperate Jars


Is it possible to use local interfaces to beans in another Jar file
without
getting a NoClassDefFoundError?

Best Regards,
Anthony Geoghegan.
J2EE Developer
CPS Ireland Ltd.



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] illegalArgumentException while removing the entity bean

2002-08-16 Thread Saroj Kumar
Title: Message



Hi 
Kamran, 
 
There 
may be a problem with PK Class. post ur code.
 
-Saroj
 
P.S.: 
Kamran, ur name reminds me of Kamran Ashraf,  Great Pak Hockey 
Player.
 
 

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Nayyer 
KamranSent: Friday, August 16, 2002 5:56 PMTo: 
[EMAIL PROTECTED]Subject: [JBoss-user] 
illegalArgumentException while removing the entity bean
Dear Fellows, 
I have an entity bean and its primary key is 
java.lang.Integer I created a record through it, it works fine. Then I tried to 
remove it by calling findByPrimaryKey(java.lang.Integer)  it works fine. 

but when I made my own class as primarykey 
class(in new entity bean over the same table) and then Problem arises when I 
tried to remove the entity bean it throws IllegalArgumentException. The problem 
most probably in jaws but what should i do to remove it. 
The exception stacktrace is given below. Any help 
will be appreciated. it too urgent.
 

javax.transaction.TransactionRolledbackException: Load failed; nested 
exception is: 
java.lang.IllegalArgumentException; nested exception is: 
java.rmi.ServerException: Load failed; nested exception is: 
java.lang.IllegalArgumentException
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:188)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:436)
at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:506)
at 
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
at 
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:133)
at $Proxy185.remove(Unknown Source)
at org.apache.jsp.testtmp$jsp._jspService(testtmp$jsp.java:90)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.rmi.ServerException: Load fai

RE: [JBoss-user] Anyone using JBoss 3 for Swing apps?

2002-08-12 Thread Saroj Kumar
Title: Message



Hi 
Greg,
 
Pls. 
excuse this post off the list.
 
I went 
to your site and saw that there is a demo for use of MBEAN to store config 
vars.
 
I 
would like to see the source files but i could not download 
them.
 
I 
would be greatful if you could send me those files.
 
Thanks,
Saroj
 

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Greg 
TurnerSent: Monday, August 05, 2002 10:05 AMTo: 
[EMAIL PROTECTED]Subject: Re: [JBoss-user] Anyone 
using JBoss 3 for Swing apps?It makes a huge amount of 
sense.  I have been using a very simple swing based, jmx based app in my 
presentations about JBoss to illustrate the super server possibilities of 
JBoss.  For a demo, point your deployer at http://www.tiburon-e-systems.com/nl20020801/JBossMonitor.sar 

Greg   
James Higginbotham wrote: 
 Hi!As I read the architecture docs for JBoss 3 some time 
  ago, I started thinking how interesting it would be to use the core JBoss 
  kernel to develop Swing-based applications. No, not using Swing to talk to 
  JBoss, but rather as a platform for developing a Swing framework that was 
  based on using MBeans to extend its functionality. Think of the next logical 
  step in the desktop application - built-in JMX, component-based, with services 
  often needed by desktop applications available as MBeans. No more retrofitting 
  someone's custom framework.. Built in support for web services on the desktop 
  by adding in a web service MBean (container). I'm sure this isn't anything 
  new, but I haven't seen anything on the lists about any initiatives around 
  this yet. Is someone doing this already? Does this make sense? Or, have I just 
  had too much coffee this morning? I seem to recall someone saying something 
  about using JXTA with JBoss, but I'm not sure which tier they were planning on 
  using this for. Thoughts?!James
-- Greg Turner, JBoss Authorized Consultant 
Tiburon Enterprise Systems http://www.tiburon-e-systems.com 
Box 1171 Tiburon, CA 94920 415-332-3363   



RE: [JBoss-user] JBoss 3.0.x and PostgresDS

2002-08-12 Thread Saroj Kumar

In  file ,

Do it like (For ORACLE):

java:/OracleDS
Oracle8



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Allan Kamau
Sent: Monday, August 12, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss 3.0.x and PostgresDS


I have successfully configured and deployed the
PostgresDS on JBoss-3.0.0 now I seem to be stuck in
getting JBoss use PostgresDS as CMP of my EJBs in
place of the DefaultDS.
What additional configurations are required (is
jboss.xml used in JBoss-3.0.x for the same?)

Allan.


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com


---
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



RE: [JBoss-user] Swing to Session Bean

2002-08-12 Thread Saroj Kumar

Use EJBHomeFactory pattern

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Arijit
Ghosh
Sent: Monday, August 12, 2002 1:21 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Swing to Session Bean


Hi,

I would like to use a swing component as my client which will be
accessing the stateless session beans. Any pointers for this ? What
should be the design strategy as I want to use the swing component for
the presentation layer only and would like to do the lookup in some
interface between swing and session bean. What is the correct method ?

Thanks in advance.

Regards,
  Arijit



---
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] How to deploy Mbean in JBOSS 3

2002-08-12 Thread Saroj Kumar

Hi All,

Pls. explain the process of deploying Mbean in JBOSS3. It does not have
any jboss.jcml in this version.

TIA,
Saroj



---
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] How to ensure that Singleton class is not garbage collector

2002-08-12 Thread Saroj Kumar

Hi All,

I was just wondering under what circumstances a Singleton class is
garbage collected in JBOSS. How do we prevent it?

JDK1.2 + --> A class loaded by local/system classloader is not garbage
collected untill all the classes loaded by this classloader are
dereferenced.

How do we achieve this in JBOSS? Does it mean that all classes should be
part of 1 jar? I would like to have a jar which is having the class file
and classes in other jars to access it.

Any help is more than welcome.

TIA,
Saroj



---
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] JXTA Meet in Bangalore (Resending)

2002-08-10 Thread Saroj Kumar

Thanks Rajesh.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Rajesh
Acharya
Sent: Thursday, August 08, 2002 9:44 AM
To: Saroj Kumar
Cc: [EMAIL PROTECTED]
Subject: [JBoss-user] JXTA Meet in Bangalore (Resending)



Hi Saroj,
I am resending the information in text format.
A cc is being sent to JBoss list for those who might have had the same 
problem to read through. (Others please excuse for reposting :-))
All queries directly to [EMAIL PROTECTED], please.

Regards,

Rajesh

<--Quoting original message-->

On a seperate note, in addition to JXTA discussions on this list the
JXTA SIG 
of Bangalore, India would like to invite JBoss users and developers in
this 
region to attend this conference to discuss wonderful possibilities of a

possible marriage between JBoss (J2EE) and JXTA :-)

Please share this information with all whom it may be relevant.

This announcement is also available at http://jxtabang.linuxbee.com the 
website of JXTA Special Interest Group of Bangalore (JXTABANG) and at 
http://www.jxta.org, the official website of Project JXTA.

Best Regards,

Members,
JXTABANG

*Announcement***
P2P with JXTA.
An open architecture for peer-to-peer computing.

The JXTA Special Interest Group of Bangalore INDIA (JXTABANG) invites
you to 
the First Gathering in this region to discuss Peer-to-Peer computing
using 
JXTA protocols.
Tentative Date : Saturday, 7th September 2002
Tentative Venue: The Oberoi, MG Road. Bangalore. India. 

Background
The Information Technology as well as other sectors are going through a
rough 
weather. The time is right for solutions providers to innovate and stay
tuned 
with the emerging technologies. For business houses it is time to demand
cost 
effective alternatives through reduced infrastructure budgets and
maximized 
utilization of hardware resources.

Today's servers in enterprises are taking the pains of serving a large
number 
of clients during peak period while they idle during off-peak period
there by 
leading to inappropriate utilization of infrastructure. The client nodes
in 
the network are not fully active in providing the required resources to
other 
nodes when the need arise.

Peer-To-Peer (p2p) Computing paradigm is one such alternative to
maximize the 
ROI of enterprises. The p2p computing mostly addresses the discovery, 
publishing and communication channel between participating nodes may it
be a 
PC, a Portable Lap Top Computer or a hand held PDA.

According to industry analysts, the next big thing in the internet era
would 
be the p2p computing. Though not all the forecasts by the industry
analysts 
have been transformed into reality, there is a good chance that p2p
computing 
will compliment the other available architectures for internet.

Project JXTA, an initiative by Sun Microsystems, started as a research 
project with an open source model, has come a long way where ISVs have 
started integrating/developing their p2p applications using JXTA
Platform 
(Java Reference implementation)

To know more about Project JXTA visit http://www.jxta.org

Program

Morning Session - Track 01

Open Conference (No entry fee)

Key Note. 09.30 AM to 09.45 AM
Introduction to P2P. 09.45 AM to 10.00 AM
Introduction to JXTA. 10.00 AM to 10.30 AM
JXTA protocols and specifications. 10.30 AM to 11.00 AM
Programming in JXTA 11.00 AM to 11.30 AM (Java reference
implementation).
JXTA book authors' experience. 11.30 PM to 12.00 PM
Demonstration of JXTA applications. 12.00 PM to 12.45 PM
Conclusion. 12.45 PM to 01.00 PM

Noon Session - Track 02

JXTA Business Luncheon 
(Rs. 650 for lunch and other expenses)

Casual interaction while having a pleasant lunch. 01.30 PM to 3.00 PM
Discussions include :
"Insight into p2p and JXTA", 
"Advantages and Shortcomings in current reference implementation of
JXTA", 
"Most compelling business applications of JXTA"

Please Note:

1.This initiative is purely voluntary.
2.The Noon Session is intended to support the activities of Morning
Session.
3.Corporate Houses and individuals are welcome to sponsor the event
partly or 
wholly.
4.Actual date and venue will be notified upon receipt of confirmed
attendees 
through e-mail to their respective addresses and through media and local

press.
5.Interested developers looking for an opportunity to speak on the
technology 
or potential JXTA based products please contact us before 15th August at
the 
given address.
6.Companies interested in display/demonstration of JXTA based 
applications/products may contact us before 15th August at the given
address.
7.Attendance through invitations only, based on early registrations.

How to register:

Mail to [EMAIL PROTECTED] or [EMAIL PROTECTED] for registration
and 
sponsorship details. (PREFERRED)
Call 91-80-5234448 Ext 328 or 329 (Rajesh Acharya, Infoglyptic Software,

Bangalore. INDIA) for tele-registration from 05.30 PM to 6.30PM Indian 
Standard Ti

RE: [JBoss-user] java.util.ConcurrentModificationException on XAPoolDataSource - need help...

2002-08-10 Thread Saroj Kumar

Hi David,

I do not have any idea about the exact reason for this error.

But, I feel that this may be one of the main reasons 

 Straight from Java API on HashMap 

The iterators returned by all of this class's "collection view methods"
are fail-fast: if the map is structurally modified at any time after the
iterator is created, in any way except through the iterator's own remove
or add methods, the iterator will throw a
ConcurrentModificationException. Thus, in the face of concurrent
modification, the iterator fails quickly and cleanly, rather than
risking arbitrary, non-deterministic behavior at an undetermined time in
the future. 


It will happen when collection is being modified after creating the
iterator.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of David Brady
Sent: Saturday, August 10, 2002 9:52 AM
To: [EMAIL PROTECTED]
Subject: FW: [JBoss-user] java.util.ConcurrentModificationException on
XAPoolDataSource - need help...



Hi everyone -

I still need some help/guidance on this.  Didn't get a response last
time around.  This is a huge problem since I can't  reliably get
connections when needed.

Thanks,
David


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of David Brady
Sent: Thursday, June 27, 2002 1:50 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] java.util.ConcurrentModificationException on
XAPoolDataSource - need help...



Using Jboss 2.44

I'm tracking down a problem we occasionally have during load tests when
we try to get a connection from a XAPoolDataSource.  The exception is
not very informative and doesn't give me a concrete approach to solve
the problem.

Anybody give me insight/help with this?  Thanks! 

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.next(HashMap.java(Compiled
Code))
at org.jboss.pool.ObjectPool.getObject(Unknown Source)
at org.jboss.pool.ObjectPool.getObject(Unknown Source)
at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown
Source)
...

The datasource is setup as:

  
jdbc/yyy
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl

jdbc:mysql://x:3306/logging?autoReconnect=true
120
x
150

false
false
false
true
12
180
false
false
1.0
0
  

Thanks very much,
David



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
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] Problem in looking up the Datasource thru a Standalone java class

2002-08-01 Thread Saroj Kumar

Hi All,

I am not able to lookup the DataSource in my standalone java class. I
get "request timed out exception".

Progr:

public class TestDS
{

public static void main(String[] args) throws Exception
{

String CONTEXT_PROVIDER_URL = "jnp://localhost:1099";
/* JNDI Context class Factory Name */
String CONTEXT_FACTORY_NAME =
"org.jnp.interfaces.NamingContextFactory";
String CONTEXT_FACTORY_PKGS =
"org.jboss.naming:org.jnp.interfaces";
/* JNDI Properties */
Properties Properties= new Properties ( ) ;
Properties.put ( "Context.PROVIDER_URL" , CONTEXT_PROVIDER_URL )
;
Properties.put ( "java.naming.provider.url" ,
CONTEXT_PROVIDER_URL ) ;
Properties.put ( "java.naming.factory.initial" ,
CONTEXT_FACTORY_NAME ) ;
Properties.put ( "java.naming.factory.url.pkgs"
,CONTEXT_FACTORY_PKGS ) ;

InitialContext initial = new InitialContext(Properties);

DataSource ds = (DataSource) initial.lookup("java:/OracleDS");
 

}
}   

Any idea why it is so?

TIA,
Saroj



---
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] anyone knows about this exception?

2002-07-31 Thread Saroj Kumar
Title: Message



It may 
be due to incorrect Version of JAVA on client side!!!

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Sheng 
ZouSent: Wednesday, July 31, 2002 4:04 AMTo: 
'[EMAIL PROTECTED]'Subject: [JBoss-user] anyone knows 
about this exception?Importance: High
java.io.StreamCorruptedException: Caught EOFException while 
reading the stream header     at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:845) 
    at 
java.io.ObjectInputStream.(ObjectInputStream.java:168) 
    at 
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:149) 
    at 
org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:871) 
    at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:426)     at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:419)     at 
javax.naming.InitialContext.lookup(InitialContext.java:350)     at 
com.solipsa.messaging.jms.vendor.iCCJBossJMS.getQueue(iCCJBossJMS.java:191) 
    at 
com.solipsa.messaging.jms.iCCQueueManager.(iCCQueueManager.java:69) 
    at 
com.solipsa.messaging.jms.iCCMessageService.buildReceivingQueueManager(iCCMessageService.java:706) 
    at 
com.solipsa.messaging.jms.iCCMessageService.initReceivingQueue(iCCMessageService.java:124) 
    at 
com.solipsa.messaging.jms.iCCMessageServiceUT.setUp(iCCMessageServiceUT.java:163) 
    at 
junit.framework.TestCase.runBare(TestCase.java:138)     at 
junit.framework.TestResult$1.protect(TestResult.java:106)     at 
junit.framework.TestResult.runProtected(TestResult.java:124)     at 
junit.framework.TestResult.run(TestResult.java:109)     at 
junit.framework.TestCase.run(TestCase.java:131)     at 
junit.framework.TestSuite.runTest(TestSuite.java:173)     at 
junit.framework.TestSuite.run(TestSuite.java:168)     at 
junit.framework.TestSuite.runTest(TestSuite.java:173)     at 
junit.framework.TestSuite.run(TestSuite.java:168)     at 
junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)     at 
junit.extensions.TestSetup$1.protect(TestSetup.java:19)     at 
junit.framework.TestResult.runProtected(TestResult.java:124)     at 
junit.extensions.TestSetup.run(TestSetup.java:23)     at 
junit.textui.TestRunner.doRun(TestRunner.java:74)     at 
junit.textui.TestRunner.run(TestRunner.java:200)     at 
com.solipsa.messaging.jms.iCCMessagingUT.runProcess(iCCMessagingUT.java:95) 
    at 
com.solipsa.utils.jboss.iCCProcessThread.run(iCCProcessThread.java:29) 

thanks, sheng 


[JBoss-user] CLOB Support in JBOSS 3 with ORACLE 9i

2002-07-29 Thread Saroj Kumar

Hi All,

I would like to know the support provided by JBOSS 3 for CLOB in ORALCE
9i. I am using CMP/CMR. 

It would be better if someone could explain the issues in detail. Any
help/hint/pointer would be more than welcome.

TIA,
Saroj



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Jboss 3 with ORACLE 8.0.5+

2002-07-27 Thread Saroj Kumar

Hi Igor,

Thanks for the detailed info.

I am using JBOSS 3 and it does not have any oracle-xa-service.xml in jca
dir. Is it a must to move to 3.0.1RC1?

I checked out the Bug Details as well. It seems to me that I need to
comment out a for loop in TxCapsule.java

//for (int i = 0; i < resourceCount; ++i)
+//{
+//   if (resourceSameRM[i] == -1 &&
xaRes.isSameRM(resources[i]))
+//   {
+//  // The xaRes is new. We register the xaRes with the
Xid
+//  // that the RM has previously seen from this
transaction,
+//  // and note that it has the same RM.
+//  startResource(addResource(xaRes, resourceXids[i],
i));
+//
+//  return true;
+//   }
+//}
 //}
 

Are there any other problems with using ORACLE? I am using Oracle9i. 

TIA,
Saroj



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Igor
Fedorenko
Sent: Friday, July 26, 2002 7:03 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Jboss 3 with ORACLE 8.0.5+


Saroj Kumar wrote:
> Hi All,
> 
> I want to know all the steps required to configure ORACLE 8+/8i/9i to
> work with JBOSS3.
> 
> It would be better if someone could explain the pre-requisites and
> necessary groundwork to be done to make it work.
> 
> TIA,
> Saroj

There are two possible ways to configure Oracle datasource (and two 
example config files in $JBOSS_HOME/docs/examples/jca).
As somebody has already mentioned on this list you could use 
oracle-service.xml as a starting point, set connectionUrl, 
username/password and drop the file into 
$JBOSS_HOME/server/default/deploy. This way you configure datasource for

local transactions only (for example, you cannot have a transaction that

includes both jms session and database connection). I would not 
recommend this configuration for production but it might be acceptible 
during development.
If you do need global transaction then you should go with 
oracle-xa-service.xml, however, configuration procedure is a bit more 
complicated and there is an outstanding compatibility issue that has to 
be resolved (see bug 585632 on SF). To configure xa datasource

Pre-requisites
1. Your oracle server must be java-enabled (if java is installed, 
following query returns non-zero result when executed from sqlplus
   select count(*) from all_objects where object_type like 'JAVA%';
2. JBoss 3.0.1RC1 (you probably need to checkout and compile Branch_3_0 
from cvs)
3. Bug 585632 is fixed. As a workaround you could try to use my patch 
for the bug, but it could cause problems with other non-oracle resource 
managers.

Configuration
1. Edit $JBOSS_HOME/server/default/conf/jboss-service.xml, find 
"jboss:service=XidFactory" mbean definition and add "true" to it. Mbean definition should look like

   
 true
   

2. Copy $JBOSS_HOME/docs/examples/jca/oracle-xa-service.xml to 
$JBOSS_HOME/server/default/deploy. Edit the file and remove 
"jboss:service=XidFactory" mbean from it. You should also configure 
database url, username and password.

Both xa and non-xa configurations require classes12.zip (oracle jdbc 
driver) to be put in $JBOSS_HOME/server/default/lib.

-- 
Igor Fedorenko
Think smart. Think automated. Think Dynamics.
www.thinkdynamics.com



---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
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



RE: [JBoss-user] jndi / jboss question

2002-07-24 Thread Saroj Kumar

Hi Damon,

Add jboss-common-client.jar to your classpath.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Damon
Hamacha
Sent: Wednesday, July 24, 2002 3:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jndi / jboss question


thanks for your email
i run my simple test with the recommended release [jboss 3.0.1RC1]
the bellow exception get generated, i am able to start the default
server, but i am not able to bind objects to it,
does any know what i need to do.
thanks.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jboss/logging/Log
ger
at
org.jnp.interfaces.NamingContext.(NamingContext.java:89)
at
org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingConte
xtFactory.java:38)
at javax.naming.spi.NamingManager.getInitialContext(Unknown
Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at jms.SpiritJNDIBinder.(SpiritJNDIBinder.java:42)
at jms.SpiritJNDIBinder.main(SpiritJNDIBinder.java:117)

-Original Message-
From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jndi / jboss question


you need to get jboss-all "Branch_3_0" from CVS

Cheers,


Sacha

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Damon
> Hamacha
> Envoyé : mardi, 23 juillet 2002 17:31
> À : [EMAIL PROTECTED]
> Objet : RE: [JBoss-user] jndi / jboss question
>
>
> i load the new jboss3.0 version today, however the problem did
> not go away.
> i am not sure what to suggest.
>
> -Original Message-
> From: Damon Hamacha
> Sent: Tuesday, July 23, 2002 4:05 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] jndi / jboss question
>
>
> i am confused,
> i downloaded jboss 3.0 yesterday [Monday], maybe the version is
corrupted.
> i will try a new version today and see what i get.
>
>
> as you mentioned you run jboss with start "run -c minimal" did
> you get the lo4j.jar exception.
> i fixed the problem by adding log4j.jar to %jboss_installation%\lib.
> the bellow is the exception i was getting.
>
>
> oss3.0/jboss-3.0.0/lib/log4j.jar could not be opened, does it exist?
> at
> org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:172)
> at
> org.jboss.deployment.SARDeployer.parseXMLClasspath(SARDeployer.java:4
> 64)
> at org.jboss.deployment.SARDeployer.init(SARDeployer.java:155)
> at
org.jboss.deployment.MainDeployer.init(MainDeployer.java:556)
> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:501)
> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
> at
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
> nDispatcher.java:284)
> at
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
> at
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
> at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
> at org.jboss.Main.boot(Main.java:142)
> at org.jboss.Main$1.run(Main.java:375)
> at java.lang.Thread.run(Unknown Source)
> 15:56:22,533 INFO  [MainDeployer] Starting deployment of package:
> file:/C:/appSe
>
> -Original Message-
> From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 3:23 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] jndi / jboss question
>
>
> Damon,
>
> I just took HEAD from yesterday (3.1RC), start "run -c minimal" and
> successfully ran the following adaptation of your program:
>
>
> import java.io.*;
> import java.util.*;
> import javax.naming.*;
> import org.jnp.interfaces.NamingContextFactory;
>
> /*
> * This program is used to bind a connection factory and a destination
> * to a JNDI implementation as specified by the file name passed in as
> args[0]
> */
>
> public class JNDIBinder
> {
>   private Properties env = new Properties();
>
>   public JNDIBinder(String propertiesFile) throws Exception
>   {
>
> System.out.println("Reading properties from " + propertiesFile);
> env.load( ClassLoader.getSystemResourceAsStream(propertiesFile));
>
> InitialContext ic = new InitialContext(env);
> System.out.println("Successfully Created Initial Context");
>
> ic.rebind ("bla", "bli");
> String result = (String)ic.lookup ("bla");
> System.out.println ("Result: " + result);
>
>
>
> ic.close

[JBoss-user] Jboss 3 with ORACLE 8.0.5+

2002-07-24 Thread Saroj Kumar

Hi All,

I want to know all the steps required to configure ORACLE 8+/8i/9i to
work with JBOSS3.

It would be better if someone could explain the pre-requisites and
necessary groundwork to be done to make it work.

TIA,
Saroj



---
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] Help needed regarding Dependent Value Classes in JBOSS 3

2002-07-22 Thread Saroj Kumar

Hi All,

Any idea about how to use Dependent Value Classes in JBOSS 3.

Attaching herewith the bean and deployment descriptors:

I am getting no setter found for name.

TIA,
Saroj






	true
	true
	true
	false
	0
	false
	true
	foreign-key
	
		on-load
		500
		group name
	

		
 
  
  
   UserEJB
   USER
   
   
userId
USER_ID
   
   
   
internalId
INTERNAL_ID
   
   
   
name


 first
 
 FIRST_NAME
 VARCHAR
 VARCHAR(100)



 mi
 
 MI



 last
 
 LAST_NAME


   
   
   
address
ADDRESS
   
   
   
creditCard
CREDIT_CARD
   

   
internalId
   

   

 Blah
 userName
 creditCard

   
  
 

 
  
   
   address information
   com.wipro.rpm.Address
   
   
line1
LINE1
   
   
   
line2
LINE2
   
   
   
city
CITY
   
   
   
state
ST
VARCHAR
VARCHAR(2)
   
   
   
zip
   
   
   
zipPlusFour
ZIP_4
   
   
  
  
  
   Formal Name
   com.wipro.rpm.Name
   
first
FIRST
   
   
mi
MI
   
   
last
LAST
   
  
  
  
   Credit Card
   com.wipro.rpm.CreditCard
   
cardHolder
CARD_HOLDER
   
   
Address
ADD
   
   
cardNumber
CARD_NUMBER
   
  
  
 





http://java.sun.com/dtd/ejb-jar_2_0.dtd";>


 RPM UserBean 
 User EJB
 	
 
 	
 			
   		User
 		UserEJB
 		
 	com.wipro.rpm.UserBean.UserHome
	com.wipro.rpm.UserBean.User
	com.wipro.rpm.UserBean.UserLocalHome
		com.wipro.rpm.UserBean.UserLocal
		com.wipro.rpm.UserBean.UserBean
	Container
	java.lang.String
	False
	2.x
	UserBean
	
	
		  	userId
	
	 
	
		  	internalId
	
	
	
			name
		
		   
		
		address
		
		   
		
		creditCard
		
		
		userId
		 
		 
	
	
	
 
	
		
			
UserEJB
*
			
			Required
		
	





Address.java
Description: Binary data


Name.java
Description: Binary data


CreditCard.java
Description: Binary data


UserBean.java
Description: Binary data


RE: [JBoss-user] jms- mdb question [jboss3.0]

2002-07-22 Thread Saroj Kumar

Yeah, Code is all right. There must be a problem with Starting the MDB

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Damon
Hamacha
Sent: Monday, July 22, 2002 10:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


the attached code include the jms sender call,
however, i think i am not able to get the MDB to start.
i think it is not calling for some reason the JMS Factory.

thanks
Damon

-Original Message-
From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 5:05 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


Hi Damon,

Send me your client code. You must be creating a session for sending the
messages to q. Second argument to method should be false. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Damon
Hamacha
Sent: Monday, July 22, 2002 9:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


thanks for your email
i attached my *.xml files.
i left it to the container to manage transaction's.
thanks
Damon

-Original Message-
From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


Hi Damon,

May be you are using transacted session. Use untransacted session.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Damon
Hamacha
Sent: Monday, July 22, 2002 8:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


does anyone knows 
how to plug an external jms to jboss?
and how to deploy a message driven beans to jboss,
i am able to deploy the msg driven bean, 
however, the msg driven bean does not listen to msgs
as i send msgs to the jms queue
but,they do not get consume by the msg driven bean. 

thanks
Damon

This message contains confidential information and is intended only for
the named individual and may not be disseminated without prior
permission.  If you are not the named addressee, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this message in error and
delete this e-message from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, delayed in transmission,
incomplete, or may contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this Message
which arise as a result of e-mail transmission.  If verification is
required please request a hard-copy version. This message is provided
for informational purposes and should not be construed as a solicitation
or offer to buy or sell any software or services.


This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com



---
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 email has been scanned for all viruses by MessageLabs



This message contains confidential information and is intended only for
the named individual and may not be disseminated without prior
permission.  If you are not the named addressee, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this message in error and
delete this e-message from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, delayed in transmission,
incomplete, or may contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this Message
which arise as a result of e-mail transmission.  If verification is
required please request a hard-copy version. This message is provided
for informational purposes and should not be construed as a solicitation
or offer to buy or sell any software or services.


This email has been scanned for all viruses b

RE: [JBoss-user] jms- mdb question [jboss3.0]

2002-07-22 Thread Saroj Kumar

Hi Damon,

Send me your client code. You must be creating a session for sending the
messages to q. Second argument to method should be false. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Damon
Hamacha
Sent: Monday, July 22, 2002 9:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


thanks for your email
i attached my *.xml files.
i left it to the container to manage transaction's.
thanks
Damon

-Original Message-
From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


Hi Damon,

May be you are using transacted session. Use untransacted session.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Damon
Hamacha
Sent: Monday, July 22, 2002 8:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


does anyone knows 
how to plug an external jms to jboss?
and how to deploy a message driven beans to jboss,
i am able to deploy the msg driven bean, 
however, the msg driven bean does not listen to msgs
as i send msgs to the jms queue
but,they do not get consume by the msg driven bean. 

thanks
Damon

This message contains confidential information and is intended only for
the named individual and may not be disseminated without prior
permission.  If you are not the named addressee, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this message in error and
delete this e-message from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, delayed in transmission,
incomplete, or may contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this Message
which arise as a result of e-mail transmission.  If verification is
required please request a hard-copy version. This message is provided
for informational purposes and should not be construed as a solicitation
or offer to buy or sell any software or services.


This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com



---
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 email has been scanned for all viruses by MessageLabs



This message contains confidential information and is intended only for
the named individual and may not be disseminated without prior
permission.  If you are not the named addressee, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this message in error and
delete this e-message from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, delayed in transmission,
incomplete, or may contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this Message
which arise as a result of e-mail transmission.  If verification is
required please request a hard-copy version. This message is provided
for informational purposes and should not be construed as a solicitation
or offer to buy or sell any software or services.


This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com




---
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] jms- mdb question [jboss3.0]

2002-07-22 Thread Saroj Kumar

Hi Damon,

May be you are using transacted session. Use untransacted session.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Damon
Hamacha
Sent: Monday, July 22, 2002 8:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jms- mdb question [jboss3.0]


does anyone knows 
how to plug an external jms to jboss?
and how to deploy a message driven beans to jboss,
i am able to deploy the msg driven bean, 
however, the msg driven bean does not listen to msgs
as i send msgs to the jms queue
but,they do not get consume by the msg driven bean. 

thanks
Damon

This message contains confidential information and is intended only for
the named individual and may not be disseminated without prior
permission.  If you are not the named addressee, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this message in error and
delete this e-message from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, delayed in transmission,
incomplete, or may contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this Message
which arise as a result of e-mail transmission.  If verification is
required please request a hard-copy version. This message is provided
for informational purposes and should not be construed as a solicitation
or offer to buy or sell any software or services.


This email has been scanned for all viruses by the MessageLabs SkyScan
service. http://www.messagelabs.com



---
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



RE: [JBoss-user] JBoss 3.0 Documentation

2002-07-18 Thread Saroj Kumar

You can get the quick start from Sourceforge.

-Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Rahul
Sent: Friday, July 19, 2002 12:12 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss 3.0 Documentation


Is JBoss 3.0 Documentation available anywhere?


---
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] Do Tomcat and Jboss share the same jvm?

2002-07-18 Thread Saroj Kumar

Hi All,

I would like to know whether Tomcat and Jboss share the same jvm or
different jvms. If they share the same jvm then my servlets can easily
make local calls otherwise I need to use Remote Interface for looking up
my beans.

Any light would be more than welcome.
Saroj



---
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] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar

How do we use a mbean? Any starting points? I am new to JBOSS. Any help
would be more than welcome.

Thanks,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jung , Dr.
Christoph
Sent: Tuesday, July 16, 2002 7:49 PM
To: '[EMAIL PROTECTED]'
Subject: AW: [JBoss-user] How to register a class as a startup class in
JBOSS3


You could use an mbean for that purpose which would have the additional
advantage of being reinitializable when you cycle your application and
configurable from any (RMI/HTML/whatever) JXM-Adapter.

Statics are poo-poo, IMHO.
 
CGJ



-Ursprüngliche Nachricht-
Von: David Ward [mailto:[EMAIL PROTECTED]] 
Gesendet: Dienstag, 16. Juli 2002 14:40
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] How to register a class as a startup class in
JBOSS3


There is a generic way to do this with web applications in the 2.2 
servlet spec and even a better way in 2.3.

In 2.2, you can just have a servlet that calls your initializer in it's 
init() method.  Then, in web.xml, define the load-on-startup element. 
That way, when your web app comes up, you get called.  You can also call

a clean-up class in the servlet's destroy() method.

Now, in servlet 2.3, you can define a ServletContextListener (a servlet 
context is basically your web app) in the web.xml.  You will get 
notified via the contextInitialized and contextDestroyed methods.

Granted, each of these methods mean assumes you've got a web tier.  Even

if you don't, it's not a horrible thing to just through your ejb jars in

an ear along with a tiny war who's only job is to initialize some stuff.

Now, if you just wanted to now about startup/shutdown classes outside of

your app and specific to jboss, I don't know.

Hope this helps,
David

--

Saroj Kumar wrote:
> Hi All,
> 
> I want to register a class as startup class in JBOSS3. This class 
> should be loaded in memory when server is started.
> 
> This class reads some properties and loads them in the memory. Other 
> classes need to access these variables using ClassName.Method Names().
> 
> Please suggest me a way.
> Saroj
> 
> 
> 
> ---
> This sf.net email is sponsored by: Jabber - The world's fastest 
> growing
> real-time communications platform! Don't just IM. Build it in! 
> http://www.jabber.com/osdn/xim
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
###

This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/


---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar

Yes, I agree that having a web tier which does all the work in init()
will do but what if I don't have any web tier and don't like to use a
servlet to do it.

I just need something equivalent to weblogic.system.startup.class="My
Class" kind of thing or any direct workaround without the use of
Servlet.

Thanks,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Simon
Stewart
Sent: Tuesday, July 16, 2002 7:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to register a class as a startup class in
JBOSS3


I've reformatted the email a little because you seem to prefer top
posting. The words are all still there :)

Are you planning to restart that frequently? The singleton design
could still work quite nicely if you have a web tier and use (as
someone else suggested) one of your servlet's init() method to create
the instance. Naturally, this servlet would have to be loaded when
your app loads, but there's already support for this from the EJB
spec.

You get the advantage of "load on startup" without having to do
something clunky with your config files.

On Tue, Jul 16, 2002 at 07:28:41PM +0530, Saroj Kumar wrote:
> Yes, It is one of the way. Thanks for suggesting this alternative.
> 
> But, If we need to do some activity like File Reading/ Writing
/Network
> calls using sockets then we may need a no. of classes to execute
before
> we make the app. Up. It asks for Startup classes.
> 
>> Simon Stewart said:
>> 
>> Why not just use a singleton to load and get the variables? That's
how
>> I tend to handle situations like that.
>> 
>>> On Tue, Jul 16, 2002 at 05:29:05PM +0530, Saroj Kumar wrote:
>>> Hi All,
>>> 
>>> I want to register a class as startup class in JBOSS3. This class
>>> should be loaded in memory when server is started. 
>>> 
>>> This class reads some properties and loads them in the memory. Other
>>> classes need to access these variables using ClassName.Method
Names().
>>> 
>>> Please suggest me a way.

Cheers,

Simon

-- 
Welcome to the Church of the Holy Cabbage. Lettuce pray.


---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar

Yes, It is one of the way. Thanks for suggesting this alternative.

But, If we need to do some activity like File Reading/ Writing /Network
calls using sockets then we may need a no. of classes to execute before
we make the app. Up. It asks for Startup classes.

Thanks,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Simon
Stewart
Sent: Tuesday, July 16, 2002 7:18 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to register a class as a startup class in
JBOSS3


On Tue, Jul 16, 2002 at 05:29:05PM +0530, Saroj Kumar wrote:
> Hi All,
> 
> I want to register a class as startup class in JBOSS3. This class
should
> be loaded in memory when server is started. 
> 
> This class reads some properties and loads them in the memory. Other
> classes need to access these variables using ClassName.Method Names().
> 
> Please suggest me a way.

Why not just use a singleton to load and get the variables? That's how
I tend to handle situations like that.

Cheers,

Simon

-- 
I thought we were not going to call people (or their ideas) dumb
anymore.  I agree that is is a dumb idea, but we should be nicer.
--- Dain to marcf


---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to register a class as a startup class in JBOSS3

2002-07-16 Thread Saroj Kumar

Hi All,

I want to register a class as startup class in JBOSS3. This class should
be loaded in memory when server is started. 

This class reads some properties and loads them in the memory. Other
classes need to access these variables using ClassName.Method Names().

Please suggest me a way.
Saroj



---
This sf.net email is sponsored by: Jabber - The world's fastest growing 
real-time communications platform! Don't just IM. Build it in! 
http://www.jabber.com/osdn/xim
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Question regarding CMP and CMR Performance in EJB2 and JBOSS 3

2002-07-12 Thread Saroj Kumar

Hi All,

I have some doubts about the performance of CMP and CMR in EJB2 AND
JBOSS3.

Scenario is like this:

I have 1 bean called EMPLOYEE. It has got 1:N relationship with GROUPS
bean. This relationship is defined thru CMR.

I have a method on EMPLOYEE :

Public GroupModel[] getGroupModels()
{
// get all the groups
Collection groups = this.getGroups();

GroupModel[] arr= new GroupModel[groups.size()];

Iterator itr = groups.iterator();

Int i=0;
while(itr.hasNext())
{

Group g = (Group)itr.next();
arr[i] = g.getModel();
i++;
}

return arr;
}

So, First container will get the collection of EJBObjects for Group
bean. Then, it will start loading the beans one by one.

QUESTION is if the no. of records is high (100s) then will it not be
slow? If yes then is it better to go for Direct JBDC Calls instead of
using Beans for this purpose?

PLEASE HELP

Any real life experience is more than welcome.

Thanks,
Saroj



---
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Error using Custom Primary Key class in JBOSS 3, cmp 2 + Hypersonic

2002-07-10 Thread Saroj Kumar

Hi Dain / Bill,

Yeah, you are right. It should have been hashCode() ; 

I made this silly mistake and was unnecessarily troubling you guys.

Thanks for the help.
Saroj

Message: 7
From: "Bill Burke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: [JBoss-user] Error using Custom Primary Key class in JBOSS
3, cmp 2 + Hypersonic
Date: Wed, 10 Jul 2002 18:47:00 -0400
Reply-To: [EMAIL PROTECTED]

Good catch Dain!  Didn't see that at first and was shitting in my pants.
That's probably the problem Kumar.  Let us know!!!

Bill

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dain
> Sundstrom
> Sent: Wednesday, July 10, 2002 2:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Error using Custom Primary Key class in
JBOSS
> 3, cmp 2 + Hypersonic
>
>
> Everything looks good except you spelled hashCode incorrectly.  You
have:
>
> public int HashCode()
> {
>   return customerId.hashCode();
> }
>
> You should have:
>
> public int hashCode()
> {
>   return customerId.hashCode();
> }
>
> -dain
>
> Saroj Kumar wrote:
> > Hi All,
> >
> >
> > When I am using Custom Primary key with JBOSS 3 , CMP2 with
HYPERSONIC
> > then this error I am getting :
> >
> > This is the full stack trace ...
> >
> >  [java] java.rmi.ServerException: RemoteException occurred in server
> > thread; nested exception is:
> >  [java] Caught an unexpected exception while making contract!
> >  [java] java.rmi.ServerException: removing bean lock and it has
tx
> > set!; nested exception is:
> >  [java] java.lang.IllegalStateException: removing bean lock and
it
> > has tx set!
> >  [java] at
> > sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
> >  [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
> >  [java] at java.security.AccessController.doPrivileged(Native
> > Method)
> >  [java] at
> > sun.rmi.transport.Transport.serviceCall(Transport.java:144)
> >  [java] at
> >
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
> >  [java] at
> >
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
> > va:701)
> >  [java] at java.lang.Thread.run(Thread.java:536)
> >  [java] at
> >
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRem
> > oteCall.java:247)
> >  [java] at
> >
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223
> > )
> >  [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
> >  [java] at
> > org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
> >  [java] at
> >
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvoker
> > Proxy.java:128)
> >  [java] at
> >
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:1
> > 08)
> >  [java] at
> >
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.jav
> > a:73)
> >  [java] at
> >
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
> >  [java] at
> >
org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:116)
> >  [java] at
> > org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
> >  [java] at $Proxy1.getCustomerId(Unknown Source)
> >  [java] at test_ejbs.make_Customer(test_ejbs.java:84)
> >  [java] at test_ejbs.(test_ejbs.java:43)
> >  [java] at test_ejbs.main(test_ejbs.java:101)
> >  [java] Caused by: java.rmi.ServerException: removing bean lock and
it
> > has tx set!; nested exception is:
> >  [java] java.lang.IllegalStateException: removing bean lock and
it
> > has tx set!
> >  [java] at
> >
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
> > ptor.java:119)
> >  [java] at
> >
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
> > CMT.java:167)
> >  [java] at
> >
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
> >  [java] at
> >
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
> > a:129)
> >  [java] at
> > org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
> >  [java] at
> > org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
> >  [java] at org.jboss.ejb.Container.invoke(Container.java:705)
> >  [java] at
> > org.jboss.ejb.EntityContainer.invoke(EntityContainer

[JBoss-user] Error using Custom Primary Key class in JBOSS 3, cmp 2 + Hypersonic

2002-07-10 Thread Saroj Kumar

Hi All,


When I am using Custom Primary key with JBOSS 3 , CMP2 with HYPERSONIC
then this error I am getting :

This is the full stack trace ...

 [java] java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is:
 [java] Caught an unexpected exception while making contract!
 [java] java.rmi.ServerException: removing bean lock and it has tx
set!; nested exception is:
 [java] java.lang.IllegalStateException: removing bean lock and it
has tx set!
 [java] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
 [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
 [java] at java.security.AccessController.doPrivileged(Native
Method)
 [java] at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
 [java] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
 [java] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
va:701)
 [java] at java.lang.Thread.run(Thread.java:536)
 [java] at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRem
oteCall.java:247)
 [java] at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223
)
 [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
 [java] at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
 [java] at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvoker
Proxy.java:128)
 [java] at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:1
08)
 [java] at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.jav
a:73)
 [java] at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
 [java] at
org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:116)
 [java] at
org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
 [java] at $Proxy1.getCustomerId(Unknown Source)
 [java] at test_ejbs.make_Customer(test_ejbs.java:84)
 [java] at test_ejbs.(test_ejbs.java:43)
 [java] at test_ejbs.main(test_ejbs.java:101)
 [java] Caused by: java.rmi.ServerException: removing bean lock and it
has tx set!; nested exception is:
 [java] java.lang.IllegalStateException: removing bean lock and it
has tx set!
 [java] at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
ptor.java:119)
 [java] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor
CMT.java:167)
 [java] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
 [java] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav
a:129)
 [java] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
 [java] at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
 [java] at org.jboss.ejb.Container.invoke(Container.java:705)
 [java] at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
 [java] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
 [java] at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362
)
 [java] at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown
Source)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
 [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
 [java] at java.security.AccessController.doPrivileged(Native
Method)
 [java] at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
 [java] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
 [java] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
va:701)
 [java] at java.lang.Thread.run(Thread.java:536)
 [java] Caused by: java.lang.IllegalStateException: removing bean lock
and it has tx set!
 [java] at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPess
imisticEJBLock.java:469)
 [java] at
org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78)
 [java] at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor
.java:124)
 [java] at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInt
erceptor.java:69)
 [java] at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterce
ptor.java:96)
 [java] ... 19 more


**  CustomPK ***


I am using CustomPK like this:
import java.io.*;

public class CustomerPK implements Serializable
{
public String customerId ;

public CustomerPK()
{

}

public CustomerPK(String customerId)
{
this.customerId = customerId;
}

public Strin