[JBoss-user] Hello ! The JBoss-3.2.1_Tomcat-4.1.24 !

2003-06-29 Thread jonathan wong
Dear all , 
Hello ! I just download JBoss-3.2.1_Tomcat-4.1.24 . However , I can't find any "Tomcat" inside the package ! Where is the Tomcat placed in this version ? Thank you ! 
Jonathan (Wong Yat Sing) Jonathan StudioM.P (852) - 91235947 NetMeeting : [EMAIL PROTECTED]ICQ# 57646152 
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[JBoss-user] MP3

2003-06-29 Thread [EMAIL PROTECTED]
Title: 







  
  

  



  

  

  
  

  

  


  
158

  

  

  

  

  
  

 
 
 
 


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


[JBoss-user] Hello ! The problem of JNDI again !

2003-06-29 Thread jonathan wong
Dear all , 

Hello ! I am using JBoss-3.2.1 and a standalone Tomcat . I try to connect an EJB in Jboss's through JSP in Tomcat . Thank you for some people's nice help . Now , the JSP is as follow : 

%@ page session="false" isThreadSafe="true" isErrorPage="false" import="javax.naming.*, com.sample.*, javax.rmi.PortableRemoteObject, java.util.*, java.io.*, javax.net.*"%
h4test/h4ptest/pbrbrp%
try { Hashtable env = new Hashtable(); env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); env.put("java.naming.factory.url.pkgs", "org.jboss.naming;"); // The bulk of our EJBs run here. env.put("java.naming.provider.url", "jnp://localhost:1099"); Object ref = new InitialContext(env).lookup("HelloWorld"); HelloWorldHome lHome = (HelloWorldHome) PortableRemoteObject.narrow(ref, HelloWorldHome.class); HelloWorld lSession = lHome.create();String fromEJB = lSession.hello(); out.println( "" + fromEJB); } catch( Exception e ) { out.println( "Caugth exception: "
 + e.getMessage() ); e.printStackTrace(); }%/p

I can lookup the EJB's name ("HelloWorld") in JBoss's "Global JNDI Namespace" . However , when I run the JSP , Tomcat says : 

Caugth exception: null 
And in the Dos : 
javax.naming.CommunicationException. Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePair 
Therefore , what futher configuration should I have . Thank you ! 
Jonathan (Wong Yat Sing) Jonathan StudioM.P (852) - 91235947 NetMeeting : [EMAIL PROTECTED]ICQ# 57646152 
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: [JBoss-user] RE: possible JMS memory leak under 3.0.4?

2003-06-29 Thread eric . kaplan
Adrian et all

I apologize.  Adrian is right.  I'll look into it on our end.  I should have 
gotten the complete package name before I went further.

Regards

Eric

Quoting Adrian Brock [EMAIL PROTECTED]:

 This isn't jboss code.
 
 It is jmsdof (a retired sourceforge project)
 
 You can turn on TRACE for org.jboss.mq
 don't know whether it will help?
 
 
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC
 
   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Eric J
 Kaplan
 Sent: 27 June 2003 20:06
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] RE: possible JMS memory leak under 3.0.4?
 
 
 Does this ring a bell with anyone?  Or is this question so outlandish no
 one's responding for fear of embarrassing me.
  
 Regards
  
 Eric
  
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Eric J
 Kaplan
 Sent: Friday, June 27, 2003 9:42 AM
 To: 'Eric J Kaplan'; [EMAIL PROTECTED]
 Subject: [JBoss-user] RE: possible JMS memory leak under 3.0.4?
  
 Correction to my last email, it's a JMSReader (queues).  Sorry bout
 that.
  
 -Original Message-
 From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 27, 2003 9:37 AM
 To: '[EMAIL PROTECTED]'
 Subject: possible JMS memory leak under 3.0.4?
  
 Hi all
  
 I'm seeing what may be a memory leak using a JMSSubscriber in JBoss
 using JProbe memory debugger.
  
 JMSResponseDispatcher.callbacks references Collection$SynchronizedMap
 that ultimately references a SynchronousRequestImpl, which references a
 Response, in which result references the data I'm sending over JMS.  The
 question is, after garbage collection, why would SynchronousRequestImpl
 still reference this if all of the subscribers have been called back?
 How can I confirm that this indeed is the case, that all subscribers
 have been called back?  Are there any diagnostics I can turn on or look
 for?
  
 Regards
  
 Eric J. Kaplan
 Armanta, Inc.
 350 Mt. Kemble Ave.
 Morristown, NJ 07960
  
 
 
 
 
 
 ---
 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
 




---
IMP Webmail brought to you by Galaxy Networks, Inc.
http://www.galaxy.net


