[JBoss-user] [Management, JMX/JBoss] - Expose a interface via Http

2005-01-10 Thread cool_xiong
I write a MBean, which is made step by step according to JBoss administration. 
But I don't know where is the MBean's description which utilize 
HttpProxyFactory placed correctly. It is the jboss-service.xml in 
deploy/http-invoker/META-INF or others?

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3861497


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Switching RMIAdaptor from JRMP to HTTP invoker?

2004-12-30 Thread cool_xiong
How do I configure jboss to get it?

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860255


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - depends element doesn't work normally

2004-12-27 Thread cool_xiong
I have a mbean. In its startService method, I use DestinationManagaer to create 
a JMS Topic. So I define a depends element such as

  | server
  | mbean 
code=com.smartcode.framework.config.server.config.mbean.ConfigFile 
name=com.s2.console.mbean:service=ConfigFile 
xmbean-dd=META-INF/configfile-xmbean.xml
  | !--attribute name=jndiNames2/maps/MapTest/attribute-- 
dependsjms.mq:service=DestinationManager/depends
  | /mbean
  | /server
  | 
But when jboss3.2.1 and jboss3.2.6 start up, they report error and can't start  
my mbean correctly. Why? Please tell me how can I do it correctly?

Thanks.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3859919


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: depends element doesn't work normally

2004-12-27 Thread cool_xiong

  | protected void startService() throws Exception {
  | ObjectName name = new 
ObjectName(jboss.mq:service=DestinationManager);
  | server.invoke(name, createTopic, new Object[] { 
jmsTopic_ConfigFile,
  | jndiName }, new String[] { java.lang.String,
  | java.lang.String });
  | System.out.println(Succeed to create JMS Topic!);
  | }
  | 
  | protected void stopService() throws Exception {
  | ObjectName name = new 
ObjectName(jboss.mq:service=DestinationManager);
  | server.invoke(name, destroyTopic,
  | new Object[] { jmsTopic_ConfigFile },
  | new String[] { java.lang.String });
  | System.out.println(Succeed to destroy JMS Topic!);
  | }
  | 

After I comment the two methods, then jboss start up normally. 

  | ...
  | 22:47:18,328 INFO  [DestinationManager] Starting
  | 22:47:18,343 INFO  [DestinationManager] Started
  | 22:47:18,343 INFO  [JNDIMap] Starting
  | 22:47:18,359 INFO  [JNDIMap] Created Map proxy to handle notifications
  | 22:47:18,375 INFO  [JNDIMap] fullName=inmemory/maps/MapTest
  | 22:47:18,437 INFO  [JNDIMap] Started
  | 22:47:18,437 INFO  [ConfigFile] Starting
  | 22:47:18,437 INFO  [ConfigFile] Started
  | 22:47:18,453 INFO  [SecurityManager] Starting
  | ...
  | 
But I uncomment the two methods, jboss report error:

  | ...
  | 22:51:12,500 INFO  [DestinationManager] Starting
  | 22:51:12,500 INFO  [DestinationManager] Started
  | 22:51:12,500 INFO  [JNDIMap] Starting
  | 22:51:12,515 INFO  [JNDIMap] Created Map proxy to handle notifications
  | 22:51:12,515 INFO  [JNDIMap] fullName=inmemory/maps/MapTest
  | 22:51:12,578 INFO  [JNDIMap] Started
  | 22:51:12,578 INFO  [ConfigFile] Starting
  | 22:51:12,593 INFO  [s2/ConfigFile] Creating
  | 22:51:12,593 INFO  [s2/ConfigFile] Created
  | 22:51:12,593 INFO  [s2/ConfigFile] Starting
  | 22:51:12,625 INFO  [s2/ConfigFile] Bound to JNDI name: s2/config/IBS_CONFIG
  | 22:51:12,625 INFO  [s2/ConfigFile] Started
  | 22:51:12,625 INFO  [STDOUT] Succeed to create JMS Topic!
  | 22:51:12,625 INFO  [ConfigFile] Started
  | 22:51:12,625 INFO  [JNDIMap] Stopping
  | 22:51:12,640 INFO  [JNDIMap] Stopped
  | 22:51:12,640 INFO  [ConfigFile] Stopping
  | 22:51:12,640 INFO  [s2/ConfigFile] Stopping
  | 22:51:12,640 INFO  [s2/ConfigFile] Stopped
  | 22:51:12,640 INFO  [s2/ConfigFile] Destroying
  | 22:51:12,640 INFO  [s2/ConfigFile] Destroyed
  | 22:51:12,640 INFO  [STDOUT] Succeed to destroy JMS Topic!
  | 22:51:12,640 INFO  [ConfigFile] Stopped
  | 22:51:12,640 ERROR [SARDeployer] Could not stop mbean: 
