[JBoss-user] [Persistence CMP/JBoss] - Re: Referential Integrity

2005-03-11 Thread ebu
 Yes, implementing checks in the ejbRemoves would be simpler but also 
error-prone. I think that foreign key approach to the data integrity is much 
more valuable when dealing with enterprise data, when implicit data 
modification might cause severe consequences.

 Besides this, as far as i can see it is impossible to check in the ejbRemove 
references to the objects being deleted unless we make all relationships 
bidirectional. Consider unidirectional many-to-one relationship from B to A, 
i.e. B has a getter for A, but A has no getters for collection of related Bs. 
In this case when A is being deleted there is no way to check for related Bs in 
ejbRemove. Or i'm missing something?

thanx.


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Browsing Remote MBeans - Some Missing!

2005-03-11 Thread burakbayramli
Hi, I am writing an open source tool to watch and define alerts on MBeans and 
their attributes. For this, I need to be able to see all MBeans. I used to 
method below, and I am getting most of the MBeans, but not all. Especially the 
ones I registered using 

ObjectName name = new  ObjectName(MyApp:type=MyStats);
mbeanServer.registerMBean(stats, name);

.. are nowhere to be seen. 

Any ideas? Thanks in advance. 

-

private InitialContext getContext(String serverUrl)
{
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, 
 org.jnp.interfaces.NamingContextFactory);
props.put(Context.URL_PKG_PREFIXES,
org.jboss.naming:org.jnp.interfaces); 
props.put(Context.PROVIDER_URL, serverUrl);
InitialContext ic = new InitialContext(props);
return ic;
 }


public void connect(Machine machine)  {
try {
this.machine = machine;
InitialContext ic = getContext(machine.getId().getIp());
server = (RMIAdaptor) ic.lookup(jmx/rmi/RMIAdaptor);
} catch (Exception e) {
throw new RuntimeException (exception);
}
}

