[JBoss-user] [EJB/JBoss] - Re: Deploying EJB Problems

2005-02-07 Thread mario202
Hi 

I have sent you an email to "[EMAIL PROTECTED]" with my Simple.jar file. I 
suggest you to try it and if it not works re-install JBoss.

Cheers, Mario


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3865517#3865517

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3865517


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Deploying EJB Problems

2005-01-31 Thread mario202
Hi 

I have shortly tried to deploy your sources and have found the following error:


  | 09:12:36,542 ERROR [MainDeployer] could not create deployment: 
file:/C:/projects/java/jboss-4.0.0/server/monex/deploy/Simple.jar
  | org.jboss.deployment.DeploymentException: ejb-jar.xml must either obey the 
right xml schema or define a valid DOCTYPE!
  | 
I have updated you ejb-jar.xml as the following

  | 
  | http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
  | 
  | 
  | MPs First EJB
  | SimpleEJB
  | 
  | 
  | Simple
  | SimpleHome
  | Simple
  | SimpleBean
  | Stateless
  | Container
  | 
  | 
  | 
  | 

Now on my installation it works!

  | 09:14:23,376 INFO  [EJBDeployer] Deployed: 
file:/C:/projects/java/jboss-4.0.0/server/monex/deploy/Simple.jar
  | 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864301#3864301

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864301


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Deploying EJB Problems

2005-01-28 Thread mario202
Hi
Did you also define a jboss.xml file in you META-INF directory next to the 
ejb-jar.xml?

Maybe for a starting-point the JBoss-IDE provides a good sample EAR-Application:
http://sf.gds.tuwien.ac.at/j/jb/jboss/Tutorial-1.3.0.pdf


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864110#3864110

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864110


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: change password to web and jmx console

2005-01-28 Thread mario202
You need to do the following steps for the jmx-console and the web-console

First:
Check the name of the security-domain in the following file
JBOSS_HOME/server/[your-server]/deploy/jmx-console.war/WEB-INFjboss-web.xml 
(jmx-console)
JBOSS_HOME/server/[your-server]/deploy/management/web-console.war/WEB-INF/jboss-web.xml
 (web-console)

The value of the security-domain is for example ?java:/jass/jmx-console?

Second:
Check the corresponding application-policy entry in the following file
JBOSS_HOME/server/[your-server]/conf/login-config.xml

You should find the name of the properties file where the user-id and pw are 
stored in the tag "userProperties" and "roleProperties"

E.g.

  | 
  |
  |   
  |  jmx-console-users.properties
  |  jmx-console-roles.properties
  |   
  |
  | 
  | 

Third:
Change the User-ID and Password in the properties files.
Should be located in the following directory:
JBOSS_HOME/server/[your-server]/conf/

Attention:
Default the web-security definitions are commented.
If this is the case you need to un-comment the security definition in the 
web.xml, jboss-web.xml and login-config.xml file

If you not find the user-properties file you need to create it in the 
server/[your-server]/conf directory. A sampe you can find in the 
/server/default/conf directory (user.properties & roles.properties)


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864106#3864106

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864106


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Managing / stopping concurrent sessions of a SessionBean

2005-01-28 Thread mario202
Hi

I have developed a J2EE application which I now need to extend with a detail 
admin process/session handling on one SessionBean.

My requirements are:
A web-page with a list of all concurrent sessions of a specific SessionBean 
(e.g. TravelAgentBean)
The possibility to kill one of the listed sessions

My question:
How can I get a collection of all concurrent sessions from a specific 
SessionBean within my EAR application? (if possible with a sample)
How can I kill / stop one of these concurrent sessions? (if possible with a 
sample)

I have study a lot about JMX / MBeans but I didn?t found a sample-solution.

Thanks!


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864101#3864101

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864101


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: jdbc not bound

2004-12-29 Thread mario202
Hi

Have you deployed your Postgres - data source definition?

Here a sample...

Data Source definition File:
/jboss-4.0.0/server/default/deploy/postgres-ds.xml
Note that the name of the data source definition file must end with -ds.xml

  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | PostgresDS
  | 
jdbc:postgresql://localhost:5432/jdb?autoReconnect=true
  | org.postgresql.Driver
  | juser
  | jpw
  | 
  | 
  | 
  | 
  |   
  |   
  |  PostgreSQL 7.2
  |   
  |   
  | 
  | 
  | 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860105#3860105

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860105


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


[JBoss-user] [EJB/JBoss] - Re: XDoclet is not generating Remote Interfaces

2004-12-28 Thread mario202
Have you defined the view-type="both"?

Here a sample:

  | /**
  |  * @ejb.bean name="ArchiveHandler"
  |  *   display-name="Name for ArchiveHandler"
  |  *   description="Description for ArchiveHandler"
  |  *   jndi-name="ejb/ArchiveHandler"
  |  *   local-jndi-name = "ejb/ArchiveHandlerLocal"
  |  *   type="Stateless"
  |  *   view-type="both"
  |  *   
  |  *   
  |  * @ejb.ejb-ref ejb-name = "ArchiveWebService"
  |  *  ref-name = "ejb/ArchiveWebServiceLocal"
  |  *  view-type = "local"
  |  * 
  |  * @jboss.ejb-local-ref ref-name = "ArchiveWebServiceLocal"
  |  *  jndi-name = "ejb/ArchiveWebServiceLocal"
  |  *  
  |  * @ejb.ejb-ref ejb-name = "AvaloqConnector"
  |  *  ref-name = "ejb/AvaloqConnectorLocal"
  |  *  view-type = "local"
  |  * 
  |  * @jboss.ejb-local-ref ref-name = "AvaloqConnectorLocal"
  |  *  jndi-name = "ejb/AvaloqConnectorLocal"  

  |  */
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860023#3860023

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860023


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


[JBoss-user] [EJB/JBoss] - Problem using UserTransaction timeout functionality.

2004-12-28 Thread mario202
Hi 
I have a SessionBean which is dealing with a remote http-webservice. Sometime 
the webservie is down and I need to get a timeout within a reasonable time. 
Therefore I implemented in my SessionBean business method a own transaction 
handling via UserTransaction and the TransactionTimeout functionality. 
Unfortunately when the time out is reached the method throws no exception, it 
still tying to connect to the webservice.

 
  | public Hashtable getArchiveItemList(String mandantId, Hashtable params, int 
responseSizeLimit) throws Exception {  
  | UserTransaction transaction = ejbContext.getUserTransaction();
  | 
  | try{ 
  | transaction.setTransactionTimeout(10);
  | transaction.begin();
  | 
  | // --> Web service connection code...
  | // not showed...
  | 
  |  transaction.commit();
  | }
  | catch(Exception e){
  | transaction.rollback();
  | NovoPortalLog.error(this,"getDocumentList()",e);
  | throw new Exception(e.getMessage());
  | }
  | }
  | 

The 10 Sec. timeout works, I get the following WARN in the server.log
 
  | 15:15:39,702 WARN  [TransactionImpl] Transaction 
TransactionImpl:XidImpl[FormatId=257, GlobalId=meilen/8, BranchQual=, 
localId=8] timed out. status=STATUS_ACTIVE
  | 

About 4 minutes later I get than a exception from the Webservice.

Q1) Should not a Exception be thrown when the UserTransaction timeout is reach?

Q2) Is there any alternative to handle a transaction timeout?

Many thanks!


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860010#3860010

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860010


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