jboss.mq:service=PersistenceManager
  | java.util.ConcurrentModificationException
  | at 
java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:552)
  | at java.util.LinkedList$ListItr.next(LinkedList.java:488)
  | at org.jboss.system.ServiceController.stop(ServiceController.java:454)
  | at org.jboss.system.ServiceController.stop(ServiceController.java:456)
  | 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.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy5.stop(Unknown Source)
  | at org.jboss.deployment.SARDeployer.stop(SARDeployer.java:373)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:233)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
  | at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
  | at $Proxy7.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:200)
  | at 

[JBoss-user] [EJB/JBoss] - Can invoke EJB directly by httpInvoker?

2004-12-08 Thread cool_xiong
I don't konw if after jboss can configure something , client can invoke ejb by 
http?

  | xxxHome home = PortableRemoteObject.narrow(context.lookup(xxx), 
xxx.class);
  | xxxRemote remote = home.create();
  |  remote.xxxMethod();
  | 

If invoke is by http, then my application can't be modified for fire-protected 
wall.

thanks.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3857974


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: why throw java.net.MalformedURLException: no !/ in spec

2004-11-16 Thread cool_xiong
I get it, thank you very much.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855345


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - why throw java.net.MalformedURLException: no !/ in spec

2004-11-15 Thread cool_xiong
?xml version=1.0 encoding=UTF-8?
!DOCTYPE mbean SYSTEM D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd

The IBS CONFIG XMBean Example



state-action-on-update value=keep-running/

com.ibs.cofig.mbean.ConfigFile

The default constructor
ConfigFile

!-- Attributes --

The location in JNDI where the Map we manage will be bound
jndiName
java.lang.String




!-- Operations --

The start lifecycle operation
start


The stop lifecycle operation
stop


Save a file into database
setFile

File's system indentifier
id
int


File to be saved
file
java.io.File



Get a file from database
getFile

File's system indentifier
id
int

return-typejava.io.InputStream/return-type


Save a file into database
setConfigFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigFile

File's name
name
String

return-typejava.io.InputStream/return-type


Save a file into database
setConfigSchemaFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigSchemaFile

File's name
name
String

return-typejava.io.InputStream/return-type


Save a file into database
setConfigExtFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigExtFile

File's name
name
String

return-typejava.io.InputStream/return-type

!--Notifications--

The notification sent whenever a value is saved
javax.management.Notification

notification-typecom.ibs.cofig.mbean.setFile/notification-type



this jboss-service.xml is valid form corresponding to jboss_xmbean_1_0.dtd.(I 
used xmlspy to check it).

when I deploy xxx.sar, why jboss throw java.net.MalformedURLException: no !/ in 
spec? Are there some invalid section?please ponit out  the mistake,

thanks

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855208


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: why throw java.net.MalformedURLException: no !/ in spec

2004-11-15 Thread cool_xiong
?xml version=1.0 encoding=UTF-8?
!DOCTYPE mbean SYSTEM D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd
!--mbean
The IBS CONFIG XMBean Example



state-action-on-update value=keep-running/