public Map retrieveAllObjectNames() throws Exception {

for (Object o : server.queryNames(new ObjectName(*:*), null)) {
String nameString = o.toString(); 
ObjectName name = new ObjectName(nameString);
   
try {
MBeanInfo info = server.getMBeanInfo(name);
Map values = new HashMap();
for(MBeanAttributeInfo currInfo : info.getAttributes())
{
 ...
}
...
 }
  



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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: Postgresql 7.4.x/8.0, CMP and auto-increment

2005-03-11 Thread dtn70437
Hi,

thanks again. Now the Bean works. Here is the summary (XDoclet):

Bean-Xdoclet-Descriptor
  | 
  | /**
  |  * @ejb.bean name=Kunde display-name=Name for KundeBean
  |  *   description=Description for KundeBean jndi-name=ejb/Kunde
  |  *   type=CMP cmp-version=2.x view-type=local
  |  * 
  |  * @ejb.pk class = java.lang.Object generate = false ejb.value-object 
match =
  |  * * name = KUNDE
  |  * 
  |  * @ejb.value-object match = * name = Kunde
  |  * 
  |  * @jboss.persistence table-name = KUNDE read-only = false create-table 
=
  |  *false remove-table = false
  |  * 
  |  * @jboss.entity-command name=postgresql-fetch-seq
  |  *   
class=org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBCPostgreSQLCreateCommand
  |  * 
  |  * @jboss.unknown-pk auto-increment = true column-name = KUNDE_ID 
jdbc-type =
  |  *   BIGINT sql-type = INT8 class = java.lang.Object
  |  * 
  |  */


Entity Bean Methods
  | 
  | /**
  |  * @ejb.create-method view-type = local
  |  * 
  |  * @throws CreateException
  |  */
  | public java.lang.Object ejbCreate(String firmenname, String strasse,
  | String plz, String ort, String telefon, String fax,
  | String webSeiteURL, String email) throws 
CreateException {
  | // 
  | return null;
  | }
  | 
  | // Important: NO Setter/Getter/Xdoclet stuff for the primary-field !
  | 

Using Session Bean creating the entity bean 
  | /**
  |  * @ejb.interface-method view-type = both
  |  */
  | public java.lang.Object createKunde(String firmenname, String strasse,
  | String plz, String ort, String telefon, String fax,
  | String webSeiteURL, String email) throws 
ECannotCreateException {
  | 
  | KundeLocal myKundeLocal = null;
  | 
  | try {
  | Logger.log(KundeMgrBean.createKunde());
  | myKundeLocal = this.myKundeLocalHome.create(firmenname, 
strasse,
  | plz, ort, telefon, fax, webSeiteURL, 
email);
  | 
  | Logger.log(Neue Kundenid:  + 
myKundeLocal.getPrimaryKey());
  | return myKundeLocal.getPrimaryKey(); 
  | 
  | } catch (CreateException e) {
  | throw new ECannotCreateException(Cannot create 'Kunde' 

  | + firmenname, e);
  | }
  | }
  | 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Unsupported number of service elements in wsdl document

2005-03-11 Thread [EMAIL PROTECTED]
This should have been fixed in jboss-4.0.2

cvs co -r Branch_4_0 jboss-4.0

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - WS security and non-java clients

2005-03-11 Thread singular_droid
Hi all!
I'm trying to secure my WS with JAAS. The problem is that my WS is accessed 
both by java and non-java clients. Java clients are succesfully authenticated 
with JAAS, but I don't know the simple way to tell my non-java client to 
authenticate with JAAS.
First, the only one thing is needed(as I think) is to include into the 
SOAP-message header like this one:
 
  |  soapenv:Header
  |   jbws:username actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;scott/jbws:username
  |   jbws:password actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;tiger/jbws:password
  |  /soapenv:Header
  | 
As I understand this header is implicitly included into client's SOAP message 
wich was sent to WS. But there is the explicit way to tell all clients to 
include such header into message - add lines like this(bold) in WSDL file of my 
WS:

  | ...
  | wsdl:operation name=helloName
  | wsdlsoap:operation soapAction=/
  | wsdl:input name=helloNameRequest
  | wsdlsoap:header message=lalala
  |  part=request_header_lalala use=literal/
  | wsdlsoap:body namespace=http://interfaces.zenith.ru; use=literal/
  | /wsdl:input
  | ...
  | 
Is my manually constructed auth header enough to put server-side JAAS auth to 
work with non-java clients or not?(maybe it sounds stupid but... I hope yes :))

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Unable to access the webservice using vb.net but able to

2005-03-11 Thread [EMAIL PROTECTED]
Are there any SOAP messages beeing exchanged? 
People were having issues with HTTP-1.1. Does this apply to you?

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: JSR181/JSR224 Support

2005-03-11 Thread [EMAIL PROTECTED]
Yes, the JBossWS rewrite is all about that. For status and roadmap, checkout 

http://jira.jboss.com/jira/browse/JBWS

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - ConnectionFactory not bound

2005-03-11 Thread mukti
I am getting some errors in the console. Please check it

===
.
  JBoss Bootstrap Environment
.
  JBOSS_HOME: C:\jboss-4.0.1\bin\\..
.
  JAVA: D:\j2sdk1.4.2_07\bin\java
.
  JAVA_OPTS:  -Dprogram.name=run.bat -Xms128m -Xmx512m
.
  CLASSPATH: D:\j2sdk1.4.2_07\lib\tools.jar;C:\jboss-4.0.1\bin\\run.jar
.
===
.
14:31:23,312 INFO  [Server] Starting JBoss (MX MicroKernel)...
14:31:23,312 INFO  [Server] Release ID: JBoss [Zion] 4.0.1 (build: 
CVSTag=JBoss_4_0_1 date=200412230944)
14:31:23,312 INFO  [Server] Home Dir: C:\jboss-4.0.1
14:31:23,312 INFO  [Server] Home URL: file:/C:/jboss-4.0.1/
14:31:23,312 INFO  [Server] Library URL: file:/C:/jboss-4.0.1/lib/
14:31:23,312 INFO  [Server] Patch URL: null
14:31:23,312 INFO  [Server] Server Name: default
14:31:23,328 INFO  [Server] Server Home Dir: C:\jboss-4.0.1\server\default
14:31:23,328 INFO  [Server] Server Home URL: 
file:/C:/jboss-4.0.1/server/default/
14:31:23,328 INFO  [Server] Server Data Dir: C:\jboss-4.0.1\server\default\data
14:31:23,328 INFO  [Server] Server Temp Dir: C:\jboss-4.0.1\server\default\tmp
14:31:23,343 INFO  [Server] Server Config URL: 
file:/C:/jboss-4.0.1/server/default/conf/
14:31:23,343 INFO  [Server] Server Library URL: 
file:/C:/jboss-4.0.1/server/default/lib/
14:31:23,343 INFO  [Server] Root Deployment Filename: jboss-service.xml
14:31:23,343 INFO  [Server] Starting General Purpose Architecture (GPA)...
14:31:24,312 INFO  [ServerInfo] Java version: 1.4.2_07,Sun Microsystems Inc.
14:31:24,312 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 
1.4.2_07-b05,Sun Microsystems Inc.
14:31:24,312 INFO  [ServerInfo] OS-System: Windows 2000 5.0,x86
14:31:25,203 INFO  [Server] Core system initialized
14:31:28,468 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
14:31:28,828 INFO  [WebService] Using RMI server codebase: http://Mukti:8083/
14:31:29,140 INFO  [NamingService] Started jndi bootstrap jnpPort=1099, 
rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, 
Server [EMAIL PROTECTED]
14:31:38,968 INFO  [Embedded] Catalina naming disabled
14:31:40,250 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-0.0.0.0-8080
14:31:40,343 INFO  [Catalina] Initialization processed in 1203 ms
14:31:40,343 INFO  [StandardService] Starting service jboss.web
14:31:40,359 INFO  [StandardEngine] Starting Servlet Engine: Apache 
Tomcat/5.0.28
14:31:40,421 INFO  [StandardHost] XML validation disabled
14:31:40,453 INFO  [Catalina] Server startup in 110 ms
14:31:40,750 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, 
warUrl=file:/C:/jboss-4.0.1/server/default/deploy/http-invoker.sar/invoker.war/
14:31:42,859 INFO  [TomcatDeployer] deploy, ctxPath=/ws4ee, 
warUrl=file:/C:/jboss-4.0.1/server/default/tmp/deploy/tmp4763jboss-ws4ee-exp.war/
14:31:43,234 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=file:/C:/jboss-4.0.1/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
14:31:43,703 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, 
warUrl=file:/C:/jboss-4.0.1/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
14:31:48,765 INFO  [MailService] Mail Service bound to java:/Mail
14:31:49,984 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jboss-local-jdbc.rar
14:31:50,375 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jboss-xa-jdbc.rar
14:31:50,734 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jms/jms-ra.rar
14:31:51,046 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/mail-ra.rar
14:31:51,968 ERROR [HypersonicDatabase] Starting failed 
jboss:database=localDB,service=Hypersonic
java.sql.SQLException: General error: java.lang.NullPointerException
at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
at org.hsqldb.jdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at 
org.jboss.jdbc.HypersonicDatabase.getConnection(HypersonicDatabase.java:806)
at 
org.jboss.jdbc.HypersonicDatabase.startStandaloneDatabase(HypersonicDatabase.java:617)
at 
org.jboss.jdbc.HypersonicDatabase.startService(HypersonicDatabase.java:587)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
at 

[JBoss-user] [JBossWS] - Re: is there a way through which I can secure pure java clas

2005-03-11 Thread [EMAIL PROTECTED]
Not sure if this can be done in a portable way. The WSDL binding would need to 
include bindings for the two header elements. Whether the client SOAP stack 
provides API access to those unbound headers is a different issue. It'd be 
interesting to see which clients support unbound headers in their client stubs.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: InputStrem and Dime Attachment

2005-03-11 Thread [EMAIL PROTECTED]
You cannot send a DIME attachment to an WS4EE endpoint. DIME is not supported 
by spec.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: InputStrem and Dime Attachment

2005-03-11 Thread [EMAIL PROTECTED]
How about these?

jboss-ws4ee-client.jar
axis-ws4ee.jar
commons-discovery.jar
commons-logging.jar
jboss-jaxrpc.jar
jboss-saaj.jar
namespace.jar
wsdl4j.jar

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Browsing Remote MBeans - Some Missing!

2005-03-11 Thread [EMAIL PROTECTED]
You are making a typical mistake here: you cannot register on the server, 
MBeans created on the client. You'll have to use one of the createMBean methods 
instead (i.e. use the MBeanServer on the server side as a factory)

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Does JBoss 4.0.x support JSR-160 (JMX Remote API).

2005-03-11 Thread [EMAIL PROTECTED]
We don't fully suppor jsr160 yet, but Tom Elrod from the JBossRemoting project 
is working on this.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Keeping operation names in WSDL

2005-03-11 Thread md5georg
Hello,

When generating the WSDL file from Java code, is there a way of keeping the 
real names of the method arguments?

I have searched the Sun Web Service forums, but not found anything regarding 
this. I can't see any arguments (or features) to the wscompile tool that seams 
to handle this... And maybe there should not be any...


Best regards,

Georg



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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Keeping operation names in WSDL

2005-03-11 Thread [EMAIL PROTECTED]
wscompile reads the compiled class instead of the source file. The 
java.lang.reflect API does not give access to parameter names. You will get 
this feature when we start supporting annotations on the SEI. Check the jira 
roadmap.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Keeping operation names in WSDL

2005-03-11 Thread md5georg
Ok!

Thanks for the fast  reply!


Best regards,

Georg

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Browsing Remote MBeans - Some Missing!

2005-03-11 Thread burakbayramli
Actually the snippets are from server and client side, respectively. So they 
are running in the right place. The registration code runs under JBoss, the 
client code is another machine. 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Deploy without .war

2005-03-11 Thread anuagnel
Hi all,

I am migrating my applications from tomcat to jBoss. Is it possible to deploy 
without using .war directory.

Thanks
Anu Agnel

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Browsing Remote MBeans - Some Missing!

2005-03-11 Thread burakbayramli
And also, the output I seem to get comes from localhost, not the remove server 
I am trying to connect.  This API behaves little odd; Is there a way around 
this? 

Thanks, 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Reloading stateless session beans programmatically in JB

2005-03-11 Thread kipflip
I'm not sure whether it works for Session Beans, but you could try something 
like the Sepuku Pattern which can be used to force reloads of Entity beans when 
using Commit Option A: if you throw a RuntimeException from your bean, the J2EE 
specification says the bean must be discarded. I guess (but haven't checked) 
that the same rule of discarding applies to Stateless Session Beans.

However, I'm not sure how you could ensure all beans in the pool were recycled 
this way. Perhaps you could have a timestamp field on your bean and use that to 
determine whether the instance needed to be removed.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Clustering Confusion

2005-03-11 Thread teknokrat
Yeah, I've been at looking at it. What I don't understand is where the MDBs 
come into it. Does it mean the MDBs reside on the same servers as the JMS 
queue/topic? If so, how is load balancing handled?

There is an example onthe wiki on  Load-balanced, faul-tolerant MDBs in HAJMS 
which I am reading now. Are there any other sources of information on this 
topic?

thanks

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - ClassCastException in BMPs after switching from JBoss 3.2.3

2005-03-11 Thread Alaveth
Hello all,

I'm running an application on JBoss 3.2.3 with JDK 1.4.2 and an Oracle 8i 
database, using XDoclet to generate my config files.

Now I want to move the application to JBoss 3.2.6 for production.

When I try to access data through an BMP Entity Bean, I get a 
ClassCastException at the following line:

OracleResultSet oracleResult = (OracleResultSet) result;

The same code runs fine in 3.2.3.

The classes12.jar with the neccessary Oracle classes is present in the lib 
directory of the server. I've checked the configuration to make sure I didn't 
overlook anything, but so far I couldn't find anything wrong.

I searched the JBoss forums and tried Google as well, but thus far I was unable 
to find anything to help me.

If anything could point me in the right direction, I'd be really grateful. This 
is not really a critical matter, since the app runs fine on 3.2.3, but it is 
bugging me and I'd like to find an answer.

Thanks a lot,
Ala

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Browsing Remote MBeans - Some Missing!

2005-03-11 Thread [EMAIL PROTECTED]
Do you really see the MBeans you create through the jmx-console?

check out this similar forum posting:
http://www.jboss.com/index.html?module=bbop=viewtopict=60669

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Browsing Remote MBeans - Some Missing!

2005-03-11 Thread burakbayramli
Yes, I do see my MBeans through jmx-console. 

I also read the links you posted, and I changed the code to:

InitialContext ic = getContext(192.168.43.75:1099);
server = (MBeanServerConnection) ic.lookup(jmx/invoker/RMIAdaptor);
..

I still seem to get localhost somehow. My assumption was the Context is 
received from remote host JNP port, then we lookup the necessary adaptor.

Is my getContext method wrong? 

I am on JBoss 4.0.1. 

Thanks again, 


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: is there a way through which I can secure pure java clas

2005-03-11 Thread gag_72
yeah, The unbound header may not by very portable, but what if I provide a 
schema reference in the types section. Use types to create a header message in 
message and then use soap:header for input in bindings. To do this I need to 
explicitly import the schema in wsdl types. Something like

definitions 

xsd:import
namespace=http://webservice.jboss.com/ws4ee schema
schemaLocation=.some.xsd  id=jbws/





.
.

.

soap:operation . soapAction=.../

soap:header message=my-header use=literal







here I define a type, create a message and use this message as a soap:header in 
bindings. 
after this I suppose client soap stack should be able to set the header 
correctly.
Is something like this make sense or its impossible??

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: is there a way through which I can secure pure java clas

2005-03-11 Thread gag_72
yeah, The unbound header may not by very portable, but what if I provide a 
schema reference in the types section. Use types to create a header message in 
message and then use soap:header for input in bindings. To do this I need to 
explicitly import the schema in wsdl types. Something like

wsdl:definitions somenamespace
wsdl:types
xsd:import
namespace=http://webservice.jboss.com/ws4ee schema
schemaLocation=.some.xsd  id=jbws/
some more types
/wsdl:types
wsdl:message name=my-header
wsdl:part name=my-header element=jbws:username 
/wsdl:message
.
wsdl:porttype.

.

soap:operation=somename soapAction=somevalue/
wsdl:input
soap:header message=my-header use=literal
/wsdl:input


wsdl:service
/wsdl:service
/wsdl:definitions

here I define a type, create a message and use this message as a soap:header in 
bindings. 
after this I suppose client soap stack should be able to set the header 
correctly.
Is something like this make sense or its impossible??

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: is there a way through which I can secure pure java clas

2005-03-11 Thread gag_72
I need to first understand how to use forums :) first how do I delete a post if 
something goes wrong.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Browsing Remote MBeans - Some Missing!

2005-03-11 Thread [EMAIL PROTECTED]
Maybe this (solved) bug relates to your case:

http://jira.jboss.com/jira/browse/JBAS-1442

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - configure the tomcat server

2005-03-11 Thread [EMAIL PROTECTED]
Hi i want to configure the tomcat server so that it has additional document 
directory . Because  i want to place all the html  and text files  outside of 
the  tomcat directory .

Thanks 
Pranab

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote ConnectionFactory/Queue reconnection

2005-03-11 Thread razor_harm
anonymous wrote : 
  | I get my ConnectionFactory and my Queue from the JNDI. Should I do an 
initialContext.lookup(...) twice ?
  | 

Yes. I guess you could implement the javax.jms.ExceptionListener interface. 
(Altough, i'm not 100% sure if this is the way to do it, if you use a session 
bean).

You will have to implement the onException() method.


  |/**
  | 
  | * Handle asynchronous errors with the connection.
  | 
  | */
  | 
  |public void onException(javax.jms.JMSException jsme) {
  | 
  |   // Tries to reconnect
  | 
  |}
  | 

Also register this listerer:


  | connection.setExceptionListener(
  | 
  |(javax.jms.ExceptionListener) ExceptionListenerImpl);
  | 

You can do your reconnecting in the onException method.



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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: error: ConnectionFactory not bound

2005-03-11 Thread razor_harm
anonymous wrote : 
  | MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
  | ObjectName: jboss:database=localDB,service=Hypersonic
  | state: FAILED
  | I Depend On:
  | Depends On Me: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
  | java.sql.SQLException: General error: java.lang.NullPointerException 
  | 

Looks like something is wrong with your Default Datasource. Please correct that 
first. 



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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Which Book?

2005-03-11 Thread JohnD
I am really keen to learn Jboss for  my business.   I have gone throught the 
tutorial on dukes bank and want to progress.  There are a couple of unpublished 
books on Jboss 4 on amazon.   I know these are unpublished but can anyone 
comment on what content will be in them or has anyone read other books by these 
authors?


Also,  I understand that apart from embedded tomcat,  Jboss is primary concered 
with the EJB backend so what is a good tool fro designing the look of a 
servlet/jsp site. 


Many Thanks,

JohnD..




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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Mapping between SOAP faults and service exceptions

2005-03-11 Thread [EMAIL PROTECTED]
Exception mapping is supposed to work. Here are the SOAP envelops exchanged by

ant -Dtest=org.jboss.test.webservice.exception.ExceptionTestCase one-test


  | soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  soapenv:Header
  |   jbws:username soapenv:actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;jduke/jbws:username
  |   jbws:password soapenv:actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;dGhlZHVrZQ==/jbws:password
  |  /soapenv:Header
  |  soapenv:Body
  |   ns1:throwException xmlns:ns1=http://org.jboss.webservice/exception/
  |  /soapenv:Body
  | /soapenv:Envelope
  | 
  | soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  soapenv:Body
  |   soapenv:Fault
  |faultcodesoapenv:Client/faultcode
  |
faultstringorg.jboss.test.webservice.exception.UserException/faultstring
  |detail
  | ns1:UserException 
xmlns:ns1=http://org.jboss.webservice/exception/types;
  |  message xsi:nil=1/
  | /ns1:UserException
  |/detail
  |   /soapenv:Fault
  |  /soapenv:Body
  | /soapenv:Envelope
  | 
  | soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  soapenv:Header
  |   jbws:username soapenv:actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;jduke/jbws:username
  |   jbws:password soapenv:actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;dGhlZHVrZQ==/jbws:password
  |  /soapenv:Header
  |  soapenv:Body
  |   ns1:throwExceptionWithMessage 
xmlns:ns1=http://org.jboss.webservice/exception;
  |String_1Don't worry it's just a test/String_1
  |   /ns1:throwExceptionWithMessage
  |  /soapenv:Body
  | /soapenv:Envelope
  | 
  | soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  soapenv:Body
  |   soapenv:Fault
  |faultcodesoapenv:Client/faultcode
  |faultstringDon't worry it's just a test/faultstring
  |detail
  | ns1:UserMessageException 
xmlns:ns1=http://org.jboss.webservice/exception/types;
  |  messageDon't worry it's just a test/message
  | /ns1:UserMessageException
  |/detail
  |   /soapenv:Fault
  |  /soapenv:Body
  | /soapenv:Envelope
  | 
  | soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  soapenv:Header
  |   jbws:username soapenv:actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;jduke/jbws:username
  |   jbws:password soapenv:actor=http://webservice.jboss.com/ws4ee/login; 
xmlns:jbws=http://webservice.jboss.com/ws4ee;dGhlZHVrZQ==/jbws:password
  |  /soapenv:Header
  |  soapenv:Body
  |   ns1:throwComplexUserException 
xmlns:ns1=http://org.jboss.webservice/exception;
  |String_1Don't worry it's just a test/String_1
  |int_2200/int_2
  |   /ns1:throwComplexUserException
  |  /soapenv:Body
  | /soapenv:Envelope
  | 
  | soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  soapenv:Body
  |   soapenv:Fault
  |faultcodesoapenv:Client/faultcode
  |faultstringDon't worry it's just a test/faultstring
  |detail
  | ns1:ComplexUserException 
xmlns:ns1=http://org.jboss.webservice/exception/types;
  |  messageDon't worry it's just a test/message
  |  errorCode200/errorCode
  | /ns1:ComplexUserException
  |/detail
  |   /soapenv:Fault
  |  /soapenv:Body
  | /soapenv:Envelope
  | 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Mapping between SOAP faults and service exceptions

2005-03-11 Thread [EMAIL PROTECTED]
There should be no extra typeMapping necessary

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: error: ConnectionFactory not bound

2005-03-11 Thread mukti
Thanks
I reinstalled jboss and the errors are gone.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - How to create a Queue in JBoss

2005-03-11 Thread mukti
Can anyone tell me how to create a Queue in Jboss?

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: How to create a Queue in JBoss

2005-03-11 Thread razor_harm
Edit this file:
$JBOSS_HOME\server\default\deploy\jms\jbossmq-destinations-service.xml

Please consult the online documentation for basic JBoss administration:

http://www.jboss.org/docs/index#as

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Unable to access the webservice using vb.net but able to

2005-03-11 Thread mitulraul
May be true but how come the Javaclient with Axis and other clients are able to 
call the Webservice. Also I have generated the wsdl using the wscompile tool. I 
have one doubt here it does not generates heirarchy for the all complex types. 
What could be reason? 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: How to create a Queue in JBoss

2005-03-11 Thread mukti
Thankyou. 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB cmp Saving the data in mySql

2005-03-11 Thread milowe
1. Define a DataSource and drop the xml file in your deploy directory. You can 
find a mysql example in JBOSS_HOME/docs/examples/jca/mysql-ds.xml

2. Get the jdbc jar and drop it somewhere in classpath, for instance in the lib 
directory of the server config you are running.

3. Set persitence xdoclet attributes for your CMP  bean  @ejb.persistence , 
@jboss.persistence , ...

Or edit the ejb-jar.xml and jbosscmp-jdbc.xml manually.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - Invalidate a session

2005-03-11 Thread bbalmer
I would like to not allow two users with the same usename to be in a web 
application at the same time.  Therefore what I was thinking was to keep a 
HashMap of username and session id in the application scope and on login check 
against this map.

What I was wondering is if there was a way to programatically pull a session id 
out of this HashMap and have the server automatically invalidate the session 
(instead of waiting for the user who is having their session invalidated submit 
a request and have to check for some global variable each time).

Basically I want to have the ability to kill other user's sessions.  Is this 
possible?

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: how to set Tomcat context valve for jmx-console?

2005-03-11 Thread ricardoarguello
Don't edit the server.xml file. Create a WEB-INF/context.xml file instead, and 
define the valve there.

Ricardo Arguello


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - JBossWS and C# Interoperability

2005-03-11 Thread ${bb.Guest}
Hi,

I'm trying to expose a stateless session bean as a web service in order to 
access it via a C# client. The occuring problems are as follows:

1. I can't use RPC/literal SOAP messages since C# tells me during the WSDL file 
import that this style is not supported (ok, I know, this is not JBoss' 
problem). Therefore, I decided to expose the session bean by document/literal 
style where the next problem comes arises:

2. At the end of the document-style wiki, the WSDD-synchronizing problem is 
mentioned, but how do I incorporate this btw. rather bumpy wrapper onto my 
session bean?

3. Failing in exposing the session bean, I used the document-style wiki example 
(with the wrapper solution) to finally get a working example. I tried to write 
a simple method that takes an array of Longs (Long[]) and returns the sum of 
them. The wrapped web service deployes fine and I get the WSDL imported into C# 
as well. But: when trying to invoke the method, JBoss claims an empty namespace 
(Namespace URI cannot be null) which was already addressed in the forum and 
promised to be fixed in 4.0.2.

If you're wondering, what I'm trying to ask: I cut it short: Is there any way 
to make a SLSB expose its methods (that use complex types like arrays) as a 
webservice that can be accessed by a non-Java client, namely C#? I thought 
that's what WS are about but I only find endpoints/clients both written in the 
same language.

Regards,
Matthias


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Browsing Remote MBeans - Some Missing!

2005-03-11 Thread burakbayramli
I just upgraded to 4.0.1sp1, still the same problem. Should I apply the 
workarounds mentioned in any case? Any other ideas would be appreciated as 
well. 

Thanks, 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - Re: getRemoteUser() not working in Apache/JBoss

2005-03-11 Thread erobles
I still have not found a solution :-(

regards,

Eulogio Robles

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: JBossWS and C# Interoperability

2005-03-11 Thread omatzura
Hi!

I suggest you start by creating your wsdl manually so it conforms to .net, 
jbossws and basic-profile requirements, then validate the wsdl with .net (by 
importing it) and finally use wscompile -import to generate jbossws server 
stubs.. this has been our approach and it works just fine (ahem)..

good luck!

/Ole

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - cmp using mysql 4.0 and jboss 4.0.1 problems

2005-03-11 Thread taz_is_dave
I am currently using mysql 4.0 and  jboss 4.0.1.  I'm trying to use cmp beans 
but having problems with the deployment.

I've copied the msql-ds.xml file into the deploy directory and successfully got 
the jbosscmp-jdbc.xml file in the jar.  all looks good until I try and access 
the  database via the bean.  an sql syntax error is thrown.  looking in the 
server log indicates that the insert sql being written is
2005-03-11 12:36:37,756 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand.G_Audit] Insert Entity 
SQL: INSERT INTO table-name=G_Audit (pk_G_AuditId, auditText, auditDate, 
auditType) VALUES (?, ?, ?, ?)

This sql doesn't work.  Replacing  table-name=G_Audit with G_Audit does

Can anybody help with suggestions of what part of my config is wrong


Thanks

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Mapping between SOAP faults and service exceptions

2005-03-11 Thread omatzura
Hi!

The type-mapping was required to get this working..

Maybe because our ws was created from an existing wsdl using wscompile -import?

/Ole

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - configuration variables

2005-03-11 Thread albert_steed
Hello,
I see in some xml file the following variable:
${jboss.bind.address}
My question is where and how such variables are defined?
Can anyone tell me?
Albert Steed


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JBoss class load order/application class dependancy question

2005-03-11 Thread bkyrlach
I apologize in advance if this is in the wrong place.

I have a question about the order in which JBoss loads classes in the class 
path, and whether or not there is a way to force JBoss to load web-application 
classes first, and/or keep each web applications classes seperate from 
eachother/JBoss.

I'm in the process of developing a small web application that runs functional 
testing on web applications in developement here at my company. I'm using an 
open source project called HTMLUnit (version 1.4), and I'm finding that several 
of the classes that HTMLUnit depends on are also classes being used by JBoss. 
The problem is that HTMLUnit is using the latest releases of said classes, 
including some beta releases (or so I believe). Because JBoss uses older 
versions of these classes, my web application won't run. I experimented a 
little with updating some of the classes that JBoss uses in order to be 
compatible with HTMLUnit, but I've had no success.

Is there a way for me to force JBoss classes to be kept seperate from 
application classes?

Is there a way for me to update JBoss to the latest version of these classes?

Any help would be greatly appreciated.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: converting weblogic-ejb-jar.xml to equivalent jboss.xml

2005-03-11 Thread srikanth_uindia
Hi chitrasrivats,

I have got the same issue, steps to follow in migrating a j2ee application from 
weblogic to jboss. If you have got hold of some information and resources on 
this issue, could you please mail them to me. I would be extremely grateful to 
you for your favor.

My email is [EMAIL PROTECTED]   or  [EMAIL PROTECTED]

Thanks in advance,
Srikanth. 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters

2005-03-11 Thread nickman
Balteo;

I assume you are using round robin. Your JSP always retrieves a new Home and 
creates a new remote. Doing this will always give you the same member of the 
cluster. Try caching the emote in your session and you should see the EJB be 
invoked on alternating members of the cluster.

//Nicholas

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: setting up virtual host-VERY URGENT......

2005-03-11 Thread trackingguy
Can you have an index.jsp look at the hostname header and do a redirect based 
upon that? That's the most simple way I can think of

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Re: configuration variables

2005-03-11 Thread trackingguy
I'm fighting with the same thing!!  If you run from run.bat (on windows or I 
think it's run.sh for *nix), you can do something like this: 
run.bat --host 10.0.0.1

and substitute the appropriate IP address.  If you want to run JBoss as a 
service, that is a little more tricky and we are trying to figure that one out 
now...

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: JBossWS and C# Interoperability

2005-03-11 Thread jasong
FYI,

Microsoft will incorporate rpc/literal in the 2.0 .NET framework release. It is 
currently available in 2.0 Beta 1, although I haven't had time to test it out.

-Jason

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets JSP] - How to force deletion of compiled JSPs on redeploy?

