Re: [JBoss-user] jboss-3.2.3 clustering problem - unable to find other nodes , though multicasting seems working

2004-01-12 Thread Mridul Jain
hi Ben, 
Here is my cluster-service.xml
Please tell me what to do?

Thanks,
MJ

--- Bela Ban [EMAIL PROTECTED] wrote:
 
 
 Mridul Jain wrote:
 
  hi,
  I am running jboss-3.2.3 on GNU/Linux box and
 trying
  to get jboss clustering up and running.
  First I check if multicasting works fine, by
 running
  the following from jgroup:
  On host1:
  --
  java org.javagroups.tests.McastReceiverTest
  -mcast_addr 228.1.2.3 -port 45566
  --
  Onhost2:
  ---
  java org.javagroups.tests.McastSenderTest
 -mcast_addr
  228.1.2.3 -port 45566
  ---
 
  I am able to communicate per
fectly without any
  problems.
 
  Then I start jboss-3.2.3 using ./run.sh -c all on
 both
  the hosts. But I am able to see that both the
  nodes/servers cannot find each other as can be
 seen in
  server.log and it shows only one cluster member in
  both.
 
  Probing further I tried receiving messages using :
  
  java org.javagroups.tests.McastReceiverTest
  -mcast_addr 228.1.2.3 -port 45566
  -
  on host1 and running the jboss-server on the same
  node.
  At periodic intervals I started getting some junk
  message from the jboss-server as soon as
  cluster-service.xml was deployed. The messages
 were
  from 127.0.0.1:45566.
 
 
 Did you try setting bind_addr in the cluster config
 (in 
 cluster-service.xml) ?
 Post your cluster-service.xml
 
 
 -- 
 Bela Ban
 http://www.jgroups.org
 Cell: (408) 316-4459
 
 
 

---
 This SF.net email is sponsored by: Perforce
 Software.
 Perforce is the Fast Software Configuration
 Management System offering
 advanced branching capabilities and atomic changes
 on 50+ platforms.
 Free Eval!
 http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user

__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus?xml version=1.0 encoding=UTF-8?

!-- = --
!--   --
!--  Sample Clustering Service Configuration  --
!--   --
!-- = --

server

  classpath codebase=lib archives=jbossha.jar/

  !--  --
  !-- Cluster Partition: defines cluster   --
  !--  --

  mbean code=org.jboss.ha.framework.server.ClusterPartition
 name=jboss:service=DefaultPartition
 
!-- Name of the partition being built --
attribute name=PartitionNameDefaultPartition/attribute
!-- Determine if deadlock detection is enabled --
attribute name=DeadlockDetectionFalse/attribute
!-- The JGroups protocol configuration --
attribute name=PartitionConfig
  Config
!-- UDP: if you have a multihomed machine, 
 set the bind_addr attribute to the appropriate NIC IP address --
!-- UDP: On Windows machines, because of the media sense feature
 being broken with multicast (even after disabling media sense)
 set the loopback attribute to true --
UDP mcast_addr=228.1.2.3 mcast_port=45566 
 ip_ttl=64 ip_mcast=true
 mcast_send_buf_size=15 mcast_recv_buf_size=8 
 ucast_send_buf_size=15 ucast_recv_buf_size=8 
 loopback=false /
PING timeout=2000 num_initial_members=3 
  up_thread=true down_thread=true /
MERGE2 min_interval=5000 max_interval=1 /
FD shun=true up_thread=true down_thread=true 
timeout=2500 max_tries=5 /
VERIFY_SUSPECT timeout=3000 num_msgs=3
up_thread=true down_thread=true /
pbcast.NAKACK gc_lag=50 retransmit_timeout=300,600,1200,2400,4800
   up_thread=true down_thread=true /
pbcast.STABLE desired_avg_gossip=2
   up_thread=true down_thread=true /
UNICAST timeout=5000 window_size=100 min_threshold=10
 down_thread=true /
FRAG frag_size=8192
  down_thread=true up_thread=true /
pbcast.GMS join_timeout=5000 join_retry_timeout=2000
shun=true print_local_addr=true /
pbcast.STATE_TRANSFER up_thread=true down_thread=true /
  /Config
/attribute
  /mbean

  !-- 

[JBoss-user] DatabaseServer Login module

2004-01-12 Thread Stephen Ting
Title: Message



Why is it that whenever i try 
to provide a dynamic RoleGroup name through the following query the 
authentication won't works, It will always return"HTTP Status 403 - Access to the requested 
resource has been denied". 
select Role, RoleGroup from Roles where PrincipalID=?" whereas 
if i would provide a static RoleGroup name (Roles) it will work select 
Role, 'Roles' from Roles where PrincipalID=?" Can someone please help? 
Thanks regards, Stephen




RE: [JBoss-user] DatabaseServer Login module

2004-01-12 Thread Rupp, Heiko
Title: Message



What 
is the content of your RoleGroup column?

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Stephen 
  TingSent: Monday, January 12, 2004 10:23 AMTo: 'Jboss 
  Mailing List'Subject: [JBoss-user] DatabaseServer Login 
  module
  Why is it that whenever i 
  try to provide a dynamic RoleGroup name through the following query the 
  authentication won't works, It will always return"HTTP Status 403 - Access to the requested 
  resource has been denied". 
  select Role, RoleGroup from Roles where PrincipalID=?" whereas 
  if i would provide a static RoleGroup name (Roles) it will work select 
  Role, 'Roles' from Roles where PrincipalID=?" Can someone please help? 
  Thanks regards, Stephen
  
  