---
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] Hello ! The problem of JNDI again !

2003-06-29 Thread Guy Rouillier
jonathan wong wrote:

Dear all ,
 
 Hello ! I am using JBoss-3.2.1 and a standalone Tomcat . I try to 
connect an EJB in Jboss's through JSP in Tomcat . Thank you for some 
people's nice help . Now , the JSP is as follow :
 
%@ page
   session=false
   isThreadSafe=true
   isErrorPage=false
   import=javax.naming.*, com.sample.*, javax.rmi.PortableRemoteObject, 
java.util.*, java.io.*, javax.net.*
%
h4test/h4
ptest/pbrbr
p%
try {
  Hashtable env = new Hashtable();
  env.put(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
  env.put(java.naming.factory.url.pkgs, org.jboss.naming;);
  // The bulk of our EJBs run here.
  env.put(java.naming.provider.url, jnp://localhost:1099);
  Object ref = new InitialContext(env).lookup(HelloWorld);
  HelloWorldHome lHome = (HelloWorldHome) 
PortableRemoteObject.narrow(ref, HelloWorldHome.class);
  HelloWorld lSession = lHome.create();
   String fromEJB = lSession.hello();
  out.println(  +  fromEJB);
   }
   catch( Exception e ) {
  out.println( Caugth exception:  + e.getMessage() );
  e.printStackTrace();
   }
%/p
 
 I can lookup the EJB's name (HelloWorld) in JBoss's Global JNDI 
Namespace . However , when I run the JSP , Tomcat says :

Caugth exception: null

 And in the Dos :

javax.naming.CommunicationException.  Root exception is 
java.rmi.UnmarshalExcept
ion: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: 
org.jnp.interfaces.MarshalledValuePair

 Therefore , what futher configuration should I have . Thank you !

I see MarshalledValuePair.class in the following jars in jboss-3.2.1/client:

jnp-client.jar
jbossjmx-ant.jar
jbossall-client.jar
Do you have either the first or the third in the classpath you are using 
for Tomcat?  Post your Tomcat classpath - it should show up in your 
Tomcat console when you startup Tomcat.



--
Guy Rouillier


---
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] Hello ! The problem of JNDI !

2003-06-29 Thread Guy Rouillier
jonathan wong wrote:

Dear Guy ,
 Hello ! Thank you for your help ! However , I want to ask which is the 
jndiNamingProviderURL if my separated Tomcat is http://localhost 
(127.0.0.1) and JBoss is http://localhost:8080 ? Thank you !

Either localhost or localhost:1099 should work.  You need the JNDI 
lookup address, which by default is 1099.  Because you are most likely 
using the default, you don't need to specify 1099, though it won't hurt 
if you do.  BTW, JBoss is really on 8080.  That is the address for the 
Jetty or Tomcat servlet engine bundled with JBoss.  Likewise, 1099 is 
the default address for JNDI running under JBoss.  JBoss has many 
services running on many different ports.

*/Guy Rouillier [EMAIL PROTECTED]/* wrote:

You say that you are doing this from Tomcat running separately from
JBoss, i.e., in a separate JVM. If that is true, you should not be
using lContext.lookup(java:comp/env/jb/HelloWorldHome);, as the
java:comp namespace is only for use in the same JVM. Also, rather than
relying on jndi.properties, you might want to consider putting your
lookup setting into an include file, then using either the hashtable or
properties method of creating a context. Here is some working code from
our JSPs:
java.util.Hashtable env = new java.util.Hashtable();
env.put(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
env.put(java.naming.factory.url.pkgs, org.jboss.naming;);
// The bulk of our EJBs run here.
env.put(java.naming.provider.url, jndiNamingProviderUrl);
Object ref = new InitialContext(env).lookup(xxx/yyy);

jonathan wong wrote:
  Dear all ,
 
  Hello ! Thank for all of your help . However , I still can't
lookup my
  EJB in JBoss through JSP in Tomcat (saperated) . I place a
  jndi.properties file in WEB-INF\classes and have a JSP as follow :
 
  %@ page
  session=false
  isThreadSafe=true
  isErrorPage=false
  import=javax.naming.*, com.sample.*,
javax.rmi.PortableRemoteObject,
  java.util.*, java.io.*, javax.net.*
  %
 
test

 

test



 

%
  try {
  ClassLoader loader = getClass().getClassLoader();
  InputStream is = loader.getResourceAsStream(jndi.properties);
  Properties properties = new Properties();
  properties.load(is);
 
  Context lContext = new InitialContext(properties);
  Object objref = lContext.lookup(java:comp/env/jb/HelloWorldHome);
  HelloWorldHome lHome = (HelloWorldHome)
  PortableRemoteObject.narrow(objref, HelloWorldHome.class);
  HelloWorld lSession = lHome.create();
  String fromEJB = lSession.hello();
  out.println(  + fromEJB);
  }
  catch( Exception e ) {
  out.println( Caugth exception:  + e.getMessage() );
  e.printStackTrace();
  }
 
  %
 
  I can see the following information in JBoss's Global JNDI
Namespace :
  jb (class: org.jnp.interfaces.NamingContext)
  HelloWorldHome (proxy: $Proxy25 implements interface
  com.sample.HelloWorldHome,interface javax.ejb.Handle)
  Also , in my jboss.xml :
 
 
   PUBLIC -//JBoss//DTD Web Application 2.3//EN
  http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd;
 
 
 
  HelloWorld
  jb/HelloWorldHome
 
 
 
 
  The ejb-jar.xml :
 
 
 
 
  JBoss Hello World Application
  Hello World EJB
 
 
  HelloWorld
  com.sample.HelloWorldHome
  com.sample.HelloWorld
  com.sample.HelloWorldBean
  Stateless
  Container
 
 
 
 
  However , the Tomcat says :
 
  Caugth exception: jnp
 
  And the Dos says :
 
  javax.naming.ServiceUnavailableException: jnp. Root exception is
  java.net.UnknowHostException: jnp
  ..
 
  Therefore , do I need to place / create any new file in Tomcat ?
What
  futher configuration should I have ? Or who can kindly send me a
sample
  application which can run in Tomcat and lookup to JBoss's EJB
  successfully (as a reference) ? Many Thanks !
 
 
 

  Do you Yahoo!?
  SBC Yahoo! DSL
 
  - Now only $29.95 per month!
-- 
Guy Rouillier



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


Jonathan
(Wong Yat Sing)
Jonathan Studio http://www.jonathan-studio.net/
M.P (852) - 91235947

Re: [JBoss-user] Converting to 3.2.1 - javax.naming.NameNotFoundException:comp not bound

2003-06-29 Thread Guy Rouillier
Scott M Stark wrote:

The significance of the ordering of the java.naming.factory.url.pkgs is 
that this defines the order of packages from which url context factories 
are found, which includes the java: context. This must be the 
org.jboss.naming.java.javaURLContextFactory to select the server local 
java: context.

Scott, sorry, one more time if I may.  I switched from using this in 2.4.3:

java.naming.factory.url.pkgs=org.jnp.interfaces

to using this (from testsuite) in 3.2.1:

java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

The second one is working, as I reported in my last message.  Are you 
saying that instead of the second one, I should instead be using:

java.naming.factory.url.pkgs=org.jboss.naming.java.javaURLContextFactory

What is the difference between this last one and the second one?  As 
always, thanks for your time.

--
Guy Rouillier


---
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] Hello ! The problem of JNDI again !

2003-06-29 Thread jonathan wong
Dear Guy , 
Hello ! Thank you for your nice help ! I can call JBoss's EJB in my standalone Tomcat now ! Many many many ... Thanks ! Therefore , I know what it work now ( hehe .. , just the JNDI service ) . 
Also , where can I obtain the documentation about all JBoss'sservices and *.jar ? As I think that it is helpful for me ( and other JBoss's users ) . The free official documentation is seem that not enough . Thank you ! 
Guy Rouillier [EMAIL PROTECTED] wrote:

jonathan wong wrote: Dear all ,  Hello ! I am using JBoss-3.2.1 and a standalone Tomcat . I try to  connect an EJB in Jboss's through JSP in Tomcat . Thank you for some  people's nice help . Now , the JSP is as follow :  <%@ page>session="false">isThreadSafe="true">isErrorPage="false">import="javax.naming.*, com.sample.*, javax.rmi.PortableRemoteObject, > java.util.*, java.io.*, javax.net.*"> %> 
test 
test 
<%> try {>   Hashtable env = new Hashtable();>   env.put("java.naming.factory.initial", > "org.jnp.interfaces.NamingContextFactory");>   env.put("java.naming.factory.url.pkgs", "org.jboss.naming;");>   // The bulk of our EJBs run here.>   env.put("java.naming.provider.url", "jnp://localhost:1099");>   Object ref = new InitialContext(env).lookup("HelloWorld");>   HelloWorldHome lHome = (HelloWorldHome) > PortableRemoteObject.narrow(ref, HelloWorldHome.class);>   HelloWorld lSession = lHome.create();>String fromEJB = lSession.hello();>   out.println( "" +  fromEJB);>}>catch( Exception e ) {>   out.println( "Caugth exception: " + e.getMessage() );>   e.printStackTrace();>}> %>  I can lookup the EJB's name ("HelloWorld") in JBoss's "Global JNDI  Namespace" . However , when I run the JSP , Tomcat says : 
 Caugth exception: null  And in the Dos :  javax.naming.CommunicationException. Root exception is  java.rmi.UnmarshalExcept ion: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException:  org.jnp.interfaces.MarshalledValuePair  Therefore , what futher configuration should I have . Thank you ! I see MarshalledValuePair.class in the following jars in jboss-3.2.1/client:jnp-client.jarjbossjmx-ant.jarjbossall-client.jarDo you have either the first or the third in the classpath you are using for Tomcat? Post your Tomcat classpath - it should show up in your Tomcat console when you startup Tomcat.-- Guy Rouillier---This SF.Net email sponsored by: Free pre-built ASP.NET sites includingData 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-userJonathan (Wong Yat Sing) Jonathan StudioM.P (852) - 91235947 NetMeeting : [EMAIL PROTECTED]ICQ# 57646152 
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[JBoss-user] On the performance trail - again

2003-06-29 Thread Jon Barnett
While we've got a few spare cycles, we thought to pursue this whole
performance thing some more. We grabbed hold of the GNU Trove collections
implementation and started converting 3.2.0 source to use these
collections. So far we have only done it partially in one strategic area.
Working off the server branch of the source, we have converted the
metadata processing, the base proxy factory, and the session containers to
using the Trove implementations for HashMap, HashSet and so on. At this
stage, only on the container classes (Container,
StatelessSessionContainer, ...) have really been changed to any extent.

Also, we made some basic changes in the source where Lists are being used
but the traversals are being performed using the Iterator. It seemed like
the poorer memory use by the List was combined with the poorer access
method of the base collection - according to theory, anyway. It gives a
solid base level interface but we wondered whether internally, you could
take advantage of the knowledge the collection was an ArrayList [get(i)
over hasNext()/next()]. We tried that on the getChildrenByTagName with an
implemented getChildArrayByTagName for the metadata.

Boot time did not seem to change substantially - probably with small
amounts of metadata to read per deployment unit, the performance
improvement is negligible for the ArrayList versus an Iterator.

We seem to have achieved a 6.5% reduction in the response time compared to
the previous best results, with the limited changes we have implemented.
Compared to the results from
http://www.amitysolutions.com.au/downloads/JBoss-3.2.0_optimizations.pdf
for those who haven't browsed it before, we obtained the following
steady-state values for a 9600 sample on the same optimized JBoss test
rig, running with IBM SDK 1.4.0 using a new jboss.jar and an optimized
trove.jar:

response time: 115 ms (down 6.5%)
max: 3184 ms
min: 50 ms
VSZ: 184196 (down 2.96%)
RSS: 129504 (down 1.61%)

We'll keep playing with this when we have time and see how it goes.

Remember that the improvements will always depend on many factors. With
Trove, you will probably get on par or minimally small improvements with
small collections, but if the numbers generated by the Trove benchmarks
are anything to go by, large collections will get a sizeable performance
boost from Trove.

JonB


smime.p7s
Description: S/MIME cryptographic signature


Re: [JBoss-user] Converting to 3.2.1 - javax.naming.NameNotFoundException:comp not bound

2003-06-29 Thread Scott M Stark
Use:

java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Guy Rouillier wrote:
Scott M Stark wrote:

The significance of the ordering of the java.naming.factory.url.pkgs 
is that this defines the order of packages from which url context 
factories are found, which includes the java: context. This must be 
the org.jboss.naming.java.javaURLContextFactory to select the server 
local java: context.

Scott, sorry, one more time if I may.  I switched from using this in 2.4.3:

java.naming.factory.url.pkgs=org.jnp.interfaces

to using this (from testsuite) in 3.2.1:

java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

The second one is working, as I reported in my last message.  Are you 
saying that instead of the second one, I should instead be using:

java.naming.factory.url.pkgs=org.jboss.naming.java.javaURLContextFactory

What is the difference between this last one and the second one?  As 
always, thanks for your time.



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


[JBoss-user] Services and Folders in Real Time environment.

2003-06-29 Thread Muraly R

Hi Gurus,
I have
some doubts regarding the removal of some service and folders of
JBoss-3.0.7 from the real time environment.
i) How can I remove the UILServerILServer service from the
real time environment?(Hope it doesn't affect the normal server
behaviour. Also my applications are not using JMS, its plain Stateless
and BMP EJB's). The rason being this service is occupying three ports and
real time on client environment we forsee this as an additional
issue.

ii) I would like to remove the 'docs', 'all' and 'minimal' folder. Will
this affect the server in real time environment?

Please share your thoughts on the above.

Thanks