2005-03-11 Thread molecularbear
Let's say that I've deployed foo.jsp and hit it in the web browser, causing it 
to be compiled. Now let's say that I change a method that foo.jsp calls, but do 
not changed foo.jsp itself. This can happen if the method being called looked 
like this:

formatDate(java.sql.Date)

And I change it to this:

formatDate(java.util.Date)

java.util.Date is the parent class and so there is no need to change anything 
within foo.jsp. I repackage and redeploy foo.jsp, hit it in the web browser, 
and get a NoSuchMethodFound exception. The reason (I think) is because foo.jsp 
has not changed, and so jboss doesn't think it needs to recompile the JSP. But 
it *does* need to recompile it. If I simply add some whitespace to foo.jsp, 
then repack/redeploy, everything works fine because jboss thinks that the JSP 
has changed and recompiles.

Is there a way I can make jboss discard all its compiled JSPs on redeploy?

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Missing message for key

2005-03-11 Thread [EMAIL PROTECTED]
I finally found out the problem.

Everything is set correctly in struts-config.xml and my resource bundle, etc.
The root cause is that I have several web modules in my ear file. Some of them 
have their own Struts jar files, ranging form 1.0 to 1.2, inside their war 
files. I also have Struts 1.2 jar files included in my ear file used by some 
other modules. 
This causes class loading conflicts and unfortunately, Struts 1.2 seems not so 
backward compatible.
Any ways, my solution is to let each web module has its own Struts jars in the 
war file, remove the copy inside the ear file, and set the UseJBossWebLoader to 
false (in deploy/jbossweb-tomcat50.sar/META-INF/jboss-service.xml).
This way, different web modules can use different versions of Struts.



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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Preventing Execution of Malicious Java Code inside the conta

