[jboss-user] [Microcontainer] - Re: Howto inject beans into a collection

2009-02-22 Thread Welle
Oppss...  The testclass should be is A not B...

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212135
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Howto inject beans into a collection

2009-02-22 Thread Welle
Hmm... Perhaps I should mention that I trying to get it to work under JBoiss AS 
5.


It doesn't seem to recognize the "inject" within a "value" element:

org.jboss.xb.binding.JBossXBRuntimeException: 
{urn:jboss:bean-deployer:2.0}inject not found as a child of 
{urn:jboss:bean-deployer:2.0}value

Here is my simple testclass B

package xxx.xxx.xxx;
  | 
  | import java.util.List;
  | 
  | public class B {
  | 
  | private List actions = null;
  | 
  | public void setActions(List actions) {
  | this.actions = actions;
  | }
  | }

I also tried to create the bean within the "inject"  without luck.

bean name="a" class="xxx.xxx.A">
  |
  |   
  |  ...
  |   
  | 
  | 
  | 
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212134
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - ServiceLocator in EJB3

2009-02-22 Thread venuwin
Hi,

My question is about ServiceLocator pattern implementation in the EJB3 world.
Pls let me know if there is any new efficient way of writing ServiceLocator in 
EJB3. This new approach should also hold good for clustering.

Also curious to know how can we write code that can work with both remote and 
local interfaces. Reason being our requirement that states that we should not 
be modifying code just for the sake of local or remote lookups.

Thanks,
Venu

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212132
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - 100% Utilization of JBOSS 3.2

2009-02-22 Thread jjoseph
Hi All,

We are experiecing 100% utilization issues with JBOSS.
Our environment is HP UX with JBoss 3.2.

Could you please point me in the right direction?

How do we trouble shoot this issue?

I am pretty new with JBOSS.

Many thanks in Advance,
John Joseph


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212130
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process resume

2009-02-22 Thread galanfish
and why i can not find any reference that the method ClientExecution#suspend 
called, what does this method used for

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212129
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: After install of 2.7.1 bundle get JSPHelloUser Portlet

2009-02-22 Thread prabhat....@jboss.com
Pls search forum for the fix.You need to get the examples from the trunk which 
also has fix. http://anonsvn.jboss.org/repos/portal/examples/trunk/

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212128
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process resume

2009-02-22 Thread galanfish
BTW, what's the motivation for the constants STATE_SUSPEND, i mean, usually, 
what can i use it for?

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212127
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Second levele caching: Database connection issue in load tes

2009-02-22 Thread preddy1104
I am new to JBoss caching and trying to use second level caching with ejb3 
entity beans. By looking at the document I have configured my entity bean to 
use jboss caching as second level caching. It is failing in load testing. I am 
getting an error related to database connection availablity. 

Using JBoss Cache 3.0.2 

Configurations used: 

I have configured persistence.xml with the following properties 
name="hibernate.cache.use_second_level_cache" value="true" 
name="hibernate.cache.provider_class" 
value="org.jboss.ejb3.entity.TreeCacheProviderHook" 
name="hibernate.treecache.mbean.object_name" 
value="jboss.cache:service=EJB3EntityTreeCache" 
name="hibernate.cache.region_prefix" value="myTestRegion" 

At the entity, I have mentioned to cache the entity through an annotation 
@Cache(region="myRegion", usage = CacheConcurrencyStrategy.READ_ONLY) 

Database connection pool size is configured for max of 5 connections. While 
load testing, after few requests been served, application is throwing an error 
related to data base connection(Connection not avaialable). 

Any configuration that I am missing? 
When entity is configured for caching, why it is looking for the database 
connection? is that entity still holding back the database connection? 

Thanks in advance

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212125
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - JBoss cache: Database connection issue in load testing

2009-02-22 Thread preddy1104
I am new to JBoss caching and trying to use second level caching with ejb3 
entity beans. By looking at the document I have configured my entity bean to 
use jboss caching as second level caching. It is failing in load testing. I am 
getting an error related to database connection availablity.

Using JBoss Cache 3.0.2

Configurations used:

I have configured persistence.xml with the following properties
name="hibernate.cache.use_second_level_cache" value="true"
name="hibernate.cache.provider_class" 
value="org.jboss.ejb3.entity.TreeCacheProviderHook" 
name="hibernate.treecache.mbean.object_name" 
value="jboss.cache:service=EJB3EntityTreeCache" 
name="hibernate.cache.region_prefix" value="myTestRegion"