[JBoss-user] session bean lookup and create - where ?

2004-01-12 Thread stscit04
Hi,

I am currently working on a application which
consists of several sessionBeans (stateless).

The session beans are using each other through their
local-interfaces. Bean A is using bean B.

I am using he xdoclet generated util-classes to
lokkup the local-interfaces. The util-classes
cache the home-interface. Is it ok to call the
create() method of the home-interface everytime I
need the bean B in bean A, or should I
keep the local-interface of B in a variable
in bean A and initialise it in the ejbCreate() method
of A ?

Maybe there is a even better way to do this ?

Thanks in advance,

Stefan


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] EAR with jboss-app.xml and wsr?

2004-01-12 Thread Chad Brandon
It would be great if someone could help me out with
this (see below).  Again, I need the jboss-app.xml in
my ear since it provides ear level scoping
of deployed classes.

--- Chad Brandon [EMAIL PROTECTED] wrote:
 JBoss-3.2.3 all config
 
 What's the best way to get a web service archive to
 work correctly with jboss-net, if you're using a
 jboss-app.xml file in your ear?  I have an ear file
 and I'm including a web service archive (*.wsr) in
 the
 ear.  If I leave the jboss-app.xml file out
 everything
 deploys correctly, and I'm able to view the deployed
 service

(http://localhost:8085/jboss-net/services/Hello?wsdl).
  But when I add my jboss-app.xml file, the
 AxisServlet
 fails with a NoClassDefFoundError.  Since axis has
 no
 logging in the method it was failing in,  I added a
 System.out.println to the axis class and it looks
 like
 the class it can't find is
 org.jboss.net.axis.server.EJBProvider.  Obviously
 with the jboss-app.xml my ear can't see the class in
 the jboss-net.sar filewhats the best way to get
 this to work with the jboss-app.xml file in my ear?
 
 Thanks,
 
 Chad 
 
 

---
 This SF.net email is sponsored by: Perforce
 Software.
 Perforce is the Fast Software Configuration
 Management System offering
 advanced branching capabilities and atomic changes
 on 50+ platforms.
 Free Eval!
 http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]

https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Exposing EJB as MBean

2004-01-12 Thread BENVENUTTO, Simon, FM
OK, I can't see how to expose an EJB as an MBean. So in JBoss everything is
an MBean, and my EJB is there already and there are some stats that the
interceptor must maintain. But how do I add my own MBean interface, or
extend the existing one?

I've specified the XDoclet tags  @jmx.mbean  on my EJB class and
@jmx.managed-operation  on the method I want to expose. I've set up the
XDoclet task thus:

  jmxdoclet
fileset
jbossxmbean
  PackageSubstitution (MBean interface in subpackage of EJB)
jbosxmldoc
mbeaninterface
  PackageSubstitution (MBean interface in subpackage of EJB)

This generates  src/jboss-service.xml  (with an empty  service  tag) and
my interface class with the exposed method. I then add the mbean code=...
tag to the  jboss-service.xml  file, and add a
servicejboss-service.xml/service  entry to  application.xml.  

Finally I package it into an  .ear  that has my  xxxEJB.jar,  xxxWS.wsr,
jboss-service.xml  and  META-INF/application.xml  which refers to all three
of these thus:

  application
display-namexxx/display-name 
servicejboss-service.xml/service 
module
  ejbxxxEJB.jar/ejb 
/module
module
  javaxxxWS.wsr/java 
/module
  /application

This deploys fine, but I cannot find my MBean. I am expecting JBoss to
recognise the MBean and register it for me. Am I confused?

Any pointers or an example would be greatly appreciated!

cheers

Simon


***
The Royal Bank of Scotland plc. Registered in Scotland No 90312.   Registered 
Office: 36 St Andrew Square, Edinburgh EH2 2YB.  
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the  
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender  
by replying to it and then delete the message from your
computer. Internet e-mails are not necessarily secure. The   
Royal Bank of Scotland plc does not accept responsibility for  
changes made to this message after it was sent.  
   
 
Whilst all reasonable care has been taken to avoid the   
transmission of viruses, it is the responsibility of the recipient to
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its   
systems or data.  No responsibility is accepted by The Royal   
Bank of Scotland plc in this regard and the recipient should carry   
out such virus and other checks as it considers appropriate.   
   
Visit our websites at: 
 
http://www.rbs.co.uk/CBFM
http://www.rbsmarkets.com 
   





---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Defining Load groups with xdoclet

2004-01-12 Thread Jonathan . O'Connor
Just wondering if there is any tag to setup load groups using XDoclet.
From my own search, I think the answer is no. So, how do I set up a merge 
point to do this.
I have added a mergeDir=myMergeDir in the ejbDoclet ant task.
I have also added a file jbosscmp-jdbc-Settlement.xml into the mergeDir. 
This file just contains:
load-groups
load-group
load-group-namesortKeys/load-group-name
field-namemerchantName/field-name
field-nameamount/field-name
field-nametxnDateDbFormat/field-name
/load-group
/load-groups

However, I don't see any load-groups in my Settlement entity within the 
generated jbosscmp-jdbc.xml.

Any help is greatly appreciated.
Ciao,
Jonathan O'Connor
XCOM Dublin


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBoss 3.2.2/Oracle 9i - Connection handle is not currently associ ated with a ManagedConnection (need some help)