2005-03-11 Thread arokde
Hi All
I know this forum will not be appropriate one for this kind of question but 
still i will be really interested how jboss handles this kind of thing.

We have product  which is runing inside a  servlet container 
(tomcat/jetty).This product allows the user to attach external java code which 
defines application logic.

This java class runs inside same jvm as our server is running.What i would like 
to prevent is execution of any malicious code ( ex infinite loop) which would 
bring entire sever down.
First is it possible to prevent this kind of thing .If so what will be design 
strategy for this 
Thanks  a lot 
Amey


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - J2SE application, non J2EE

2005-03-11 Thread JimDwyer
Hey,

I understand how to do a J2EE application.  How do I do an old fashioned 
application (non-J2EE) with a Gui on a TCP port and another UDP stream hookup?  
Is there any tutorials for that type of server?

Jim

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - 'error: the following naming conflicts occurred: xxx' issue

2005-03-11 Thread zeroman
What's the main reason for such error?

'wscompile' tool generates this error for the existed service - sforce.com. 

error: the following naming conflicts occurred: 
com.sforce.soap.enterprise.DescribeLayout_Type

As I get it WSDL is not compatible with WS spec. Is it correct? I would not 
like to post the full WSDL listing as it's big.

Thanks.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Remote ConnectionFactory/Queue reconnection

2005-03-11 Thread gquintana
I can not call connection.setExceptionListener() because the problem occurs 
before I get the connection. This what I do:
Context  context = new InitialContext();
  | ConnectionFactory connectionFactory = 
context.lookup(java:/JMSExploitationXA);
  | Queue queue = context.lookup(java:/external/RemoteJBoss/queue/MyQueue);
  | Connection connection = connectionFactory.createConnection();
  | 

I don't know exactly where an exception is raised (I will look at this ASAP):
* In the context.lookup(...)
  | * In the connectionFactory.createConnection()

The ExceptionListener is useful when you want watch what's happening when you 
send/receive a message but it is not my case. 

By the way, I thank you very much,
Grald

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

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


---
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://ads.osdn.com/?ad_ide95alloc_id396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: redeploying production app

2005-03-11 Thread [EMAIL PROTECTED]
http://www.jboss.org/wiki/Wiki.jsp?page=MakeSureRequestsBeingProcessedAreNotImpactedByHotDeployments

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: J2SE application, non J2EE

