开发者

Serialize Object from a war deploy

开发者 https://www.devze.com 2023-04-01 14:34 出处:网络
I was getting into trouble when tried to find a solution for myproblem. I have an xml Schema that I download from the internet and create SchemaFactory with it.

I was getting into trouble when tried to find a solution for my problem. I have an xml Schema that I download from the internet and create SchemaFactory with it. The code goes like this:

SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);

The problem is that it takes a descent amount of time to load it so I 开发者_JS百科want to serialize this object and then deserialize it . I didn't succeed to even create a file within a war(read file I found how to do). Would be glad if someone could help me. Thanks, Pavel


You can't store a new file dynamically in a running war. You may use an external directory to store the serialized object in a file, though, or store it in a database.

0

精彩评论

暂无评论...
验证码 换一张
取 消