[jboss-user] [EJB3] - Re: Why does Thread.getContextClassLoader in an stateless bean r

2011-01-14 Thread Joan Pujol Espinar
Joan Pujol Espinar [http://community.jboss.org/people/lujop] created the 
discussion

"Re: Why does Thread.getContextClassLoader in an stateless bean r"

To view the discussion, visit: http://community.jboss.org/message/580885#580885

--
I've exactly the same problem. Someone has some information about it or some 
workarround?

What I do is call a local stateless EJB from a Webapp and while executing the 
EJB code the current class loader seems ok but the thread one is always the 
webapp.
--

Reply to this message by going to Community
[http://community.jboss.org/message/580885#580885]

Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[mojo-dev] [jira] Created: (MNBMODULE-77) Describe the lifecycle of the module better

2010-03-10 Thread Joan Pujol Espinar (JIRA)
Describe the lifecycle of the module better
---

 Key: MNBMODULE-77
 URL: http://jira.codehaus.org/browse/MNBMODULE-77
 Project: Maven 2.x Netbeans Module Plugin
  Issue Type: Improvement
Reporter: Joan Pujol Espinar
Assignee: Milos Kleint
Priority: Minor


It will be nice to describe the lifecycle of the module better.
For a maven newbie it's hard to discover where to find documentation about 
declaring public packages.
It's documented in the manifest goal but you have to know that, and that this 
goal is automatically called when you make the module.

In fact I think that it will be good to have a reference of how to declare 
public packages in the main usage page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email




Concurrency in Lucene

2004-08-26 Thread Joan Pujol Espinar
Hi,
I'm new in Lucene and I want to use in a website to manage some
documentation: Bacally users can add or modify existing documents and
users can search the documents.
And I have some questions about concurrency, I have been reading the FAQ
and searching the mailing list. But I still have some doubts:
That I understand:
I can use IndexWriters and Searchers concurrently. But if I add
documents I have to close and reopen the Searcher to be able to search
the new documents.
I can't use concurrently IndexReader¿? I read this in the faq. but it's
2001 and I don't know if Lucene now can manage it:
Can I modify the index while performing ongoing searches ?
Yes and no. At the time of writing this FAQ (June 2001), Lucene is not
thread safe in this regard. Here is a quote from Doug Cutting, the
creator of Lucene:
 /The problems are only when you add documents or optimize an
 index, and then search with an IndexReader that was constructed
 before those changes to the index were made. /
It is all this correct?
What I want is what I said: That users will be able to add, modify and
search documents.  And that when a user adds or modifies a document it
is disposable instantly for the searches
It's lucene good to do this, or I need to much index closing an opening?
I have to take into account something more about the concurrency aside
of what I have asked?
A lot of thanks in advance,


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Parsing DOM

2002-05-03 Thread Joan Pujol Espinar
Hi,

I want to parse a XML Document  with DOM.
I know well the format of the document, and I have a XML schema for it.
I want to get some dispersed nested elements in arbitrally order. 

I have been examining the DOM API and I can't find a comfortable way to do it.



 
   
   
   
   
   
  


For example, if I know the format, and I want to get the atri element of D. 
What's the better way to get it?

Bye,



I knowThe format of the document is 

---
Joan Pujol Espinar
PTS Sistemes Departament IMA 
Universitat de Girona


-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: validation error with Xerces131... bug??.

2001-10-29 Thread Joan Pujol Espinar
Quoting Thakur Thribhuvan <[EMAIL PROTECTED]>:

Hi Thakur,

You have some problems with schema design. The Schema you write isn't valid.
You can't use the attribute base directly in a complexType.

When you want to create a complexType from a simple Type you have to use:


  

  
  


Also I see that you declare the Schema namespace to xsd prefix. But why you 
don't use the prefix xsd when you declare the Types and elements?
It's correct? I think that you must put the schema namespace if you want to do 
it.

Bye,

> Hi, 
> I have written a Schema that contains couple of elements and an attribute.
> When I validate it using one the samples(dom.DOMCount with -v option) it
> gives me this error.
> 
> java dom.DOMCount -v account.xml
>[Error] account.xml:7:51: The content of element type "anu:ProductID"
> must match "EMPTY".
>account.xml: 1362 ms (4 elems, 4 attrs, 11 spaces, 12 chars)
> 
>   I guess the parser seems to assume that the content type as empty for
> ProductID(one of the elements) when it should be elementOnly which is the
> default. I am enclosing the xml instance file and the schema. Any pointers
> would be appreciated.
> 
> 
>  xmlns:xsd='http://www.w3.org/2000/10/XMLSchema'
> xmlns:anu='anutech.com'>
> 
>
>  
>  
>   
>
> 
>  
>   
> 
> 
> 
>   
>  
> 
> 
>  
>  
> 
> 
> 
> 
> 
>   xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";
> 
>  xsi:schemaLocation='anutech.com account.xsd'>
> 123456789 
> 
> 99
>  
> A  
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---
Joan Pujol Espinar
PTS Sistemes Departament IMA 
Universitat de Girona


-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]