2005-03-11 Thread JimDwyer
BTW,

I am going to use this as a front end for a realtime box.  There is no 
database.  I need security, naming.  I will probably be controlling a C program 
if I can.  I need a long lived connection on TCP.  I will be doing streaming 
out of a UDP.  I know this is outside of the normal for JBoss but I know it 
will work.  Just need a jump start on some things.

Jim

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Clustering for POJOs

2005-03-11 Thread [EMAIL PROTECTED]
It really depends if you have state in your POJO. If not, SLSB is great for 
load balancing.

-Ben

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Oracle 10g / JBoss 4.0 /

2005-03-11 Thread alg007
Hi all,

I need help to make Oracle 10g and JBoss 4.0 working together.

In fact when I configure an XA datasource to work with distributed transaction 
I receive these error: java.lang.ClassNotFoundException: No ClassLoaders found 
for: oracle.jdbc.xa.OracleXAException.

I have followed the recommendations from the reference guide:
1/ jboss-service.xml with pad set to true
2/ oracle-xa-ds.xml copied to the deployed directory

Here part of the stack trace.
Thanks a lot for your help.
/ Xavier

17:15:25,745 INFO  [WrapperDataSourceService] Bound connection factory for 
resource adapter for ConnectionManager 
'jboss.jca:service=DataSourceBinding,name=XAOracleDS to JNDI name 
'java:XAOracleDS'
17:15:25,775 ERROR [OracleXAExceptionFormatter] Starting failed 
jboss.jca:service=OracleXAExceptionFormatter java.lang.ClassNotFoundException: 
No ClassLoaders found for: oracle.jdbc.xa.OracleXAException
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter.startService(OracleXAExceptionFormatter.java:80)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)



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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - Oracle 10g / JBoss 4.0 / XA Config Problem

2005-03-11 Thread alg007
Hi all,

I need help to make Oracle 10g and JBoss 4.0 working together.

In fact when I configure an XA datasource to work with distributed transaction 
I receive these error: java.lang.ClassNotFoundException: No ClassLoaders found 
for: oracle.jdbc.xa.OracleXAException.

I have followed the recommendations from the reference guide:
1/ jboss-service.xml with pad set to true
2/ oracle-xa-ds.xml copied to the deployed directory

Here part of the stack trace.
Thanks a lot for your help.
/ Xavier

17:15:25,745 INFO  [WrapperDataSourceService] Bound connection factory for 
resource adapter for ConnectionManager 
'jboss.jca:service=DataSourceBinding,name=XAOracleDS to JNDI name 
'java:XAOracleDS'
17:15:25,775 ERROR [OracleXAExceptionFormatter] Starting failed 
jboss.jca:service=OracleXAExceptionFormatter java.lang.ClassNotFoundException: 
No ClassLoaders found for: oracle.jdbc.xa.OracleXAException
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter.startService(OracleXAExceptionFormatter.java:80)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)



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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Can a text file be used as a resource?

2005-03-11 Thread jma24
Short question: what types of resources can you define using a a resource-ref 
tag? All the examples I see are SQL examples, where someone defines a 
datasource used as a reference. I want a text file to be used by a web 
application that uses EJB's, but I can't find any examples of how to do that.

More detail: I am a grad student in an EJB class. So naturally, I have very 
little experience with them. But I am doing a project wherein I use some text 
files to populate some data into the database. This was no problem as I was 
developing the beans, since the text files were available in the same directory 
as my build.xml that contained the ANT targets for my test cases. I would call 
an ANT target from the command line, it would fire up a Session Bean that 
connected through a remote interface into the JBoss container, send it the text 
files, and away we went. Now that everything works, I want to use it as a web 
app. And here I have a problem. I can include the text files in the ear, but 
when I call my application through the web app, it has no idea where to find 
the text files.

Any advice? 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Oracle 10g / JBoss 4.0 / XA Config Problem

2005-03-11 Thread alg007
Hi all, 

I need help to make Oracle 10g and JBoss 4.0 working together. 

In fact when I configure an XA datasource to work with distributed transaction 
I receive these error: java.lang.ClassNotFoundException: No ClassLoaders found 
for: oracle.jdbc.xa.OracleXAException. 

I have followed the recommendations from the reference guide: 
1/ jboss-service.xml with pad set to true 
2/ oracle-xa-ds.xml copied to the deployed directory 

Here part of the stack trace. 
Thanks a lot for your help. 
/ Xavier 

17:15:25,745 INFO [WrapperDataSourceService] Bound connection factory for 
resource adapter for ConnectionManager 
'jboss.jca:service=DataSourceBinding,name=XAOracleDS to JNDI name 
'java:XAOracleDS' 
17:15:25,775 ERROR [OracleXAExceptionFormatter] Starting failed 
jboss.jca:service=OracleXAExceptionFormatter java.lang.ClassNotFoundException: 
No ClassLoaders found for: oracle.jdbc.xa.OracleXAException 
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198) 
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:464)
 
at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
 
at java.lang.ClassLoader.loadClass(ClassLoader.java:251) 
at 
org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter.startService(OracleXAExceptionFormatter.java:80)
 
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
 
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
 


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: J2SE application, non J2EE

2005-03-11 Thread [EMAIL PROTECTED]
Trail: Custom Networking


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - URLComparator and Filter config in jboss-service.xml

2005-03-11 Thread balteo
Hello,
I am wondering how to disable hot deployment for *.zip files using 
URLComparator or Filter. Can anyone please give me a sample code to put into 
the jboss-service.xml?
Thanks in advance,
Julien.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: J2SE application, non J2EE

2005-03-11 Thread JimDwyer
Thanks Juha.  I will look at that.  I need to review my networking.

What I don't understand is what type of object (bean I guess) I need to create 
for such a service.  All of the examples show how to build J2EE Session and 
Entity Beans.  Would I wrap the TCP connection into a J2EE session bean?  J2EE 
seems to be a bit of overkill without a database.  Does JBoss manage the socket 
connections to such primative services?Any suggestions would be 
appreciated. 

Jim

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Reloading stateless session beans programmatically in JB

2005-03-11 Thread jamesstrachan
There isn't a good way to reload stateless Session Beans, and there isn't meant 
to be.

Suggestions :-

a)Move the read only data from the Session Beans to a singleton Java class 
within the application Server.  Reload data in the Singleton either when a 
timestamp expires or by touching the singleton from a servlet.

b)   Do something very similar using an Entity Bean with a single, constant key 
to hold the read only data.  Refresh using the same techniques.

You could use an Mbean to force reload in either alternative but a servlet will 
be quicker to develop and test.

Code for alternative (a) 



  | public class ReadOnlyCache  {
  | 
  |   private ReadOnlyCache mySingleton;
  | 
  |   private HashMap properties;
  | 
  |   private ReadOnlyCache()  {}
  | 
  |   public ReadOnlyCache getInstance()  {
  | 
  | if ( mySingleton == null )  {
  |   mySingleton = new ReadOnlyCache();
  |   loadProperties();
  |   }
  | 
  | return mySingleton();
  | 
  |   }
  | 
  |   public String getProperty( String key )  {
  | 
  | return properties.get( key );
  | 
  |   }
  | 
  |   public void refreshProperties()  {
  | 
  | loadProperties();
  | 
  |   }
  | 
  |   private void loadProperties()  {
  | 
  | // Load the cached data from a properties file or whatever.
  | 
  |   }
  | 
  | }
  |   

This example is deliberately simplified but shows a possible pattern to use.  
The servlet (code omitted) just gets the singleton instance and calls 
refreshProperties().

James

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: J2SE application, non J2EE

2005-03-11 Thread [EMAIL PROTECTED]
You should wrap it as an MBean, as it is an extension to the server itself.

There's examples on how to write MBeans and deploy them on JBoss at 
docs.jboss.org.


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: J2SE application, non J2EE

2005-03-11 Thread JimDwyer
Excellent!

I am all over it like spilt coffee!

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Error compiling EJB-QL statement -- Jboss 4.0.0

2005-03-11 Thread aoggi
Hi Guys,

I am using jboss 4.0.0, trying to deploy entity bean. I am getting following 
error for EJB-QL. I have tried modifying the EJB-QL little bit, Finally i got 
to a point that if i remove 'F' = ?2 this kind of check in the EJB-QL it is 
getting deployed.
Can some one help me to make the bellow EJB-QL work as it is..

ERROR LOG***
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 
'SELECT DISTINCT OBJECT(a)  
FROM bbsoft  a 
WHERE 
a.bNbr = ?1
AND ('F' = ?2 OR a.tStatus = ?3)
ORDER BY a.tId'; - nested throwable: 
(org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered \'F\' at line 5, 
column 42.
Was expecting one of:
ABS ...
LENGTH ...
LOCATE ...
SQRT ...
MOD ...
( ...
+ ...
- ...
INTEGER_LITERAL ...
FLOATING_POINT_LITERAL ...
NUMERIC_VALUED_PARAMETER ...
NUMERIC_VALUED_PATH ...
NOT ...
COLLECTION_VALUED_PATH ...
STRING_VALUED_PATH ...
CONCAT ...
SUBSTRING ...
BOOLEAN_VALUED_PATH ...
DATETIME_VALUED_PATH ...
ENTITY_VALUED_PATH ...
IDENTIFICATION_VARIABLE ...
)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:52)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:60)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:272)