2004-01-12 Thread Adrian Brock
This error message says you are trying to use a connection
that has being returned to the pool (the connection object you
get from the datasource is no longer associated with a real connection).

Regards,
Adrian

On Thu, 2004-01-08 at 20:50, Sasidharan, Manoj wrote:
 Hello All,
 
 We are trying to port our BEA Weblogic application to JBoss and are
 experiencing a new problem. The system gives the following exception. We did
 review the code and could not see why this should happen.
 
 Any ideas or tips on what we should be looking for?
 
 Thanks in advance for your time and help.
 
 rgds 
 MS
 
 2003-12-29 19:29:43,313 WARN
 [org.jboss.resource.connectionmanager.TxConnectionManager] Prepare called on
 a local tx. Use of local transactions on a jta transaction with more than
 one branch may result in inconsis
 tent data in some cases of failure.
 2003-12-29 19:29:43,422 ERROR [STDERR] [Mon Dec 29 19:29:43 PST
 2003][ERROR][9628012][Debug.java:333]: Connection handle is not currently
 associated with a ManagedConnection [SQL]: UPDATE test_tab_1
   SET str_1   = ?  WHERE plx_courier_id = ?
 2003-12-29 19:29:43,431 ERROR [STDERR] [ERROR]Connection handle is not
 currently associated with a ManagedConnection
 2003-12-29 19:29:43,436 ERROR [STDERR] [Mon Dec 29 19:29:43 PST 2003][CALL
 STACK][9628012][java.sql.SQLException: Connection handle is not currently
 associated with a ManagedConnectionat
 org.jboss.resource.adapter.jdbc.WrappedConnection.checkStatus(WrappedConnect
 ion.java:776)
 at
 org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(WrappedCo
 nnection.java:206)
 at com.plx.framework.sql.SQLProcessor.execute(SQLProcessor.java:238)
 at
 com.plx.efw.server.variable.VariableHelper.addValue(VariableHelper.java:365)
 at
 com.plx.efw.server.courier.CourierSessionBean.add(CourierSessionBean.java:51
 2)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
 sSessionContainer.java:683)
 at
 org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
 edConnectionInterceptor.java:185)
 at
 org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
 ssionInstanceInterceptor.java:72)
 at
 org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
 .java:84)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
 java:267)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
 at
 org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:11
 8)
 at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
 at
 org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinde
 rInterceptor.java:122)
 at
 org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta
 iner.java:331)
 at
 org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionConta
 iner.java:331)
 at org.jboss.ejb.Container.invoke(Container.java:700)
 at
 org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFacto
 ry.java:375)
 at
 org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionPro
 xy.java:83)
 at $Proxy146.add(Unknown Source)
 at
 com.plx.efw.common.command.CourierAddMapActSetCommand.executeCommand(Courier
 AddMapActSetCommand.java:154)
 at
 com.plx.efw.common.command.CourierCommand.execute(CourierCommand.java:70)
 at
 com.plx.framework.command.CommandServer.executeCommand(CommandServer.java:91
 )
 at
 com.plx.framework.command.CommandServer.execute(CommandServer.java:66)
 at
 com.plx.efw.server.command.EJBCommandServerBean.execute(EJBCommandServerBean
 .java:160)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
 sSessionContainer.java:683)
 at
 org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
 edConnectionInterceptor.java:185)
 at
 org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
 ssionInstanceInterceptor.java:72)
 at
 org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
 .java:84)
 at
 org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
 java:267)
 at
 

Re: [JBoss-user] Durable Subscription!!!

2004-01-12 Thread Adrian Brock
You need to configure the role to allow it to create durable
subscriptions.

e.g. the example below that comes with jboss allows
durpublisher to create subscriptions but not guest or publisher.
guest and publisher can create nondurable subscriptions.

Also make sure you use Connection.setClientID() before creating
durable subscriptions, otherwise the subscription will be made
against an temporary client id like ID:1

Regards,
Adrian

  mbean code=org.jboss.mq.server.jmx.Topic
 name=jboss.mq.destination:service=Topic,name=testDurableTopic
depends
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends
depends
optional-attribute-name=SecurityManagerjboss.mq:service=SecurityManager/depends
attribute name=SecurityConf
   security
 role name=guest read=true write=true/
 role name=publisher read=true write=true
create=false/
 role name=durpublisher read=true write=true
create=true/
  /security
/attribute
  /mbean


On Fri, 2004-01-09 at 06:05, Dilshan Rajapaksa wrote:
 Hi...
  
 I  need to do create a durable subscription to topic. I have created a
 topic in the using a MDB in the jbossmq-destinations-service.xml. I
 would like to know the changes i have to make in order to make the
 topic durable. i get the following error at the moment. 
  javax.jms.JMSSecurityException: Connection not authorized to do
 durable subscription on topic: HeadOffice
  
 Dilshan
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] MDB JMS redelivery

2004-01-12 Thread Adrian Brock
On Fri, 2004-01-09 at 07:14, [EMAIL PROTECTED] wrote:
 Hi,
 
 I have a MDB which takes messages from a Queue.
 In the onMessage() method, I am working with
 CMP beans. If something goes wrong, I want the JMS
 message to be redelivered, but the changes on the CMP
 beans should not be rolled back.
 
 As I understand it, the only way to force re-delivery of the JMS message
 is to throw an EJBException to force JBoss to rollback
 the transaction. But this also rolles back the changes on the
 CMP beans...
 

For the n thousandth time use
messageDrivenContext.setRollbackOnly() to rollback the transaction.