com.ibs.cofig.mbean.ConfigFile

The default constructor
ConfigFile



The location in JNDI where the Map we manage will be bound
jndiName
java.lang.String






The start lifecycle operation
start


The stop lifecycle operation
stop


Save a file into database
setFile

File's system indentifier
id
int


File to be saved
file
java.io.File



Get a file from database
getFile

File's system indentifier
id
int

return-typejava.io.InputStream/return-type


Save a file into database
setConfigFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigFile

File's name
name
String

return-typejava.io.InputStream/return-type


Save a file into database
setConfigSchemaFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigSchemaFile

File's name
name
String

return-typejava.io.InputStream/return-type


Save a file into database
setConfigExtFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigExtFile

File's name
name
String

return-typejava.io.InputStream/return-type



The notification sent whenever a value is saved
javax.management.Notification

notification-typecom.ibs.cofig.mbean.setFile/notification-type

/mbean--



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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855210


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: why throw java.net.MalformedURLException: no !/ in spec

2004-11-15 Thread cool_xiong

?xml version=1.0 encoding=UTF-8?
!DOCTYPE mbean SYSTEM D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd

The IBS CONFIG XMBean Example



state-action-on-update value=keep-running/

com.ibs.cofig.mbean.ConfigFile

The default constructor
ConfigFile

!-- Attributes --

The location in JNDI where the Map we manage will be bound
jndiName
java.lang.String




!-- Operations --

The start lifecycle operation
start


The stop lifecycle operation
stop


Save a file into database
setFile

File's system indentifier
id
int


File to be saved
file
java.io.File



Get a file from database
getFile

File's system indentifier
id
int

return-typejava.io.InputStream/return-type


Save a file into database
setConfigFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigFile

File's name
name
String

return-typejava.io.InputStream/return-type


Save a file into database
setConfigSchemaFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigSchemaFile

File's name
name
String

return-typejava.io.InputStream/return-type


Save a file into database
setConfigExtFile

File's name
name
String


File to be saved
file
java.io.File



Get a file from database
getConfigExtFile

File's name
name
String

return-typejava.io.InputStream/return-type

!--Notifications--

The notification sent whenever a value is saved
javax.management.Notification

notification-typecom.ibs.cofig.mbean.setFile/notification-type





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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855292


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: why throw java.net.MalformedURLException: no !/ in spec

2004-11-15 Thread cool_xiong
?xml version=1.0 encoding=UTF-8?
!DOCTYPE mbean SYSTEM D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd
 mbean
 descriptionThe IBS CONFIG XMBean Example /description
 descriptors
 persistence persistPolicy=Never persistPeriod=10 
persistLocation=data/JNDIMap.data persistName=JNDIMap/
 currencyTimeLimit value=10/
 state-action-on-update value=keep-running/
 /descriptors
 classcom.ibs.cofig.mbean.ConfigFile /class
 constructor
 descriptionThe default constructor /description
 nameConfigFile /name
 /constructor
 !-- Attributes --
 attribute access=read-write getMethod=getJndiName 
setMethod=setJndiName
 descriptionThe location in JNDI where the Map we manage will 