ERROR LOG***


Thanks
Anil

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - Re: Does JBoss 4.0.x support JSR-160 (JMX Remote API).

2005-03-11 Thread qdotlu
Is there a road map for the support of JMX Remote API?

Thanks,

[EMAIL PROTECTED] wrote : We don't fully suppor jsr160 yet, but Tom Elrod 
from the JBossRemoting project is working on this.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - keep getting tx marked for rollback error

2005-03-11 Thread berkgypsy
I am using jboss4.0.1 with hibernate, and I created my own HibernateUtil class 
to manage the sessions and transactions (outside any EJBs).  I've posted the 
code below.  However sometimes when committing a random transaction I get this:

Caused by: javax.transaction.RollbackException: Already marked for rollback 
TransactionImpl:XidImpl[FormatId=257, GlobalId=***.com/26137, BranchQual=, 
localId=26137]
at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1068)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:296)
at org.jboss.tm.TxManager.commit(TxManager.java:200)
at 
org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:126)
at 
com.scilearn.dao.HibernateUtil.commitTransaction(HibernateUtil.java:135)


I'm not sure why a transaction would be marked for rollback, because I never 
mark a transaction for rollback in my code, i only commit or rollback right 
away.  I don't see any errors in my logs, however I do see some explicit calls 
to HibernateUtil.rollbackTransaction.  Shouldn't these calls end the 
transaction?  Are there any ideas as to why these transactions marked for 
rollback may be hanging around?


  | 
  | public class HibernateUtil {
  | 
  | private static org.apache.log4j.Logger log = 
org.apache.log4j.Logger.getLogger(HibernateUtil.class);
  | 
  | /**
  |  * First, start a transaction so that HibernateContext can join the 
Hibernate session to it
  |  * @return
  |  * @throws InfrastructureException
  |  */
  | public static net.sf.hibernate.Session getSession() throws 
InfrastructureException{
  | 
  | try{
  | UserTransaction tm = getTransactionManager();
  | if(tm.getStatus() == Status.STATUS_NO_TRANSACTION)
  | {
  | tm.begin();
  | //log.info(started tx  + tm.toString());
  | }
  | 
  | Session session = 
HibernateContext.getSession(java:/HibernateFactory);
  | 
  | return session;
  | 
  | }catch(Exception e)
  | {
  | throw new InfrastructureException(e);
  | }
  | }
  | 
  | 
  | /**
  |  * The session is tied to the transaction (HibernateContext did this 
for us),
  |  * so ending the transaction will return the session and connection to 
the pool.
  |  * If the transaction has been left active, roll it back
  |  */
  | public static void closeSession()  {
  | 
  | try {
  | UserTransaction tx = getTransactionManager();
  | 
  | if(tx.getStatus() == Status.STATUS_ACTIVE || tx.getStatus() == 
Status.STATUS_MARKED_ROLLBACK)
  | {
  | log.debug(session to close has an active transaction, will 
rollback);
  | rollbackTransaction();
  | }
  | 
  | } catch (Exception e) {
  |log.error(Error closing session:  + e);
  | } finally {
  | 
  | }
  | }
  | 
  | 
  | /**
  |  * Leave this blank for now since we do it automatically when we get a 
session
  |  * @throws com.scilearn.dao.InfrastructureException
  |  */
  | public static void beginTransaction()  throws 
com.scilearn.dao.InfrastructureException {   
  | }
  | 
  | public static void commitTransaction()  throws 
com.scilearn.dao.InfrastructureException {
  | log.debug(COMMITTING HIBERNATE TRANSACTION);
  | try {
  | UserTransaction tx = getTransactionManager();
  | if(! (tx.getStatus() == Status.STATUS_NO_TRANSACTION))
  | tx.commit();
  | 
  | } catch (Exception e) {
  | log.error(Error committing transaction:  + e);
  | rollbackTransaction();
  | throw new InfrastructureException(e);
  | }
  | 
  | }
  | 
  | public static void rollbackTransaction() {
  | log.info(ROLLING BACK HIBERNATE TRANSACTION);
  | try {
  | UserTransaction tx = getTransactionManager();
  | 
  | if (tx != null  ! (tx.getStatus() == 
Status.STATUS_NO_TRANSACTION)) {
  | tx.rollback();
  | }
  | 
  | } catch (Exception e) {
  |log.error(Error rolling back transaction:  + e);
  | } finally {
  | 
  | }
  | }
  | 
  | public static void flushSession() throws InfrastructureException
  | {
  | try
  | {
  | getSession().flush();
  | }catch(HibernateException e)
  | {
  | throw new InfrastructureException(e);
  | }
  | }
  | 
  | private static UserTransaction getTransactionManager() throws 
InfrastructureException
  | {
  | try{
  | InitialContext context = new InitialContext();
  | UserTransaction tm = (UserTransaction) 
context.lookup(UserTransaction);
  |  

[JBoss-user] [Installation Configuration] - Re: run jboss as a service for 'all' server configuration on

2005-03-11 Thread aalberini
Hi:
Can you tell me how to obtain the file /etc/inet.d/functions for run Jboss as a 
service?

Thanks.
Alejandro

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Prinicpal = null

2005-03-11 Thread milkygto
Can anyone point out what is the problem here? I followed the jaashowto, but I 
still can't get the principal to work.

After I do the loginContext.login(), my user and role are set. If I do a 
forward(), I can get to the restricted resources.
But if I do a request.sendRedirect, I will lost all the principal. So I tested 
it by getting it out from request.getUserPrincipal(), 
and it didn't suprise me for returning me a null. I am tested it jboss 4.0.1 
RC1 and RC2, and both of them doesn't work.

Thanks,

--- 
LoginServlet
---

String username = request.getParameter(username);
String password = request.getParameter(password);

try {   
if (username != null  password != null) {

SecurityAssociationHandler handler = new 
SecurityAssociationHandler();
SimplePrincipal user = new SimplePrincipal(username);
handler.setSecurityInfo(user, password.toCharArray());
LoginContext loginContext = new LoginContext(equilar-login,
(CallbackHandler) handler);
loginContext.login();

Subject subject = loginContext.getSubject();
Set principals = subject.getPrincipals();
principals.add(user);  
   
Principal p = request.getUserPrincipal();  
if (p != null)
log.info(Principal =  + p.getName());
else
log.info(Principal is null);

try {
response.sendRedirect(/index.jsp);
return;
} catch (IOException e) {
log.error(sendRedirect failed, e);
}
} else {
try {
response.sendRedirect(/login.jsp);
return;
} catch (IOException e) {
log.error(Failed redirecting, e);
}
}
} catch (LoginException e) {
log.info(Login failed for  + username +. Reason:  + 
e.getMessage());
try {
response.sendRedirect(/login.jsp?login=failed);
return;
} catch (IOException ee) {
log.error(Failed redirecting, ee);
}
}

---
Auth.conf in jboss/server/default/conf
---
client-login
{
org.jboss.security.ClientLoginModule required;
};

equilar-login
{
org.jboss.security.ClientLoginModule required
;

org.jboss.security.auth.spi.UsersRolesLoginModule required
usersProperties=users.properties
rolesProperties=roles.properties
unauthenticatedIdentity=nobody
;

};

---
Auth.conf in jboss/client
---

client-login
{
org.jboss.security.ClientLoginModule required;
};

equilar-login
{
org.jboss.security.ClientLoginModule required
;

org.jboss.security.auth.spi.UsersRolesLoginModule required
unauthenticatedIdentity=nobody
;
};

---
login-config.xml
---

application-policy name=equilar-login
 
 login-module code = org.jboss.security.ClientLoginModule
   flag = required
 /login-module
  
 login-module code=org.jboss.security.auth.spi.UsersRolesLoginModule
   flag = required
module-option name=usersPropertiesusers.properties/module-option
module-option name=rolesPropertiesroles.properties/module-option
module-option name=unauthenticatedIdentitynobody/module-option 
 /login-module
   
/application-policy   

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net

[JBoss-user] [HTTPD, Servlets JSP] - Invalidating all http sessions through the jmx console

2005-03-11 Thread balteo
Hello,
Is it possible to invalidate all http session through the jmx console?
If so what do I look for?
Thanks in advance,
Julien.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters

2005-03-11 Thread balteo
Hello Nicholas,

Still get the same behavior with the following:


  | %@ page import =javax.ejb.* %
  | %@ page import =javax.naming.* %
  | %@ page import =java.util.* %
  | %@ page import =java.rmi.* %
  | %@ page import =com.mycompany.* %
  | 
  | 
  | 
  | %
  | 
  | try{
  | Properties p = new Properties();
  | 
p.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
  | p.put(Context.PROVIDER_URL,127.0.0.1:1099,127.0.0.1:1199);
  | p.put(Context.SECURITY_PRINCIPAL,sa);
  | p.put(Context.SECURITY_CREDENTIALS,);
  | Context context = new InitialContext(p);
  | 
  | 
  | EJBTwoHome home;
  | EJBTwo ejbtwo;
  | 
  | 
  | 
  | if(session.isNew()){
  | System.out.println(new);
  | home = (EJBTwoHome) context.lookup(EJBTwoHome_R);
  | ejbtwo = home.create();
  | session.setAttribute(home, home);
  | session.setAttribute(ejbtwo, ejbtwo);
  | }
  | else{
  | System.out.println(not new);
  | home=(EJBTwoHome)session.getAttribute(home);
  | ejbtwo=(EJBTwo)session.getAttribute(ejbtwo);
  | }
  | 
  | ejbtwo.print();
  | }
  | catch(CreateException e){
  | e.printStackTrace();
  | }
  | 
  | catch(RemoteException e){
  | e.printStackTrace();
  | }
  | 
  | %
  | 
  | 

Any help?

Thanks in advance,

Julien.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters

2005-03-11 Thread nickman
Julien;

Can you post your EJB descriptors ?

//Nicholas

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Prinicpal = null

2005-03-11 Thread milkygto
I got it to work. Instead using my servlet to login, i use


form method=POST action='%= response.encodeURL( j_security_check 
) %' 


Username:



Password:











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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - jgroups.protocols.UDP

2005-03-11 Thread aoggi
Hello everyone,

I am using jboss 4.0.0, i am seeing the follwoing message almost every 3 milli 
seconds, can some one tell me what is the problem and how to supress this..

help Plz..

Thanks
Anil

Mar-11-2005 14:39:33 ERROR jgroups.protocols.UDP handleIncomingUdpPacket.691  - 
exception=java.lang.ClassCastException
at org.jgroups.Message.readExternal(Message.java:471)
at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:686)
at org.jgroups.protocols.UDP$UcastReceiver.run(UDP.java:1294)
at java.lang.Thread.run(Thread.java:534)

Mar-11-2005 14:39:36 ERROR jgroups.protocols.UDP handleIncomingUdpPacket.691  - 
exception=java.lang.ClassCastException
at org.jgroups.Message.readExternal(Message.java:471)
at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:686)
at org.jgroups.protocols.UDP$UcastReceiver.run(UDP.java:1294)
at java.lang.Thread.run(Thread.java:534)


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - What TX attribute to read for READ-ONLY operation?