At the entity, I have mentioned to cache the entity through an annotation
@Cache(region="myRegion", usage = CacheConcurrencyStrategy.READ_ONLY)

Database connection pool size is configured for max of 5 connections. While 
load testing, after few requests been served, application is throwing an error 
related to data base connection(Connection not avaialable). 

Any configuration that I am missing?
When I say cache this entity, why it is looking for the database connection, is 
that entity still holding back the database connection?

Thanks in advance

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Problem Integrating tomahawk (or other external jars) in jbo

2009-02-22 Thread AndrewMartin
I am using Ganymede eclipse with jboss tools for creating a seam project for 
development. For an ear project it creates interlinked sub projects.
 But now I want to use tomahawk jsf tag library for some validations (rather 
than writing my own validator). 
I have put he tomahawk jar in he class path but it is not getting copied to the 
deployed path. I know I'll have to add the tld and edit web.xml for making it 
useful but even without them shouldn't it copy the jars available in build 
path? 
There is n build.xml in these seam projects, am I doing something wrong or is 
it like we ca not use any external library? Please reply.

Regards, 
Andrew

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212123
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: process resume

2009-02-22 Thread galanfish
stupid question:
need i add every activity(maybe exception comes out) with at least two 
transitions? one for the normal destination, and one for the error state or?

thx

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212122
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Confused about: Eclipse, Eclipse WTP, and JBoss; what do I

2009-02-22 Thread matthewtap
I have developed using NetBeans and the Sun Java EE 5 Application Server.

But, I am new to Eclipse [I can use it for POJO's], as well as JBoss.  I have 
found mid to high level info on both... there is mid to high level stuff coming 
out of my ears.  But I do not know what exactly is needed.

What I want to do:
-- I'd like to use Eclipse as the IDE, as I used NetBeans.
-- and I'd like to use JBoss as the App Server / Servlet Container [I suppose 
Tomcat will be the resource for the Servlet Container at least].

But, what I don't know:
-- Is this a standard 'marriage'... or is there an IDE that is packaged with 
JBoss that I do not know about?
-- Most significantly, the role of the Eclipse WTP -- is this something I would 
still need if I were to use Eclipse as the IDE along with JBoss as the App 
Server?  
   Or, is the Eclipse WTP something that would just duplicate functions 
that JBoss handles?

I know this is a JBoss forum, but the questions are related to each other.

Since all books / documents I can find on this talk about either JBoss or 
Eclipse and the WTP, there isn't anything I've found that contrasts the two and 
helps me understand what I would really need.

For sake of this question, assume I'm wanting to be able to make a 'hello 
world' version of a Servlet and JSP page, and also to connect to a Derby 
Database.



I wish I had the time so I could learn everything I need to learn about both, 
and thus I'd be able to make the determination myself, but I need a starting 
place, as I feel like I'm looking for the starting blocks while wearing a blind 
fold.

If anyone who understands this stuff can help me out, I'd be grateful for the 
assistance.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212118
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Service Layer Integration

2009-02-22 Thread bradsdavis
I am using JBoss 4.2.3 GA, and JBPM 3.3.1 GA.  I am looking for documentation 
on integrating with the jbpm installation.

I notice that there is a BPMContextService in jbpm/jbpm-integration.  What is 
this for?  Is there a way to get the JbpmContext that is configured in 
jbpm-service, without defining the configuration in the root of an applications 
classpath? 

I would like to be able to look up the configuration from the jndi or jmx to 
allow apps installed on a given  server to assume their configuration based on 
jbpm-service's configuration.

Thanks

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212117
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Could not get JNDI datasource working

2009-02-22 Thread sdsani
Hi,

I am new to Jboss and at this point learning about Jboss and JSF. Currently I 
am working on a very small JSF application (JSF, Spring) that connects to a 
database (H2) and then reads and display some information from that database. 
Everything works fine when I perform JNDI lookup from my code as mentioned 
below.

  | private Connection getConnectionUsingJNDI() throws Exception
  | {
  | Properties properties = new Properties();
  | properties.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | properties.setProperty(InitialContext.PROVIDER_URL, 
"jnp://localhost:1099");
  | InitialContext ic = new InitialContext(properties);
  | 
  | Connection con = null;
  | if (ic != null) {
  | DataSource ds = (DataSource) ic.lookup("java:/H2DS");
  | con = ds.getConnection();
  | }
  | return con;
  | }
  | 
