-
1. Re: Embedded Server doesnt take null or empty datasource
shawkins Mar 6, 2013 10:37 AM (in response to gtmbanerjee)Are supplying metadata via the native (default) method and is the ExecutionFactory marked as requiring a connection for metadata load? Then an exception would be expected. Or are you specifying the metadata via ddl and have set the schema source type to "ddl" / using some other custom metadata repository?
Steve
-
2. Re: Embedded Server doesnt take null or empty datasource
gtmbanerjee Mar 6, 2013 10:59 AM (in response to gtmbanerjee)I am adding a code snippet
server = new
EmbeddedServer();.start(ec);server
.addTranslator(newResourceAccessExecutionFactory());
final
ModelMetaData schemaModel = newModelMetaData();schemaModel.setName("chorus_resource"
);schemaModel.setSchemaSourceType("native"
);schemaModel.addSourceMapping("chorus_resource"
,,); -
3. Re: Embedded Server doesnt take null or empty datasource
shawkins Mar 6, 2013 11:46 AM (in response to gtmbanerjee)What does the ResourceAccessExecutionFactory return for isSourceRequiredForMetadata and isSourceRequired? You should also use an null rather than an empty string for the source name. If a source is not required at all, then you should be calling setSourceRequired(false) in your constructor or start method.
Steve
-
4. Re: Embedded Server doesnt take null or empty datasource
gtmbanerjee Mar 6, 2013 2:24 PM (in response to shawkins)We are calling in the start method
setSourceRequired(false);
setSourceRequiredForMetadata(false);When we give null as the source name, we are getting the same result.
-
5. Re: Embedded Server doesnt take null or empty datasource
shawkins Mar 6, 2013 2:35 PM (in response to gtmbanerjee)Ah that would explain it. When you pass an actual instance to addTranslator we assume that start will already have been called.
Steve
-
6. Re: Embedded Server doesnt take null or empty datasource
gtmbanerjee Mar 7, 2013 5:27 AM (in response to shawkins)Thanks, the problem is solved with adding the methods in the constructor instead of the start method. However, I would like to know if there is a way
we can deploy vdb xml in a embedded server as we do in the server. The idea is to simulate the server in the embedded server as closely as possible.
Thanks
Gautam
-
7. Re: Embedded Server doesnt take null or empty datasource
shawkins Mar 7, 2013 5:41 AM (in response to gtmbanerjee)Just to make sure, you'll want to call start() prior to registering the translator if there is anything that needs to happen via the start method.
We will likely add an xml based vdb deployment for Embedded in 8.4, we had wanted to keep the deployment as minimalistic as possible initially.
Steve