be bound /description
 namejndiName /name
 typejava.lang.String /type
 descriptors
 default value=ibs/config/IBS_CONFIG/
 /descriptors
 /attribute
 !-- Operations --
 operation
 descriptionThe start lifecycle operation /description
 namestart
 /operation
 operation
 descriptionThe stop lifecycle operation /description
 namestop
 /operation
 operation impact=ACTION
 descriptionSave a file into database /description
 namesetFile /name
 parameter
 descriptionFile's system indentifier /description
 nameid /name
 typeint /type
 /parameter
 parameter
 descriptionFile to be saved /description
 namefile /name
 typejava.io.File /type
 /parameter
 /operation
 operation impact=INFO
 descriptionGet a file from database /description
 namegetFile /name
 parameter
 descriptionFile's system indentifier /description
 nameid /name
 typeint /type
 /parameter
 return-typejava.io.InputStream /return-type
 /operation
 operation impact=ACTION
 descriptionSave a file into database
 namesetConfigFile
 parameter
 descriptionFile's name /description
 namename /name
 typeString /type
 /parameter
 parameter
 descriptionFile to be saved /description
 namefile /name
 typejava.io.File /type
 /parameter
 /operation
 operation impact=INFO
 descriptionGet a file from database /description
 namegetConfigFile /name
 parameter
 descriptionFile's name /description
 namename /name
 typeString /type
 /parameter
 return-typejava.io.InputStream /return-type
 /operation
 operation impact=ACTION
 descriptionSave a file into database
 namesetConfigSchemaFile /name
 parameter
 descriptionFile's name /description
 namename /name
 typeString /type
 /parameter
 parameter
 descriptionFile to be saved /description
 namefile /name
 typejava.io.File /type
 /parameter
 /operation
 operation impact=INFO
 descriptionGet a file from database /description
 namegetConfigSchemaFile /name
 parameter
 descriptionFile's name /description
 namename /name
 typeString /type
 /parameter
 return-typejava.io.InputStream /return-type
 /operation
 operation impact=ACTION
 descriptionSave a file into database /description
 namesetConfigExtFile /name
 parameter
 descriptionFile's name /description
 namename /name
 typeString /type
 /parameter
 parameter
 descriptionFile to be saved /description
 namefile /name
 typejava.io.File /type
 /parameter
 /operation
 operation impact=INFO
 descriptionGet a file from database /description
 

[JBoss-user] [Management, JMX/JBoss] - Re: why throw java.net.MalformedURLException: no !/ in spec

2004-11-15 Thread cool_xiong
I understand your meaning, thanks.

I use jboss3.2.1


  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE mbean SYSTEM D:\eclipse\workspace\ibsext\jboss_xmbean_1_0.dtd
  | mbean
  | descriptionThe IBS CONFIG XMBean Example/description
  | descriptors
  | persistence persistPolicy=Never persistPeriod=10 
persistLocation=data/JNDIMap.data persistName=JNDIMap/
  | currencyTimeLimit value=10/
  | state-action-on-update value=keep-running/
  | /descriptors
  | classcom.ibs.cofig.mbean.ConfigFile/class
  | constructor
  | descriptionThe default constructor/description
  | nameConfigFile/name
  | /constructor
  | !-- Attributes --
  | attribute access=read-write getMethod=getJndiName 
setMethod=setJndiName
  | descriptionThe location in JNDI where the Map we manage will 