2005-03-11 Thread aparaapara
Dear Members:

I have an READ operation which returns Entity objects.  This operation is 
currently marked with a TX of Required.  In actuality I don't need a TX in this 
case, however, when I attempted to change TX to Supports/NotSupported I 
experienced a SELECT from the DB for every getXXX operation which occured on an 
Entity.

This was last tested sometime ago with JBOSS 3.2.3 server.

I get an exception during my READ operation when system is under load (attached 
at the end).

What I would like to do, is not lock the Entity, however, not refresh it during 
this READ operation.  

What should I do in the ejb-jar.xml, jbosscmp.xml or another deployment 
descriptor to make this happen?  Can this be done?  Am I approaching this 
problem incorrectly?

Here is the exception which I get:

org.jboss.util.deadlock.ApplicationDeadlockException: Application deadlock 
detected, [EMAIL PROTECTED], bean=ComponentType, [EMAIL PROTECTED] id: picture, 
refs=3, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=web1//720555, 
BranchQual=], synched=Thread[TP-Processor8,5,jboss], timeout=5000, 
queue=[TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257, 
GlobalId=web1//720589, BranchQual=] id=0 thread=Thread[TP-Processor4,5,jboss] 
queued=true], holder=TransactionImpl:XidImpl [FormatId=257, 
GlobalId=web1//720599, BranchQual=], [EMAIL PROTECTED], bean=Component, [EMAIL 
PROTECTED] id: 56346, refs=2, tx=TransactionImpl:XidImpl [FormatId=257, 
GlobalId=web1//720589, BranchQual=], synched=null, timeout=5000, queue=[], 
waitingResourceHolder=TransactionImpl:XidImpl [FormatId=257, 
GlobalId=web1//720589, Branc!
 hQual=]
at 
org.jboss.util.deadlock.DeadlockDetector.deadlockDetection(DeadlockDetector.java:48)


Thanks.
-AP_

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Prinicpal = null

2005-03-11 Thread milkygto
form method=POST action='%= response.encodeURL( j_security_check ) %'
  | table
  | tr
  | thUsername:/th
  | tdinput type=text name=j_username 
size=15//td
  | /tr
  | tr
  | thPassword:/th
  | tdinput type=password name=j_password 
size=15//td
  | /tr
  | tr/
  | tr
  | td colspan=2 align=right
  | input type=submit value=Submit/
  | /td
  | /tr
  | /table
  | /form

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence CMP/JBoss] - Re: What TX attribute to read for READ-ONLY operation?

2005-03-11 Thread aparaapara
Sorry, what I wanted to ask was What TX attribute to set for READ-ONLY 
operation?

Thanks.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters

2005-03-11 Thread balteo
Thanks for your reply Nicholas,

in the ejb jar:

  | ?xml version=1.0 encoding=UTF-8?
  | 
  | jboss
  |  enterprise-beans
  |   session
  |  ejb-nameEJBTwo/ejb-name
  |  local-jndi-nameEJBTwoHome_L/local-jndi-name
  |  jndi-nameEJBTwoHome_R/jndi-name
  |  clusteredtrue/clustered
  |   /session
  |  /enterprise-beans
  | /jboss
  | 
  | 


jboss service

  | ?xml version=1.0 encoding=UTF-8?
  | !-- $Id: jboss-service.xml,v 1.2 2004/12/21 21:32:36 orb Exp $ --
  | 
  | !-- = 
--
  | !--  JBoss Server Configuration   
--
  | !-- = 
--
  | 
  | server
  | 
  |!-- Load all jars from the JBOSS_DIST/server/config/lib directory. 
This
  |  can be restricted to specific jars by specifying them in the archives
  |  attribute.
  | --
  |classpath codebase=lib archives=*/
  | 
  | 
  |!-- 
 --
  |!-- JSR-77 Single JBoss Server Management Domain
 --
  |!-- 
 --
  |mbean code=org.jboss.management.j2ee.LocalJBossServerDomain
  |   name=jboss.management.local:j2eeType=J2EEDomain,name=Manager
  |   attribute 
name=MainDeployerjboss.system:service=MainDeployer/attribute
  |   attribute 
name=SARDeployerjboss.system:service=ServiceDeployer/attribute
  |   attribute 
name=EARDeployerjboss.j2ee:service=EARDeployer/attribute
  |   attribute 
name=EJBDeployerjboss.ejb:service=EJBDeployer/attribute
  |   attribute 
name=RARDeployerjboss.jca:service=RARDeployer/attribute
  |   attribute 
name=CMDeployerjboss.jca:service=ConnectionFactoryDeployer/attribute
  |   attribute name=WARDeployerjboss.web:service=WebServer/attribute
  |   attribute name=MailServicejboss:service=Mail/attribute
  |   attribute 
name=JMSServicejboss.mq:service=DestinationManager/attribute
  |   attribute name=JNDIServicejboss:service=Naming/attribute
  |   attribute 
name=JTAServicejboss:service=TransactionManager/attribute
  |   attribute 
name=UserTransactionServicejboss:service=ClientUserTransaction/attribute
  |   attribute name=RMI_IIOPServicejboss:service=CorbaORB/attribute
  |/mbean
  | 
  |!-- 
 --
  |!-- XMBean Persistence  
 --
  |!-- 
 --   
  |mbean code=org.jboss.system.pm.AttributePersistenceService
  |   name=jboss:service=AttributePersistenceService
  |   xmbean-dd=resource:xmdesc/AttributePersistenceService-xmbean.xml
  |   !-- the AttributePersistenceService is persistent, itself --
  |
  |   !--
  |   attribute 
name=AttributePersistenceManagerClassorg.jboss.system.pm.XMLAttributePersistenceManager/attribute
  |   attribute name=AttributePersistenceManagerConfig
  |  data-directorydata/xmbean-attrs/data-directory
  |   /attribute  
  |   attribute name=ApmDestroyOnServiceStopfalse/attribute
  |   attribute name=VersionTag/attribute
  |   --
  |/mbean
  | 
  |!-- A Thread pool service --
  |mbean code=org.jboss.util.threadpool.BasicThreadPool
  |   name=jboss.system:service=ThreadPool
  |   attribute name=NameJBoss System Threads/attribute
  |   attribute name=ThreadGroupNameSystem Threads/attribute
  |   !-- How long a thread will live without any tasks in MS --
  |   attribute name=KeepAliveTime6/attribute
  |   !-- The max number of threads in the pool --
  |   attribute name=MaximumPoolSize10/attribute
  |   !-- The max number of tasks before the queue is full --
  |   attribute name=MaximumQueueSize1000/attribute
  |   !-- The behavior of the pool when a task is added and the queue is 
full.
  |   abort - a RuntimeException is thrown
  |   run - the calling thread executes the task
  |   wait - the calling thread blocks until the queue has room
  |   discard - the task is silently discarded without being run
  |   discardOldest - check to see if a task is about to complete and enque
  |  the new task if possible, else run the task in the calling thread
  |   --
  |   attribute name=BlockingModerun/attribute
  |/mbean
  | 
  |!-- Preload all custom editors for VMs that don't use the thread
  | context class loader when searching for PropertyEditors. Uncomment
  | if your JDK 1.3.0 VM fails to find JBoss PropertyEditors.
  |mbean code=org.jboss.varia.property.PropertyEditorManagerService
  |  name=jboss:type=Service,name=BootstrapEditors
  |  attribute 