If you want CMP to be isolated, use RequiresNew to suspend the
JMS transaction and perform the DB activity in a new transaction.

Regards,
Adrian

 Is there an obvious solution I am not seeing ?

 Thanks in advance,
 
 Stefan
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System offering
 advanced branching capabilities and atomic changes on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] MDB JMS redelivery

2004-01-12 Thread Adrian Brock
Counter intuitively, the xdoclet tag @ejb.transaction is a class level
setting for mdbs.

Regards,
Adrian

On Fri, 2004-01-09 at 10:36, [EMAIL PROTECTED] wrote:
  Aaaarggg
 Sorry ;-)
 
 As I understand it, the only way to force re-delivery of the JMS message
 is to throw an EJBException to force JBoss to rollback
 the transaction.
 
  No. You cannot throw an EJBException from onMessage, see the spec. If you
  want to rollback the message, use messageDriventContext.setRollbackOnly();
 
 I tried this, but then I get the following Exception:
 
 java.lang.IllegalStateException: setRollbackOnly must only be called in
 the context of a transaction (EJB 2.0 - 15.5.1)
 at org.jboss.ejb.MessageDrivenEnterpriseContext$MessageDrivenContextImpl
 .setRollbackOnly(MessageDrivenEnterpriseContext.java:214)
 at de.fag.grobi.logic.NotificationManagerBean.onMessage(NotificationMana
 gerBean.java:190)
 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.MessageDrivenContainer$ContainerInterceptor.invoke(Mess
 ...
 
 ..
 
 I am using XDoclet but it ignores any @ejb.transaction tag
 on the onMessage method of the MDB. Where can I set the transaction
 correctly (probably a xdoclet question)?
 
 
  For the mix between JMS and CMP, I have no idea
 When I get the ctx.setRollbackOnly to work, I hope to
 resolve this problem by setting the transaction type
 correctly.
 
 Regards,
 
 Stefan
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System offering
 advanced branching capabilities and atomic changes on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Durable Subscription!!!

2004-01-12 Thread Dilshan Rajapaksa
Thanks alot

if i use Connection.setClientID() will it set alter the jbossmq-state.xml file and add the ID to the Particular user??

Dilshan

Adrian Brock [EMAIL PROTECTED] wrote:
You need to configure the role to allow it to "create" durablesubscriptions.e.g. the example below that comes with jboss allowsdurpublisher to create subscriptions but not guest or publisher.guest and publisher can create nondurable subscriptions.Also make sure you use Connection.setClientID() before creatingdurable subscriptions, otherwise the subscription will be madeagainst an temporary client id like ID:1Regards,Adrianname="jboss.mq.destination:service=Topic,name=testDurableTopic"

Re: [JBoss-user] Jdom 0.7.jar with META-INF/info.xml displays a uncomplete deployment when put in the deploy directory

2004-01-12 Thread Adrian Brock
JBoss treats any jar with an xml file in META-INF as a special
deployment.
If you change META-INF/info.xml to META-INF/info
it will deploy fine through the JARDeployer.

Regards,
Adrian

On Fri, 2004-01-09 at 10:01, Stephane Nicoll wrote:
 Hello list,
 
 I think the problem is related to JBoss deployers so I am gonna ask this
 here.
 
 BTW, we use JBoss 3.2.1 - Redhat Linux
 
 We have an ear that contains some libraries we use only in our application
 (ear). That way we have only file to deploy and we are sure everything is
 there. We use jdom (version 0.7) wich contains a META-INF/info.xml file.
 
 When we deploy our ear, everything is ok but this log entry at the end of the
 deployment:
 
 2004-01-09 10:55:39,482 ERROR
 [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception
 in MBean operation 'checkIncompleteDeployments()'
 Cause: Incomplete Deployment listing:
 Packages waiting for a deployer:
 [EMAIL PROTECTED] {
 url=file:/var/jboss-3.2.1-kpserver2/server/default/tmp/deploy/server/default/
 deploy/kserver-mr-1.10.0-RC1.ear/38.kserver-mr-1.10.0-RC1.ear-contents/jdom-0
 .7.jar }
   deployer: null
   status: Starting
   state: START_SUBDEPLOYMENTS
   watch:
 file:/var/jboss-3.2.1-kpserver2/server/default/tmp/deploy/server/default/depl
 oy/kserver-mr-1.10.0-RC1.ear/38.kserver-mr-1.10.0-RC1.ear-contents/jdom-0.7.j
 ar
   lastDeployed: 1073642108245
   lastModified: 1073642106000
   mbeans:
 ]Incompletely deployed packages:
   none
 MBeans waiting for classes:
   none
 MBeans waiting for other MBeans:
   none
 
 This is not really annoying because everything works ok but if you could give
 me a trick to avoid that message.
 
 Regards,
 
 Stephane
 
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System offering
 advanced branching capabilities and atomic changes on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] session bean lookup and create - where ?

2004-01-12 Thread Adrian Brock
Caching the local interface is ok for stateless.
It is just a pointer to the service and can be used
concurrently on multiple threads.

In fact you can make jboss do this transparently, 
by changing the client interceptors for the stateless session client.
You just do home.create() and jboss will keep a cached version
inside the home after the first access.

The downside is that you lose the security check for home.create()
which is probably irrelevent?

in standardjboss.xml
  invoker-proxy-binding
 namestateless-rmi-invoker/name
 invoker-mbeanjboss:service=invoker,type=jrmp/invoker-mbean
 proxy-factoryorg.jboss.proxy.ejb.ProxyFactory/proxy-factory
 proxy-factory-config
