Acting as a whole, there is pipe glands release water to the small intestine and endocrine hormone created a cell that acts to produce the hormones combined into groups.
Acts as a digestive gland is to build a pipeline to the small intestine and the endocrine hormone acts on cells that produce hormones are combined as a group.
Act as gland is to build the gastric juice pipe to the small intestine and endocrine produces a hormone cells function in hormone production will be grouped together.