be bound/description
  | namejndiName/name
  | typejava.lang.String/type
  | descriptors
  | default value=ibs/config/IBS_CONFIG/
  | /descriptors
  | /attribute
  | !-- Operations --
  | operation
  | descriptionThe start lifecycle operation/description
  | namestart/name
  | /operation
  | operation
  | descriptionThe stop lifecycle operation/description
  | namestop/name
  | /operation
  | operation impact=ACTION
  | descriptionSave a file into database/description
  | namesetFile/name
  | parameter
  | descriptionFile's system indentifier/description
  | nameid/name
  | typeint/type
  | /parameter
  | parameter
  | descriptionFile to be saved/description
  | namefile/name
  | typejava.io.File/type
  | /parameter
  | /operation
  | operation impact=INFO
  | descriptionGet a file from database/description
  | namegetFile/name
  | parameter
  | descriptionFile's system indentifier/description
  | nameid/name
  | typeint/type
  | /parameter
  | return-typejava.io.InputStream/return-type
  | /operation
  | operation impact=ACTION
  | descriptionSave a file into database/description
  | namesetConfigFile/name
  | parameter
  | descriptionFile's name/description
  | namename/name
  | typeString/type
  | /parameter
  | parameter
  | descriptionFile to be saved/description
  | namefile/name
  | typejava.io.File/type
  | /parameter
  | /operation
  | operation impact=INFO
  | descriptionGet a file from database/description
  | namegetConfigFile/name
  | parameter
  | descriptionFile's name/description
  | namename/name
  | typeString/type
  | /parameter
  | return-typejava.io.InputStream/return-type
  | /operation
  | operation impact=ACTION
  | descriptionSave a file into database/description
  | namesetConfigSchemaFile/name
  | parameter
  | descriptionFile's name/description
  | namename/name
  | typeString/type
  | /parameter
  | parameter
  | descriptionFile to be saved/description
  | namefile/name
  | typejava.io.File/type
  | /parameter
  | /operation
  | operation impact=INFO
  | descriptionGet a file from database/description
  | namegetConfigSchemaFile/name
  | parameter
  | descriptionFile's name/description
  | namename/name
  | typeString/type
  | /parameter
  | return-typejava.io.InputStream/return-type
  | /operation
  | operation impact=ACTION
  | descriptionSave a file into database/description
  | namesetConfigExtFile/name
  | parameter
  | descriptionFile's name/description
  | namename/name
  | typeString/type
  | /parameter
  | parameter
  | descriptionFile to be saved/description
  | namefile/name
  | typejava.io.File/type
  | /parameter
  | /operation
  | operation impact=INFO
  | descriptionGet a file from database/description
  | namegetConfigExtFile/name
  | parameter
  |

[JBoss-user] [EJB/JBoss] - Can Thead.sleep() be used in BMP or stateless session bean?

2004-06-09 Thread cool_xiong
Does it violate the EJB specification?

Please tell me.

thanks.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838271


---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - A problem on SLSB which contains a database connection

2004-04-14 Thread cool_xiong
I have a problem on SLSB. My SLSB has a database connection field, and I get 
connection through container(jboss) in ejbCreate and close connection in ejbRemove. As 
follows:

package com.smartcode.framework.persistence;

...

public class PersistenceBean
implements SessionBean {
  SessionContext sessionContext;
  Connection cn;
  ClassMap classmap;

  public void ejbCreate() throws CreateException {
cn = PersistenceResource.getConnection();
classmap = ClassMapGetter.getClassMapBean();
  }

  public void ejbRemove() {
try {
  if (cn != null) {
cn.close();
  }
}
catch (Exception ex) {
  throw new RuntimeException(ex);
}
  }

  public void ejbActivate() {
  }

  public void ejbPassivate() {
  }

  public void setSessionContext(SessionContext sessionContext) {
this.sessionContext = sessionContext;
  }

  public ValueObject save(ValueObject v) {
try{
  CommandListFactory factory = new CommandListFactory(cn, classmap);
  Iterator ite = factory.createCommands(v).iterator();
  while (ite.hasNext()) {
((DaoCommand)ite.next()).execute();
  }
  v.setAllNormal();
}
catch (Exception ex) {
  throw new javax.ejb.EJBException(ex.getMessage(), ex);
}
return v;
  }

...

}

When the SessionBean is invoked by a general java application through remote 
interface, it works well.
But it is invoked by another SSLB A which is invoked by a general java application, 
either remote interface or local interface, when SSLB A return result to client, jboss 
throw a exception, as follows

[CachedConnectionManager] Successfully closed a connection for you.  Please close them 
yourself: [EMAIL PROTECTED]: Stack Trace at 
org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionManager.java:376)
  at 
org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedConnectionManager.java:199)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:190)
at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)  
  at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)  
  at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) 
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)  
 at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
   at 
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
   at org.jboss.ejb.Container.invoke(Container.java:674)   at 
sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
  at java.lang.reflect.Method.invoke(Method.java:324) at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)at 
sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:701)  
at java.lang.Thread.run(Thread.java:534)

I guess this problem is revelant with the connection pool, but I don't know jboss how 
release a connection.

Thanks.


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830565


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70alloc_id638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user