client-interceptors
   home
!-- CHANGE HERE: Use an interceptor that caches the remote/local
interface after the first access --
interceptororg.jboss.proxy.ejb.StatelessSessionHomeInterceptor/interceptor
 
interceptororg.jboss.proxy.SecurityInterceptor/interceptor
 
interceptororg.jboss.proxy.TransactionInterceptor/interceptor
 
interceptororg.jboss.invocation.InvokerInterceptor/interceptor
   /home
etc.

Regards,
Adrian

On Mon, 2004-01-12 at 12:22, [EMAIL PROTECTED] wrote:
 Hi,
 
 I am currently working on a application which
 consists of several sessionBeans (stateless).
 
 The session beans are using each other through their
 local-interfaces. Bean A is using bean B.
 
 I am using he xdoclet generated util-classes to
 lokkup the local-interfaces. The util-classes
 cache the home-interface. Is it ok to call the
 create() method of the home-interface everytime I
 need the bean B in bean A, or should I
 keep the local-interface of B in a variable
 in bean A and initialise it in the ejbCreate() method
 of A ?
 
 Maybe there is a even better way to do this ?
 
 Thanks in advance,
 
 Stefan
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System offering
 advanced branching capabilities and atomic changes on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Exposing EJB as MBean

2004-01-12 Thread Adrian Brock
It is the ejb container that is an MBean within jboss.
The container (a singleton per home) 
manages many ejb instances (bean objects).

The service element should go in jboss-app.xml not application.xml

Regards,
Adrian

On Mon, 2004-01-12 at 17:17, BENVENUTTO, Simon, FM wrote:
 OK, I can't see how to expose an EJB as an MBean. So in JBoss everything is
 an MBean, and my EJB is there already and there are some stats that the
 interceptor must maintain. But how do I add my own MBean interface, or
 extend the existing one?
 
 I've specified the XDoclet tags  @jmx.mbean  on my EJB class and
 @jmx.managed-operation  on the method I want to expose. I've set up the
 XDoclet task thus:
 
   jmxdoclet
 fileset
 jbossxmbean
   PackageSubstitution (MBean interface in subpackage of EJB)
 jbosxmldoc
 mbeaninterface
   PackageSubstitution (MBean interface in subpackage of EJB)
 
 This generates  src/jboss-service.xml  (with an empty  service  tag) and
 my interface class with the exposed method. I then add the mbean code=...
 tag to the  jboss-service.xml  file, and add a
 servicejboss-service.xml/service  entry to  application.xml.  
 
 Finally I package it into an  .ear  that has my  xxxEJB.jar,  xxxWS.wsr,
 jboss-service.xml  and  META-INF/application.xml  which refers to all three
 of these thus:
 
   application
 display-namexxx/display-name 
 servicejboss-service.xml/service 
 module
   ejbxxxEJB.jar/ejb 
 /module
 module
   javaxxxWS.wsr/java 
 /module
   /application
 
 This deploys fine, but I cannot find my MBean. I am expecting JBoss to
 recognise the MBean and register it for me. Am I confused?
 
 Any pointers or an example would be greatly appreciated!
 
 cheers
 
 Simon
 
 
 ***
 The Royal Bank of Scotland plc. Registered in Scotland No 90312.   Registered 
 Office: 36 St Andrew Square, Edinburgh EH2 2YB.  
 Authorised and regulated by the Financial Services Authority 
  
 This e-mail message is confidential and for use by the  
 addressee only. If the message is received by anyone other 
 than the addressee, please return the message to the sender  
 by replying to it and then delete the message from your
 computer. Internet e-mails are not necessarily secure. The   
 Royal Bank of Scotland plc does not accept responsibility for  
 changes made to this message after it was sent.  
  

 Whilst all reasonable care has been taken to avoid the   
 transmission of viruses, it is the responsibility of the recipient to
 ensure that the onward transmission, opening or use of this 
 message and any attachments will not adversely affect its   
 systems or data.  No responsibility is accepted by The Royal   
 Bank of Scotland plc in this regard and the recipient should carry   
 out such virus and other checks as it considers appropriate.   
  
   Visit our websites at: 
  
 http://www.rbs.co.uk/CBFM
 http://www.rbsmarkets.com 
  
   
 
 
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System offering
 advanced branching capabilities and atomic changes on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Durable Subscription!!!

2004-01-12 Thread Adrian Brock
No.

The ID in jbossmq-state.xml adds the extra constraint that
only the configured user can login as that id (and automatically
uses that client id).

If you use setClientID() then multiple users can share the id
(but not concurrently).

Regards,
Adrian