Next I tried to configure my JNDI lookup in Spring. Following are the steps 
that I took.

Added following entry in my spring context file:

  | 
  | 
Modified my applicationContext.xml file to use new datasource.

  | 
  | 
  | 
  | 
  | 
  | 
When I deploy my application, I am getting a success, however when I hit this 
application I am getting a null for DS. Please advice. Since i am new to Jboss, 
i will appriciate if you could post a detailed solution.

Sani


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212109
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Having problem to use JNDI datasource.

2009-02-22 Thread sdsani
Hi,

I am new to Jboss and at this point learning about Jboss and JSF. Currently I 
am working on a very small JSF application (JSF, Spring) that connects to a 
database (H2) and then reads and display some information from that database. 
Everything works fine when I perform JNDI lookup from my code as mentioned 
below.

  | private Connection getConnectionUsingJNDI() throws Exception
  | {
  | Properties properties = new Properties();
  | properties.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  | properties.setProperty(InitialContext.PROVIDER_URL, 
"jnp://localhost:1099");
  | InitialContext ic = new InitialContext(properties);
  | 
  | Connection con = null;
  | if (ic != null) {
  | DataSource ds = (DataSource) ic.lookup("java:/H2DS");
  | con = ds.getConnection();
  | }
  | return con;
  | }
  | 
Next I tried to configure my JNDI lookup in Spring. Following are the steps 
that I took.

Added following entry in my spring context file:

  | 
  | 

Modified my applicationContext.xml file to use new datasource.

  | 
  | 
  | 
  | 
  | 
  | 

When I deploy my application, I am getting a success, however when I hit this 
application I am getting a null for DS. Please advice.

Sani


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212107
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Dashboard configuration - drag and drop

2009-02-22 Thread diparc
I was looking at other posts in the forum and figured that I do need to manage 
hibernate transactions. I modified the code to do that and it is working now.

Hoping this is the right way though, please share your thoughts -

I am leaving the code snippet here -


  |private void createUserAndAssignPortalRole(String userName) throws 
IllegalArgumentException, ServletException { 
  |   Session session = null;
  |   Transaction transaction = null;
  |   
  |   try {
  |  session = getIdentitySessionFactory().openSession();
  |  transaction = session.beginTransaction();
  |  if(!isUserInPortalDB(userName)) {
  | this.filterConfig.getServletContext().log("user not found in 
portal db, creating user: " + userName);   
  | User user = getUserModule().createUser(userName, ""); //not 
storing user passwords in database
  | getMembershipModule().assignRoles(user, getRequiredRoleSet());
  |  }
  |   }
  |   catch (IdentityException e) {
  |  this.filterConfig.getServletContext().log("could not assign portal 
role to user: " + userName);
  |  throw new ServletException(e);
  |   }
  |   finally {
  |  if (transaction != null) transaction.commit();
  |  if (session != null) session.close(); 
  |   }
  |}
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212106
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Cannot start server

2009-02-22 Thread PeterJ
Did you read the title of the first topic in the Seam Forum? Did you read the 
topic?

Also, if you are having issues with how JBoss Tools does it work with Seam, you 
need to post in the JBoss Tools forum, not the Seam forum.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212105
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Cannot start server

2009-02-22 Thread PeterJ
How are you specifying the database connection? Are you using a datasource? If 
so, post the *-ds.xml file.

When posting XML text or source code, please enclose the text in UBBCode "code" 
tags  - you can do this by selecting the text and clicking the Code button 
above the editor window. Also, click the Preview button to ensure that the 
formatting is correct and the XML text shows up before posting.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212104
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Serving Static Content JBoss5.0.0.GA

2009-02-22 Thread PeterJ
See http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4200175

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Dashboard configuration - drag and drop

2009-02-22 Thread diparc
Thanks Sambit & Vivek!

I wrote a servlet filter like you suggested and I am creating the user when the 
user is not found, also creating the role when not found, and assigning role to 
user using the membership module -
however, I am getting an exception when it tries to create the user in the 
portal database -

anonymous wrote : 
  | org.hibernate.HibernateException: Unable to locate current JTA transaction
  | 
org.hibernate.context.JTASessionContext.currentSession(JTASessionContext.java:61)
   
org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:544)

org.jboss.portal.identity.db.HibernateUserModuleImpl.getCurrentSession(HibernateUserModuleImpl.java:298)

org.jboss.portal.identity.db.HibernateUserModuleImpl.createUser(HibernateUserModuleImpl.java:166)
  | 
JBossPortalAuthorizationFilter.createUserAndAssignPortalRole(JBossPortalAuthorizationFilter.java:83)
  | 

seems like i need to start and end hibernate transactions -
I am using methods in UserModule, RoleModule and MembershipModule only to 
achieve this-

you mentioned about the TransactionManager, I am not using that -
can you please advise what i need to do here -

here is the code snippet from doFilter() -


  | 
  |  ...
  |  ...
  |   //create user and assign  roles if user is not defined in portal db
  |   try {
  |  createUserAndAssignPortalRole(userName);
  |  filterChain.doFilter(httpRequest, response);
  |   }
  |   catch (IllegalArgumentException e) {
  |  this.filterConfig.getServletContext().log("Invalid user: " + 
userName);
  |  e.printStackTrace();
  |  denyAccess(userName, httpResponse);
  |  return;
  |   }
  |}
  | 
  |private void createUserAndAssignPortalRole(String userName) throws 