[JBoss-user] [JCA/JBoss] - Re: keep getting tx marked for rollback error

2005-03-11 Thread [EMAIL PROTECTED]
I can see a number of problems with your code
1) If by outside an EJB you mean a servlet you should use 
java:comp/UserTransaction
(although in JBoss there is no difference it optimizes away the client 
transaction to the server user transaction)
2) Some of the status checking is wrong
3) The commit/rollback logic is wrong

I could help you fix it, but then I don't feel the need since we already provide
this feature, it is called CMT and it works.
If you don't want to use tried and tested code, you'll have to debug it 
yourself.

On your main question, I have no idea. 
You don't post any useful information -- READ THIS FIRST.
My *guess* would be a transaction timeout.


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Oracle 10g / JBoss 4.0 / XA Config Problem

2005-03-11 Thread [EMAIL PROTECTED]
Moderated FAQ: - deploy the jdbc driver

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: BMT + nested transactions

2005-03-11 Thread [EMAIL PROTECTED]
What a mess.

javax.transaction.Transaction is NOT a user api.
It is intended for J2EE Server - TM integeration.

If you are going to use it, make sure you read the spec.

You certainly shouldn't be switching transaction mid ejb method,
CMT already has this notion it is called RequiresNew.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: MySQL database configuration

2005-03-11 Thread [EMAIL PROTECTED]
Moderated FAQ: The topic at the top this forum where I say 
will you stop posting questions about resource-refs in the JCA forum.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] (no subject)

2005-03-11 Thread Girish Patil
attachment: winmail.dat

[JBoss-user] [Security JAAS/JBoss] - Re: Prinicpal = null

2005-03-11 Thread [EMAIL PROTECTED]
The problem is that this cannot work. The jaas login only affects the current 
calling thread for subsequent access to secured resources. It does not 
magically inform the web container that all sendRedirects should be trusted. 
This is impossible in general as its the web client that has to provide the 
identity and proof of identity and the form depends on the authentication 
scheme selected by the war deployment.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: JCA : How to call getWorkManager method

2005-03-11 Thread [EMAIL PROTECTED]
I think you guys need to understand that this is the JBossJCA forum,
where is your *JBOSS* issue?

It is not the I don't understand (can't be bothered reading) the spec forum. 
Go fill up Sun's j2ee forums if you think the spec is unclear.

This is the only time I'm going to answer this, so I'm going to help the
search function:

RESOURCEADAPTER
WORKMANGER
DOWORK
BOOTSTRAPCONTEXT
WORK


  | public class TestResourceAdapter implements ResourceAdapter
  | {
  |public void start(BootstrapContext ctx) throws 
ResourceAdapterInternalException
  |{
  | WorkManager wm = ctx.getWorkManager();
  | wm.doWork(new MyWork());
  | etc.
  | 

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - InstantiationException creating CMP entity bean from session

2005-03-11 Thread mburbidg
I've built a very simple CMP entity bean called StatisticsBean. It has two 
fields name and value. They are both of type java.lang.String and the name 
field is the primary key. I'm using xdoclet to generate the related files from 
the bean. The bean deploys without warnings or errors. From my session bean I 
execute the following:

StatisticLocalHome statHome = StatisticBeanUtil.getLocalHome();
  | StatisticLocal stat = statHome.create(foo-cnt, 0);

When I do, I get the following exception and stack trace:

anonymous wrote : 10:32:58,576 ERROR [LogInterceptor] 
TransactionRolledbackLocalException in method: public abstract 
sample.StatisticLocal sample.StatisticLocalHome.create(java.l
  | ang.String,java.lang.String) throws javax.ejb.CreateException, causedBy:
  | java.lang.InstantiationException
  | at 
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
  | at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
  | at java.lang.Class.newInstance0(Class.java:308)
  | at java.lang.Class.newInstance(Class.java:261)
  | at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createBeanClassInstance(JAWSPersistenceManager.java:165)
  | at 
org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:114)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:250)
  | at 
org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:221)
  | at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:168)
  | at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:78)
  | ...

I cannot see what I'm doing wrong. I'm sure it's something very small.

Here's my bean:

package sample;
  | 
  | import javax.ejb.EntityBean;
  | import javax.ejb.EntityContext;
  | import javax.ejb.RemoveException;
  | import javax.ejb.CreateException;
  | import javax.ejb.FinderException;
  | import java.lang.String;
  | 
  | /**
  |  * 
  |  * @ejb.bean
  |  *  name=StatisticBean
  |  *  jndi-name=ejb/StatisticBeanRemote
  |  *  local-jndi-name=ejb/StatisticBeanLocal
  |  *  cmp-version=2.x
  |  *  primkey-field=name
  |  *  schema=StatSchema  
  |  *
  |  * @ejb.interface
  |  *  remote-class=sample.Statistic
  |  *  local-class=sample.StatisticLocal
  |  *
  |  * @ejb.home
  |  *  remote-class=sample.StatisticHome
  |  *  local-class=sample.StatisticLocalHome
  |  *
  |  * @ejb.pk
  |  *  class=java.lang.String
  |  *  generate=false
  |  *
  |  * @ejb.util generate=physical
  |  *
  |  * @jboss.container-configuration name=Standard CMP EntityBean
  |  *
  |  * @jboss.persistence
  |  *  datasource=default
  |  *
  |  */
  | 
  | public abstract class StatisticBean implements EntityBean
  | {
  | /**
  |  * @ejb.create-method
  |  * @return Primary Key
  |  * @throws CreateException
  |  */
  | public String ejbCreate(String name, String value) throws CreateException
  | {
  | setName(name);
  | setValue(value);
  | 
  | return null;
  | }
  | 
  | public void ejbPostCreate(String name, String value) throws CreateException
  | {
  | }
  | 
  | /**
  |   * @ejb.select query=select o.name from Stats o where o.name = ?1
  |   * @param s Name we are searching with
  |   * @return Set of Primary Keys with that name
  |   * @throws FinderException
  |   */
  | public abstract String ejbSelectByName(String name) throws FinderException;
  | 
  | /**
  |   * @ejb.interface-method
  |   * @ejb.persistence jdbc-type=VARCHAR sql-type=VARCHAR
  |   * @ejb.pk-field
  |   * @return the name of this bean
  |   */
  | public abstract String getName();
  | /**
  |  * @ejb.interface-method
  |  * @param s Set the name of this bean
  |  */
  | public abstract void setName(String s);
  | 
  | /**
  |  * @ejb.interface-method
  |  * @ejb.persistence jdbc-type=VARCHAR sql-type=VARCHAR
  |  * @return the value of this bean
  |  */
  | public abstract String getValue();
  | /**
  |  * @ejb.interface-method
  |  * @param s Set the value of this bean
  |  */
  | public abstract void setValue(String s);
  | 
  | }

Here's the bean implementation class, derived from this that is generated by 
xdoclet:

/*
  |  * Generated by XDoclet - Do not edit!
  |  */
  | package sample;
  | 
  | /**
  |  * CMP layer for StatisticBean.
  |  */
  | public abstract class StatisticBeanCMP
  |extends sample.StatisticBean
  |implements javax.ejb.EntityBean
  | {
  | 
  |public void ejbLoad() 
  |{
  |}
  | 
  |public void ejbStore() 
  |{
  |}
  | 
  |public void ejbActivate() 
  |{
  |}
  | 
  |public void ejbPassivate() 
  |{
  | 
  |}
  | 
  |public void 

[JBoss-user] [JCA/JBoss] - Re: JCA : JNDI in the work

2005-03-11 Thread [EMAIL PROTECTED]
Yes, but only global jndi, not java:comp

For an MDB, you can get the MDB's java:comp environment by invoking
MessageEndpoint.beforeDelivery()

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Is EJB read-only methods participating in transaction ?

2005-03-11 Thread [EMAIL PROTECTED]
Moderated: Ignored, CMP questions belong in the CMP forum not the JCA forum.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - JBOSS 4.0.1sp1 clustering on gentoo 2004.3

2005-03-11 Thread FunkyHippy
I am attempting to install and configure some gentoo server for running jboss 
(the reason i went with gentoo is that we need only jboss and some remote 
access ssh,webmin,etc) i run into a problem.  Jboss starts ok (starting all 
configuration as I want to cluster them) but I get an error with GMS.  I am 
running on AMD64 with 64 bit version of latest jdk from sun (1.5.0_1).  I'm 
sorry I can't give anymore detailed only the servers are work and I am home now 
(I need to try and sort it first thing monday morning!). Anyone got any ideas 
or pointers as I need to figure this out fairly soon.

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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Preventing Execution of Malicious Java Code inside the c

2005-03-11 Thread [EMAIL PROTECTED]
You can only enforce that which can be validated using a security manager and 
permission check. Java does not have sufficient notion of thread resources or 
permission checks that would allow you to stop a thread that exceeds some cpu 
usage or memory usage threshold.


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

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


---
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://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


  1   2   >