On Mon, 2004-01-12 at 18:11, Dilshan Rajapaksa wrote:
 Thanks alot
  
 if i use Connection.setClientID()  will it set alter the
 jbossmq-state.xml file and add the ID to the Particular user??
  
 Dilshan
  
 Adrian Brock [EMAIL PROTECTED] wrote:
 You need to configure the role to allow it to create durable
 subscriptions.
 
 e.g. the example below that comes with jboss allows
 durpublisher to create subscriptions but not guest or
 publisher.
 guest and publisher can create nondurable subscriptions.
 
 Also make sure you use Connection.setClientID() before
 creating
 durable subscriptions, otherwise the subscription will be made
 against an temporary client id like ID:1
 
 Regards,
 Adrian
 
 name=jboss.mq.destination:service=Topic,name=testDurableTopic
 
 optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager
 optional-attribute-name=SecurityManagerjboss.mq:service=SecurityManager
 
 
 
 create=false/
 create=true/
 
 
 
 
 
 On Fri, 2004-01-09 at 06:05, Dilshan Rajapaksa wrote:
  Hi...
  
  I need to do create a durable subscription to topic. I have
 created a
  topic in the using a MDB in the
 jbossmq-destinations-service.xml. I
  would like to know the changes i have to make in order to
 make the
  topic durable. i get the following error at the moment. 
   javax.jms.JMSSecurityException: Connection not authorized
 to do
  durable subscription on topic: HeadOffice
  
  Dilshan
  
  
  
 
 __
  Do you Yahoo!?
  Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
 -- 
  
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC 
  
 
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System
 offering
 advanced branching capabilities and atomic changes on 50+
 platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Disallowing Local interface access from servlet tier

2004-01-12 Thread Craig Berry
Title: Message



I have noticed that 
in the default JBoss 3.22 + Tomcat deployment configuration, it is possible to 
obtain Local interfaces for EJBs from the Servlet tier. In the interest of 
maintaining maximum portability (e.g., to enable us to later move to separate 
boxes for the two tiers), I would like to disallow Local access from the servlet 
tier. Obviously, our design avoids using it, but I'm concerned that 
"leakage" might occur without our noticing it (e.g., an EJB returns an object to 
the servlet tier which, when accessed, does a Local lookup back to another EJB 
component).

Is there any way to 
make Local lookups from the servlet to the EJB container impossible at the 
configuration level? Or would I have to run the two in separate JVMs to 
accomplish this?


-- 
Craig Berry
Principal Architect and Technical 
Manager
PortBlue
(310) 566-7546



[JBoss-user] RE: jboss4 and EJB2.1 ejb-ql?

2004-01-12 Thread Darren Hartford
Been trying to get this to work, but no luck. How do you use JbossQL with Xdoclet for 
an EJB.SELECT? The following does not work, and some of the mailing lists mention that 
jboss.query is NOT for SELECT (SELECT is method level while jboss.query is class 
level), so what would one use?

/**
 * @ejb.select
 *signature=java.util.Float ejbSelectStoreSum(java.lang.String store, 
java.util.Date theday)
 *query = SELECT o.amountpaid FROM Store AS o WHERE ((o.store = ?1) AND 
(o.transday=?2))
 * @jboss.query
 *signature=java.util.Float ejbSelectStoreSum(java.lang.String store , 
java.util.Date theday)
 *strategy=none
 *query = SELECT SUM(o.amountpaid) FROM Store AS o WHERE ((o.store = ?1) AND 
(o.transday=?2))
**/

p.s. seems silly to declare an ejb.select for a JbossQL SUM that you know will not 
work as expected outside of Jboss.

TIA!!
-D

Subject: RE: [JBoss-user] jboss4 and EJB2.1 ejb-ql?
Date: Thu, 8 Jan 2004 09:03:55 -0600
From: Alexey  Loubyansky [EMAIL PROTECTED]

Check these change notes. EJB2.1 is not yet supported but you can do it
in JBossQL in 3.2 and HEAD.

[ 794199 ] Functions in SELECT clause
http://sourceforge.net/tracker/?func=3Ddetailaid=3D794199group_id=3D228=
66at
id=3D381174
[ 815115 ] JBossQL: SUM, AVG, MAX, MIN
http://sourceforge.net/tracker/?func=3Ddetailaid=3D815115group_id=3D228=
66at
id=3D381174=20

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of=20
 Darren Hartford
 Sent: Thursday, January 08, 2004 4:45 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] jboss4 and EJB2.1 ejb-ql?
=20
 Hey all,
 Grabbed a snapshot of 4.0DR3 as it is the most recent to see=20
 if the aggregate functions defined in EJB2.1 are ready to go.=20
 Unfortunately, this query did not work or my code is wrong.
=20
 EJB-QL
 SELECT SUM(o.amountpaid) FROM MyTable AS o
 Jboss-QL
 SELECT SUM(o.amountpaid) FROM MyTable AS o


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss JAAS with ClearTrust

2004-01-12 Thread Madere, Colin
Anyone set this
(http://www.rsasecurity.com/products/cleartrust/datasheets/dscleartrust.html
) up with Jboss?  If so, report on your experience?

It says JAAS though doesn't list JBoss as a supported application
server.  JAAS support is a great start, but input from anyone that has used
this product (or similar) with JBoss would be great.

Thanks,

Colin


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Defining Load groups with xdoclet

2004-01-12 Thread Alexey Loubyansky
There is
 * @jboss.load-group name=basic 

On the class level it declares the load group. On the field level you
actually specify which fields comprise the group.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Jonathan.O'[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 7:41 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] Defining Load groups with xdoclet
 
 Just wondering if there is any tag to setup load groups using XDoclet.
 From my own search, I think the answer is no. So, how do I 
 set up a merge point to do this.
 I have added a mergeDir=myMergeDir in the ejbDoclet ant task.
 I have also added a file jbosscmp-jdbc-Settlement.xml into 
 the mergeDir. 
 This file just contains:
 load-groups
 load-group
 load-group-namesortKeys/load-group-name
 field-namemerchantName/field-name
 field-nameamount/field-name
 field-nametxnDateDbFormat/field-name
 /load-group
 /load-groups
 
 However, I don't see any load-groups in my Settlement entity 
 within the generated jbosscmp-jdbc.xml.
 
 Any help is greatly appreciated.
 Ciao,
 Jonathan O'Connor
 XCOM Dublin
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System 
 offering advanced branching capabilities and atomic changes 
 on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] RE: jboss4 and EJB2.1 ejb-ql?