IllegalArgumentException, ServletException { 
  | 
  |   try {
  |  if(!isUserInPortalDB(userName)) {
  | this.filterConfig.getServletContext().log("user not found in 
portal db, creating user: " + userName);   
  | User user = getUserModule().createUser(userName, ""); //not 
storing user passwords in database
  | getMembershipModule().assignRoles(user, getRequiredRoleSet());  
  
  |  }
  |   }
  |   catch (IdentityException e) {
  |  this.filterConfig.getServletContext().log("could not assign portal 
role to user: " + userName);
  |  throw new ServletException(e);
  |   }
  |}
  | 

thanks once again for your help,
D

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212102
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache: Core Edition] - Re: Do you prefer a tree or a plain map API for your project

2009-02-22 Thread mingfai
it's good to have an option to get and put data without a node argument. I have 
a suggestion to add a defaultNode attribute and a set of API without the node 
argument (and assume to use the defaultNode)

I've just implemented a @JBossCache annotation to create and inject a Cache to 
any Spring-managed bean in Grails. By default,  for a class foo.Bar, the 
injected cache will have a getDefaultNode() method that returns a Fqn of 
"/foo/Bar". And using get(key) and put(key,value) will use the defaultNode. 

My implementation is with Groovy's MetaClass. And it could also be done by Java 
sub-classing. Or maybe the official distribution may consider to do in this way?





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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212100
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Howto inject beans into a collection

2009-02-22 Thread alesj
Your example should work.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212094
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Howto inject beans into a collection

2009-02-22 Thread Welle
Hi all,

I just started looking at the Microcontainer and wonder how I should inject 
beans into a collection (List) that is a property to another bean?

I can't find any examples how this should be done (if possible).


  | 
  |
  |   
  |  
  |  
  |  
  |   
  | 
  | 
  | 
  | ...
  | ...
  | ...
  | 


Best regards
Anders


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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212085
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Connecting From JBoss to Websphere EJB

2009-02-22 Thread foolit
I have an application running in Jboss 4.2 version that needs to communicate 
with an EJB Running in Websphere 6.0.  Can you provide me with some pointers to 
make this happen.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212078
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Simple 2 Server Setup

2009-02-22 Thread hatleye
I have had more time to look at the examples, and they are very straightforward 
on how to handle topics on a single server, but I still have one fundamental 
question.  How does the Server peer architecture exchange messages and know 
about global queues?  Only through them being clustered?  

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212072
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Increase jboss Memory

2009-02-22 Thread elshereif
It prints that its uses 64 bit jvm but,
It output the following

JBoss Bootstrap Environment

  JBOSS_HOME: /JBOSS/iboss/jboss-4.0.2RC1

  JAVA: java

  JAVA_OPTS:  -d64 -Xmn1024m -Xms3072m -Xmx3072m -XX:ThreadStackSize=128
 -XX:+UseParallelGC -XX:ParallelGCThreads=8 -verbose:gc -Xloggc:/gclog.txt  
-XX:+PrintGCDetails -Dcom.sun.management.jmxremote.port=50050  
-Dcom.sun.management.jmxremote.authenticate=false 
-Dcom.sun.management.jmxremote.ssl=false -Dprogram.name=run.sh

  CLASSPATH: /JBOSS/iboss/jboss-4.0.2RC1/bin/run.jar:/lib/tools.jar

=

17:13:47,049 INFO  [Server] Starting JBoss (MX MicroKernel)...
17:13:47,054 INFO  [Server] Release ID: JBoss [Zion] 4.0.2RC1 (build: 
CVSTag=JBoss_4_0_2_RC1 date=200503140913)
17:13:47,055 INFO  [Server] Home Dir: /JBOSS/iboss/jboss-4.0.2RC1
17:13:47,056 INFO  [Server] Home URL: file:/JBOSS/iboss/jboss-4.0.2RC1/
17:13:47,057 INFO  [Server] Library URL: file:/JBOSS/iboss/jboss-4.0.2RC1/lib/
17:13:47,061 INFO  [Server] Patch URL: null
17:13:47,062 INFO  [Server] Server Name: default
17:13:47,062 INFO  [Server] Server Home Dir: 
/JBOSS/iboss/jboss-4.0.2RC1/server/default
17:13:47,064 INFO  [Server] Server Home URL: 
file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/
17:13:47,065 INFO  [Server] Server Data Dir: 
/JBOSS/iboss/jboss-4.0.2RC1/server/default/data
17:13:47,065 INFO  [Server] Server Temp Dir: 
/JBOSS/iboss/jboss-4.0.2RC1/server/default/tmp
17:13:47,066 INFO  [Server] Server Config URL: 
file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/conf/
17:13:47,067 INFO  [Server] Server Library URL: 
file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/lib/
17:13:47,068 INFO  [Server] Root Deployment Filename: jboss-service.xml
17:13:47,080 INFO  [Server] Starting General Purpose Architecture (GPA)...
psrset: cannot bind pid 7221: Invalid argument
psrset: invalid process ID: 6521
r...@dr-iboss-es00-wf00 # 17:13:48,443 INFO  [ServerInfo] Java version: 
1.5.0_12,Sun Microsystems Inc.
17:13:48,444 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 
1.5.0_12-b04,Sun Microsystems Inc.
17:13:48,445 INFO  [ServerInfo] OS-System: SunOS 5.10,sparcv9
17:13:50,046 INFO  [Server] Core system initialized
17:13:53,792 ERROR [MainDeployer] could not create deployment: 
file:/JBOSS/iboss/jboss-4.0.2RC1/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Unexpected error during load of: 
org.jboss.management.j2ee.LocalJBossServerDomain, 
msg=org/jboss/management/j2ee/LocalJBossServerDomainMBean; - nested throwable: 
(java.lang.ClassNotFoundException: Unexpected error during load of: 
org.jboss.management.j2ee.LocalJBossServerDomain, 
msg=org/jboss/management/j2ee/LocalJBossServerDomainMBean)
at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143)
at 
org.jboss.system.ServiceController.install(ServiceController.java:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:220)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss

[jboss-user] [Beginners Corner] - JBOSS Session for JAVA

2009-02-22 Thread javaguru123
I need to know if JBOSS server creates a session id by default or one must have 
"request.getSession()" in order to establish commmunication between client and 
server.
 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212070
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Transaction is not active

2009-02-22 Thread HoleInOne
You got a real, genuine, deadlock there.
2 threads fighting over the same resources.
When you set the timeout to an hour instead of 5 minutes it means only that the 
 threads where fighting for the whole hour instead of 5 minutes.
There is no easy answer for this I'm afraid. 
The application must be re-designed to prevent two threads wanting the same 
resource (database rows) at the same time. 

H

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212068
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Cannot start server

2009-02-22 Thread handro1104
For some reason I cannot post on JBoss Seam.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212067
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Cannot start server

2009-02-22 Thread handro1104
Thank you PeterJ. I am not working on the command line. I have Eclipse Ganymede 
and JBossTools-ALL-win32-3.0.0.CR2-R200901280154.zip.  I get the error when I 
start the server.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212066
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Serving Static Content JBoss5.0.0.GA

2009-02-22 Thread ramboid
Is there a way to serve static ontent with JBoss5.0.0.GA?  I used to add a 
Context element in the server.xml file of JBoss4.X and that was sufficient to 
server static content.  In JBoss5.0.0.GA, I just get errors when I try to add a 
context element on the server.xml.  It appears that the context cannoit be 
found as a child of the host element.
Thw wiki just have examples for JBoss 4.x but lacks an examole for JBoss5.x

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user