2004-01-12 Thread Alexey Loubyansky
You answered the question yourself. ejb.select - method level,
jboss.query - class level.

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Darren Hartford
 Sent: Monday, January 12, 2004 9:29 PM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] RE: jboss4 and EJB2.1 ejb-ql?
 
 Been trying to get this to work, but no luck. How do you use 
 JbossQL with Xdoclet for an EJB.SELECT? The following does 
 not work, and some of the mailing lists mention that 
 jboss.query is NOT for SELECT (SELECT is method level while 
 jboss.query is class level), so what would one use?
 
 /**
  * @ejb.select
  *signature=java.util.Float 
 ejbSelectStoreSum(java.lang.String store, java.util.Date theday)
  *query = SELECT o.amountpaid FROM Store AS o WHERE 
 ((o.store = ?1) AND (o.transday=?2))
  * @jboss.query
  *signature=java.util.Float 
 ejbSelectStoreSum(java.lang.String store , java.util.Date theday)
  *strategy=none
  *query = SELECT SUM(o.amountpaid) FROM Store AS o WHERE 
 ((o.store = ?1) AND (o.transday=?2))
 **/
 
 p.s. seems silly to declare an ejb.select for a JbossQL SUM 
 that you know will not work as expected outside of Jboss.
 
 TIA!!
 -D
 
 Subject: RE: [JBoss-user] jboss4 and EJB2.1 ejb-ql?
 Date: Thu, 8 Jan 2004 09:03:55 -0600
 From: Alexey  Loubyansky [EMAIL PROTECTED]
 
 Check these change notes. EJB2.1 is not yet supported but you 
 can do it in JBossQL in 3.2 and HEAD.
 
 [ 794199 ] Functions in SELECT clause
 http://sourceforge.net/tracker/?func=3Ddetailaid=3D794199gro
 up_id=3D228=
 66at
 id=3D381174
 [ 815115 ] JBossQL: SUM, AVG, MAX, MIN
 http://sourceforge.net/tracker/?func=3Ddetailaid=3D815115gro
 up_id=3D228=
 66at
 id=3D381174=20
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of=20  
 Darren Hartford
  Sent: Thursday, January 08, 2004 4:45 PM
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] jboss4 and EJB2.1 ejb-ql?
 =20
  Hey all,
  Grabbed a snapshot of 4.0DR3 as it is the most recent to see=20  if 
 the aggregate functions defined in EJB2.1 are ready to go.=20  
 Unfortunately, this query did not work or my code is wrong.
 =20
  EJB-QL
  SELECT SUM(o.amountpaid) FROM MyTable AS o
  Jboss-QL
  SELECT SUM(o.amountpaid) FROM MyTable AS o
 
 
 ---
 This SF.net email is sponsored by: Perforce Software.
 Perforce is the Fast Software Configuration Management System 
 offering advanced branching capabilities and atomic changes 
 on 50+ platforms.
 Free Eval! http://www.perforce.com/perforce/loadprog.html
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] JBoss 3.2.2/Oracle 9i - Connection handle is not currently associ ated with a ManagedConnection (need some help)

2004-01-12 Thread Sasidharan, Manoj
Hello Adrian,

This is the behaviour that we are seeing:

1. Bring up the JBoss server
2. First two Session bean method invocation gives this error
a. First one is at:
2004-01-12 15:05:12,793 ERROR [STDERR] [ERROR]Connection handle is not
currently
 associated with a ManagedConnection
2004-01-12 15:05:12,797 ERROR [STDERR] [Mon Jan 12 15:05:12 PST 2004][CALL
STACK
][6616830][java.sql.SQLException: Connection handle is not currently
associated
with a ManagedConnection
at
org.jboss.resource.adapter.jdbc.WrappedConnection.checkStatus(WrappedConn
ection.java:776)
at
org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(Wrappe
dConnection.java:206)
at com.plx.framework.sql.SQLProcessor.execute(SQLProcessor.java:241)
at
com.plx.efw.server.variable.VariableHelper.addValue(VariableHelper.java:3
68)
at
com.plx.efw.server.courier.CourierSessionBean.add(CourierSessionBean.java
:515)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(State
lessSessionContainer.java:683)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(C
achedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stateles
sSessionInstanceInterceptor.java:72)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxIntercep
tor.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorC
MT.java:267)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java
:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi
nderInterceptor.java:122)

b. Second one is at:
2004-01-12 15:05:13,618 ERROR [STDERR] [ERROR]Connection handle is not
currently
 associated with a ManagedConnection
2004-01-12 15:05:13,622 ERROR [STDERR] [Mon Jan 12 15:05:13 PST 2004][CALL
STACK
][6616830][java.sql.SQLException: Connection handle is not currently
associated
with a ManagedConnection
at
org.jboss.resource.adapter.jdbc.WrappedConnection.checkStatus(WrappedConn
ection.java:776)
at
org.jboss.resource.adapter.jdbc.WrappedConnection.prepareStatement(Wrappe
dConnection.java:206)
at
com.plx.framework.sql.SQLProcessor.getResultSet(SQLProcessor.java:170)
at
com.plx.efw.server.courier.CourierSessionBean.getRuleSetName(CourierSessi
onBean.java:1597)
at
com.plx.efw.server.courier.CourierSessionBean.evaluateRuleSet(CourierSess
ionBean.java:1884)
at
com.plx.efw.server.courier.CourierSessionBean.add(CourierSessionBean.java
:558)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
mpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(State
lessSessionContainer.java:683)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(C
achedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stateles
sSessionInstanceInterceptor.java:72)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxIntercep
tor.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorC
MT.java:267)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java
:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi
nderInterceptor.java:122)
at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionCo
ntainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:700)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFa
ctory.java:375)
at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSession
Proxy.java:83)

3. Rest all go fine..

The error does not re-appear until you re-start the server.

I looked through the code and could not find a reason why it should fail in
the first place.

Desperately looking for some help.

Thanks and Best Regards
MS

-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 9:55 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss 3.2.2/Oracle 9i - Connection handle is
not currently 

RE: [JBoss-user] DatabaseServer Login module

2004-01-12 Thread Stephen Ting
Title: Message



the 
RoleGroup column is just the group name of the role. 


-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Rupp, 
HeikoSent: 12 January 2004 18:04To: 
[EMAIL PROTECTED]Subject: RE: [JBoss-user] 
DatabaseServer Login module

  What 
  is the content of your RoleGroup column?
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]On Behalf Of Stephen 
TingSent: Monday, January 12, 2004 10:23 AMTo: 'Jboss 
Mailing List'Subject: [JBoss-user] DatabaseServer Login 
module
Why is it that whenever i 
try to provide a dynamic RoleGroup name through the following query the 
authentication won't works, It will always return"HTTP Status 403 - Access to the requested 
resource has been denied". 
select Role, RoleGroup from Roles where PrincipalID=?" 
whereas if i would provide a static RoleGroup name (Roles) it will 
work select Role, 'Roles' from Roles where PrincipalID=?" 
Can someone please help? Thanks regards, 
Stephen




RE: [JBoss-user] Shutdown multiple instances

2004-01-12 Thread Rod Macpherson
Has anyone mastered the intricacies of JBoss shutdown for multiple
IPs?

I kill the process. Does shutdown accept the --host switch? If not that
should be added as a feature request for symmetry if nothing else.

-Original Message-
From: Benjamin Cox [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 11, 2004 2:29 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Shutdown multiple instances


Hello,

We're using JBoss 3.2.0, and am trying to use multiple instances 
listening on different IPs.  We set up a different IP on the same box 
for each instance (via an ifconfig alias), and gave each a hostname 
based on the name of the user who would be developing on that instance.

For instance, bjc.mydomain.com for user bjc.  We've also added these 
hostnames to our DNS, and they are resolving correctly.

We have tried quite a few things, and looked around a lot, both in the 
for-pay docs and on the web, but have not yet been able to make one 
particular instance of JBoss shutdown.

The things we have tried so far are listed at the bottom, as well as the

results of each one.  We really have no idea where to look next;  is 
there anyone out there who can shed some light on this?  Has anyone 
mastered the intricacies of JBoss shutdown for multiple IPs?

Thanks in advance,

  Ben Cox  Tim Ruppert
 
Note - ###.###.###.### denotes an IP address.

These two:

  * 
http://bjc.mydomain.com:8080/jmx-console/HtmlAdaptor?action=invokeOpByNa
mename=jboss.systemtype=servermethodName=shutdown
   * 
http://###.###.###.###:8080/jmx-console/HtmlAdaptor?action=invokeOpByNam
ename=jboss.systemtype=servermethodName=shutdown

both produce a javax.management.MalformedObjectNameException: missing
domain

These two:

   * shutdown.sh bjc.mydomain.com 8080
   * shutdown.sh ###.###.###.### 8080

both produce a javax.naming.CommunicationException: Failed to connect to

server: localhost:1099.

These five:

   * shutdown.sh -Djava.naming.provider.url=jnp://bjc.mydomain.com:1099
   * shutdown.sh -Djava.naming.provider.url=rmi://bjc.mydomain.com:1098
   * shutdown.sh -Djava.naming.provider.url=jnp://###.###.###.###:1099
   * shutdown.sh --server=bjc.mydomain.com
   * shutdown.sh --server=###.###.###.###

all produce a java.rmi.ConnectException: Connection refused to host: 
###.###.###.###

except that the last number is wrong:  it's the original IP of the box.

Could JBoss be ignoring the alias on some level?



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Re: Shutdown multiple instances

2004-01-12 Thread cjohan
Hi Ben and Tim,

One of your attempts is close to what should work:

shutdown.sh --server=bjc.mydomain.com:1098


assuming 1098 is the port on which the server is listening.
Make sure you can ping bjc.mydomain.com from the same
machine.

Regards,
Craig Johannsen
Ludicorp Research and Development





---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Migrating from JBoss 3.0.0 to 3.2.3

2004-01-12 Thread Shashi Kiran



Hi All,

We are planning to move our application which is 
already in production environment from JBoss 3.0.0 to JBoss 3.2.3 (Latest 
Version).

In JBoss 3.2.3, we noticed that EJB Spec checking 
has become stronger, e.g Remote Interfaces where java.rmi.RemoteException was 
not thrown, these beans failed to get deployed.

Can anybody tell us what are all the major changes 
between the 2 versions of JBoss and where one can encounter problems while 
migrating from JBoss 3.0.0 to JBoss 3.2.3 as we need to know the time duration 
for the above

Thanks in advance
Shashi Kiran